gccint.info 2.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845
  1. This is gccint.info, produced by makeinfo version 6.1 from gccint.texi.
  2. Copyright (C) 1988-2020 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-2020 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 (GCC)
  42. version 10.1.0. The use of the GNU compilers is documented in a
  43. separate manual. *Note Introduction: (gcc)Top.
  44. This manual is mainly a reference manual rather than a tutorial. It
  45. discusses how to contribute to GCC (*note Contributing::), the
  46. characteristics of the machines supported by GCC as hosts and targets
  47. (*note Portability::), how GCC relates to the ABIs on such systems
  48. (*note Interface::), and the characteristics of the languages for which
  49. GCC front ends are written (*note Languages::). It then describes the
  50. GCC source tree structure and build system, some of the interfaces to
  51. GCC front ends, and how support for a target system is implemented in
  52. GCC.
  53. Additional tutorial information is linked to from
  54. <http://gcc.gnu.org/readings.html>.
  55. * Menu:
  56. * Contributing:: How to contribute to testing and developing GCC.
  57. * Portability:: Goals of GCC's portability features.
  58. * Interface:: Function-call interface of GCC output.
  59. * Libgcc:: Low-level runtime library used by GCC.
  60. * Languages:: Languages for which GCC front ends are written.
  61. * Source Tree:: GCC source tree structure and build system.
  62. * Testsuites:: GCC testsuites.
  63. * Options:: Option specification files.
  64. * Passes:: Order of passes, what they do, and what each file is for.
  65. * poly_int:: Representation of runtime sizes and offsets.
  66. * GENERIC:: Language-independent representation generated by Front Ends
  67. * GIMPLE:: Tuple representation used by Tree SSA optimizers
  68. * Tree SSA:: Analysis and optimization of GIMPLE
  69. * RTL:: Machine-dependent low-level intermediate representation.
  70. * Control Flow:: Maintaining and manipulating the control flow graph.
  71. * Loop Analysis and Representation:: Analysis and representation of loops
  72. * Machine Desc:: How to write machine description instruction patterns.
  73. * Target Macros:: How to write the machine description C macros and functions.
  74. * Host Config:: Writing the 'xm-MACHINE.h' file.
  75. * Fragments:: Writing the 't-TARGET' and 'x-HOST' files.
  76. * Collect2:: How 'collect2' works; how it finds 'ld'.
  77. * Header Dirs:: Understanding the standard header file directories.
  78. * Type Information:: GCC's memory management; generating type information.
  79. * Plugins:: Extending the compiler with plugins.
  80. * LTO:: Using Link-Time Optimization.
  81. * Match and Simplify:: How to write expression simplification patterns for GIMPLE and GENERIC
  82. * Static Analyzer:: Working with the static analyzer.
  83. * User Experience Guidelines:: Guidelines for implementing diagnostics and options.
  84. * Funding:: How to help assure funding for free software.
  85. * GNU Project:: The GNU Project and GNU/Linux.
  86. * Copying:: GNU General Public License says
  87. how you can copy and share GCC.
  88. * GNU Free Documentation License:: How you can copy and share this manual.
  89. * Contributors:: People who have contributed to GCC.
  90. * Option Index:: Index to command line options.
  91. * Concept Index:: Index of concepts and symbol names.
  92. 
  93. File: gccint.info, Node: Contributing, Next: Portability, Up: Top
  94. 1 Contributing to GCC Development
  95. *********************************
  96. If you would like to help pretest GCC releases to assure they work well,
  97. current development sources are available via Git (see
  98. <http://gcc.gnu.org/git.html>). Source and binary snapshots are also
  99. available for FTP; see <http://gcc.gnu.org/snapshots.html>.
  100. If you would like to work on improvements to GCC, please read the
  101. advice at these URLs:
  102. <http://gcc.gnu.org/contribute.html>
  103. <http://gcc.gnu.org/contributewhy.html>
  104. for information on how to make useful contributions and avoid
  105. duplication of effort. Suggested projects are listed at
  106. <http://gcc.gnu.org/projects/>.
  107. 
  108. File: gccint.info, Node: Portability, Next: Interface, Prev: Contributing, Up: Top
  109. 2 GCC and Portability
  110. *********************
  111. GCC itself aims to be portable to any machine where 'int' is at least a
  112. 32-bit type. It aims to target machines with a flat (non-segmented)
  113. byte addressed data address space (the code address space can be
  114. separate). Target ABIs may have 8, 16, 32 or 64-bit 'int' type. 'char'
  115. can be wider than 8 bits.
  116. GCC gets most of the information about the target machine from a
  117. machine description which gives an algebraic formula for each of the
  118. machine's instructions. This is a very clean way to describe the
  119. target. But when the compiler needs information that is difficult to
  120. express in this fashion, ad-hoc parameters have been defined for machine
  121. descriptions. The purpose of portability is to reduce the total work
  122. needed on the compiler; it was not of interest for its own sake.
  123. GCC does not contain machine dependent code, but it does contain code
  124. that depends on machine parameters such as endianness (whether the most
  125. significant byte has the highest or lowest address of the bytes in a
  126. word) and the availability of autoincrement addressing. In the
  127. RTL-generation pass, it is often necessary to have multiple strategies
  128. for generating code for a particular kind of syntax tree, strategies
  129. that are usable for different combinations of parameters. Often, not
  130. all possible cases have been addressed, but only the common ones or only
  131. the ones that have been encountered. As a result, a new target may
  132. require additional strategies. You will know if this happens because
  133. the compiler will call 'abort'. Fortunately, the new strategies can be
  134. added in a machine-independent fashion, and will affect only the target
  135. machines that need them.
  136. 
  137. File: gccint.info, Node: Interface, Next: Libgcc, Prev: Portability, Up: Top
  138. 3 Interfacing to GCC Output
  139. ***************************
  140. GCC is normally configured to use the same function calling convention
  141. normally in use on the target system. This is done with the
  142. machine-description macros described (*note Target Macros::).
  143. However, returning of structure and union values is done differently on
  144. some target machines. As a result, functions compiled with PCC
  145. returning such types cannot be called from code compiled with GCC, and
  146. vice versa. This does not cause trouble often because few Unix library
  147. routines return structures or unions.
  148. GCC code returns structures and unions that are 1, 2, 4 or 8 bytes long
  149. in the same registers used for 'int' or 'double' return values. (GCC
  150. typically allocates variables of such types in registers also.)
  151. Structures and unions of other sizes are returned by storing them into
  152. an address passed by the caller (usually in a register). The target
  153. hook 'TARGET_STRUCT_VALUE_RTX' tells GCC where to pass this address.
  154. By contrast, PCC on most target machines returns structures and unions
  155. of any size by copying the data into an area of static storage, and then
  156. returning the address of that storage as if it were a pointer value.
  157. The caller must copy the data from that memory area to the place where
  158. the value is wanted. This is slower than the method used by GCC, and
  159. fails to be reentrant.
  160. On some target machines, such as RISC machines and the 80386, the
  161. standard system convention is to pass to the subroutine the address of
  162. where to return the value. On these machines, GCC has been configured
  163. to be compatible with the standard compiler, when this method is used.
  164. It may not be compatible for structures of 1, 2, 4 or 8 bytes.
  165. GCC uses the system's standard convention for passing arguments. On
  166. some machines, the first few arguments are passed in registers; in
  167. others, all are passed on the stack. It would be possible to use
  168. registers for argument passing on any machine, and this would probably
  169. result in a significant speedup. But the result would be complete
  170. incompatibility with code that follows the standard convention. So this
  171. change is practical only if you are switching to GCC as the sole C
  172. compiler for the system. We may implement register argument passing on
  173. certain machines once we have a complete GNU system so that we can
  174. compile the libraries with GCC.
  175. On some machines (particularly the SPARC), certain types of arguments
  176. are passed "by invisible reference". This means that the value is
  177. stored in memory, and the address of the memory location is passed to
  178. the subroutine.
  179. If you use 'longjmp', beware of automatic variables. ISO C says that
  180. automatic variables that are not declared 'volatile' have undefined
  181. values after a 'longjmp'. And this is all GCC promises to do, because
  182. it is very difficult to restore register variables correctly, and one of
  183. GCC's features is that it can put variables in registers without your
  184. asking it to.
  185. 
  186. File: gccint.info, Node: Libgcc, Next: Languages, Prev: Interface, Up: Top
  187. 4 The GCC low-level runtime library
  188. ***********************************
  189. GCC provides a low-level runtime library, 'libgcc.a' or 'libgcc_s.so.1'
  190. on some platforms. GCC generates calls to routines in this library
  191. automatically, whenever it needs to perform some operation that is too
  192. complicated to emit inline code for.
  193. Most of the routines in 'libgcc' handle arithmetic operations that the
  194. target processor cannot perform directly. This includes integer
  195. multiply and divide on some machines, and all floating-point and
  196. fixed-point operations on other machines. 'libgcc' also includes
  197. routines for exception handling, and a handful of miscellaneous
  198. operations.
  199. Some of these routines can be defined in mostly machine-independent C.
  200. Others must be hand-written in assembly language for each processor that
  201. needs them.
  202. GCC will also generate calls to C library routines, such as 'memcpy'
  203. and 'memset', in some cases. The set of routines that GCC may possibly
  204. use is documented in *note (gcc)Other Builtins::.
  205. These routines take arguments and return values of a specific machine
  206. mode, not a specific C type. *Note Machine Modes::, for an explanation
  207. of this concept. For illustrative purposes, in this chapter the
  208. floating point type 'float' is assumed to correspond to 'SFmode';
  209. 'double' to 'DFmode'; and 'long double' to both 'TFmode' and 'XFmode'.
  210. Similarly, the integer types 'int' and 'unsigned int' correspond to
  211. 'SImode'; 'long' and 'unsigned long' to 'DImode'; and 'long long' and
  212. 'unsigned long long' to 'TImode'.
  213. * Menu:
  214. * Integer library routines::
  215. * Soft float library routines::
  216. * Decimal float library routines::
  217. * Fixed-point fractional library routines::
  218. * Exception handling routines::
  219. * Miscellaneous routines::
  220. 
  221. File: gccint.info, Node: Integer library routines, Next: Soft float library routines, Up: Libgcc
  222. 4.1 Routines for integer arithmetic
  223. ===================================
  224. The integer arithmetic routines are used on platforms that don't provide
  225. hardware support for arithmetic operations on some modes.
  226. 4.1.1 Arithmetic functions
  227. --------------------------
  228. -- Runtime Function: int __ashlsi3 (int A, int B)
  229. -- Runtime Function: long __ashldi3 (long A, int B)
  230. -- Runtime Function: long long __ashlti3 (long long A, int B)
  231. These functions return the result of shifting A left by B bits.
  232. -- Runtime Function: int __ashrsi3 (int A, int B)
  233. -- Runtime Function: long __ashrdi3 (long A, int B)
  234. -- Runtime Function: long long __ashrti3 (long long A, int B)
  235. These functions return the result of arithmetically shifting A
  236. right by B bits.
  237. -- Runtime Function: int __divsi3 (int A, int B)
  238. -- Runtime Function: long __divdi3 (long A, long B)
  239. -- Runtime Function: long long __divti3 (long long A, long long B)
  240. These functions return the quotient of the signed division of A and
  241. B.
  242. -- Runtime Function: int __lshrsi3 (int A, int B)
  243. -- Runtime Function: long __lshrdi3 (long A, int B)
  244. -- Runtime Function: long long __lshrti3 (long long A, int B)
  245. These functions return the result of logically shifting A right by
  246. B bits.
  247. -- Runtime Function: int __modsi3 (int A, int B)
  248. -- Runtime Function: long __moddi3 (long A, long B)
  249. -- Runtime Function: long long __modti3 (long long A, long long B)
  250. These functions return the remainder of the signed division of A
  251. and B.
  252. -- Runtime Function: int __mulsi3 (int A, int B)
  253. -- Runtime Function: long __muldi3 (long A, long B)
  254. -- Runtime Function: long long __multi3 (long long A, long long B)
  255. These functions return the product of A and B.
  256. -- Runtime Function: long __negdi2 (long A)
  257. -- Runtime Function: long long __negti2 (long long A)
  258. These functions return the negation of A.
  259. -- Runtime Function: unsigned int __udivsi3 (unsigned int A, unsigned
  260. int B)
  261. -- Runtime Function: unsigned long __udivdi3 (unsigned long A, unsigned
  262. long B)
  263. -- Runtime Function: unsigned long long __udivti3 (unsigned long long
  264. A, unsigned long long B)
  265. These functions return the quotient of the unsigned division of A
  266. and B.
  267. -- Runtime Function: unsigned long __udivmoddi4 (unsigned long A,
  268. unsigned long B, unsigned long *C)
  269. -- Runtime Function: unsigned long long __udivmodti4 (unsigned long
  270. long A, unsigned long long B, unsigned long long *C)
  271. These functions calculate both the quotient and remainder of the
  272. unsigned division of A and B. The return value is the quotient,
  273. and the remainder is placed in variable pointed to by C.
  274. -- Runtime Function: unsigned int __umodsi3 (unsigned int A, unsigned
  275. int B)
  276. -- Runtime Function: unsigned long __umoddi3 (unsigned long A, unsigned
  277. long B)
  278. -- Runtime Function: unsigned long long __umodti3 (unsigned long long
  279. A, unsigned long long B)
  280. These functions return the remainder of the unsigned division of A
  281. and B.
  282. 4.1.2 Comparison functions
  283. --------------------------
  284. The following functions implement integral comparisons. These functions
  285. implement a low-level compare, upon which the higher level comparison
  286. operators (such as less than and greater than or equal to) can be
  287. constructed. The returned values lie in the range zero to two, to allow
  288. the high-level operators to be implemented by testing the returned
  289. result using either signed or unsigned comparison.
  290. -- Runtime Function: int __cmpdi2 (long A, long B)
  291. -- Runtime Function: int __cmpti2 (long long A, long long B)
  292. These functions perform a signed comparison of A and B. If A is
  293. less than B, they return 0; if A is greater than B, they return 2;
  294. and if A and B are equal they return 1.
  295. -- Runtime Function: int __ucmpdi2 (unsigned long A, unsigned long B)
  296. -- Runtime Function: int __ucmpti2 (unsigned long long A, unsigned long
  297. long B)
  298. These functions perform an unsigned comparison of A and B. If A is
  299. less than B, they return 0; if A is greater than B, they return 2;
  300. and if A and B are equal they return 1.
  301. 4.1.3 Trapping arithmetic functions
  302. -----------------------------------
  303. The following functions implement trapping arithmetic. These functions
  304. call the libc function 'abort' upon signed arithmetic overflow.
  305. -- Runtime Function: int __absvsi2 (int A)
  306. -- Runtime Function: long __absvdi2 (long A)
  307. These functions return the absolute value of A.
  308. -- Runtime Function: int __addvsi3 (int A, int B)
  309. -- Runtime Function: long __addvdi3 (long A, long B)
  310. These functions return the sum of A and B; that is 'A + B'.
  311. -- Runtime Function: int __mulvsi3 (int A, int B)
  312. -- Runtime Function: long __mulvdi3 (long A, long B)
  313. The functions return the product of A and B; that is 'A * B'.
  314. -- Runtime Function: int __negvsi2 (int A)
  315. -- Runtime Function: long __negvdi2 (long A)
  316. These functions return the negation of A; that is '-A'.
  317. -- Runtime Function: int __subvsi3 (int A, int B)
  318. -- Runtime Function: long __subvdi3 (long A, long B)
  319. These functions return the difference between B and A; that is 'A -
  320. B'.
  321. 4.1.4 Bit operations
  322. --------------------
  323. -- Runtime Function: int __clzsi2 (unsigned int A)
  324. -- Runtime Function: int __clzdi2 (unsigned long A)
  325. -- Runtime Function: int __clzti2 (unsigned long long A)
  326. These functions return the number of leading 0-bits in A, starting
  327. at the most significant bit position. If A is zero, the result is
  328. undefined.
  329. -- Runtime Function: int __ctzsi2 (unsigned int A)
  330. -- Runtime Function: int __ctzdi2 (unsigned long A)
  331. -- Runtime Function: int __ctzti2 (unsigned long long A)
  332. These functions return the number of trailing 0-bits in A, starting
  333. at the least significant bit position. If A is zero, the result is
  334. undefined.
  335. -- Runtime Function: int __ffsdi2 (unsigned long A)
  336. -- Runtime Function: int __ffsti2 (unsigned long long A)
  337. These functions return the index of the least significant 1-bit in
  338. A, or the value zero if A is zero. The least significant bit is
  339. index one.
  340. -- Runtime Function: int __paritysi2 (unsigned int A)
  341. -- Runtime Function: int __paritydi2 (unsigned long A)
  342. -- Runtime Function: int __parityti2 (unsigned long long A)
  343. These functions return the value zero if the number of bits set in
  344. A is even, and the value one otherwise.
  345. -- Runtime Function: int __popcountsi2 (unsigned int A)
  346. -- Runtime Function: int __popcountdi2 (unsigned long A)
  347. -- Runtime Function: int __popcountti2 (unsigned long long A)
  348. These functions return the number of bits set in A.
  349. -- Runtime Function: int32_t __bswapsi2 (int32_t A)
  350. -- Runtime Function: int64_t __bswapdi2 (int64_t A)
  351. These functions return the A byteswapped.
  352. 
  353. File: gccint.info, Node: Soft float library routines, Next: Decimal float library routines, Prev: Integer library routines, Up: Libgcc
  354. 4.2 Routines for floating point emulation
  355. =========================================
  356. The software floating point library is used on machines which do not
  357. have hardware support for floating point. It is also used whenever
  358. '-msoft-float' is used to disable generation of floating point
  359. instructions. (Not all targets support this switch.)
  360. For compatibility with other compilers, the floating point emulation
  361. routines can be renamed with the 'DECLARE_LIBRARY_RENAMES' macro (*note
  362. Library Calls::). In this section, the default names are used.
  363. Presently the library does not support 'XFmode', which is used for
  364. 'long double' on some architectures.
  365. 4.2.1 Arithmetic functions
  366. --------------------------
  367. -- Runtime Function: float __addsf3 (float A, float B)
  368. -- Runtime Function: double __adddf3 (double A, double B)
  369. -- Runtime Function: long double __addtf3 (long double A, long double
  370. B)
  371. -- Runtime Function: long double __addxf3 (long double A, long double
  372. B)
  373. These functions return the sum of A and B.
  374. -- Runtime Function: float __subsf3 (float A, float B)
  375. -- Runtime Function: double __subdf3 (double A, double B)
  376. -- Runtime Function: long double __subtf3 (long double A, long double
  377. B)
  378. -- Runtime Function: long double __subxf3 (long double A, long double
  379. B)
  380. These functions return the difference between B and A; that is,
  381. A - B.
  382. -- Runtime Function: float __mulsf3 (float A, float B)
  383. -- Runtime Function: double __muldf3 (double A, double B)
  384. -- Runtime Function: long double __multf3 (long double A, long double
  385. B)
  386. -- Runtime Function: long double __mulxf3 (long double A, long double
  387. B)
  388. These functions return the product of A and B.
  389. -- Runtime Function: float __divsf3 (float A, float B)
  390. -- Runtime Function: double __divdf3 (double A, double B)
  391. -- Runtime Function: long double __divtf3 (long double A, long double
  392. B)
  393. -- Runtime Function: long double __divxf3 (long double A, long double
  394. B)
  395. These functions return the quotient of A and B; that is, A / B.
  396. -- Runtime Function: float __negsf2 (float A)
  397. -- Runtime Function: double __negdf2 (double A)
  398. -- Runtime Function: long double __negtf2 (long double A)
  399. -- Runtime Function: long double __negxf2 (long double A)
  400. These functions return the negation of A. They simply flip the
  401. sign bit, so they can produce negative zero and negative NaN.
  402. 4.2.2 Conversion functions
  403. --------------------------
  404. -- Runtime Function: double __extendsfdf2 (float A)
  405. -- Runtime Function: long double __extendsftf2 (float A)
  406. -- Runtime Function: long double __extendsfxf2 (float A)
  407. -- Runtime Function: long double __extenddftf2 (double A)
  408. -- Runtime Function: long double __extenddfxf2 (double A)
  409. These functions extend A to the wider mode of their return type.
  410. -- Runtime Function: double __truncxfdf2 (long double A)
  411. -- Runtime Function: double __trunctfdf2 (long double A)
  412. -- Runtime Function: float __truncxfsf2 (long double A)
  413. -- Runtime Function: float __trunctfsf2 (long double A)
  414. -- Runtime Function: float __truncdfsf2 (double A)
  415. These functions truncate A to the narrower mode of their return
  416. type, rounding toward zero.
  417. -- Runtime Function: int __fixsfsi (float A)
  418. -- Runtime Function: int __fixdfsi (double A)
  419. -- Runtime Function: int __fixtfsi (long double A)
  420. -- Runtime Function: int __fixxfsi (long double A)
  421. These functions convert A to a signed integer, rounding toward
  422. zero.
  423. -- Runtime Function: long __fixsfdi (float A)
  424. -- Runtime Function: long __fixdfdi (double A)
  425. -- Runtime Function: long __fixtfdi (long double A)
  426. -- Runtime Function: long __fixxfdi (long double A)
  427. These functions convert A to a signed long, rounding toward zero.
  428. -- Runtime Function: long long __fixsfti (float A)
  429. -- Runtime Function: long long __fixdfti (double A)
  430. -- Runtime Function: long long __fixtfti (long double A)
  431. -- Runtime Function: long long __fixxfti (long double A)
  432. These functions convert A to a signed long long, rounding toward
  433. zero.
  434. -- Runtime Function: unsigned int __fixunssfsi (float A)
  435. -- Runtime Function: unsigned int __fixunsdfsi (double A)
  436. -- Runtime Function: unsigned int __fixunstfsi (long double A)
  437. -- Runtime Function: unsigned int __fixunsxfsi (long double A)
  438. These functions convert A to an unsigned integer, rounding toward
  439. zero. Negative values all become zero.
  440. -- Runtime Function: unsigned long __fixunssfdi (float A)
  441. -- Runtime Function: unsigned long __fixunsdfdi (double A)
  442. -- Runtime Function: unsigned long __fixunstfdi (long double A)
  443. -- Runtime Function: unsigned long __fixunsxfdi (long double A)
  444. These functions convert A to an unsigned long, rounding toward
  445. zero. Negative values all become zero.
  446. -- Runtime Function: unsigned long long __fixunssfti (float A)
  447. -- Runtime Function: unsigned long long __fixunsdfti (double A)
  448. -- Runtime Function: unsigned long long __fixunstfti (long double A)
  449. -- Runtime Function: unsigned long long __fixunsxfti (long double A)
  450. These functions convert A to an unsigned long long, rounding toward
  451. zero. Negative values all become zero.
  452. -- Runtime Function: float __floatsisf (int I)
  453. -- Runtime Function: double __floatsidf (int I)
  454. -- Runtime Function: long double __floatsitf (int I)
  455. -- Runtime Function: long double __floatsixf (int I)
  456. These functions convert I, a signed integer, to floating point.
  457. -- Runtime Function: float __floatdisf (long I)
  458. -- Runtime Function: double __floatdidf (long I)
  459. -- Runtime Function: long double __floatditf (long I)
  460. -- Runtime Function: long double __floatdixf (long I)
  461. These functions convert I, a signed long, to floating point.
  462. -- Runtime Function: float __floattisf (long long I)
  463. -- Runtime Function: double __floattidf (long long I)
  464. -- Runtime Function: long double __floattitf (long long I)
  465. -- Runtime Function: long double __floattixf (long long I)
  466. These functions convert I, a signed long long, to floating point.
  467. -- Runtime Function: float __floatunsisf (unsigned int I)
  468. -- Runtime Function: double __floatunsidf (unsigned int I)
  469. -- Runtime Function: long double __floatunsitf (unsigned int I)
  470. -- Runtime Function: long double __floatunsixf (unsigned int I)
  471. These functions convert I, an unsigned integer, to floating point.
  472. -- Runtime Function: float __floatundisf (unsigned long I)
  473. -- Runtime Function: double __floatundidf (unsigned long I)
  474. -- Runtime Function: long double __floatunditf (unsigned long I)
  475. -- Runtime Function: long double __floatundixf (unsigned long I)
  476. These functions convert I, an unsigned long, to floating point.
  477. -- Runtime Function: float __floatuntisf (unsigned long long I)
  478. -- Runtime Function: double __floatuntidf (unsigned long long I)
  479. -- Runtime Function: long double __floatuntitf (unsigned long long I)
  480. -- Runtime Function: long double __floatuntixf (unsigned long long I)
  481. These functions convert I, an unsigned long long, to floating
  482. point.
  483. 4.2.3 Comparison functions
  484. --------------------------
  485. There are two sets of basic comparison functions.
  486. -- Runtime Function: int __cmpsf2 (float A, float B)
  487. -- Runtime Function: int __cmpdf2 (double A, double B)
  488. -- Runtime Function: int __cmptf2 (long double A, long double B)
  489. These functions calculate a <=> b. That is, if A is less than B,
  490. they return -1; if A is greater than B, they return 1; and if A and
  491. B are equal they return 0. If either argument is NaN they return
  492. 1, but you should not rely on this; if NaN is a possibility, use
  493. one of the higher-level comparison functions.
  494. -- Runtime Function: int __unordsf2 (float A, float B)
  495. -- Runtime Function: int __unorddf2 (double A, double B)
  496. -- Runtime Function: int __unordtf2 (long double A, long double B)
  497. These functions return a nonzero value if either argument is NaN,
  498. otherwise 0.
  499. There is also a complete group of higher level functions which
  500. correspond directly to comparison operators. They implement the ISO C
  501. semantics for floating-point comparisons, taking NaN into account. Pay
  502. careful attention to the return values defined for each set. Under the
  503. hood, all of these routines are implemented as
  504. if (__unordXf2 (a, b))
  505. return E;
  506. return __cmpXf2 (a, b);
  507. where E is a constant chosen to give the proper behavior for NaN. Thus,
  508. the meaning of the return value is different for each set. Do not rely
  509. on this implementation; only the semantics documented below are
  510. guaranteed.
  511. -- Runtime Function: int __eqsf2 (float A, float B)
  512. -- Runtime Function: int __eqdf2 (double A, double B)
  513. -- Runtime Function: int __eqtf2 (long double A, long double B)
  514. These functions return zero if neither argument is NaN, and A and B
  515. are equal.
  516. -- Runtime Function: int __nesf2 (float A, float B)
  517. -- Runtime Function: int __nedf2 (double A, double B)
  518. -- Runtime Function: int __netf2 (long double A, long double B)
  519. These functions return a nonzero value if either argument is NaN,
  520. or if A and B are unequal.
  521. -- Runtime Function: int __gesf2 (float A, float B)
  522. -- Runtime Function: int __gedf2 (double A, double B)
  523. -- Runtime Function: int __getf2 (long double A, long double B)
  524. These functions return a value greater than or equal to zero if
  525. neither argument is NaN, and A is greater than or equal to B.
  526. -- Runtime Function: int __ltsf2 (float A, float B)
  527. -- Runtime Function: int __ltdf2 (double A, double B)
  528. -- Runtime Function: int __lttf2 (long double A, long double B)
  529. These functions return a value less than zero if neither argument
  530. is NaN, and A is strictly less than B.
  531. -- Runtime Function: int __lesf2 (float A, float B)
  532. -- Runtime Function: int __ledf2 (double A, double B)
  533. -- Runtime Function: int __letf2 (long double A, long double B)
  534. These functions return a value less than or equal to zero if
  535. neither argument is NaN, and A is less than or equal to B.
  536. -- Runtime Function: int __gtsf2 (float A, float B)
  537. -- Runtime Function: int __gtdf2 (double A, double B)
  538. -- Runtime Function: int __gttf2 (long double A, long double B)
  539. These functions return a value greater than zero if neither
  540. argument is NaN, and A is strictly greater than B.
  541. 4.2.4 Other floating-point functions
  542. ------------------------------------
  543. -- Runtime Function: float __powisf2 (float A, int B)
  544. -- Runtime Function: double __powidf2 (double A, int B)
  545. -- Runtime Function: long double __powitf2 (long double A, int B)
  546. -- Runtime Function: long double __powixf2 (long double A, int B)
  547. These functions convert raise A to the power B.
  548. -- Runtime Function: complex float __mulsc3 (float A, float B, float C,
  549. float D)
  550. -- Runtime Function: complex double __muldc3 (double A, double B,
  551. double C, double D)
  552. -- Runtime Function: complex long double __multc3 (long double A, long
  553. double B, long double C, long double D)
  554. -- Runtime Function: complex long double __mulxc3 (long double A, long
  555. double B, long double C, long double D)
  556. These functions return the product of A + iB and C + iD, following
  557. the rules of C99 Annex G.
  558. -- Runtime Function: complex float __divsc3 (float A, float B, float C,
  559. float D)
  560. -- Runtime Function: complex double __divdc3 (double A, double B,
  561. double C, double D)
  562. -- Runtime Function: complex long double __divtc3 (long double A, long
  563. double B, long double C, long double D)
  564. -- Runtime Function: complex long double __divxc3 (long double A, long
  565. double B, long double C, long double D)
  566. These functions return the quotient of A + iB and C + iD (i.e., (A
  567. + iB) / (C + iD)), following the rules of C99 Annex G.
  568. 
  569. File: gccint.info, Node: Decimal float library routines, Next: Fixed-point fractional library routines, Prev: Soft float library routines, Up: Libgcc
  570. 4.3 Routines for decimal floating point emulation
  571. =================================================
  572. The software decimal floating point library implements IEEE 754-2008
  573. decimal floating point arithmetic and is only activated on selected
  574. targets.
  575. The software decimal floating point library supports either DPD
  576. (Densely Packed Decimal) or BID (Binary Integer Decimal) encoding as
  577. selected at configure time.
  578. 4.3.1 Arithmetic functions
  579. --------------------------
  580. -- Runtime Function: _Decimal32 __dpd_addsd3 (_Decimal32 A, _Decimal32
  581. B)
  582. -- Runtime Function: _Decimal32 __bid_addsd3 (_Decimal32 A, _Decimal32
  583. B)
  584. -- Runtime Function: _Decimal64 __dpd_adddd3 (_Decimal64 A, _Decimal64
  585. B)
  586. -- Runtime Function: _Decimal64 __bid_adddd3 (_Decimal64 A, _Decimal64
  587. B)
  588. -- Runtime Function: _Decimal128 __dpd_addtd3 (_Decimal128 A,
  589. _Decimal128 B)
  590. -- Runtime Function: _Decimal128 __bid_addtd3 (_Decimal128 A,
  591. _Decimal128 B)
  592. These functions return the sum of A and B.
  593. -- Runtime Function: _Decimal32 __dpd_subsd3 (_Decimal32 A, _Decimal32
  594. B)
  595. -- Runtime Function: _Decimal32 __bid_subsd3 (_Decimal32 A, _Decimal32
  596. B)
  597. -- Runtime Function: _Decimal64 __dpd_subdd3 (_Decimal64 A, _Decimal64
  598. B)
  599. -- Runtime Function: _Decimal64 __bid_subdd3 (_Decimal64 A, _Decimal64
  600. B)
  601. -- Runtime Function: _Decimal128 __dpd_subtd3 (_Decimal128 A,
  602. _Decimal128 B)
  603. -- Runtime Function: _Decimal128 __bid_subtd3 (_Decimal128 A,
  604. _Decimal128 B)
  605. These functions return the difference between B and A; that is,
  606. A - B.
  607. -- Runtime Function: _Decimal32 __dpd_mulsd3 (_Decimal32 A, _Decimal32
  608. B)
  609. -- Runtime Function: _Decimal32 __bid_mulsd3 (_Decimal32 A, _Decimal32
  610. B)
  611. -- Runtime Function: _Decimal64 __dpd_muldd3 (_Decimal64 A, _Decimal64
  612. B)
  613. -- Runtime Function: _Decimal64 __bid_muldd3 (_Decimal64 A, _Decimal64
  614. B)
  615. -- Runtime Function: _Decimal128 __dpd_multd3 (_Decimal128 A,
  616. _Decimal128 B)
  617. -- Runtime Function: _Decimal128 __bid_multd3 (_Decimal128 A,
  618. _Decimal128 B)
  619. These functions return the product of A and B.
  620. -- Runtime Function: _Decimal32 __dpd_divsd3 (_Decimal32 A, _Decimal32
  621. B)
  622. -- Runtime Function: _Decimal32 __bid_divsd3 (_Decimal32 A, _Decimal32
  623. B)
  624. -- Runtime Function: _Decimal64 __dpd_divdd3 (_Decimal64 A, _Decimal64
  625. B)
  626. -- Runtime Function: _Decimal64 __bid_divdd3 (_Decimal64 A, _Decimal64
  627. B)
  628. -- Runtime Function: _Decimal128 __dpd_divtd3 (_Decimal128 A,
  629. _Decimal128 B)
  630. -- Runtime Function: _Decimal128 __bid_divtd3 (_Decimal128 A,
  631. _Decimal128 B)
  632. These functions return the quotient of A and B; that is, A / B.
  633. -- Runtime Function: _Decimal32 __dpd_negsd2 (_Decimal32 A)
  634. -- Runtime Function: _Decimal32 __bid_negsd2 (_Decimal32 A)
  635. -- Runtime Function: _Decimal64 __dpd_negdd2 (_Decimal64 A)
  636. -- Runtime Function: _Decimal64 __bid_negdd2 (_Decimal64 A)
  637. -- Runtime Function: _Decimal128 __dpd_negtd2 (_Decimal128 A)
  638. -- Runtime Function: _Decimal128 __bid_negtd2 (_Decimal128 A)
  639. These functions return the negation of A. They simply flip the
  640. sign bit, so they can produce negative zero and negative NaN.
  641. 4.3.2 Conversion functions
  642. --------------------------
  643. -- Runtime Function: _Decimal64 __dpd_extendsddd2 (_Decimal32 A)
  644. -- Runtime Function: _Decimal64 __bid_extendsddd2 (_Decimal32 A)
  645. -- Runtime Function: _Decimal128 __dpd_extendsdtd2 (_Decimal32 A)
  646. -- Runtime Function: _Decimal128 __bid_extendsdtd2 (_Decimal32 A)
  647. -- Runtime Function: _Decimal128 __dpd_extendddtd2 (_Decimal64 A)
  648. -- Runtime Function: _Decimal128 __bid_extendddtd2 (_Decimal64 A)
  649. -- Runtime Function: _Decimal32 __dpd_truncddsd2 (_Decimal64 A)
  650. -- Runtime Function: _Decimal32 __bid_truncddsd2 (_Decimal64 A)
  651. -- Runtime Function: _Decimal32 __dpd_trunctdsd2 (_Decimal128 A)
  652. -- Runtime Function: _Decimal32 __bid_trunctdsd2 (_Decimal128 A)
  653. -- Runtime Function: _Decimal64 __dpd_trunctddd2 (_Decimal128 A)
  654. -- Runtime Function: _Decimal64 __bid_trunctddd2 (_Decimal128 A)
  655. These functions convert the value A from one decimal floating type
  656. to another.
  657. -- Runtime Function: _Decimal64 __dpd_extendsfdd (float A)
  658. -- Runtime Function: _Decimal64 __bid_extendsfdd (float A)
  659. -- Runtime Function: _Decimal128 __dpd_extendsftd (float A)
  660. -- Runtime Function: _Decimal128 __bid_extendsftd (float A)
  661. -- Runtime Function: _Decimal128 __dpd_extenddftd (double A)
  662. -- Runtime Function: _Decimal128 __bid_extenddftd (double A)
  663. -- Runtime Function: _Decimal128 __dpd_extendxftd (long double A)
  664. -- Runtime Function: _Decimal128 __bid_extendxftd (long double A)
  665. -- Runtime Function: _Decimal32 __dpd_truncdfsd (double A)
  666. -- Runtime Function: _Decimal32 __bid_truncdfsd (double A)
  667. -- Runtime Function: _Decimal32 __dpd_truncxfsd (long double A)
  668. -- Runtime Function: _Decimal32 __bid_truncxfsd (long double A)
  669. -- Runtime Function: _Decimal32 __dpd_trunctfsd (long double A)
  670. -- Runtime Function: _Decimal32 __bid_trunctfsd (long double A)
  671. -- Runtime Function: _Decimal64 __dpd_truncxfdd (long double A)
  672. -- Runtime Function: _Decimal64 __bid_truncxfdd (long double A)
  673. -- Runtime Function: _Decimal64 __dpd_trunctfdd (long double A)
  674. -- Runtime Function: _Decimal64 __bid_trunctfdd (long double A)
  675. These functions convert the value of A from a binary floating type
  676. to a decimal floating type of a different size.
  677. -- Runtime Function: float __dpd_truncddsf (_Decimal64 A)
  678. -- Runtime Function: float __bid_truncddsf (_Decimal64 A)
  679. -- Runtime Function: float __dpd_trunctdsf (_Decimal128 A)
  680. -- Runtime Function: float __bid_trunctdsf (_Decimal128 A)
  681. -- Runtime Function: double __dpd_extendsddf (_Decimal32 A)
  682. -- Runtime Function: double __bid_extendsddf (_Decimal32 A)
  683. -- Runtime Function: double __dpd_trunctddf (_Decimal128 A)
  684. -- Runtime Function: double __bid_trunctddf (_Decimal128 A)
  685. -- Runtime Function: long double __dpd_extendsdxf (_Decimal32 A)
  686. -- Runtime Function: long double __bid_extendsdxf (_Decimal32 A)
  687. -- Runtime Function: long double __dpd_extendddxf (_Decimal64 A)
  688. -- Runtime Function: long double __bid_extendddxf (_Decimal64 A)
  689. -- Runtime Function: long double __dpd_trunctdxf (_Decimal128 A)
  690. -- Runtime Function: long double __bid_trunctdxf (_Decimal128 A)
  691. -- Runtime Function: long double __dpd_extendsdtf (_Decimal32 A)
  692. -- Runtime Function: long double __bid_extendsdtf (_Decimal32 A)
  693. -- Runtime Function: long double __dpd_extendddtf (_Decimal64 A)
  694. -- Runtime Function: long double __bid_extendddtf (_Decimal64 A)
  695. These functions convert the value of A from a decimal floating type
  696. to a binary floating type of a different size.
  697. -- Runtime Function: _Decimal32 __dpd_extendsfsd (float A)
  698. -- Runtime Function: _Decimal32 __bid_extendsfsd (float A)
  699. -- Runtime Function: _Decimal64 __dpd_extenddfdd (double A)
  700. -- Runtime Function: _Decimal64 __bid_extenddfdd (double A)
  701. -- Runtime Function: _Decimal128 __dpd_extendtftd (long double A)
  702. -- Runtime Function: _Decimal128 __bid_extendtftd (long double A)
  703. -- Runtime Function: float __dpd_truncsdsf (_Decimal32 A)
  704. -- Runtime Function: float __bid_truncsdsf (_Decimal32 A)
  705. -- Runtime Function: double __dpd_truncdddf (_Decimal64 A)
  706. -- Runtime Function: double __bid_truncdddf (_Decimal64 A)
  707. -- Runtime Function: long double __dpd_trunctdtf (_Decimal128 A)
  708. -- Runtime Function: long double __bid_trunctdtf (_Decimal128 A)
  709. These functions convert the value of A between decimal and binary
  710. floating types of the same size.
  711. -- Runtime Function: int __dpd_fixsdsi (_Decimal32 A)
  712. -- Runtime Function: int __bid_fixsdsi (_Decimal32 A)
  713. -- Runtime Function: int __dpd_fixddsi (_Decimal64 A)
  714. -- Runtime Function: int __bid_fixddsi (_Decimal64 A)
  715. -- Runtime Function: int __dpd_fixtdsi (_Decimal128 A)
  716. -- Runtime Function: int __bid_fixtdsi (_Decimal128 A)
  717. These functions convert A to a signed integer.
  718. -- Runtime Function: long __dpd_fixsddi (_Decimal32 A)
  719. -- Runtime Function: long __bid_fixsddi (_Decimal32 A)
  720. -- Runtime Function: long __dpd_fixdddi (_Decimal64 A)
  721. -- Runtime Function: long __bid_fixdddi (_Decimal64 A)
  722. -- Runtime Function: long __dpd_fixtddi (_Decimal128 A)
  723. -- Runtime Function: long __bid_fixtddi (_Decimal128 A)
  724. These functions convert A to a signed long.
  725. -- Runtime Function: unsigned int __dpd_fixunssdsi (_Decimal32 A)
  726. -- Runtime Function: unsigned int __bid_fixunssdsi (_Decimal32 A)
  727. -- Runtime Function: unsigned int __dpd_fixunsddsi (_Decimal64 A)
  728. -- Runtime Function: unsigned int __bid_fixunsddsi (_Decimal64 A)
  729. -- Runtime Function: unsigned int __dpd_fixunstdsi (_Decimal128 A)
  730. -- Runtime Function: unsigned int __bid_fixunstdsi (_Decimal128 A)
  731. These functions convert A to an unsigned integer. Negative values
  732. all become zero.
  733. -- Runtime Function: unsigned long __dpd_fixunssddi (_Decimal32 A)
  734. -- Runtime Function: unsigned long __bid_fixunssddi (_Decimal32 A)
  735. -- Runtime Function: unsigned long __dpd_fixunsdddi (_Decimal64 A)
  736. -- Runtime Function: unsigned long __bid_fixunsdddi (_Decimal64 A)
  737. -- Runtime Function: unsigned long __dpd_fixunstddi (_Decimal128 A)
  738. -- Runtime Function: unsigned long __bid_fixunstddi (_Decimal128 A)
  739. These functions convert A to an unsigned long. Negative values all
  740. become zero.
  741. -- Runtime Function: _Decimal32 __dpd_floatsisd (int I)
  742. -- Runtime Function: _Decimal32 __bid_floatsisd (int I)
  743. -- Runtime Function: _Decimal64 __dpd_floatsidd (int I)
  744. -- Runtime Function: _Decimal64 __bid_floatsidd (int I)
  745. -- Runtime Function: _Decimal128 __dpd_floatsitd (int I)
  746. -- Runtime Function: _Decimal128 __bid_floatsitd (int I)
  747. These functions convert I, a signed integer, to decimal floating
  748. point.
  749. -- Runtime Function: _Decimal32 __dpd_floatdisd (long I)
  750. -- Runtime Function: _Decimal32 __bid_floatdisd (long I)
  751. -- Runtime Function: _Decimal64 __dpd_floatdidd (long I)
  752. -- Runtime Function: _Decimal64 __bid_floatdidd (long I)
  753. -- Runtime Function: _Decimal128 __dpd_floatditd (long I)
  754. -- Runtime Function: _Decimal128 __bid_floatditd (long I)
  755. These functions convert I, a signed long, to decimal floating
  756. point.
  757. -- Runtime Function: _Decimal32 __dpd_floatunssisd (unsigned int I)
  758. -- Runtime Function: _Decimal32 __bid_floatunssisd (unsigned int I)
  759. -- Runtime Function: _Decimal64 __dpd_floatunssidd (unsigned int I)
  760. -- Runtime Function: _Decimal64 __bid_floatunssidd (unsigned int I)
  761. -- Runtime Function: _Decimal128 __dpd_floatunssitd (unsigned int I)
  762. -- Runtime Function: _Decimal128 __bid_floatunssitd (unsigned int I)
  763. These functions convert I, an unsigned integer, to decimal floating
  764. point.
  765. -- Runtime Function: _Decimal32 __dpd_floatunsdisd (unsigned long I)
  766. -- Runtime Function: _Decimal32 __bid_floatunsdisd (unsigned long I)
  767. -- Runtime Function: _Decimal64 __dpd_floatunsdidd (unsigned long I)
  768. -- Runtime Function: _Decimal64 __bid_floatunsdidd (unsigned long I)
  769. -- Runtime Function: _Decimal128 __dpd_floatunsditd (unsigned long I)
  770. -- Runtime Function: _Decimal128 __bid_floatunsditd (unsigned long I)
  771. These functions convert I, an unsigned long, to decimal floating
  772. point.
  773. 4.3.3 Comparison functions
  774. --------------------------
  775. -- Runtime Function: int __dpd_unordsd2 (_Decimal32 A, _Decimal32 B)
  776. -- Runtime Function: int __bid_unordsd2 (_Decimal32 A, _Decimal32 B)
  777. -- Runtime Function: int __dpd_unorddd2 (_Decimal64 A, _Decimal64 B)
  778. -- Runtime Function: int __bid_unorddd2 (_Decimal64 A, _Decimal64 B)
  779. -- Runtime Function: int __dpd_unordtd2 (_Decimal128 A, _Decimal128 B)
  780. -- Runtime Function: int __bid_unordtd2 (_Decimal128 A, _Decimal128 B)
  781. These functions return a nonzero value if either argument is NaN,
  782. otherwise 0.
  783. There is also a complete group of higher level functions which
  784. correspond directly to comparison operators. They implement the ISO C
  785. semantics for floating-point comparisons, taking NaN into account. Pay
  786. careful attention to the return values defined for each set. Under the
  787. hood, all of these routines are implemented as
  788. if (__bid_unordXd2 (a, b))
  789. return E;
  790. return __bid_cmpXd2 (a, b);
  791. where E is a constant chosen to give the proper behavior for NaN. Thus,
  792. the meaning of the return value is different for each set. Do not rely
  793. on this implementation; only the semantics documented below are
  794. guaranteed.
  795. -- Runtime Function: int __dpd_eqsd2 (_Decimal32 A, _Decimal32 B)
  796. -- Runtime Function: int __bid_eqsd2 (_Decimal32 A, _Decimal32 B)
  797. -- Runtime Function: int __dpd_eqdd2 (_Decimal64 A, _Decimal64 B)
  798. -- Runtime Function: int __bid_eqdd2 (_Decimal64 A, _Decimal64 B)
  799. -- Runtime Function: int __dpd_eqtd2 (_Decimal128 A, _Decimal128 B)
  800. -- Runtime Function: int __bid_eqtd2 (_Decimal128 A, _Decimal128 B)
  801. These functions return zero if neither argument is NaN, and A and B
  802. are equal.
  803. -- Runtime Function: int __dpd_nesd2 (_Decimal32 A, _Decimal32 B)
  804. -- Runtime Function: int __bid_nesd2 (_Decimal32 A, _Decimal32 B)
  805. -- Runtime Function: int __dpd_nedd2 (_Decimal64 A, _Decimal64 B)
  806. -- Runtime Function: int __bid_nedd2 (_Decimal64 A, _Decimal64 B)
  807. -- Runtime Function: int __dpd_netd2 (_Decimal128 A, _Decimal128 B)
  808. -- Runtime Function: int __bid_netd2 (_Decimal128 A, _Decimal128 B)
  809. These functions return a nonzero value if either argument is NaN,
  810. or if A and B are unequal.
  811. -- Runtime Function: int __dpd_gesd2 (_Decimal32 A, _Decimal32 B)
  812. -- Runtime Function: int __bid_gesd2 (_Decimal32 A, _Decimal32 B)
  813. -- Runtime Function: int __dpd_gedd2 (_Decimal64 A, _Decimal64 B)
  814. -- Runtime Function: int __bid_gedd2 (_Decimal64 A, _Decimal64 B)
  815. -- Runtime Function: int __dpd_getd2 (_Decimal128 A, _Decimal128 B)
  816. -- Runtime Function: int __bid_getd2 (_Decimal128 A, _Decimal128 B)
  817. These functions return a value greater than or equal to zero if
  818. neither argument is NaN, and A is greater than or equal to B.
  819. -- Runtime Function: int __dpd_ltsd2 (_Decimal32 A, _Decimal32 B)
  820. -- Runtime Function: int __bid_ltsd2 (_Decimal32 A, _Decimal32 B)
  821. -- Runtime Function: int __dpd_ltdd2 (_Decimal64 A, _Decimal64 B)
  822. -- Runtime Function: int __bid_ltdd2 (_Decimal64 A, _Decimal64 B)
  823. -- Runtime Function: int __dpd_lttd2 (_Decimal128 A, _Decimal128 B)
  824. -- Runtime Function: int __bid_lttd2 (_Decimal128 A, _Decimal128 B)
  825. These functions return a value less than zero if neither argument
  826. is NaN, and A is strictly less than B.
  827. -- Runtime Function: int __dpd_lesd2 (_Decimal32 A, _Decimal32 B)
  828. -- Runtime Function: int __bid_lesd2 (_Decimal32 A, _Decimal32 B)
  829. -- Runtime Function: int __dpd_ledd2 (_Decimal64 A, _Decimal64 B)
  830. -- Runtime Function: int __bid_ledd2 (_Decimal64 A, _Decimal64 B)
  831. -- Runtime Function: int __dpd_letd2 (_Decimal128 A, _Decimal128 B)
  832. -- Runtime Function: int __bid_letd2 (_Decimal128 A, _Decimal128 B)
  833. These functions return a value less than or equal to zero if
  834. neither argument is NaN, and A is less than or equal to B.
  835. -- Runtime Function: int __dpd_gtsd2 (_Decimal32 A, _Decimal32 B)
  836. -- Runtime Function: int __bid_gtsd2 (_Decimal32 A, _Decimal32 B)
  837. -- Runtime Function: int __dpd_gtdd2 (_Decimal64 A, _Decimal64 B)
  838. -- Runtime Function: int __bid_gtdd2 (_Decimal64 A, _Decimal64 B)
  839. -- Runtime Function: int __dpd_gttd2 (_Decimal128 A, _Decimal128 B)
  840. -- Runtime Function: int __bid_gttd2 (_Decimal128 A, _Decimal128 B)
  841. These functions return a value greater than zero if neither
  842. argument is NaN, and A is strictly greater than B.
  843. 
  844. File: gccint.info, Node: Fixed-point fractional library routines, Next: Exception handling routines, Prev: Decimal float library routines, Up: Libgcc
  845. 4.4 Routines for fixed-point fractional emulation
  846. =================================================
  847. The software fixed-point library implements fixed-point fractional
  848. arithmetic, and is only activated on selected targets.
  849. For ease of comprehension 'fract' is an alias for the '_Fract' type,
  850. 'accum' an alias for '_Accum', and 'sat' an alias for '_Sat'.
  851. For illustrative purposes, in this section the fixed-point fractional
  852. type 'short fract' is assumed to correspond to machine mode 'QQmode';
  853. 'unsigned short fract' to 'UQQmode'; 'fract' to 'HQmode';
  854. 'unsigned fract' to 'UHQmode'; 'long fract' to 'SQmode';
  855. 'unsigned long fract' to 'USQmode'; 'long long fract' to 'DQmode'; and
  856. 'unsigned long long fract' to 'UDQmode'. Similarly the fixed-point
  857. accumulator type 'short accum' corresponds to 'HAmode';
  858. 'unsigned short accum' to 'UHAmode'; 'accum' to 'SAmode';
  859. 'unsigned accum' to 'USAmode'; 'long accum' to 'DAmode';
  860. 'unsigned long accum' to 'UDAmode'; 'long long accum' to 'TAmode'; and
  861. 'unsigned long long accum' to 'UTAmode'.
  862. 4.4.1 Arithmetic functions
  863. --------------------------
  864. -- Runtime Function: short fract __addqq3 (short fract A, short fract
  865. B)
  866. -- Runtime Function: fract __addhq3 (fract A, fract B)
  867. -- Runtime Function: long fract __addsq3 (long fract A, long fract B)
  868. -- Runtime Function: long long fract __adddq3 (long long fract A, long
  869. long fract B)
  870. -- Runtime Function: unsigned short fract __adduqq3 (unsigned short
  871. fract A, unsigned short fract B)
  872. -- Runtime Function: unsigned fract __adduhq3 (unsigned fract A,
  873. unsigned fract B)
  874. -- Runtime Function: unsigned long fract __addusq3 (unsigned long fract
  875. A, unsigned long fract B)
  876. -- Runtime Function: unsigned long long fract __addudq3 (unsigned long
  877. long fract A, unsigned long long fract B)
  878. -- Runtime Function: short accum __addha3 (short accum A, short accum
  879. B)
  880. -- Runtime Function: accum __addsa3 (accum A, accum B)
  881. -- Runtime Function: long accum __addda3 (long accum A, long accum B)
  882. -- Runtime Function: long long accum __addta3 (long long accum A, long
  883. long accum B)
  884. -- Runtime Function: unsigned short accum __adduha3 (unsigned short
  885. accum A, unsigned short accum B)
  886. -- Runtime Function: unsigned accum __addusa3 (unsigned accum A,
  887. unsigned accum B)
  888. -- Runtime Function: unsigned long accum __adduda3 (unsigned long accum
  889. A, unsigned long accum B)
  890. -- Runtime Function: unsigned long long accum __adduta3 (unsigned long
  891. long accum A, unsigned long long accum B)
  892. These functions return the sum of A and B.
  893. -- Runtime Function: short fract __ssaddqq3 (short fract A, short fract
  894. B)
  895. -- Runtime Function: fract __ssaddhq3 (fract A, fract B)
  896. -- Runtime Function: long fract __ssaddsq3 (long fract A, long fract B)
  897. -- Runtime Function: long long fract __ssadddq3 (long long fract A,
  898. long long fract B)
  899. -- Runtime Function: short accum __ssaddha3 (short accum A, short accum
  900. B)
  901. -- Runtime Function: accum __ssaddsa3 (accum A, accum B)
  902. -- Runtime Function: long accum __ssaddda3 (long accum A, long accum B)
  903. -- Runtime Function: long long accum __ssaddta3 (long long accum A,
  904. long long accum B)
  905. These functions return the sum of A and B with signed saturation.
  906. -- Runtime Function: unsigned short fract __usadduqq3 (unsigned short
  907. fract A, unsigned short fract B)
  908. -- Runtime Function: unsigned fract __usadduhq3 (unsigned fract A,
  909. unsigned fract B)
  910. -- Runtime Function: unsigned long fract __usaddusq3 (unsigned long
  911. fract A, unsigned long fract B)
  912. -- Runtime Function: unsigned long long fract __usaddudq3 (unsigned
  913. long long fract A, unsigned long long fract B)
  914. -- Runtime Function: unsigned short accum __usadduha3 (unsigned short
  915. accum A, unsigned short accum B)
  916. -- Runtime Function: unsigned accum __usaddusa3 (unsigned accum A,
  917. unsigned accum B)
  918. -- Runtime Function: unsigned long accum __usadduda3 (unsigned long
  919. accum A, unsigned long accum B)
  920. -- Runtime Function: unsigned long long accum __usadduta3 (unsigned
  921. long long accum A, unsigned long long accum B)
  922. These functions return the sum of A and B with unsigned saturation.
  923. -- Runtime Function: short fract __subqq3 (short fract A, short fract
  924. B)
  925. -- Runtime Function: fract __subhq3 (fract A, fract B)
  926. -- Runtime Function: long fract __subsq3 (long fract A, long fract B)
  927. -- Runtime Function: long long fract __subdq3 (long long fract A, long
  928. long fract B)
  929. -- Runtime Function: unsigned short fract __subuqq3 (unsigned short
  930. fract A, unsigned short fract B)
  931. -- Runtime Function: unsigned fract __subuhq3 (unsigned fract A,
  932. unsigned fract B)
  933. -- Runtime Function: unsigned long fract __subusq3 (unsigned long fract
  934. A, unsigned long fract B)
  935. -- Runtime Function: unsigned long long fract __subudq3 (unsigned long
  936. long fract A, unsigned long long fract B)
  937. -- Runtime Function: short accum __subha3 (short accum A, short accum
  938. B)
  939. -- Runtime Function: accum __subsa3 (accum A, accum B)
  940. -- Runtime Function: long accum __subda3 (long accum A, long accum B)
  941. -- Runtime Function: long long accum __subta3 (long long accum A, long
  942. long accum B)
  943. -- Runtime Function: unsigned short accum __subuha3 (unsigned short
  944. accum A, unsigned short accum B)
  945. -- Runtime Function: unsigned accum __subusa3 (unsigned accum A,
  946. unsigned accum B)
  947. -- Runtime Function: unsigned long accum __subuda3 (unsigned long accum
  948. A, unsigned long accum B)
  949. -- Runtime Function: unsigned long long accum __subuta3 (unsigned long
  950. long accum A, unsigned long long accum B)
  951. These functions return the difference of A and B; that is, 'A - B'.
  952. -- Runtime Function: short fract __sssubqq3 (short fract A, short fract
  953. B)
  954. -- Runtime Function: fract __sssubhq3 (fract A, fract B)
  955. -- Runtime Function: long fract __sssubsq3 (long fract A, long fract B)
  956. -- Runtime Function: long long fract __sssubdq3 (long long fract A,
  957. long long fract B)
  958. -- Runtime Function: short accum __sssubha3 (short accum A, short accum
  959. B)
  960. -- Runtime Function: accum __sssubsa3 (accum A, accum B)
  961. -- Runtime Function: long accum __sssubda3 (long accum A, long accum B)
  962. -- Runtime Function: long long accum __sssubta3 (long long accum A,
  963. long long accum B)
  964. These functions return the difference of A and B with signed
  965. saturation; that is, 'A - B'.
  966. -- Runtime Function: unsigned short fract __ussubuqq3 (unsigned short
  967. fract A, unsigned short fract B)
  968. -- Runtime Function: unsigned fract __ussubuhq3 (unsigned fract A,
  969. unsigned fract B)
  970. -- Runtime Function: unsigned long fract __ussubusq3 (unsigned long
  971. fract A, unsigned long fract B)
  972. -- Runtime Function: unsigned long long fract __ussubudq3 (unsigned
  973. long long fract A, unsigned long long fract B)
  974. -- Runtime Function: unsigned short accum __ussubuha3 (unsigned short
  975. accum A, unsigned short accum B)
  976. -- Runtime Function: unsigned accum __ussubusa3 (unsigned accum A,
  977. unsigned accum B)
  978. -- Runtime Function: unsigned long accum __ussubuda3 (unsigned long
  979. accum A, unsigned long accum B)
  980. -- Runtime Function: unsigned long long accum __ussubuta3 (unsigned
  981. long long accum A, unsigned long long accum B)
  982. These functions return the difference of A and B with unsigned
  983. saturation; that is, 'A - B'.
  984. -- Runtime Function: short fract __mulqq3 (short fract A, short fract
  985. B)
  986. -- Runtime Function: fract __mulhq3 (fract A, fract B)
  987. -- Runtime Function: long fract __mulsq3 (long fract A, long fract B)
  988. -- Runtime Function: long long fract __muldq3 (long long fract A, long
  989. long fract B)
  990. -- Runtime Function: unsigned short fract __muluqq3 (unsigned short
  991. fract A, unsigned short fract B)
  992. -- Runtime Function: unsigned fract __muluhq3 (unsigned fract A,
  993. unsigned fract B)
  994. -- Runtime Function: unsigned long fract __mulusq3 (unsigned long fract
  995. A, unsigned long fract B)
  996. -- Runtime Function: unsigned long long fract __muludq3 (unsigned long
  997. long fract A, unsigned long long fract B)
  998. -- Runtime Function: short accum __mulha3 (short accum A, short accum
  999. B)
  1000. -- Runtime Function: accum __mulsa3 (accum A, accum B)
  1001. -- Runtime Function: long accum __mulda3 (long accum A, long accum B)
  1002. -- Runtime Function: long long accum __multa3 (long long accum A, long
  1003. long accum B)
  1004. -- Runtime Function: unsigned short accum __muluha3 (unsigned short
  1005. accum A, unsigned short accum B)
  1006. -- Runtime Function: unsigned accum __mulusa3 (unsigned accum A,
  1007. unsigned accum B)
  1008. -- Runtime Function: unsigned long accum __muluda3 (unsigned long accum
  1009. A, unsigned long accum B)
  1010. -- Runtime Function: unsigned long long accum __muluta3 (unsigned long
  1011. long accum A, unsigned long long accum B)
  1012. These functions return the product of A and B.
  1013. -- Runtime Function: short fract __ssmulqq3 (short fract A, short fract
  1014. B)
  1015. -- Runtime Function: fract __ssmulhq3 (fract A, fract B)
  1016. -- Runtime Function: long fract __ssmulsq3 (long fract A, long fract B)
  1017. -- Runtime Function: long long fract __ssmuldq3 (long long fract A,
  1018. long long fract B)
  1019. -- Runtime Function: short accum __ssmulha3 (short accum A, short accum
  1020. B)
  1021. -- Runtime Function: accum __ssmulsa3 (accum A, accum B)
  1022. -- Runtime Function: long accum __ssmulda3 (long accum A, long accum B)
  1023. -- Runtime Function: long long accum __ssmulta3 (long long accum A,
  1024. long long accum B)
  1025. These functions return the product of A and B with signed
  1026. saturation.
  1027. -- Runtime Function: unsigned short fract __usmuluqq3 (unsigned short
  1028. fract A, unsigned short fract B)
  1029. -- Runtime Function: unsigned fract __usmuluhq3 (unsigned fract A,
  1030. unsigned fract B)
  1031. -- Runtime Function: unsigned long fract __usmulusq3 (unsigned long
  1032. fract A, unsigned long fract B)
  1033. -- Runtime Function: unsigned long long fract __usmuludq3 (unsigned
  1034. long long fract A, unsigned long long fract B)
  1035. -- Runtime Function: unsigned short accum __usmuluha3 (unsigned short
  1036. accum A, unsigned short accum B)
  1037. -- Runtime Function: unsigned accum __usmulusa3 (unsigned accum A,
  1038. unsigned accum B)
  1039. -- Runtime Function: unsigned long accum __usmuluda3 (unsigned long
  1040. accum A, unsigned long accum B)
  1041. -- Runtime Function: unsigned long long accum __usmuluta3 (unsigned
  1042. long long accum A, unsigned long long accum B)
  1043. These functions return the product of A and B with unsigned
  1044. saturation.
  1045. -- Runtime Function: short fract __divqq3 (short fract A, short fract
  1046. B)
  1047. -- Runtime Function: fract __divhq3 (fract A, fract B)
  1048. -- Runtime Function: long fract __divsq3 (long fract A, long fract B)
  1049. -- Runtime Function: long long fract __divdq3 (long long fract A, long
  1050. long fract B)
  1051. -- Runtime Function: short accum __divha3 (short accum A, short accum
  1052. B)
  1053. -- Runtime Function: accum __divsa3 (accum A, accum B)
  1054. -- Runtime Function: long accum __divda3 (long accum A, long accum B)
  1055. -- Runtime Function: long long accum __divta3 (long long accum A, long
  1056. long accum B)
  1057. These functions return the quotient of the signed division of A and
  1058. B.
  1059. -- Runtime Function: unsigned short fract __udivuqq3 (unsigned short
  1060. fract A, unsigned short fract B)
  1061. -- Runtime Function: unsigned fract __udivuhq3 (unsigned fract A,
  1062. unsigned fract B)
  1063. -- Runtime Function: unsigned long fract __udivusq3 (unsigned long
  1064. fract A, unsigned long fract B)
  1065. -- Runtime Function: unsigned long long fract __udivudq3 (unsigned long
  1066. long fract A, unsigned long long fract B)
  1067. -- Runtime Function: unsigned short accum __udivuha3 (unsigned short
  1068. accum A, unsigned short accum B)
  1069. -- Runtime Function: unsigned accum __udivusa3 (unsigned accum A,
  1070. unsigned accum B)
  1071. -- Runtime Function: unsigned long accum __udivuda3 (unsigned long
  1072. accum A, unsigned long accum B)
  1073. -- Runtime Function: unsigned long long accum __udivuta3 (unsigned long
  1074. long accum A, unsigned long long accum B)
  1075. These functions return the quotient of the unsigned division of A
  1076. and B.
  1077. -- Runtime Function: short fract __ssdivqq3 (short fract A, short fract
  1078. B)
  1079. -- Runtime Function: fract __ssdivhq3 (fract A, fract B)
  1080. -- Runtime Function: long fract __ssdivsq3 (long fract A, long fract B)
  1081. -- Runtime Function: long long fract __ssdivdq3 (long long fract A,
  1082. long long fract B)
  1083. -- Runtime Function: short accum __ssdivha3 (short accum A, short accum
  1084. B)
  1085. -- Runtime Function: accum __ssdivsa3 (accum A, accum B)
  1086. -- Runtime Function: long accum __ssdivda3 (long accum A, long accum B)
  1087. -- Runtime Function: long long accum __ssdivta3 (long long accum A,
  1088. long long accum B)
  1089. These functions return the quotient of the signed division of A and
  1090. B with signed saturation.
  1091. -- Runtime Function: unsigned short fract __usdivuqq3 (unsigned short
  1092. fract A, unsigned short fract B)
  1093. -- Runtime Function: unsigned fract __usdivuhq3 (unsigned fract A,
  1094. unsigned fract B)
  1095. -- Runtime Function: unsigned long fract __usdivusq3 (unsigned long
  1096. fract A, unsigned long fract B)
  1097. -- Runtime Function: unsigned long long fract __usdivudq3 (unsigned
  1098. long long fract A, unsigned long long fract B)
  1099. -- Runtime Function: unsigned short accum __usdivuha3 (unsigned short
  1100. accum A, unsigned short accum B)
  1101. -- Runtime Function: unsigned accum __usdivusa3 (unsigned accum A,
  1102. unsigned accum B)
  1103. -- Runtime Function: unsigned long accum __usdivuda3 (unsigned long
  1104. accum A, unsigned long accum B)
  1105. -- Runtime Function: unsigned long long accum __usdivuta3 (unsigned
  1106. long long accum A, unsigned long long accum B)
  1107. These functions return the quotient of the unsigned division of A
  1108. and B with unsigned saturation.
  1109. -- Runtime Function: short fract __negqq2 (short fract A)
  1110. -- Runtime Function: fract __neghq2 (fract A)
  1111. -- Runtime Function: long fract __negsq2 (long fract A)
  1112. -- Runtime Function: long long fract __negdq2 (long long fract A)
  1113. -- Runtime Function: unsigned short fract __neguqq2 (unsigned short
  1114. fract A)
  1115. -- Runtime Function: unsigned fract __neguhq2 (unsigned fract A)
  1116. -- Runtime Function: unsigned long fract __negusq2 (unsigned long fract
  1117. A)
  1118. -- Runtime Function: unsigned long long fract __negudq2 (unsigned long
  1119. long fract A)
  1120. -- Runtime Function: short accum __negha2 (short accum A)
  1121. -- Runtime Function: accum __negsa2 (accum A)
  1122. -- Runtime Function: long accum __negda2 (long accum A)
  1123. -- Runtime Function: long long accum __negta2 (long long accum A)
  1124. -- Runtime Function: unsigned short accum __neguha2 (unsigned short
  1125. accum A)
  1126. -- Runtime Function: unsigned accum __negusa2 (unsigned accum A)
  1127. -- Runtime Function: unsigned long accum __neguda2 (unsigned long accum
  1128. A)
  1129. -- Runtime Function: unsigned long long accum __neguta2 (unsigned long
  1130. long accum A)
  1131. These functions return the negation of A.
  1132. -- Runtime Function: short fract __ssnegqq2 (short fract A)
  1133. -- Runtime Function: fract __ssneghq2 (fract A)
  1134. -- Runtime Function: long fract __ssnegsq2 (long fract A)
  1135. -- Runtime Function: long long fract __ssnegdq2 (long long fract A)
  1136. -- Runtime Function: short accum __ssnegha2 (short accum A)
  1137. -- Runtime Function: accum __ssnegsa2 (accum A)
  1138. -- Runtime Function: long accum __ssnegda2 (long accum A)
  1139. -- Runtime Function: long long accum __ssnegta2 (long long accum A)
  1140. These functions return the negation of A with signed saturation.
  1141. -- Runtime Function: unsigned short fract __usneguqq2 (unsigned short
  1142. fract A)
  1143. -- Runtime Function: unsigned fract __usneguhq2 (unsigned fract A)
  1144. -- Runtime Function: unsigned long fract __usnegusq2 (unsigned long
  1145. fract A)
  1146. -- Runtime Function: unsigned long long fract __usnegudq2 (unsigned
  1147. long long fract A)
  1148. -- Runtime Function: unsigned short accum __usneguha2 (unsigned short
  1149. accum A)
  1150. -- Runtime Function: unsigned accum __usnegusa2 (unsigned accum A)
  1151. -- Runtime Function: unsigned long accum __usneguda2 (unsigned long
  1152. accum A)
  1153. -- Runtime Function: unsigned long long accum __usneguta2 (unsigned
  1154. long long accum A)
  1155. These functions return the negation of A with unsigned saturation.
  1156. -- Runtime Function: short fract __ashlqq3 (short fract A, int B)
  1157. -- Runtime Function: fract __ashlhq3 (fract A, int B)
  1158. -- Runtime Function: long fract __ashlsq3 (long fract A, int B)
  1159. -- Runtime Function: long long fract __ashldq3 (long long fract A, int
  1160. B)
  1161. -- Runtime Function: unsigned short fract __ashluqq3 (unsigned short
  1162. fract A, int B)
  1163. -- Runtime Function: unsigned fract __ashluhq3 (unsigned fract A, int
  1164. B)
  1165. -- Runtime Function: unsigned long fract __ashlusq3 (unsigned long
  1166. fract A, int B)
  1167. -- Runtime Function: unsigned long long fract __ashludq3 (unsigned long
  1168. long fract A, int B)
  1169. -- Runtime Function: short accum __ashlha3 (short accum A, int B)
  1170. -- Runtime Function: accum __ashlsa3 (accum A, int B)
  1171. -- Runtime Function: long accum __ashlda3 (long accum A, int B)
  1172. -- Runtime Function: long long accum __ashlta3 (long long accum A, int
  1173. B)
  1174. -- Runtime Function: unsigned short accum __ashluha3 (unsigned short
  1175. accum A, int B)
  1176. -- Runtime Function: unsigned accum __ashlusa3 (unsigned accum A, int
  1177. B)
  1178. -- Runtime Function: unsigned long accum __ashluda3 (unsigned long
  1179. accum A, int B)
  1180. -- Runtime Function: unsigned long long accum __ashluta3 (unsigned long
  1181. long accum A, int B)
  1182. These functions return the result of shifting A left by B bits.
  1183. -- Runtime Function: short fract __ashrqq3 (short fract A, int B)
  1184. -- Runtime Function: fract __ashrhq3 (fract A, int B)
  1185. -- Runtime Function: long fract __ashrsq3 (long fract A, int B)
  1186. -- Runtime Function: long long fract __ashrdq3 (long long fract A, int
  1187. B)
  1188. -- Runtime Function: short accum __ashrha3 (short accum A, int B)
  1189. -- Runtime Function: accum __ashrsa3 (accum A, int B)
  1190. -- Runtime Function: long accum __ashrda3 (long accum A, int B)
  1191. -- Runtime Function: long long accum __ashrta3 (long long accum A, int
  1192. B)
  1193. These functions return the result of arithmetically shifting A
  1194. right by B bits.
  1195. -- Runtime Function: unsigned short fract __lshruqq3 (unsigned short
  1196. fract A, int B)
  1197. -- Runtime Function: unsigned fract __lshruhq3 (unsigned fract A, int
  1198. B)
  1199. -- Runtime Function: unsigned long fract __lshrusq3 (unsigned long
  1200. fract A, int B)
  1201. -- Runtime Function: unsigned long long fract __lshrudq3 (unsigned long
  1202. long fract A, int B)
  1203. -- Runtime Function: unsigned short accum __lshruha3 (unsigned short
  1204. accum A, int B)
  1205. -- Runtime Function: unsigned accum __lshrusa3 (unsigned accum A, int
  1206. B)
  1207. -- Runtime Function: unsigned long accum __lshruda3 (unsigned long
  1208. accum A, int B)
  1209. -- Runtime Function: unsigned long long accum __lshruta3 (unsigned long
  1210. long accum A, int B)
  1211. These functions return the result of logically shifting A right by
  1212. B bits.
  1213. -- Runtime Function: fract __ssashlhq3 (fract A, int B)
  1214. -- Runtime Function: long fract __ssashlsq3 (long fract A, int B)
  1215. -- Runtime Function: long long fract __ssashldq3 (long long fract A,
  1216. int B)
  1217. -- Runtime Function: short accum __ssashlha3 (short accum A, int B)
  1218. -- Runtime Function: accum __ssashlsa3 (accum A, int B)
  1219. -- Runtime Function: long accum __ssashlda3 (long accum A, int B)
  1220. -- Runtime Function: long long accum __ssashlta3 (long long accum A,
  1221. int B)
  1222. These functions return the result of shifting A left by B bits with
  1223. signed saturation.
  1224. -- Runtime Function: unsigned short fract __usashluqq3 (unsigned short
  1225. fract A, int B)
  1226. -- Runtime Function: unsigned fract __usashluhq3 (unsigned fract A, int
  1227. B)
  1228. -- Runtime Function: unsigned long fract __usashlusq3 (unsigned long
  1229. fract A, int B)
  1230. -- Runtime Function: unsigned long long fract __usashludq3 (unsigned
  1231. long long fract A, int B)
  1232. -- Runtime Function: unsigned short accum __usashluha3 (unsigned short
  1233. accum A, int B)
  1234. -- Runtime Function: unsigned accum __usashlusa3 (unsigned accum A, int
  1235. B)
  1236. -- Runtime Function: unsigned long accum __usashluda3 (unsigned long
  1237. accum A, int B)
  1238. -- Runtime Function: unsigned long long accum __usashluta3 (unsigned
  1239. long long accum A, int B)
  1240. These functions return the result of shifting A left by B bits with
  1241. unsigned saturation.
  1242. 4.4.2 Comparison functions
  1243. --------------------------
  1244. The following functions implement fixed-point comparisons. These
  1245. functions implement a low-level compare, upon which the higher level
  1246. comparison operators (such as less than and greater than or equal to)
  1247. can be constructed. The returned values lie in the range zero to two,
  1248. to allow the high-level operators to be implemented by testing the
  1249. returned result using either signed or unsigned comparison.
  1250. -- Runtime Function: int __cmpqq2 (short fract A, short fract B)
  1251. -- Runtime Function: int __cmphq2 (fract A, fract B)
  1252. -- Runtime Function: int __cmpsq2 (long fract A, long fract B)
  1253. -- Runtime Function: int __cmpdq2 (long long fract A, long long fract
  1254. B)
  1255. -- Runtime Function: int __cmpuqq2 (unsigned short fract A, unsigned
  1256. short fract B)
  1257. -- Runtime Function: int __cmpuhq2 (unsigned fract A, unsigned fract B)
  1258. -- Runtime Function: int __cmpusq2 (unsigned long fract A, unsigned
  1259. long fract B)
  1260. -- Runtime Function: int __cmpudq2 (unsigned long long fract A,
  1261. unsigned long long fract B)
  1262. -- Runtime Function: int __cmpha2 (short accum A, short accum B)
  1263. -- Runtime Function: int __cmpsa2 (accum A, accum B)
  1264. -- Runtime Function: int __cmpda2 (long accum A, long accum B)
  1265. -- Runtime Function: int __cmpta2 (long long accum A, long long accum
  1266. B)
  1267. -- Runtime Function: int __cmpuha2 (unsigned short accum A, unsigned
  1268. short accum B)
  1269. -- Runtime Function: int __cmpusa2 (unsigned accum A, unsigned accum B)
  1270. -- Runtime Function: int __cmpuda2 (unsigned long accum A, unsigned
  1271. long accum B)
  1272. -- Runtime Function: int __cmputa2 (unsigned long long accum A,
  1273. unsigned long long accum B)
  1274. These functions perform a signed or unsigned comparison of A and B
  1275. (depending on the selected machine mode). If A is less than B,
  1276. they return 0; if A is greater than B, they return 2; and if A and
  1277. B are equal they return 1.
  1278. 4.4.3 Conversion functions
  1279. --------------------------
  1280. -- Runtime Function: fract __fractqqhq2 (short fract A)
  1281. -- Runtime Function: long fract __fractqqsq2 (short fract A)
  1282. -- Runtime Function: long long fract __fractqqdq2 (short fract A)
  1283. -- Runtime Function: short accum __fractqqha (short fract A)
  1284. -- Runtime Function: accum __fractqqsa (short fract A)
  1285. -- Runtime Function: long accum __fractqqda (short fract A)
  1286. -- Runtime Function: long long accum __fractqqta (short fract A)
  1287. -- Runtime Function: unsigned short fract __fractqquqq (short fract A)
  1288. -- Runtime Function: unsigned fract __fractqquhq (short fract A)
  1289. -- Runtime Function: unsigned long fract __fractqqusq (short fract A)
  1290. -- Runtime Function: unsigned long long fract __fractqqudq (short fract
  1291. A)
  1292. -- Runtime Function: unsigned short accum __fractqquha (short fract A)
  1293. -- Runtime Function: unsigned accum __fractqqusa (short fract A)
  1294. -- Runtime Function: unsigned long accum __fractqquda (short fract A)
  1295. -- Runtime Function: unsigned long long accum __fractqquta (short fract
  1296. A)
  1297. -- Runtime Function: signed char __fractqqqi (short fract A)
  1298. -- Runtime Function: short __fractqqhi (short fract A)
  1299. -- Runtime Function: int __fractqqsi (short fract A)
  1300. -- Runtime Function: long __fractqqdi (short fract A)
  1301. -- Runtime Function: long long __fractqqti (short fract A)
  1302. -- Runtime Function: float __fractqqsf (short fract A)
  1303. -- Runtime Function: double __fractqqdf (short fract A)
  1304. -- Runtime Function: short fract __fracthqqq2 (fract A)
  1305. -- Runtime Function: long fract __fracthqsq2 (fract A)
  1306. -- Runtime Function: long long fract __fracthqdq2 (fract A)
  1307. -- Runtime Function: short accum __fracthqha (fract A)
  1308. -- Runtime Function: accum __fracthqsa (fract A)
  1309. -- Runtime Function: long accum __fracthqda (fract A)
  1310. -- Runtime Function: long long accum __fracthqta (fract A)
  1311. -- Runtime Function: unsigned short fract __fracthquqq (fract A)
  1312. -- Runtime Function: unsigned fract __fracthquhq (fract A)
  1313. -- Runtime Function: unsigned long fract __fracthqusq (fract A)
  1314. -- Runtime Function: unsigned long long fract __fracthqudq (fract A)
  1315. -- Runtime Function: unsigned short accum __fracthquha (fract A)
  1316. -- Runtime Function: unsigned accum __fracthqusa (fract A)
  1317. -- Runtime Function: unsigned long accum __fracthquda (fract A)
  1318. -- Runtime Function: unsigned long long accum __fracthquta (fract A)
  1319. -- Runtime Function: signed char __fracthqqi (fract A)
  1320. -- Runtime Function: short __fracthqhi (fract A)
  1321. -- Runtime Function: int __fracthqsi (fract A)
  1322. -- Runtime Function: long __fracthqdi (fract A)
  1323. -- Runtime Function: long long __fracthqti (fract A)
  1324. -- Runtime Function: float __fracthqsf (fract A)
  1325. -- Runtime Function: double __fracthqdf (fract A)
  1326. -- Runtime Function: short fract __fractsqqq2 (long fract A)
  1327. -- Runtime Function: fract __fractsqhq2 (long fract A)
  1328. -- Runtime Function: long long fract __fractsqdq2 (long fract A)
  1329. -- Runtime Function: short accum __fractsqha (long fract A)
  1330. -- Runtime Function: accum __fractsqsa (long fract A)
  1331. -- Runtime Function: long accum __fractsqda (long fract A)
  1332. -- Runtime Function: long long accum __fractsqta (long fract A)
  1333. -- Runtime Function: unsigned short fract __fractsquqq (long fract A)
  1334. -- Runtime Function: unsigned fract __fractsquhq (long fract A)
  1335. -- Runtime Function: unsigned long fract __fractsqusq (long fract A)
  1336. -- Runtime Function: unsigned long long fract __fractsqudq (long fract
  1337. A)
  1338. -- Runtime Function: unsigned short accum __fractsquha (long fract A)
  1339. -- Runtime Function: unsigned accum __fractsqusa (long fract A)
  1340. -- Runtime Function: unsigned long accum __fractsquda (long fract A)
  1341. -- Runtime Function: unsigned long long accum __fractsquta (long fract
  1342. A)
  1343. -- Runtime Function: signed char __fractsqqi (long fract A)
  1344. -- Runtime Function: short __fractsqhi (long fract A)
  1345. -- Runtime Function: int __fractsqsi (long fract A)
  1346. -- Runtime Function: long __fractsqdi (long fract A)
  1347. -- Runtime Function: long long __fractsqti (long fract A)
  1348. -- Runtime Function: float __fractsqsf (long fract A)
  1349. -- Runtime Function: double __fractsqdf (long fract A)
  1350. -- Runtime Function: short fract __fractdqqq2 (long long fract A)
  1351. -- Runtime Function: fract __fractdqhq2 (long long fract A)
  1352. -- Runtime Function: long fract __fractdqsq2 (long long fract A)
  1353. -- Runtime Function: short accum __fractdqha (long long fract A)
  1354. -- Runtime Function: accum __fractdqsa (long long fract A)
  1355. -- Runtime Function: long accum __fractdqda (long long fract A)
  1356. -- Runtime Function: long long accum __fractdqta (long long fract A)
  1357. -- Runtime Function: unsigned short fract __fractdquqq (long long fract
  1358. A)
  1359. -- Runtime Function: unsigned fract __fractdquhq (long long fract A)
  1360. -- Runtime Function: unsigned long fract __fractdqusq (long long fract
  1361. A)
  1362. -- Runtime Function: unsigned long long fract __fractdqudq (long long
  1363. fract A)
  1364. -- Runtime Function: unsigned short accum __fractdquha (long long fract
  1365. A)
  1366. -- Runtime Function: unsigned accum __fractdqusa (long long fract A)
  1367. -- Runtime Function: unsigned long accum __fractdquda (long long fract
  1368. A)
  1369. -- Runtime Function: unsigned long long accum __fractdquta (long long
  1370. fract A)
  1371. -- Runtime Function: signed char __fractdqqi (long long fract A)
  1372. -- Runtime Function: short __fractdqhi (long long fract A)
  1373. -- Runtime Function: int __fractdqsi (long long fract A)
  1374. -- Runtime Function: long __fractdqdi (long long fract A)
  1375. -- Runtime Function: long long __fractdqti (long long fract A)
  1376. -- Runtime Function: float __fractdqsf (long long fract A)
  1377. -- Runtime Function: double __fractdqdf (long long fract A)
  1378. -- Runtime Function: short fract __fracthaqq (short accum A)
  1379. -- Runtime Function: fract __fracthahq (short accum A)
  1380. -- Runtime Function: long fract __fracthasq (short accum A)
  1381. -- Runtime Function: long long fract __fracthadq (short accum A)
  1382. -- Runtime Function: accum __fracthasa2 (short accum A)
  1383. -- Runtime Function: long accum __fracthada2 (short accum A)
  1384. -- Runtime Function: long long accum __fracthata2 (short accum A)
  1385. -- Runtime Function: unsigned short fract __fracthauqq (short accum A)
  1386. -- Runtime Function: unsigned fract __fracthauhq (short accum A)
  1387. -- Runtime Function: unsigned long fract __fracthausq (short accum A)
  1388. -- Runtime Function: unsigned long long fract __fracthaudq (short accum
  1389. A)
  1390. -- Runtime Function: unsigned short accum __fracthauha (short accum A)
  1391. -- Runtime Function: unsigned accum __fracthausa (short accum A)
  1392. -- Runtime Function: unsigned long accum __fracthauda (short accum A)
  1393. -- Runtime Function: unsigned long long accum __fracthauta (short accum
  1394. A)
  1395. -- Runtime Function: signed char __fracthaqi (short accum A)
  1396. -- Runtime Function: short __fracthahi (short accum A)
  1397. -- Runtime Function: int __fracthasi (short accum A)
  1398. -- Runtime Function: long __fracthadi (short accum A)
  1399. -- Runtime Function: long long __fracthati (short accum A)
  1400. -- Runtime Function: float __fracthasf (short accum A)
  1401. -- Runtime Function: double __fracthadf (short accum A)
  1402. -- Runtime Function: short fract __fractsaqq (accum A)
  1403. -- Runtime Function: fract __fractsahq (accum A)
  1404. -- Runtime Function: long fract __fractsasq (accum A)
  1405. -- Runtime Function: long long fract __fractsadq (accum A)
  1406. -- Runtime Function: short accum __fractsaha2 (accum A)
  1407. -- Runtime Function: long accum __fractsada2 (accum A)
  1408. -- Runtime Function: long long accum __fractsata2 (accum A)
  1409. -- Runtime Function: unsigned short fract __fractsauqq (accum A)
  1410. -- Runtime Function: unsigned fract __fractsauhq (accum A)
  1411. -- Runtime Function: unsigned long fract __fractsausq (accum A)
  1412. -- Runtime Function: unsigned long long fract __fractsaudq (accum A)
  1413. -- Runtime Function: unsigned short accum __fractsauha (accum A)
  1414. -- Runtime Function: unsigned accum __fractsausa (accum A)
  1415. -- Runtime Function: unsigned long accum __fractsauda (accum A)
  1416. -- Runtime Function: unsigned long long accum __fractsauta (accum A)
  1417. -- Runtime Function: signed char __fractsaqi (accum A)
  1418. -- Runtime Function: short __fractsahi (accum A)
  1419. -- Runtime Function: int __fractsasi (accum A)
  1420. -- Runtime Function: long __fractsadi (accum A)
  1421. -- Runtime Function: long long __fractsati (accum A)
  1422. -- Runtime Function: float __fractsasf (accum A)
  1423. -- Runtime Function: double __fractsadf (accum A)
  1424. -- Runtime Function: short fract __fractdaqq (long accum A)
  1425. -- Runtime Function: fract __fractdahq (long accum A)
  1426. -- Runtime Function: long fract __fractdasq (long accum A)
  1427. -- Runtime Function: long long fract __fractdadq (long accum A)
  1428. -- Runtime Function: short accum __fractdaha2 (long accum A)
  1429. -- Runtime Function: accum __fractdasa2 (long accum A)
  1430. -- Runtime Function: long long accum __fractdata2 (long accum A)
  1431. -- Runtime Function: unsigned short fract __fractdauqq (long accum A)
  1432. -- Runtime Function: unsigned fract __fractdauhq (long accum A)
  1433. -- Runtime Function: unsigned long fract __fractdausq (long accum A)
  1434. -- Runtime Function: unsigned long long fract __fractdaudq (long accum
  1435. A)
  1436. -- Runtime Function: unsigned short accum __fractdauha (long accum A)
  1437. -- Runtime Function: unsigned accum __fractdausa (long accum A)
  1438. -- Runtime Function: unsigned long accum __fractdauda (long accum A)
  1439. -- Runtime Function: unsigned long long accum __fractdauta (long accum
  1440. A)
  1441. -- Runtime Function: signed char __fractdaqi (long accum A)
  1442. -- Runtime Function: short __fractdahi (long accum A)
  1443. -- Runtime Function: int __fractdasi (long accum A)
  1444. -- Runtime Function: long __fractdadi (long accum A)
  1445. -- Runtime Function: long long __fractdati (long accum A)
  1446. -- Runtime Function: float __fractdasf (long accum A)
  1447. -- Runtime Function: double __fractdadf (long accum A)
  1448. -- Runtime Function: short fract __fracttaqq (long long accum A)
  1449. -- Runtime Function: fract __fracttahq (long long accum A)
  1450. -- Runtime Function: long fract __fracttasq (long long accum A)
  1451. -- Runtime Function: long long fract __fracttadq (long long accum A)
  1452. -- Runtime Function: short accum __fracttaha2 (long long accum A)
  1453. -- Runtime Function: accum __fracttasa2 (long long accum A)
  1454. -- Runtime Function: long accum __fracttada2 (long long accum A)
  1455. -- Runtime Function: unsigned short fract __fracttauqq (long long accum
  1456. A)
  1457. -- Runtime Function: unsigned fract __fracttauhq (long long accum A)
  1458. -- Runtime Function: unsigned long fract __fracttausq (long long accum
  1459. A)
  1460. -- Runtime Function: unsigned long long fract __fracttaudq (long long
  1461. accum A)
  1462. -- Runtime Function: unsigned short accum __fracttauha (long long accum
  1463. A)
  1464. -- Runtime Function: unsigned accum __fracttausa (long long accum A)
  1465. -- Runtime Function: unsigned long accum __fracttauda (long long accum
  1466. A)
  1467. -- Runtime Function: unsigned long long accum __fracttauta (long long
  1468. accum A)
  1469. -- Runtime Function: signed char __fracttaqi (long long accum A)
  1470. -- Runtime Function: short __fracttahi (long long accum A)
  1471. -- Runtime Function: int __fracttasi (long long accum A)
  1472. -- Runtime Function: long __fracttadi (long long accum A)
  1473. -- Runtime Function: long long __fracttati (long long accum A)
  1474. -- Runtime Function: float __fracttasf (long long accum A)
  1475. -- Runtime Function: double __fracttadf (long long accum A)
  1476. -- Runtime Function: short fract __fractuqqqq (unsigned short fract A)
  1477. -- Runtime Function: fract __fractuqqhq (unsigned short fract A)
  1478. -- Runtime Function: long fract __fractuqqsq (unsigned short fract A)
  1479. -- Runtime Function: long long fract __fractuqqdq (unsigned short fract
  1480. A)
  1481. -- Runtime Function: short accum __fractuqqha (unsigned short fract A)
  1482. -- Runtime Function: accum __fractuqqsa (unsigned short fract A)
  1483. -- Runtime Function: long accum __fractuqqda (unsigned short fract A)
  1484. -- Runtime Function: long long accum __fractuqqta (unsigned short fract
  1485. A)
  1486. -- Runtime Function: unsigned fract __fractuqquhq2 (unsigned short
  1487. fract A)
  1488. -- Runtime Function: unsigned long fract __fractuqqusq2 (unsigned short
  1489. fract A)
  1490. -- Runtime Function: unsigned long long fract __fractuqqudq2 (unsigned
  1491. short fract A)
  1492. -- Runtime Function: unsigned short accum __fractuqquha (unsigned short
  1493. fract A)
  1494. -- Runtime Function: unsigned accum __fractuqqusa (unsigned short fract
  1495. A)
  1496. -- Runtime Function: unsigned long accum __fractuqquda (unsigned short
  1497. fract A)
  1498. -- Runtime Function: unsigned long long accum __fractuqquta (unsigned
  1499. short fract A)
  1500. -- Runtime Function: signed char __fractuqqqi (unsigned short fract A)
  1501. -- Runtime Function: short __fractuqqhi (unsigned short fract A)
  1502. -- Runtime Function: int __fractuqqsi (unsigned short fract A)
  1503. -- Runtime Function: long __fractuqqdi (unsigned short fract A)
  1504. -- Runtime Function: long long __fractuqqti (unsigned short fract A)
  1505. -- Runtime Function: float __fractuqqsf (unsigned short fract A)
  1506. -- Runtime Function: double __fractuqqdf (unsigned short fract A)
  1507. -- Runtime Function: short fract __fractuhqqq (unsigned fract A)
  1508. -- Runtime Function: fract __fractuhqhq (unsigned fract A)
  1509. -- Runtime Function: long fract __fractuhqsq (unsigned fract A)
  1510. -- Runtime Function: long long fract __fractuhqdq (unsigned fract A)
  1511. -- Runtime Function: short accum __fractuhqha (unsigned fract A)
  1512. -- Runtime Function: accum __fractuhqsa (unsigned fract A)
  1513. -- Runtime Function: long accum __fractuhqda (unsigned fract A)
  1514. -- Runtime Function: long long accum __fractuhqta (unsigned fract A)
  1515. -- Runtime Function: unsigned short fract __fractuhquqq2 (unsigned
  1516. fract A)
  1517. -- Runtime Function: unsigned long fract __fractuhqusq2 (unsigned fract
  1518. A)
  1519. -- Runtime Function: unsigned long long fract __fractuhqudq2 (unsigned
  1520. fract A)
  1521. -- Runtime Function: unsigned short accum __fractuhquha (unsigned fract
  1522. A)
  1523. -- Runtime Function: unsigned accum __fractuhqusa (unsigned fract A)
  1524. -- Runtime Function: unsigned long accum __fractuhquda (unsigned fract
  1525. A)
  1526. -- Runtime Function: unsigned long long accum __fractuhquta (unsigned
  1527. fract A)
  1528. -- Runtime Function: signed char __fractuhqqi (unsigned fract A)
  1529. -- Runtime Function: short __fractuhqhi (unsigned fract A)
  1530. -- Runtime Function: int __fractuhqsi (unsigned fract A)
  1531. -- Runtime Function: long __fractuhqdi (unsigned fract A)
  1532. -- Runtime Function: long long __fractuhqti (unsigned fract A)
  1533. -- Runtime Function: float __fractuhqsf (unsigned fract A)
  1534. -- Runtime Function: double __fractuhqdf (unsigned fract A)
  1535. -- Runtime Function: short fract __fractusqqq (unsigned long fract A)
  1536. -- Runtime Function: fract __fractusqhq (unsigned long fract A)
  1537. -- Runtime Function: long fract __fractusqsq (unsigned long fract A)
  1538. -- Runtime Function: long long fract __fractusqdq (unsigned long fract
  1539. A)
  1540. -- Runtime Function: short accum __fractusqha (unsigned long fract A)
  1541. -- Runtime Function: accum __fractusqsa (unsigned long fract A)
  1542. -- Runtime Function: long accum __fractusqda (unsigned long fract A)
  1543. -- Runtime Function: long long accum __fractusqta (unsigned long fract
  1544. A)
  1545. -- Runtime Function: unsigned short fract __fractusquqq2 (unsigned long
  1546. fract A)
  1547. -- Runtime Function: unsigned fract __fractusquhq2 (unsigned long fract
  1548. A)
  1549. -- Runtime Function: unsigned long long fract __fractusqudq2 (unsigned
  1550. long fract A)
  1551. -- Runtime Function: unsigned short accum __fractusquha (unsigned long
  1552. fract A)
  1553. -- Runtime Function: unsigned accum __fractusqusa (unsigned long fract
  1554. A)
  1555. -- Runtime Function: unsigned long accum __fractusquda (unsigned long
  1556. fract A)
  1557. -- Runtime Function: unsigned long long accum __fractusquta (unsigned
  1558. long fract A)
  1559. -- Runtime Function: signed char __fractusqqi (unsigned long fract A)
  1560. -- Runtime Function: short __fractusqhi (unsigned long fract A)
  1561. -- Runtime Function: int __fractusqsi (unsigned long fract A)
  1562. -- Runtime Function: long __fractusqdi (unsigned long fract A)
  1563. -- Runtime Function: long long __fractusqti (unsigned long fract A)
  1564. -- Runtime Function: float __fractusqsf (unsigned long fract A)
  1565. -- Runtime Function: double __fractusqdf (unsigned long fract A)
  1566. -- Runtime Function: short fract __fractudqqq (unsigned long long fract
  1567. A)
  1568. -- Runtime Function: fract __fractudqhq (unsigned long long fract A)
  1569. -- Runtime Function: long fract __fractudqsq (unsigned long long fract
  1570. A)
  1571. -- Runtime Function: long long fract __fractudqdq (unsigned long long
  1572. fract A)
  1573. -- Runtime Function: short accum __fractudqha (unsigned long long fract
  1574. A)
  1575. -- Runtime Function: accum __fractudqsa (unsigned long long fract A)
  1576. -- Runtime Function: long accum __fractudqda (unsigned long long fract
  1577. A)
  1578. -- Runtime Function: long long accum __fractudqta (unsigned long long
  1579. fract A)
  1580. -- Runtime Function: unsigned short fract __fractudquqq2 (unsigned long
  1581. long fract A)
  1582. -- Runtime Function: unsigned fract __fractudquhq2 (unsigned long long
  1583. fract A)
  1584. -- Runtime Function: unsigned long fract __fractudqusq2 (unsigned long
  1585. long fract A)
  1586. -- Runtime Function: unsigned short accum __fractudquha (unsigned long
  1587. long fract A)
  1588. -- Runtime Function: unsigned accum __fractudqusa (unsigned long long
  1589. fract A)
  1590. -- Runtime Function: unsigned long accum __fractudquda (unsigned long
  1591. long fract A)
  1592. -- Runtime Function: unsigned long long accum __fractudquta (unsigned
  1593. long long fract A)
  1594. -- Runtime Function: signed char __fractudqqi (unsigned long long fract
  1595. A)
  1596. -- Runtime Function: short __fractudqhi (unsigned long long fract A)
  1597. -- Runtime Function: int __fractudqsi (unsigned long long fract A)
  1598. -- Runtime Function: long __fractudqdi (unsigned long long fract A)
  1599. -- Runtime Function: long long __fractudqti (unsigned long long fract
  1600. A)
  1601. -- Runtime Function: float __fractudqsf (unsigned long long fract A)
  1602. -- Runtime Function: double __fractudqdf (unsigned long long fract A)
  1603. -- Runtime Function: short fract __fractuhaqq (unsigned short accum A)
  1604. -- Runtime Function: fract __fractuhahq (unsigned short accum A)
  1605. -- Runtime Function: long fract __fractuhasq (unsigned short accum A)
  1606. -- Runtime Function: long long fract __fractuhadq (unsigned short accum
  1607. A)
  1608. -- Runtime Function: short accum __fractuhaha (unsigned short accum A)
  1609. -- Runtime Function: accum __fractuhasa (unsigned short accum A)
  1610. -- Runtime Function: long accum __fractuhada (unsigned short accum A)
  1611. -- Runtime Function: long long accum __fractuhata (unsigned short accum
  1612. A)
  1613. -- Runtime Function: unsigned short fract __fractuhauqq (unsigned short
  1614. accum A)
  1615. -- Runtime Function: unsigned fract __fractuhauhq (unsigned short accum
  1616. A)
  1617. -- Runtime Function: unsigned long fract __fractuhausq (unsigned short
  1618. accum A)
  1619. -- Runtime Function: unsigned long long fract __fractuhaudq (unsigned
  1620. short accum A)
  1621. -- Runtime Function: unsigned accum __fractuhausa2 (unsigned short
  1622. accum A)
  1623. -- Runtime Function: unsigned long accum __fractuhauda2 (unsigned short
  1624. accum A)
  1625. -- Runtime Function: unsigned long long accum __fractuhauta2 (unsigned
  1626. short accum A)
  1627. -- Runtime Function: signed char __fractuhaqi (unsigned short accum A)
  1628. -- Runtime Function: short __fractuhahi (unsigned short accum A)
  1629. -- Runtime Function: int __fractuhasi (unsigned short accum A)
  1630. -- Runtime Function: long __fractuhadi (unsigned short accum A)
  1631. -- Runtime Function: long long __fractuhati (unsigned short accum A)
  1632. -- Runtime Function: float __fractuhasf (unsigned short accum A)
  1633. -- Runtime Function: double __fractuhadf (unsigned short accum A)
  1634. -- Runtime Function: short fract __fractusaqq (unsigned accum A)
  1635. -- Runtime Function: fract __fractusahq (unsigned accum A)
  1636. -- Runtime Function: long fract __fractusasq (unsigned accum A)
  1637. -- Runtime Function: long long fract __fractusadq (unsigned accum A)
  1638. -- Runtime Function: short accum __fractusaha (unsigned accum A)
  1639. -- Runtime Function: accum __fractusasa (unsigned accum A)
  1640. -- Runtime Function: long accum __fractusada (unsigned accum A)
  1641. -- Runtime Function: long long accum __fractusata (unsigned accum A)
  1642. -- Runtime Function: unsigned short fract __fractusauqq (unsigned accum
  1643. A)
  1644. -- Runtime Function: unsigned fract __fractusauhq (unsigned accum A)
  1645. -- Runtime Function: unsigned long fract __fractusausq (unsigned accum
  1646. A)
  1647. -- Runtime Function: unsigned long long fract __fractusaudq (unsigned
  1648. accum A)
  1649. -- Runtime Function: unsigned short accum __fractusauha2 (unsigned
  1650. accum A)
  1651. -- Runtime Function: unsigned long accum __fractusauda2 (unsigned accum
  1652. A)
  1653. -- Runtime Function: unsigned long long accum __fractusauta2 (unsigned
  1654. accum A)
  1655. -- Runtime Function: signed char __fractusaqi (unsigned accum A)
  1656. -- Runtime Function: short __fractusahi (unsigned accum A)
  1657. -- Runtime Function: int __fractusasi (unsigned accum A)
  1658. -- Runtime Function: long __fractusadi (unsigned accum A)
  1659. -- Runtime Function: long long __fractusati (unsigned accum A)
  1660. -- Runtime Function: float __fractusasf (unsigned accum A)
  1661. -- Runtime Function: double __fractusadf (unsigned accum A)
  1662. -- Runtime Function: short fract __fractudaqq (unsigned long accum A)
  1663. -- Runtime Function: fract __fractudahq (unsigned long accum A)
  1664. -- Runtime Function: long fract __fractudasq (unsigned long accum A)
  1665. -- Runtime Function: long long fract __fractudadq (unsigned long accum
  1666. A)
  1667. -- Runtime Function: short accum __fractudaha (unsigned long accum A)
  1668. -- Runtime Function: accum __fractudasa (unsigned long accum A)
  1669. -- Runtime Function: long accum __fractudada (unsigned long accum A)
  1670. -- Runtime Function: long long accum __fractudata (unsigned long accum
  1671. A)
  1672. -- Runtime Function: unsigned short fract __fractudauqq (unsigned long
  1673. accum A)
  1674. -- Runtime Function: unsigned fract __fractudauhq (unsigned long accum
  1675. A)
  1676. -- Runtime Function: unsigned long fract __fractudausq (unsigned long
  1677. accum A)
  1678. -- Runtime Function: unsigned long long fract __fractudaudq (unsigned
  1679. long accum A)
  1680. -- Runtime Function: unsigned short accum __fractudauha2 (unsigned long
  1681. accum A)
  1682. -- Runtime Function: unsigned accum __fractudausa2 (unsigned long accum
  1683. A)
  1684. -- Runtime Function: unsigned long long accum __fractudauta2 (unsigned
  1685. long accum A)
  1686. -- Runtime Function: signed char __fractudaqi (unsigned long accum A)
  1687. -- Runtime Function: short __fractudahi (unsigned long accum A)
  1688. -- Runtime Function: int __fractudasi (unsigned long accum A)
  1689. -- Runtime Function: long __fractudadi (unsigned long accum A)
  1690. -- Runtime Function: long long __fractudati (unsigned long accum A)
  1691. -- Runtime Function: float __fractudasf (unsigned long accum A)
  1692. -- Runtime Function: double __fractudadf (unsigned long accum A)
  1693. -- Runtime Function: short fract __fractutaqq (unsigned long long accum
  1694. A)
  1695. -- Runtime Function: fract __fractutahq (unsigned long long accum A)
  1696. -- Runtime Function: long fract __fractutasq (unsigned long long accum
  1697. A)
  1698. -- Runtime Function: long long fract __fractutadq (unsigned long long
  1699. accum A)
  1700. -- Runtime Function: short accum __fractutaha (unsigned long long accum
  1701. A)
  1702. -- Runtime Function: accum __fractutasa (unsigned long long accum A)
  1703. -- Runtime Function: long accum __fractutada (unsigned long long accum
  1704. A)
  1705. -- Runtime Function: long long accum __fractutata (unsigned long long
  1706. accum A)
  1707. -- Runtime Function: unsigned short fract __fractutauqq (unsigned long
  1708. long accum A)
  1709. -- Runtime Function: unsigned fract __fractutauhq (unsigned long long
  1710. accum A)
  1711. -- Runtime Function: unsigned long fract __fractutausq (unsigned long
  1712. long accum A)
  1713. -- Runtime Function: unsigned long long fract __fractutaudq (unsigned
  1714. long long accum A)
  1715. -- Runtime Function: unsigned short accum __fractutauha2 (unsigned long
  1716. long accum A)
  1717. -- Runtime Function: unsigned accum __fractutausa2 (unsigned long long
  1718. accum A)
  1719. -- Runtime Function: unsigned long accum __fractutauda2 (unsigned long
  1720. long accum A)
  1721. -- Runtime Function: signed char __fractutaqi (unsigned long long accum
  1722. A)
  1723. -- Runtime Function: short __fractutahi (unsigned long long accum A)
  1724. -- Runtime Function: int __fractutasi (unsigned long long accum A)
  1725. -- Runtime Function: long __fractutadi (unsigned long long accum A)
  1726. -- Runtime Function: long long __fractutati (unsigned long long accum
  1727. A)
  1728. -- Runtime Function: float __fractutasf (unsigned long long accum A)
  1729. -- Runtime Function: double __fractutadf (unsigned long long accum A)
  1730. -- Runtime Function: short fract __fractqiqq (signed char A)
  1731. -- Runtime Function: fract __fractqihq (signed char A)
  1732. -- Runtime Function: long fract __fractqisq (signed char A)
  1733. -- Runtime Function: long long fract __fractqidq (signed char A)
  1734. -- Runtime Function: short accum __fractqiha (signed char A)
  1735. -- Runtime Function: accum __fractqisa (signed char A)
  1736. -- Runtime Function: long accum __fractqida (signed char A)
  1737. -- Runtime Function: long long accum __fractqita (signed char A)
  1738. -- Runtime Function: unsigned short fract __fractqiuqq (signed char A)
  1739. -- Runtime Function: unsigned fract __fractqiuhq (signed char A)
  1740. -- Runtime Function: unsigned long fract __fractqiusq (signed char A)
  1741. -- Runtime Function: unsigned long long fract __fractqiudq (signed char
  1742. A)
  1743. -- Runtime Function: unsigned short accum __fractqiuha (signed char A)
  1744. -- Runtime Function: unsigned accum __fractqiusa (signed char A)
  1745. -- Runtime Function: unsigned long accum __fractqiuda (signed char A)
  1746. -- Runtime Function: unsigned long long accum __fractqiuta (signed char
  1747. A)
  1748. -- Runtime Function: short fract __fracthiqq (short A)
  1749. -- Runtime Function: fract __fracthihq (short A)
  1750. -- Runtime Function: long fract __fracthisq (short A)
  1751. -- Runtime Function: long long fract __fracthidq (short A)
  1752. -- Runtime Function: short accum __fracthiha (short A)
  1753. -- Runtime Function: accum __fracthisa (short A)
  1754. -- Runtime Function: long accum __fracthida (short A)
  1755. -- Runtime Function: long long accum __fracthita (short A)
  1756. -- Runtime Function: unsigned short fract __fracthiuqq (short A)
  1757. -- Runtime Function: unsigned fract __fracthiuhq (short A)
  1758. -- Runtime Function: unsigned long fract __fracthiusq (short A)
  1759. -- Runtime Function: unsigned long long fract __fracthiudq (short A)
  1760. -- Runtime Function: unsigned short accum __fracthiuha (short A)
  1761. -- Runtime Function: unsigned accum __fracthiusa (short A)
  1762. -- Runtime Function: unsigned long accum __fracthiuda (short A)
  1763. -- Runtime Function: unsigned long long accum __fracthiuta (short A)
  1764. -- Runtime Function: short fract __fractsiqq (int A)
  1765. -- Runtime Function: fract __fractsihq (int A)
  1766. -- Runtime Function: long fract __fractsisq (int A)
  1767. -- Runtime Function: long long fract __fractsidq (int A)
  1768. -- Runtime Function: short accum __fractsiha (int A)
  1769. -- Runtime Function: accum __fractsisa (int A)
  1770. -- Runtime Function: long accum __fractsida (int A)
  1771. -- Runtime Function: long long accum __fractsita (int A)
  1772. -- Runtime Function: unsigned short fract __fractsiuqq (int A)
  1773. -- Runtime Function: unsigned fract __fractsiuhq (int A)
  1774. -- Runtime Function: unsigned long fract __fractsiusq (int A)
  1775. -- Runtime Function: unsigned long long fract __fractsiudq (int A)
  1776. -- Runtime Function: unsigned short accum __fractsiuha (int A)
  1777. -- Runtime Function: unsigned accum __fractsiusa (int A)
  1778. -- Runtime Function: unsigned long accum __fractsiuda (int A)
  1779. -- Runtime Function: unsigned long long accum __fractsiuta (int A)
  1780. -- Runtime Function: short fract __fractdiqq (long A)
  1781. -- Runtime Function: fract __fractdihq (long A)
  1782. -- Runtime Function: long fract __fractdisq (long A)
  1783. -- Runtime Function: long long fract __fractdidq (long A)
  1784. -- Runtime Function: short accum __fractdiha (long A)
  1785. -- Runtime Function: accum __fractdisa (long A)
  1786. -- Runtime Function: long accum __fractdida (long A)
  1787. -- Runtime Function: long long accum __fractdita (long A)
  1788. -- Runtime Function: unsigned short fract __fractdiuqq (long A)
  1789. -- Runtime Function: unsigned fract __fractdiuhq (long A)
  1790. -- Runtime Function: unsigned long fract __fractdiusq (long A)
  1791. -- Runtime Function: unsigned long long fract __fractdiudq (long A)
  1792. -- Runtime Function: unsigned short accum __fractdiuha (long A)
  1793. -- Runtime Function: unsigned accum __fractdiusa (long A)
  1794. -- Runtime Function: unsigned long accum __fractdiuda (long A)
  1795. -- Runtime Function: unsigned long long accum __fractdiuta (long A)
  1796. -- Runtime Function: short fract __fracttiqq (long long A)
  1797. -- Runtime Function: fract __fracttihq (long long A)
  1798. -- Runtime Function: long fract __fracttisq (long long A)
  1799. -- Runtime Function: long long fract __fracttidq (long long A)
  1800. -- Runtime Function: short accum __fracttiha (long long A)
  1801. -- Runtime Function: accum __fracttisa (long long A)
  1802. -- Runtime Function: long accum __fracttida (long long A)
  1803. -- Runtime Function: long long accum __fracttita (long long A)
  1804. -- Runtime Function: unsigned short fract __fracttiuqq (long long A)
  1805. -- Runtime Function: unsigned fract __fracttiuhq (long long A)
  1806. -- Runtime Function: unsigned long fract __fracttiusq (long long A)
  1807. -- Runtime Function: unsigned long long fract __fracttiudq (long long
  1808. A)
  1809. -- Runtime Function: unsigned short accum __fracttiuha (long long A)
  1810. -- Runtime Function: unsigned accum __fracttiusa (long long A)
  1811. -- Runtime Function: unsigned long accum __fracttiuda (long long A)
  1812. -- Runtime Function: unsigned long long accum __fracttiuta (long long
  1813. A)
  1814. -- Runtime Function: short fract __fractsfqq (float A)
  1815. -- Runtime Function: fract __fractsfhq (float A)
  1816. -- Runtime Function: long fract __fractsfsq (float A)
  1817. -- Runtime Function: long long fract __fractsfdq (float A)
  1818. -- Runtime Function: short accum __fractsfha (float A)
  1819. -- Runtime Function: accum __fractsfsa (float A)
  1820. -- Runtime Function: long accum __fractsfda (float A)
  1821. -- Runtime Function: long long accum __fractsfta (float A)
  1822. -- Runtime Function: unsigned short fract __fractsfuqq (float A)
  1823. -- Runtime Function: unsigned fract __fractsfuhq (float A)
  1824. -- Runtime Function: unsigned long fract __fractsfusq (float A)
  1825. -- Runtime Function: unsigned long long fract __fractsfudq (float A)
  1826. -- Runtime Function: unsigned short accum __fractsfuha (float A)
  1827. -- Runtime Function: unsigned accum __fractsfusa (float A)
  1828. -- Runtime Function: unsigned long accum __fractsfuda (float A)
  1829. -- Runtime Function: unsigned long long accum __fractsfuta (float A)
  1830. -- Runtime Function: short fract __fractdfqq (double A)
  1831. -- Runtime Function: fract __fractdfhq (double A)
  1832. -- Runtime Function: long fract __fractdfsq (double A)
  1833. -- Runtime Function: long long fract __fractdfdq (double A)
  1834. -- Runtime Function: short accum __fractdfha (double A)
  1835. -- Runtime Function: accum __fractdfsa (double A)
  1836. -- Runtime Function: long accum __fractdfda (double A)
  1837. -- Runtime Function: long long accum __fractdfta (double A)
  1838. -- Runtime Function: unsigned short fract __fractdfuqq (double A)
  1839. -- Runtime Function: unsigned fract __fractdfuhq (double A)
  1840. -- Runtime Function: unsigned long fract __fractdfusq (double A)
  1841. -- Runtime Function: unsigned long long fract __fractdfudq (double A)
  1842. -- Runtime Function: unsigned short accum __fractdfuha (double A)
  1843. -- Runtime Function: unsigned accum __fractdfusa (double A)
  1844. -- Runtime Function: unsigned long accum __fractdfuda (double A)
  1845. -- Runtime Function: unsigned long long accum __fractdfuta (double A)
  1846. These functions convert from fractional and signed non-fractionals
  1847. to fractionals and signed non-fractionals, without saturation.
  1848. -- Runtime Function: fract __satfractqqhq2 (short fract A)
  1849. -- Runtime Function: long fract __satfractqqsq2 (short fract A)
  1850. -- Runtime Function: long long fract __satfractqqdq2 (short fract A)
  1851. -- Runtime Function: short accum __satfractqqha (short fract A)
  1852. -- Runtime Function: accum __satfractqqsa (short fract A)
  1853. -- Runtime Function: long accum __satfractqqda (short fract A)
  1854. -- Runtime Function: long long accum __satfractqqta (short fract A)
  1855. -- Runtime Function: unsigned short fract __satfractqquqq (short fract
  1856. A)
  1857. -- Runtime Function: unsigned fract __satfractqquhq (short fract A)
  1858. -- Runtime Function: unsigned long fract __satfractqqusq (short fract
  1859. A)
  1860. -- Runtime Function: unsigned long long fract __satfractqqudq (short
  1861. fract A)
  1862. -- Runtime Function: unsigned short accum __satfractqquha (short fract
  1863. A)
  1864. -- Runtime Function: unsigned accum __satfractqqusa (short fract A)
  1865. -- Runtime Function: unsigned long accum __satfractqquda (short fract
  1866. A)
  1867. -- Runtime Function: unsigned long long accum __satfractqquta (short
  1868. fract A)
  1869. -- Runtime Function: short fract __satfracthqqq2 (fract A)
  1870. -- Runtime Function: long fract __satfracthqsq2 (fract A)
  1871. -- Runtime Function: long long fract __satfracthqdq2 (fract A)
  1872. -- Runtime Function: short accum __satfracthqha (fract A)
  1873. -- Runtime Function: accum __satfracthqsa (fract A)
  1874. -- Runtime Function: long accum __satfracthqda (fract A)
  1875. -- Runtime Function: long long accum __satfracthqta (fract A)
  1876. -- Runtime Function: unsigned short fract __satfracthquqq (fract A)
  1877. -- Runtime Function: unsigned fract __satfracthquhq (fract A)
  1878. -- Runtime Function: unsigned long fract __satfracthqusq (fract A)
  1879. -- Runtime Function: unsigned long long fract __satfracthqudq (fract A)
  1880. -- Runtime Function: unsigned short accum __satfracthquha (fract A)
  1881. -- Runtime Function: unsigned accum __satfracthqusa (fract A)
  1882. -- Runtime Function: unsigned long accum __satfracthquda (fract A)
  1883. -- Runtime Function: unsigned long long accum __satfracthquta (fract A)
  1884. -- Runtime Function: short fract __satfractsqqq2 (long fract A)
  1885. -- Runtime Function: fract __satfractsqhq2 (long fract A)
  1886. -- Runtime Function: long long fract __satfractsqdq2 (long fract A)
  1887. -- Runtime Function: short accum __satfractsqha (long fract A)
  1888. -- Runtime Function: accum __satfractsqsa (long fract A)
  1889. -- Runtime Function: long accum __satfractsqda (long fract A)
  1890. -- Runtime Function: long long accum __satfractsqta (long fract A)
  1891. -- Runtime Function: unsigned short fract __satfractsquqq (long fract
  1892. A)
  1893. -- Runtime Function: unsigned fract __satfractsquhq (long fract A)
  1894. -- Runtime Function: unsigned long fract __satfractsqusq (long fract A)
  1895. -- Runtime Function: unsigned long long fract __satfractsqudq (long
  1896. fract A)
  1897. -- Runtime Function: unsigned short accum __satfractsquha (long fract
  1898. A)
  1899. -- Runtime Function: unsigned accum __satfractsqusa (long fract A)
  1900. -- Runtime Function: unsigned long accum __satfractsquda (long fract A)
  1901. -- Runtime Function: unsigned long long accum __satfractsquta (long
  1902. fract A)
  1903. -- Runtime Function: short fract __satfractdqqq2 (long long fract A)
  1904. -- Runtime Function: fract __satfractdqhq2 (long long fract A)
  1905. -- Runtime Function: long fract __satfractdqsq2 (long long fract A)
  1906. -- Runtime Function: short accum __satfractdqha (long long fract A)
  1907. -- Runtime Function: accum __satfractdqsa (long long fract A)
  1908. -- Runtime Function: long accum __satfractdqda (long long fract A)
  1909. -- Runtime Function: long long accum __satfractdqta (long long fract A)
  1910. -- Runtime Function: unsigned short fract __satfractdquqq (long long
  1911. fract A)
  1912. -- Runtime Function: unsigned fract __satfractdquhq (long long fract A)
  1913. -- Runtime Function: unsigned long fract __satfractdqusq (long long
  1914. fract A)
  1915. -- Runtime Function: unsigned long long fract __satfractdqudq (long
  1916. long fract A)
  1917. -- Runtime Function: unsigned short accum __satfractdquha (long long
  1918. fract A)
  1919. -- Runtime Function: unsigned accum __satfractdqusa (long long fract A)
  1920. -- Runtime Function: unsigned long accum __satfractdquda (long long
  1921. fract A)
  1922. -- Runtime Function: unsigned long long accum __satfractdquta (long
  1923. long fract A)
  1924. -- Runtime Function: short fract __satfracthaqq (short accum A)
  1925. -- Runtime Function: fract __satfracthahq (short accum A)
  1926. -- Runtime Function: long fract __satfracthasq (short accum A)
  1927. -- Runtime Function: long long fract __satfracthadq (short accum A)
  1928. -- Runtime Function: accum __satfracthasa2 (short accum A)
  1929. -- Runtime Function: long accum __satfracthada2 (short accum A)
  1930. -- Runtime Function: long long accum __satfracthata2 (short accum A)
  1931. -- Runtime Function: unsigned short fract __satfracthauqq (short accum
  1932. A)
  1933. -- Runtime Function: unsigned fract __satfracthauhq (short accum A)
  1934. -- Runtime Function: unsigned long fract __satfracthausq (short accum
  1935. A)
  1936. -- Runtime Function: unsigned long long fract __satfracthaudq (short
  1937. accum A)
  1938. -- Runtime Function: unsigned short accum __satfracthauha (short accum
  1939. A)
  1940. -- Runtime Function: unsigned accum __satfracthausa (short accum A)
  1941. -- Runtime Function: unsigned long accum __satfracthauda (short accum
  1942. A)
  1943. -- Runtime Function: unsigned long long accum __satfracthauta (short
  1944. accum A)
  1945. -- Runtime Function: short fract __satfractsaqq (accum A)
  1946. -- Runtime Function: fract __satfractsahq (accum A)
  1947. -- Runtime Function: long fract __satfractsasq (accum A)
  1948. -- Runtime Function: long long fract __satfractsadq (accum A)
  1949. -- Runtime Function: short accum __satfractsaha2 (accum A)
  1950. -- Runtime Function: long accum __satfractsada2 (accum A)
  1951. -- Runtime Function: long long accum __satfractsata2 (accum A)
  1952. -- Runtime Function: unsigned short fract __satfractsauqq (accum A)
  1953. -- Runtime Function: unsigned fract __satfractsauhq (accum A)
  1954. -- Runtime Function: unsigned long fract __satfractsausq (accum A)
  1955. -- Runtime Function: unsigned long long fract __satfractsaudq (accum A)
  1956. -- Runtime Function: unsigned short accum __satfractsauha (accum A)
  1957. -- Runtime Function: unsigned accum __satfractsausa (accum A)
  1958. -- Runtime Function: unsigned long accum __satfractsauda (accum A)
  1959. -- Runtime Function: unsigned long long accum __satfractsauta (accum A)
  1960. -- Runtime Function: short fract __satfractdaqq (long accum A)
  1961. -- Runtime Function: fract __satfractdahq (long accum A)
  1962. -- Runtime Function: long fract __satfractdasq (long accum A)
  1963. -- Runtime Function: long long fract __satfractdadq (long accum A)
  1964. -- Runtime Function: short accum __satfractdaha2 (long accum A)
  1965. -- Runtime Function: accum __satfractdasa2 (long accum A)
  1966. -- Runtime Function: long long accum __satfractdata2 (long accum A)
  1967. -- Runtime Function: unsigned short fract __satfractdauqq (long accum
  1968. A)
  1969. -- Runtime Function: unsigned fract __satfractdauhq (long accum A)
  1970. -- Runtime Function: unsigned long fract __satfractdausq (long accum A)
  1971. -- Runtime Function: unsigned long long fract __satfractdaudq (long
  1972. accum A)
  1973. -- Runtime Function: unsigned short accum __satfractdauha (long accum
  1974. A)
  1975. -- Runtime Function: unsigned accum __satfractdausa (long accum A)
  1976. -- Runtime Function: unsigned long accum __satfractdauda (long accum A)
  1977. -- Runtime Function: unsigned long long accum __satfractdauta (long
  1978. accum A)
  1979. -- Runtime Function: short fract __satfracttaqq (long long accum A)
  1980. -- Runtime Function: fract __satfracttahq (long long accum A)
  1981. -- Runtime Function: long fract __satfracttasq (long long accum A)
  1982. -- Runtime Function: long long fract __satfracttadq (long long accum A)
  1983. -- Runtime Function: short accum __satfracttaha2 (long long accum A)
  1984. -- Runtime Function: accum __satfracttasa2 (long long accum A)
  1985. -- Runtime Function: long accum __satfracttada2 (long long accum A)
  1986. -- Runtime Function: unsigned short fract __satfracttauqq (long long
  1987. accum A)
  1988. -- Runtime Function: unsigned fract __satfracttauhq (long long accum A)
  1989. -- Runtime Function: unsigned long fract __satfracttausq (long long
  1990. accum A)
  1991. -- Runtime Function: unsigned long long fract __satfracttaudq (long
  1992. long accum A)
  1993. -- Runtime Function: unsigned short accum __satfracttauha (long long
  1994. accum A)
  1995. -- Runtime Function: unsigned accum __satfracttausa (long long accum A)
  1996. -- Runtime Function: unsigned long accum __satfracttauda (long long
  1997. accum A)
  1998. -- Runtime Function: unsigned long long accum __satfracttauta (long
  1999. long accum A)
  2000. -- Runtime Function: short fract __satfractuqqqq (unsigned short fract
  2001. A)
  2002. -- Runtime Function: fract __satfractuqqhq (unsigned short fract A)
  2003. -- Runtime Function: long fract __satfractuqqsq (unsigned short fract
  2004. A)
  2005. -- Runtime Function: long long fract __satfractuqqdq (unsigned short
  2006. fract A)
  2007. -- Runtime Function: short accum __satfractuqqha (unsigned short fract
  2008. A)
  2009. -- Runtime Function: accum __satfractuqqsa (unsigned short fract A)
  2010. -- Runtime Function: long accum __satfractuqqda (unsigned short fract
  2011. A)
  2012. -- Runtime Function: long long accum __satfractuqqta (unsigned short
  2013. fract A)
  2014. -- Runtime Function: unsigned fract __satfractuqquhq2 (unsigned short
  2015. fract A)
  2016. -- Runtime Function: unsigned long fract __satfractuqqusq2 (unsigned
  2017. short fract A)
  2018. -- Runtime Function: unsigned long long fract __satfractuqqudq2
  2019. (unsigned short fract A)
  2020. -- Runtime Function: unsigned short accum __satfractuqquha (unsigned
  2021. short fract A)
  2022. -- Runtime Function: unsigned accum __satfractuqqusa (unsigned short
  2023. fract A)
  2024. -- Runtime Function: unsigned long accum __satfractuqquda (unsigned
  2025. short fract A)
  2026. -- Runtime Function: unsigned long long accum __satfractuqquta
  2027. (unsigned short fract A)
  2028. -- Runtime Function: short fract __satfractuhqqq (unsigned fract A)
  2029. -- Runtime Function: fract __satfractuhqhq (unsigned fract A)
  2030. -- Runtime Function: long fract __satfractuhqsq (unsigned fract A)
  2031. -- Runtime Function: long long fract __satfractuhqdq (unsigned fract A)
  2032. -- Runtime Function: short accum __satfractuhqha (unsigned fract A)
  2033. -- Runtime Function: accum __satfractuhqsa (unsigned fract A)
  2034. -- Runtime Function: long accum __satfractuhqda (unsigned fract A)
  2035. -- Runtime Function: long long accum __satfractuhqta (unsigned fract A)
  2036. -- Runtime Function: unsigned short fract __satfractuhquqq2 (unsigned
  2037. fract A)
  2038. -- Runtime Function: unsigned long fract __satfractuhqusq2 (unsigned
  2039. fract A)
  2040. -- Runtime Function: unsigned long long fract __satfractuhqudq2
  2041. (unsigned fract A)
  2042. -- Runtime Function: unsigned short accum __satfractuhquha (unsigned
  2043. fract A)
  2044. -- Runtime Function: unsigned accum __satfractuhqusa (unsigned fract A)
  2045. -- Runtime Function: unsigned long accum __satfractuhquda (unsigned
  2046. fract A)
  2047. -- Runtime Function: unsigned long long accum __satfractuhquta
  2048. (unsigned fract A)
  2049. -- Runtime Function: short fract __satfractusqqq (unsigned long fract
  2050. A)
  2051. -- Runtime Function: fract __satfractusqhq (unsigned long fract A)
  2052. -- Runtime Function: long fract __satfractusqsq (unsigned long fract A)
  2053. -- Runtime Function: long long fract __satfractusqdq (unsigned long
  2054. fract A)
  2055. -- Runtime Function: short accum __satfractusqha (unsigned long fract
  2056. A)
  2057. -- Runtime Function: accum __satfractusqsa (unsigned long fract A)
  2058. -- Runtime Function: long accum __satfractusqda (unsigned long fract A)
  2059. -- Runtime Function: long long accum __satfractusqta (unsigned long
  2060. fract A)
  2061. -- Runtime Function: unsigned short fract __satfractusquqq2 (unsigned
  2062. long fract A)
  2063. -- Runtime Function: unsigned fract __satfractusquhq2 (unsigned long
  2064. fract A)
  2065. -- Runtime Function: unsigned long long fract __satfractusqudq2
  2066. (unsigned long fract A)
  2067. -- Runtime Function: unsigned short accum __satfractusquha (unsigned
  2068. long fract A)
  2069. -- Runtime Function: unsigned accum __satfractusqusa (unsigned long
  2070. fract A)
  2071. -- Runtime Function: unsigned long accum __satfractusquda (unsigned
  2072. long fract A)
  2073. -- Runtime Function: unsigned long long accum __satfractusquta
  2074. (unsigned long fract A)
  2075. -- Runtime Function: short fract __satfractudqqq (unsigned long long
  2076. fract A)
  2077. -- Runtime Function: fract __satfractudqhq (unsigned long long fract A)
  2078. -- Runtime Function: long fract __satfractudqsq (unsigned long long
  2079. fract A)
  2080. -- Runtime Function: long long fract __satfractudqdq (unsigned long
  2081. long fract A)
  2082. -- Runtime Function: short accum __satfractudqha (unsigned long long
  2083. fract A)
  2084. -- Runtime Function: accum __satfractudqsa (unsigned long long fract A)
  2085. -- Runtime Function: long accum __satfractudqda (unsigned long long
  2086. fract A)
  2087. -- Runtime Function: long long accum __satfractudqta (unsigned long
  2088. long fract A)
  2089. -- Runtime Function: unsigned short fract __satfractudquqq2 (unsigned
  2090. long long fract A)
  2091. -- Runtime Function: unsigned fract __satfractudquhq2 (unsigned long
  2092. long fract A)
  2093. -- Runtime Function: unsigned long fract __satfractudqusq2 (unsigned
  2094. long long fract A)
  2095. -- Runtime Function: unsigned short accum __satfractudquha (unsigned
  2096. long long fract A)
  2097. -- Runtime Function: unsigned accum __satfractudqusa (unsigned long
  2098. long fract A)
  2099. -- Runtime Function: unsigned long accum __satfractudquda (unsigned
  2100. long long fract A)
  2101. -- Runtime Function: unsigned long long accum __satfractudquta
  2102. (unsigned long long fract A)
  2103. -- Runtime Function: short fract __satfractuhaqq (unsigned short accum
  2104. A)
  2105. -- Runtime Function: fract __satfractuhahq (unsigned short accum A)
  2106. -- Runtime Function: long fract __satfractuhasq (unsigned short accum
  2107. A)
  2108. -- Runtime Function: long long fract __satfractuhadq (unsigned short
  2109. accum A)
  2110. -- Runtime Function: short accum __satfractuhaha (unsigned short accum
  2111. A)
  2112. -- Runtime Function: accum __satfractuhasa (unsigned short accum A)
  2113. -- Runtime Function: long accum __satfractuhada (unsigned short accum
  2114. A)
  2115. -- Runtime Function: long long accum __satfractuhata (unsigned short
  2116. accum A)
  2117. -- Runtime Function: unsigned short fract __satfractuhauqq (unsigned
  2118. short accum A)
  2119. -- Runtime Function: unsigned fract __satfractuhauhq (unsigned short
  2120. accum A)
  2121. -- Runtime Function: unsigned long fract __satfractuhausq (unsigned
  2122. short accum A)
  2123. -- Runtime Function: unsigned long long fract __satfractuhaudq
  2124. (unsigned short accum A)
  2125. -- Runtime Function: unsigned accum __satfractuhausa2 (unsigned short
  2126. accum A)
  2127. -- Runtime Function: unsigned long accum __satfractuhauda2 (unsigned
  2128. short accum A)
  2129. -- Runtime Function: unsigned long long accum __satfractuhauta2
  2130. (unsigned short accum A)
  2131. -- Runtime Function: short fract __satfractusaqq (unsigned accum A)
  2132. -- Runtime Function: fract __satfractusahq (unsigned accum A)
  2133. -- Runtime Function: long fract __satfractusasq (unsigned accum A)
  2134. -- Runtime Function: long long fract __satfractusadq (unsigned accum A)
  2135. -- Runtime Function: short accum __satfractusaha (unsigned accum A)
  2136. -- Runtime Function: accum __satfractusasa (unsigned accum A)
  2137. -- Runtime Function: long accum __satfractusada (unsigned accum A)
  2138. -- Runtime Function: long long accum __satfractusata (unsigned accum A)
  2139. -- Runtime Function: unsigned short fract __satfractusauqq (unsigned
  2140. accum A)
  2141. -- Runtime Function: unsigned fract __satfractusauhq (unsigned accum A)
  2142. -- Runtime Function: unsigned long fract __satfractusausq (unsigned
  2143. accum A)
  2144. -- Runtime Function: unsigned long long fract __satfractusaudq
  2145. (unsigned accum A)
  2146. -- Runtime Function: unsigned short accum __satfractusauha2 (unsigned
  2147. accum A)
  2148. -- Runtime Function: unsigned long accum __satfractusauda2 (unsigned
  2149. accum A)
  2150. -- Runtime Function: unsigned long long accum __satfractusauta2
  2151. (unsigned accum A)
  2152. -- Runtime Function: short fract __satfractudaqq (unsigned long accum
  2153. A)
  2154. -- Runtime Function: fract __satfractudahq (unsigned long accum A)
  2155. -- Runtime Function: long fract __satfractudasq (unsigned long accum A)
  2156. -- Runtime Function: long long fract __satfractudadq (unsigned long
  2157. accum A)
  2158. -- Runtime Function: short accum __satfractudaha (unsigned long accum
  2159. A)
  2160. -- Runtime Function: accum __satfractudasa (unsigned long accum A)
  2161. -- Runtime Function: long accum __satfractudada (unsigned long accum A)
  2162. -- Runtime Function: long long accum __satfractudata (unsigned long
  2163. accum A)
  2164. -- Runtime Function: unsigned short fract __satfractudauqq (unsigned
  2165. long accum A)
  2166. -- Runtime Function: unsigned fract __satfractudauhq (unsigned long
  2167. accum A)
  2168. -- Runtime Function: unsigned long fract __satfractudausq (unsigned
  2169. long accum A)
  2170. -- Runtime Function: unsigned long long fract __satfractudaudq
  2171. (unsigned long accum A)
  2172. -- Runtime Function: unsigned short accum __satfractudauha2 (unsigned
  2173. long accum A)
  2174. -- Runtime Function: unsigned accum __satfractudausa2 (unsigned long
  2175. accum A)
  2176. -- Runtime Function: unsigned long long accum __satfractudauta2
  2177. (unsigned long accum A)
  2178. -- Runtime Function: short fract __satfractutaqq (unsigned long long
  2179. accum A)
  2180. -- Runtime Function: fract __satfractutahq (unsigned long long accum A)
  2181. -- Runtime Function: long fract __satfractutasq (unsigned long long
  2182. accum A)
  2183. -- Runtime Function: long long fract __satfractutadq (unsigned long
  2184. long accum A)
  2185. -- Runtime Function: short accum __satfractutaha (unsigned long long
  2186. accum A)
  2187. -- Runtime Function: accum __satfractutasa (unsigned long long accum A)
  2188. -- Runtime Function: long accum __satfractutada (unsigned long long
  2189. accum A)
  2190. -- Runtime Function: long long accum __satfractutata (unsigned long
  2191. long accum A)
  2192. -- Runtime Function: unsigned short fract __satfractutauqq (unsigned
  2193. long long accum A)
  2194. -- Runtime Function: unsigned fract __satfractutauhq (unsigned long
  2195. long accum A)
  2196. -- Runtime Function: unsigned long fract __satfractutausq (unsigned
  2197. long long accum A)
  2198. -- Runtime Function: unsigned long long fract __satfractutaudq
  2199. (unsigned long long accum A)
  2200. -- Runtime Function: unsigned short accum __satfractutauha2 (unsigned
  2201. long long accum A)
  2202. -- Runtime Function: unsigned accum __satfractutausa2 (unsigned long
  2203. long accum A)
  2204. -- Runtime Function: unsigned long accum __satfractutauda2 (unsigned
  2205. long long accum A)
  2206. -- Runtime Function: short fract __satfractqiqq (signed char A)
  2207. -- Runtime Function: fract __satfractqihq (signed char A)
  2208. -- Runtime Function: long fract __satfractqisq (signed char A)
  2209. -- Runtime Function: long long fract __satfractqidq (signed char A)
  2210. -- Runtime Function: short accum __satfractqiha (signed char A)
  2211. -- Runtime Function: accum __satfractqisa (signed char A)
  2212. -- Runtime Function: long accum __satfractqida (signed char A)
  2213. -- Runtime Function: long long accum __satfractqita (signed char A)
  2214. -- Runtime Function: unsigned short fract __satfractqiuqq (signed char
  2215. A)
  2216. -- Runtime Function: unsigned fract __satfractqiuhq (signed char A)
  2217. -- Runtime Function: unsigned long fract __satfractqiusq (signed char
  2218. A)
  2219. -- Runtime Function: unsigned long long fract __satfractqiudq (signed
  2220. char A)
  2221. -- Runtime Function: unsigned short accum __satfractqiuha (signed char
  2222. A)
  2223. -- Runtime Function: unsigned accum __satfractqiusa (signed char A)
  2224. -- Runtime Function: unsigned long accum __satfractqiuda (signed char
  2225. A)
  2226. -- Runtime Function: unsigned long long accum __satfractqiuta (signed
  2227. char A)
  2228. -- Runtime Function: short fract __satfracthiqq (short A)
  2229. -- Runtime Function: fract __satfracthihq (short A)
  2230. -- Runtime Function: long fract __satfracthisq (short A)
  2231. -- Runtime Function: long long fract __satfracthidq (short A)
  2232. -- Runtime Function: short accum __satfracthiha (short A)
  2233. -- Runtime Function: accum __satfracthisa (short A)
  2234. -- Runtime Function: long accum __satfracthida (short A)
  2235. -- Runtime Function: long long accum __satfracthita (short A)
  2236. -- Runtime Function: unsigned short fract __satfracthiuqq (short A)
  2237. -- Runtime Function: unsigned fract __satfracthiuhq (short A)
  2238. -- Runtime Function: unsigned long fract __satfracthiusq (short A)
  2239. -- Runtime Function: unsigned long long fract __satfracthiudq (short A)
  2240. -- Runtime Function: unsigned short accum __satfracthiuha (short A)
  2241. -- Runtime Function: unsigned accum __satfracthiusa (short A)
  2242. -- Runtime Function: unsigned long accum __satfracthiuda (short A)
  2243. -- Runtime Function: unsigned long long accum __satfracthiuta (short A)
  2244. -- Runtime Function: short fract __satfractsiqq (int A)
  2245. -- Runtime Function: fract __satfractsihq (int A)
  2246. -- Runtime Function: long fract __satfractsisq (int A)
  2247. -- Runtime Function: long long fract __satfractsidq (int A)
  2248. -- Runtime Function: short accum __satfractsiha (int A)
  2249. -- Runtime Function: accum __satfractsisa (int A)
  2250. -- Runtime Function: long accum __satfractsida (int A)
  2251. -- Runtime Function: long long accum __satfractsita (int A)
  2252. -- Runtime Function: unsigned short fract __satfractsiuqq (int A)
  2253. -- Runtime Function: unsigned fract __satfractsiuhq (int A)
  2254. -- Runtime Function: unsigned long fract __satfractsiusq (int A)
  2255. -- Runtime Function: unsigned long long fract __satfractsiudq (int A)
  2256. -- Runtime Function: unsigned short accum __satfractsiuha (int A)
  2257. -- Runtime Function: unsigned accum __satfractsiusa (int A)
  2258. -- Runtime Function: unsigned long accum __satfractsiuda (int A)
  2259. -- Runtime Function: unsigned long long accum __satfractsiuta (int A)
  2260. -- Runtime Function: short fract __satfractdiqq (long A)
  2261. -- Runtime Function: fract __satfractdihq (long A)
  2262. -- Runtime Function: long fract __satfractdisq (long A)
  2263. -- Runtime Function: long long fract __satfractdidq (long A)
  2264. -- Runtime Function: short accum __satfractdiha (long A)
  2265. -- Runtime Function: accum __satfractdisa (long A)
  2266. -- Runtime Function: long accum __satfractdida (long A)
  2267. -- Runtime Function: long long accum __satfractdita (long A)
  2268. -- Runtime Function: unsigned short fract __satfractdiuqq (long A)
  2269. -- Runtime Function: unsigned fract __satfractdiuhq (long A)
  2270. -- Runtime Function: unsigned long fract __satfractdiusq (long A)
  2271. -- Runtime Function: unsigned long long fract __satfractdiudq (long A)
  2272. -- Runtime Function: unsigned short accum __satfractdiuha (long A)
  2273. -- Runtime Function: unsigned accum __satfractdiusa (long A)
  2274. -- Runtime Function: unsigned long accum __satfractdiuda (long A)
  2275. -- Runtime Function: unsigned long long accum __satfractdiuta (long A)
  2276. -- Runtime Function: short fract __satfracttiqq (long long A)
  2277. -- Runtime Function: fract __satfracttihq (long long A)
  2278. -- Runtime Function: long fract __satfracttisq (long long A)
  2279. -- Runtime Function: long long fract __satfracttidq (long long A)
  2280. -- Runtime Function: short accum __satfracttiha (long long A)
  2281. -- Runtime Function: accum __satfracttisa (long long A)
  2282. -- Runtime Function: long accum __satfracttida (long long A)
  2283. -- Runtime Function: long long accum __satfracttita (long long A)
  2284. -- Runtime Function: unsigned short fract __satfracttiuqq (long long A)
  2285. -- Runtime Function: unsigned fract __satfracttiuhq (long long A)
  2286. -- Runtime Function: unsigned long fract __satfracttiusq (long long A)
  2287. -- Runtime Function: unsigned long long fract __satfracttiudq (long
  2288. long A)
  2289. -- Runtime Function: unsigned short accum __satfracttiuha (long long A)
  2290. -- Runtime Function: unsigned accum __satfracttiusa (long long A)
  2291. -- Runtime Function: unsigned long accum __satfracttiuda (long long A)
  2292. -- Runtime Function: unsigned long long accum __satfracttiuta (long
  2293. long A)
  2294. -- Runtime Function: short fract __satfractsfqq (float A)
  2295. -- Runtime Function: fract __satfractsfhq (float A)
  2296. -- Runtime Function: long fract __satfractsfsq (float A)
  2297. -- Runtime Function: long long fract __satfractsfdq (float A)
  2298. -- Runtime Function: short accum __satfractsfha (float A)
  2299. -- Runtime Function: accum __satfractsfsa (float A)
  2300. -- Runtime Function: long accum __satfractsfda (float A)
  2301. -- Runtime Function: long long accum __satfractsfta (float A)
  2302. -- Runtime Function: unsigned short fract __satfractsfuqq (float A)
  2303. -- Runtime Function: unsigned fract __satfractsfuhq (float A)
  2304. -- Runtime Function: unsigned long fract __satfractsfusq (float A)
  2305. -- Runtime Function: unsigned long long fract __satfractsfudq (float A)
  2306. -- Runtime Function: unsigned short accum __satfractsfuha (float A)
  2307. -- Runtime Function: unsigned accum __satfractsfusa (float A)
  2308. -- Runtime Function: unsigned long accum __satfractsfuda (float A)
  2309. -- Runtime Function: unsigned long long accum __satfractsfuta (float A)
  2310. -- Runtime Function: short fract __satfractdfqq (double A)
  2311. -- Runtime Function: fract __satfractdfhq (double A)
  2312. -- Runtime Function: long fract __satfractdfsq (double A)
  2313. -- Runtime Function: long long fract __satfractdfdq (double A)
  2314. -- Runtime Function: short accum __satfractdfha (double A)
  2315. -- Runtime Function: accum __satfractdfsa (double A)
  2316. -- Runtime Function: long accum __satfractdfda (double A)
  2317. -- Runtime Function: long long accum __satfractdfta (double A)
  2318. -- Runtime Function: unsigned short fract __satfractdfuqq (double A)
  2319. -- Runtime Function: unsigned fract __satfractdfuhq (double A)
  2320. -- Runtime Function: unsigned long fract __satfractdfusq (double A)
  2321. -- Runtime Function: unsigned long long fract __satfractdfudq (double
  2322. A)
  2323. -- Runtime Function: unsigned short accum __satfractdfuha (double A)
  2324. -- Runtime Function: unsigned accum __satfractdfusa (double A)
  2325. -- Runtime Function: unsigned long accum __satfractdfuda (double A)
  2326. -- Runtime Function: unsigned long long accum __satfractdfuta (double
  2327. A)
  2328. The functions convert from fractional and signed non-fractionals to
  2329. fractionals, with saturation.
  2330. -- Runtime Function: unsigned char __fractunsqqqi (short fract A)
  2331. -- Runtime Function: unsigned short __fractunsqqhi (short fract A)
  2332. -- Runtime Function: unsigned int __fractunsqqsi (short fract A)
  2333. -- Runtime Function: unsigned long __fractunsqqdi (short fract A)
  2334. -- Runtime Function: unsigned long long __fractunsqqti (short fract A)
  2335. -- Runtime Function: unsigned char __fractunshqqi (fract A)
  2336. -- Runtime Function: unsigned short __fractunshqhi (fract A)
  2337. -- Runtime Function: unsigned int __fractunshqsi (fract A)
  2338. -- Runtime Function: unsigned long __fractunshqdi (fract A)
  2339. -- Runtime Function: unsigned long long __fractunshqti (fract A)
  2340. -- Runtime Function: unsigned char __fractunssqqi (long fract A)
  2341. -- Runtime Function: unsigned short __fractunssqhi (long fract A)
  2342. -- Runtime Function: unsigned int __fractunssqsi (long fract A)
  2343. -- Runtime Function: unsigned long __fractunssqdi (long fract A)
  2344. -- Runtime Function: unsigned long long __fractunssqti (long fract A)
  2345. -- Runtime Function: unsigned char __fractunsdqqi (long long fract A)
  2346. -- Runtime Function: unsigned short __fractunsdqhi (long long fract A)
  2347. -- Runtime Function: unsigned int __fractunsdqsi (long long fract A)
  2348. -- Runtime Function: unsigned long __fractunsdqdi (long long fract A)
  2349. -- Runtime Function: unsigned long long __fractunsdqti (long long fract
  2350. A)
  2351. -- Runtime Function: unsigned char __fractunshaqi (short accum A)
  2352. -- Runtime Function: unsigned short __fractunshahi (short accum A)
  2353. -- Runtime Function: unsigned int __fractunshasi (short accum A)
  2354. -- Runtime Function: unsigned long __fractunshadi (short accum A)
  2355. -- Runtime Function: unsigned long long __fractunshati (short accum A)
  2356. -- Runtime Function: unsigned char __fractunssaqi (accum A)
  2357. -- Runtime Function: unsigned short __fractunssahi (accum A)
  2358. -- Runtime Function: unsigned int __fractunssasi (accum A)
  2359. -- Runtime Function: unsigned long __fractunssadi (accum A)
  2360. -- Runtime Function: unsigned long long __fractunssati (accum A)
  2361. -- Runtime Function: unsigned char __fractunsdaqi (long accum A)
  2362. -- Runtime Function: unsigned short __fractunsdahi (long accum A)
  2363. -- Runtime Function: unsigned int __fractunsdasi (long accum A)
  2364. -- Runtime Function: unsigned long __fractunsdadi (long accum A)
  2365. -- Runtime Function: unsigned long long __fractunsdati (long accum A)
  2366. -- Runtime Function: unsigned char __fractunstaqi (long long accum A)
  2367. -- Runtime Function: unsigned short __fractunstahi (long long accum A)
  2368. -- Runtime Function: unsigned int __fractunstasi (long long accum A)
  2369. -- Runtime Function: unsigned long __fractunstadi (long long accum A)
  2370. -- Runtime Function: unsigned long long __fractunstati (long long accum
  2371. A)
  2372. -- Runtime Function: unsigned char __fractunsuqqqi (unsigned short
  2373. fract A)
  2374. -- Runtime Function: unsigned short __fractunsuqqhi (unsigned short
  2375. fract A)
  2376. -- Runtime Function: unsigned int __fractunsuqqsi (unsigned short fract
  2377. A)
  2378. -- Runtime Function: unsigned long __fractunsuqqdi (unsigned short
  2379. fract A)
  2380. -- Runtime Function: unsigned long long __fractunsuqqti (unsigned short
  2381. fract A)
  2382. -- Runtime Function: unsigned char __fractunsuhqqi (unsigned fract A)
  2383. -- Runtime Function: unsigned short __fractunsuhqhi (unsigned fract A)
  2384. -- Runtime Function: unsigned int __fractunsuhqsi (unsigned fract A)
  2385. -- Runtime Function: unsigned long __fractunsuhqdi (unsigned fract A)
  2386. -- Runtime Function: unsigned long long __fractunsuhqti (unsigned fract
  2387. A)
  2388. -- Runtime Function: unsigned char __fractunsusqqi (unsigned long fract
  2389. A)
  2390. -- Runtime Function: unsigned short __fractunsusqhi (unsigned long
  2391. fract A)
  2392. -- Runtime Function: unsigned int __fractunsusqsi (unsigned long fract
  2393. A)
  2394. -- Runtime Function: unsigned long __fractunsusqdi (unsigned long fract
  2395. A)
  2396. -- Runtime Function: unsigned long long __fractunsusqti (unsigned long
  2397. fract A)
  2398. -- Runtime Function: unsigned char __fractunsudqqi (unsigned long long
  2399. fract A)
  2400. -- Runtime Function: unsigned short __fractunsudqhi (unsigned long long
  2401. fract A)
  2402. -- Runtime Function: unsigned int __fractunsudqsi (unsigned long long
  2403. fract A)
  2404. -- Runtime Function: unsigned long __fractunsudqdi (unsigned long long
  2405. fract A)
  2406. -- Runtime Function: unsigned long long __fractunsudqti (unsigned long
  2407. long fract A)
  2408. -- Runtime Function: unsigned char __fractunsuhaqi (unsigned short
  2409. accum A)
  2410. -- Runtime Function: unsigned short __fractunsuhahi (unsigned short
  2411. accum A)
  2412. -- Runtime Function: unsigned int __fractunsuhasi (unsigned short accum
  2413. A)
  2414. -- Runtime Function: unsigned long __fractunsuhadi (unsigned short
  2415. accum A)
  2416. -- Runtime Function: unsigned long long __fractunsuhati (unsigned short
  2417. accum A)
  2418. -- Runtime Function: unsigned char __fractunsusaqi (unsigned accum A)
  2419. -- Runtime Function: unsigned short __fractunsusahi (unsigned accum A)
  2420. -- Runtime Function: unsigned int __fractunsusasi (unsigned accum A)
  2421. -- Runtime Function: unsigned long __fractunsusadi (unsigned accum A)
  2422. -- Runtime Function: unsigned long long __fractunsusati (unsigned accum
  2423. A)
  2424. -- Runtime Function: unsigned char __fractunsudaqi (unsigned long accum
  2425. A)
  2426. -- Runtime Function: unsigned short __fractunsudahi (unsigned long
  2427. accum A)
  2428. -- Runtime Function: unsigned int __fractunsudasi (unsigned long accum
  2429. A)
  2430. -- Runtime Function: unsigned long __fractunsudadi (unsigned long accum
  2431. A)
  2432. -- Runtime Function: unsigned long long __fractunsudati (unsigned long
  2433. accum A)
  2434. -- Runtime Function: unsigned char __fractunsutaqi (unsigned long long
  2435. accum A)
  2436. -- Runtime Function: unsigned short __fractunsutahi (unsigned long long
  2437. accum A)
  2438. -- Runtime Function: unsigned int __fractunsutasi (unsigned long long
  2439. accum A)
  2440. -- Runtime Function: unsigned long __fractunsutadi (unsigned long long
  2441. accum A)
  2442. -- Runtime Function: unsigned long long __fractunsutati (unsigned long
  2443. long accum A)
  2444. -- Runtime Function: short fract __fractunsqiqq (unsigned char A)
  2445. -- Runtime Function: fract __fractunsqihq (unsigned char A)
  2446. -- Runtime Function: long fract __fractunsqisq (unsigned char A)
  2447. -- Runtime Function: long long fract __fractunsqidq (unsigned char A)
  2448. -- Runtime Function: short accum __fractunsqiha (unsigned char A)
  2449. -- Runtime Function: accum __fractunsqisa (unsigned char A)
  2450. -- Runtime Function: long accum __fractunsqida (unsigned char A)
  2451. -- Runtime Function: long long accum __fractunsqita (unsigned char A)
  2452. -- Runtime Function: unsigned short fract __fractunsqiuqq (unsigned
  2453. char A)
  2454. -- Runtime Function: unsigned fract __fractunsqiuhq (unsigned char A)
  2455. -- Runtime Function: unsigned long fract __fractunsqiusq (unsigned char
  2456. A)
  2457. -- Runtime Function: unsigned long long fract __fractunsqiudq (unsigned
  2458. char A)
  2459. -- Runtime Function: unsigned short accum __fractunsqiuha (unsigned
  2460. char A)
  2461. -- Runtime Function: unsigned accum __fractunsqiusa (unsigned char A)
  2462. -- Runtime Function: unsigned long accum __fractunsqiuda (unsigned char
  2463. A)
  2464. -- Runtime Function: unsigned long long accum __fractunsqiuta (unsigned
  2465. char A)
  2466. -- Runtime Function: short fract __fractunshiqq (unsigned short A)
  2467. -- Runtime Function: fract __fractunshihq (unsigned short A)
  2468. -- Runtime Function: long fract __fractunshisq (unsigned short A)
  2469. -- Runtime Function: long long fract __fractunshidq (unsigned short A)
  2470. -- Runtime Function: short accum __fractunshiha (unsigned short A)
  2471. -- Runtime Function: accum __fractunshisa (unsigned short A)
  2472. -- Runtime Function: long accum __fractunshida (unsigned short A)
  2473. -- Runtime Function: long long accum __fractunshita (unsigned short A)
  2474. -- Runtime Function: unsigned short fract __fractunshiuqq (unsigned
  2475. short A)
  2476. -- Runtime Function: unsigned fract __fractunshiuhq (unsigned short A)
  2477. -- Runtime Function: unsigned long fract __fractunshiusq (unsigned
  2478. short A)
  2479. -- Runtime Function: unsigned long long fract __fractunshiudq (unsigned
  2480. short A)
  2481. -- Runtime Function: unsigned short accum __fractunshiuha (unsigned
  2482. short A)
  2483. -- Runtime Function: unsigned accum __fractunshiusa (unsigned short A)
  2484. -- Runtime Function: unsigned long accum __fractunshiuda (unsigned
  2485. short A)
  2486. -- Runtime Function: unsigned long long accum __fractunshiuta (unsigned
  2487. short A)
  2488. -- Runtime Function: short fract __fractunssiqq (unsigned int A)
  2489. -- Runtime Function: fract __fractunssihq (unsigned int A)
  2490. -- Runtime Function: long fract __fractunssisq (unsigned int A)
  2491. -- Runtime Function: long long fract __fractunssidq (unsigned int A)
  2492. -- Runtime Function: short accum __fractunssiha (unsigned int A)
  2493. -- Runtime Function: accum __fractunssisa (unsigned int A)
  2494. -- Runtime Function: long accum __fractunssida (unsigned int A)
  2495. -- Runtime Function: long long accum __fractunssita (unsigned int A)
  2496. -- Runtime Function: unsigned short fract __fractunssiuqq (unsigned int
  2497. A)
  2498. -- Runtime Function: unsigned fract __fractunssiuhq (unsigned int A)
  2499. -- Runtime Function: unsigned long fract __fractunssiusq (unsigned int
  2500. A)
  2501. -- Runtime Function: unsigned long long fract __fractunssiudq (unsigned
  2502. int A)
  2503. -- Runtime Function: unsigned short accum __fractunssiuha (unsigned int
  2504. A)
  2505. -- Runtime Function: unsigned accum __fractunssiusa (unsigned int A)
  2506. -- Runtime Function: unsigned long accum __fractunssiuda (unsigned int
  2507. A)
  2508. -- Runtime Function: unsigned long long accum __fractunssiuta (unsigned
  2509. int A)
  2510. -- Runtime Function: short fract __fractunsdiqq (unsigned long A)
  2511. -- Runtime Function: fract __fractunsdihq (unsigned long A)
  2512. -- Runtime Function: long fract __fractunsdisq (unsigned long A)
  2513. -- Runtime Function: long long fract __fractunsdidq (unsigned long A)
  2514. -- Runtime Function: short accum __fractunsdiha (unsigned long A)
  2515. -- Runtime Function: accum __fractunsdisa (unsigned long A)
  2516. -- Runtime Function: long accum __fractunsdida (unsigned long A)
  2517. -- Runtime Function: long long accum __fractunsdita (unsigned long A)
  2518. -- Runtime Function: unsigned short fract __fractunsdiuqq (unsigned
  2519. long A)
  2520. -- Runtime Function: unsigned fract __fractunsdiuhq (unsigned long A)
  2521. -- Runtime Function: unsigned long fract __fractunsdiusq (unsigned long
  2522. A)
  2523. -- Runtime Function: unsigned long long fract __fractunsdiudq (unsigned
  2524. long A)
  2525. -- Runtime Function: unsigned short accum __fractunsdiuha (unsigned
  2526. long A)
  2527. -- Runtime Function: unsigned accum __fractunsdiusa (unsigned long A)
  2528. -- Runtime Function: unsigned long accum __fractunsdiuda (unsigned long
  2529. A)
  2530. -- Runtime Function: unsigned long long accum __fractunsdiuta (unsigned
  2531. long A)
  2532. -- Runtime Function: short fract __fractunstiqq (unsigned long long A)
  2533. -- Runtime Function: fract __fractunstihq (unsigned long long A)
  2534. -- Runtime Function: long fract __fractunstisq (unsigned long long A)
  2535. -- Runtime Function: long long fract __fractunstidq (unsigned long long
  2536. A)
  2537. -- Runtime Function: short accum __fractunstiha (unsigned long long A)
  2538. -- Runtime Function: accum __fractunstisa (unsigned long long A)
  2539. -- Runtime Function: long accum __fractunstida (unsigned long long A)
  2540. -- Runtime Function: long long accum __fractunstita (unsigned long long
  2541. A)
  2542. -- Runtime Function: unsigned short fract __fractunstiuqq (unsigned
  2543. long long A)
  2544. -- Runtime Function: unsigned fract __fractunstiuhq (unsigned long long
  2545. A)
  2546. -- Runtime Function: unsigned long fract __fractunstiusq (unsigned long
  2547. long A)
  2548. -- Runtime Function: unsigned long long fract __fractunstiudq (unsigned
  2549. long long A)
  2550. -- Runtime Function: unsigned short accum __fractunstiuha (unsigned
  2551. long long A)
  2552. -- Runtime Function: unsigned accum __fractunstiusa (unsigned long long
  2553. A)
  2554. -- Runtime Function: unsigned long accum __fractunstiuda (unsigned long
  2555. long A)
  2556. -- Runtime Function: unsigned long long accum __fractunstiuta (unsigned
  2557. long long A)
  2558. These functions convert from fractionals to unsigned
  2559. non-fractionals; and from unsigned non-fractionals to fractionals,
  2560. without saturation.
  2561. -- Runtime Function: short fract __satfractunsqiqq (unsigned char A)
  2562. -- Runtime Function: fract __satfractunsqihq (unsigned char A)
  2563. -- Runtime Function: long fract __satfractunsqisq (unsigned char A)
  2564. -- Runtime Function: long long fract __satfractunsqidq (unsigned char
  2565. A)
  2566. -- Runtime Function: short accum __satfractunsqiha (unsigned char A)
  2567. -- Runtime Function: accum __satfractunsqisa (unsigned char A)
  2568. -- Runtime Function: long accum __satfractunsqida (unsigned char A)
  2569. -- Runtime Function: long long accum __satfractunsqita (unsigned char
  2570. A)
  2571. -- Runtime Function: unsigned short fract __satfractunsqiuqq (unsigned
  2572. char A)
  2573. -- Runtime Function: unsigned fract __satfractunsqiuhq (unsigned char
  2574. A)
  2575. -- Runtime Function: unsigned long fract __satfractunsqiusq (unsigned
  2576. char A)
  2577. -- Runtime Function: unsigned long long fract __satfractunsqiudq
  2578. (unsigned char A)
  2579. -- Runtime Function: unsigned short accum __satfractunsqiuha (unsigned
  2580. char A)
  2581. -- Runtime Function: unsigned accum __satfractunsqiusa (unsigned char
  2582. A)
  2583. -- Runtime Function: unsigned long accum __satfractunsqiuda (unsigned
  2584. char A)
  2585. -- Runtime Function: unsigned long long accum __satfractunsqiuta
  2586. (unsigned char A)
  2587. -- Runtime Function: short fract __satfractunshiqq (unsigned short A)
  2588. -- Runtime Function: fract __satfractunshihq (unsigned short A)
  2589. -- Runtime Function: long fract __satfractunshisq (unsigned short A)
  2590. -- Runtime Function: long long fract __satfractunshidq (unsigned short
  2591. A)
  2592. -- Runtime Function: short accum __satfractunshiha (unsigned short A)
  2593. -- Runtime Function: accum __satfractunshisa (unsigned short A)
  2594. -- Runtime Function: long accum __satfractunshida (unsigned short A)
  2595. -- Runtime Function: long long accum __satfractunshita (unsigned short
  2596. A)
  2597. -- Runtime Function: unsigned short fract __satfractunshiuqq (unsigned
  2598. short A)
  2599. -- Runtime Function: unsigned fract __satfractunshiuhq (unsigned short
  2600. A)
  2601. -- Runtime Function: unsigned long fract __satfractunshiusq (unsigned
  2602. short A)
  2603. -- Runtime Function: unsigned long long fract __satfractunshiudq
  2604. (unsigned short A)
  2605. -- Runtime Function: unsigned short accum __satfractunshiuha (unsigned
  2606. short A)
  2607. -- Runtime Function: unsigned accum __satfractunshiusa (unsigned short
  2608. A)
  2609. -- Runtime Function: unsigned long accum __satfractunshiuda (unsigned
  2610. short A)
  2611. -- Runtime Function: unsigned long long accum __satfractunshiuta
  2612. (unsigned short A)
  2613. -- Runtime Function: short fract __satfractunssiqq (unsigned int A)
  2614. -- Runtime Function: fract __satfractunssihq (unsigned int A)
  2615. -- Runtime Function: long fract __satfractunssisq (unsigned int A)
  2616. -- Runtime Function: long long fract __satfractunssidq (unsigned int A)
  2617. -- Runtime Function: short accum __satfractunssiha (unsigned int A)
  2618. -- Runtime Function: accum __satfractunssisa (unsigned int A)
  2619. -- Runtime Function: long accum __satfractunssida (unsigned int A)
  2620. -- Runtime Function: long long accum __satfractunssita (unsigned int A)
  2621. -- Runtime Function: unsigned short fract __satfractunssiuqq (unsigned
  2622. int A)
  2623. -- Runtime Function: unsigned fract __satfractunssiuhq (unsigned int A)
  2624. -- Runtime Function: unsigned long fract __satfractunssiusq (unsigned
  2625. int A)
  2626. -- Runtime Function: unsigned long long fract __satfractunssiudq
  2627. (unsigned int A)
  2628. -- Runtime Function: unsigned short accum __satfractunssiuha (unsigned
  2629. int A)
  2630. -- Runtime Function: unsigned accum __satfractunssiusa (unsigned int A)
  2631. -- Runtime Function: unsigned long accum __satfractunssiuda (unsigned
  2632. int A)
  2633. -- Runtime Function: unsigned long long accum __satfractunssiuta
  2634. (unsigned int A)
  2635. -- Runtime Function: short fract __satfractunsdiqq (unsigned long A)
  2636. -- Runtime Function: fract __satfractunsdihq (unsigned long A)
  2637. -- Runtime Function: long fract __satfractunsdisq (unsigned long A)
  2638. -- Runtime Function: long long fract __satfractunsdidq (unsigned long
  2639. A)
  2640. -- Runtime Function: short accum __satfractunsdiha (unsigned long A)
  2641. -- Runtime Function: accum __satfractunsdisa (unsigned long A)
  2642. -- Runtime Function: long accum __satfractunsdida (unsigned long A)
  2643. -- Runtime Function: long long accum __satfractunsdita (unsigned long
  2644. A)
  2645. -- Runtime Function: unsigned short fract __satfractunsdiuqq (unsigned
  2646. long A)
  2647. -- Runtime Function: unsigned fract __satfractunsdiuhq (unsigned long
  2648. A)
  2649. -- Runtime Function: unsigned long fract __satfractunsdiusq (unsigned
  2650. long A)
  2651. -- Runtime Function: unsigned long long fract __satfractunsdiudq
  2652. (unsigned long A)
  2653. -- Runtime Function: unsigned short accum __satfractunsdiuha (unsigned
  2654. long A)
  2655. -- Runtime Function: unsigned accum __satfractunsdiusa (unsigned long
  2656. A)
  2657. -- Runtime Function: unsigned long accum __satfractunsdiuda (unsigned
  2658. long A)
  2659. -- Runtime Function: unsigned long long accum __satfractunsdiuta
  2660. (unsigned long A)
  2661. -- Runtime Function: short fract __satfractunstiqq (unsigned long long
  2662. A)
  2663. -- Runtime Function: fract __satfractunstihq (unsigned long long A)
  2664. -- Runtime Function: long fract __satfractunstisq (unsigned long long
  2665. A)
  2666. -- Runtime Function: long long fract __satfractunstidq (unsigned long
  2667. long A)
  2668. -- Runtime Function: short accum __satfractunstiha (unsigned long long
  2669. A)
  2670. -- Runtime Function: accum __satfractunstisa (unsigned long long A)
  2671. -- Runtime Function: long accum __satfractunstida (unsigned long long
  2672. A)
  2673. -- Runtime Function: long long accum __satfractunstita (unsigned long
  2674. long A)
  2675. -- Runtime Function: unsigned short fract __satfractunstiuqq (unsigned
  2676. long long A)
  2677. -- Runtime Function: unsigned fract __satfractunstiuhq (unsigned long
  2678. long A)
  2679. -- Runtime Function: unsigned long fract __satfractunstiusq (unsigned
  2680. long long A)
  2681. -- Runtime Function: unsigned long long fract __satfractunstiudq
  2682. (unsigned long long A)
  2683. -- Runtime Function: unsigned short accum __satfractunstiuha (unsigned
  2684. long long A)
  2685. -- Runtime Function: unsigned accum __satfractunstiusa (unsigned long
  2686. long A)
  2687. -- Runtime Function: unsigned long accum __satfractunstiuda (unsigned
  2688. long long A)
  2689. -- Runtime Function: unsigned long long accum __satfractunstiuta
  2690. (unsigned long long A)
  2691. These functions convert from unsigned non-fractionals to
  2692. fractionals, with saturation.
  2693. 
  2694. File: gccint.info, Node: Exception handling routines, Next: Miscellaneous routines, Prev: Fixed-point fractional library routines, Up: Libgcc
  2695. 4.5 Language-independent routines for exception handling
  2696. ========================================================
  2697. document me!
  2698. _Unwind_DeleteException
  2699. _Unwind_Find_FDE
  2700. _Unwind_ForcedUnwind
  2701. _Unwind_GetGR
  2702. _Unwind_GetIP
  2703. _Unwind_GetLanguageSpecificData
  2704. _Unwind_GetRegionStart
  2705. _Unwind_GetTextRelBase
  2706. _Unwind_GetDataRelBase
  2707. _Unwind_RaiseException
  2708. _Unwind_Resume
  2709. _Unwind_SetGR
  2710. _Unwind_SetIP
  2711. _Unwind_FindEnclosingFunction
  2712. _Unwind_SjLj_Register
  2713. _Unwind_SjLj_Unregister
  2714. _Unwind_SjLj_RaiseException
  2715. _Unwind_SjLj_ForcedUnwind
  2716. _Unwind_SjLj_Resume
  2717. __deregister_frame
  2718. __deregister_frame_info
  2719. __deregister_frame_info_bases
  2720. __register_frame
  2721. __register_frame_info
  2722. __register_frame_info_bases
  2723. __register_frame_info_table
  2724. __register_frame_info_table_bases
  2725. __register_frame_table
  2726. 
  2727. File: gccint.info, Node: Miscellaneous routines, Prev: Exception handling routines, Up: Libgcc
  2728. 4.6 Miscellaneous runtime library routines
  2729. ==========================================
  2730. 4.6.1 Cache control functions
  2731. -----------------------------
  2732. -- Runtime Function: void __clear_cache (char *BEG, char *END)
  2733. This function clears the instruction cache between BEG and END.
  2734. 4.6.2 Split stack functions and variables
  2735. -----------------------------------------
  2736. -- Runtime Function: void * __splitstack_find (void *SEGMENT_ARG, void
  2737. *SP, size_t LEN, void **NEXT_SEGMENT, void **NEXT_SP, void
  2738. **INITIAL_SP)
  2739. When using '-fsplit-stack', this call may be used to iterate over
  2740. the stack segments. It may be called like this:
  2741. void *next_segment = NULL;
  2742. void *next_sp = NULL;
  2743. void *initial_sp = NULL;
  2744. void *stack;
  2745. size_t stack_size;
  2746. while ((stack = __splitstack_find (next_segment, next_sp,
  2747. &stack_size, &next_segment,
  2748. &next_sp, &initial_sp))
  2749. != NULL)
  2750. {
  2751. /* Stack segment starts at stack and is
  2752. stack_size bytes long. */
  2753. }
  2754. There is no way to iterate over the stack segments of a different
  2755. thread. However, what is permitted is for one thread to call this
  2756. with the SEGMENT_ARG and SP arguments NULL, to pass NEXT_SEGMENT,
  2757. NEXT_SP, and INITIAL_SP to a different thread, and then to suspend
  2758. one way or another. A different thread may run the subsequent
  2759. '__splitstack_find' iterations. Of course, this will only work if
  2760. the first thread is suspended while the second thread is calling
  2761. '__splitstack_find'. If not, the second thread could be looking at
  2762. the stack while it is changing, and anything could happen.
  2763. -- Variable: __morestack_segments
  2764. -- Variable: __morestack_current_segment
  2765. -- Variable: __morestack_initial_sp
  2766. Internal variables used by the '-fsplit-stack' implementation.
  2767. 
  2768. File: gccint.info, Node: Languages, Next: Source Tree, Prev: Libgcc, Up: Top
  2769. 5 Language Front Ends in GCC
  2770. ****************************
  2771. The interface to front ends for languages in GCC, and in particular the
  2772. 'tree' structure (*note GENERIC::), was initially designed for C, and
  2773. many aspects of it are still somewhat biased towards C and C-like
  2774. languages. It is, however, reasonably well suited to other procedural
  2775. languages, and front ends for many such languages have been written for
  2776. GCC.
  2777. Writing a compiler as a front end for GCC, rather than compiling
  2778. directly to assembler or generating C code which is then compiled by
  2779. GCC, has several advantages:
  2780. * GCC front ends benefit from the support for many different target
  2781. machines already present in GCC.
  2782. * GCC front ends benefit from all the optimizations in GCC. Some of
  2783. these, such as alias analysis, may work better when GCC is
  2784. compiling directly from source code then when it is compiling from
  2785. generated C code.
  2786. * Better debugging information is generated when compiling directly
  2787. from source code than when going via intermediate generated C code.
  2788. Because of the advantages of writing a compiler as a GCC front end, GCC
  2789. front ends have also been created for languages very different from
  2790. those for which GCC was designed, such as the declarative
  2791. logic/functional language Mercury. For these reasons, it may also be
  2792. useful to implement compilers created for specialized purposes (for
  2793. example, as part of a research project) as GCC front ends.
  2794. 
  2795. File: gccint.info, Node: Source Tree, Next: Testsuites, Prev: Languages, Up: Top
  2796. 6 Source Tree Structure and Build System
  2797. ****************************************
  2798. This chapter describes the structure of the GCC source tree, and how GCC
  2799. is built. The user documentation for building and installing GCC is in
  2800. a separate manual (<http://gcc.gnu.org/install/>), with which it is
  2801. presumed that you are familiar.
  2802. * Menu:
  2803. * Configure Terms:: Configuration terminology and history.
  2804. * Top Level:: The top level source directory.
  2805. * gcc Directory:: The 'gcc' subdirectory.
  2806. 
  2807. File: gccint.info, Node: Configure Terms, Next: Top Level, Up: Source Tree
  2808. 6.1 Configure Terms and History
  2809. ===============================
  2810. The configure and build process has a long and colorful history, and can
  2811. be confusing to anyone who doesn't know why things are the way they are.
  2812. While there are other documents which describe the configuration process
  2813. in detail, here are a few things that everyone working on GCC should
  2814. know.
  2815. There are three system names that the build knows about: the machine
  2816. you are building on ("build"), the machine that you are building for
  2817. ("host"), and the machine that GCC will produce code for ("target").
  2818. When you configure GCC, you specify these with '--build=', '--host=',
  2819. and '--target='.
  2820. Specifying the host without specifying the build should be avoided, as
  2821. 'configure' may (and once did) assume that the host you specify is also
  2822. the build, which may not be true.
  2823. If build, host, and target are all the same, this is called a "native".
  2824. If build and host are the same but target is different, this is called a
  2825. "cross". If build, host, and target are all different this is called a
  2826. "canadian" (for obscure reasons dealing with Canada's political party
  2827. and the background of the person working on the build at that time). If
  2828. host and target are the same, but build is different, you are using a
  2829. cross-compiler to build a native for a different system. Some people
  2830. call this a "host-x-host", "crossed native", or "cross-built native".
  2831. If build and target are the same, but host is different, you are using a
  2832. cross compiler to build a cross compiler that produces code for the
  2833. machine you're building on. This is rare, so there is no common way of
  2834. describing it. There is a proposal to call this a "crossback".
  2835. If build and host are the same, the GCC you are building will also be
  2836. used to build the target libraries (like 'libstdc++'). If build and
  2837. host are different, you must have already built and installed a cross
  2838. compiler that will be used to build the target libraries (if you
  2839. configured with '--target=foo-bar', this compiler will be called
  2840. 'foo-bar-gcc').
  2841. In the case of target libraries, the machine you're building for is the
  2842. machine you specified with '--target'. So, build is the machine you're
  2843. building on (no change there), host is the machine you're building for
  2844. (the target libraries are built for the target, so host is the target
  2845. you specified), and target doesn't apply (because you're not building a
  2846. compiler, you're building libraries). The configure/make process will
  2847. adjust these variables as needed. It also sets '$with_cross_host' to
  2848. the original '--host' value in case you need it.
  2849. The 'libiberty' support library is built up to three times: once for
  2850. the host, once for the target (even if they are the same), and once for
  2851. the build if build and host are different. This allows it to be used by
  2852. all programs which are generated in the course of the build process.
  2853. 
  2854. File: gccint.info, Node: Top Level, Next: gcc Directory, Prev: Configure Terms, Up: Source Tree
  2855. 6.2 Top Level Source Directory
  2856. ==============================
  2857. The top level source directory in a GCC distribution contains several
  2858. files and directories that are shared with other software distributions
  2859. such as that of GNU Binutils. It also contains several subdirectories
  2860. that contain parts of GCC and its runtime libraries:
  2861. 'boehm-gc'
  2862. The Boehm conservative garbage collector, optionally used as part
  2863. of the ObjC runtime library when configured with
  2864. '--enable-objc-gc'.
  2865. 'config'
  2866. Autoconf macros and Makefile fragments used throughout the tree.
  2867. 'contrib'
  2868. Contributed scripts that may be found useful in conjunction with
  2869. GCC. One of these, 'contrib/texi2pod.pl', is used to generate man
  2870. pages from Texinfo manuals as part of the GCC build process.
  2871. 'fixincludes'
  2872. The support for fixing system headers to work with GCC. See
  2873. 'fixincludes/README' for more information. The headers fixed by
  2874. this mechanism are installed in 'LIBSUBDIR/include-fixed'. Along
  2875. with those headers, 'README-fixinc' is also installed, as
  2876. 'LIBSUBDIR/include-fixed/README'.
  2877. 'gcc'
  2878. The main sources of GCC itself (except for runtime libraries),
  2879. including optimizers, support for different target architectures,
  2880. language front ends, and testsuites. *Note The 'gcc' Subdirectory:
  2881. gcc Directory, for details.
  2882. 'gnattools'
  2883. Support tools for GNAT.
  2884. 'include'
  2885. Headers for the 'libiberty' library.
  2886. 'intl'
  2887. GNU 'libintl', from GNU 'gettext', for systems which do not include
  2888. it in 'libc'.
  2889. 'libada'
  2890. The Ada runtime library.
  2891. 'libatomic'
  2892. The runtime support library for atomic operations (e.g. for
  2893. '__sync' and '__atomic').
  2894. 'libcpp'
  2895. The C preprocessor library.
  2896. 'libdecnumber'
  2897. The Decimal Float support library.
  2898. 'libffi'
  2899. The 'libffi' library, used as part of the Go runtime library.
  2900. 'libgcc'
  2901. The GCC runtime library.
  2902. 'libgfortran'
  2903. The Fortran runtime library.
  2904. 'libgo'
  2905. The Go runtime library. The bulk of this library is mirrored from
  2906. the master Go repository (https://github.com/golang/go).
  2907. 'libgomp'
  2908. The GNU Offloading and Multi Processing Runtime Library.
  2909. 'libiberty'
  2910. The 'libiberty' library, used for portability and for some
  2911. generally useful data structures and algorithms. *Note
  2912. Introduction: (libiberty)Top, for more information about this
  2913. library.
  2914. 'libitm'
  2915. The runtime support library for transactional memory.
  2916. 'libobjc'
  2917. The Objective-C and Objective-C++ runtime library.
  2918. 'libquadmath'
  2919. The runtime support library for quad-precision math operations.
  2920. 'libphobos'
  2921. The D standard and runtime library. The bulk of this library is
  2922. mirrored from the master D repositories (https://github.com/dlang).
  2923. 'libssp'
  2924. The Stack protector runtime library.
  2925. 'libstdc++-v3'
  2926. The C++ runtime library.
  2927. 'lto-plugin'
  2928. Plugin used by the linker if link-time optimizations are enabled.
  2929. 'maintainer-scripts'
  2930. Scripts used by the 'gccadmin' account on 'gcc.gnu.org'.
  2931. 'zlib'
  2932. The 'zlib' compression library, used for compressing and
  2933. uncompressing GCC's intermediate language in LTO object files.
  2934. The build system in the top level directory, including how recursion
  2935. into subdirectories works and how building runtime libraries for
  2936. multilibs is handled, is documented in a separate manual, included with
  2937. GNU Binutils. *Note GNU configure and build system: (configure)Top, for
  2938. details.
  2939. 
  2940. File: gccint.info, Node: gcc Directory, Prev: Top Level, Up: Source Tree
  2941. 6.3 The 'gcc' Subdirectory
  2942. ==========================
  2943. The 'gcc' directory contains many files that are part of the C sources
  2944. of GCC, other files used as part of the configuration and build process,
  2945. and subdirectories including documentation and a testsuite. The files
  2946. that are sources of GCC are documented in a separate chapter. *Note
  2947. Passes and Files of the Compiler: Passes.
  2948. * Menu:
  2949. * Subdirectories:: Subdirectories of 'gcc'.
  2950. * Configuration:: The configuration process, and the files it uses.
  2951. * Build:: The build system in the 'gcc' directory.
  2952. * Makefile:: Targets in 'gcc/Makefile'.
  2953. * Library Files:: Library source files and headers under 'gcc/'.
  2954. * Headers:: Headers installed by GCC.
  2955. * Documentation:: Building documentation in GCC.
  2956. * Front End:: Anatomy of a language front end.
  2957. * Back End:: Anatomy of a target back end.
  2958. 
  2959. File: gccint.info, Node: Subdirectories, Next: Configuration, Up: gcc Directory
  2960. 6.3.1 Subdirectories of 'gcc'
  2961. -----------------------------
  2962. The 'gcc' directory contains the following subdirectories:
  2963. 'LANGUAGE'
  2964. Subdirectories for various languages. Directories containing a
  2965. file 'config-lang.in' are language subdirectories. The contents of
  2966. the subdirectories 'c' (for C), 'cp' (for C++), 'objc' (for
  2967. Objective-C), 'objcp' (for Objective-C++), and 'lto' (for LTO) are
  2968. documented in this manual (*note Passes and Files of the Compiler:
  2969. Passes.); those for other languages are not. *Note Anatomy of a
  2970. Language Front End: Front End, for details of the files in these
  2971. directories.
  2972. 'common'
  2973. Source files shared between the compiler drivers (such as 'gcc')
  2974. and the compilers proper (such as 'cc1'). If an architecture
  2975. defines target hooks shared between those places, it also has a
  2976. subdirectory in 'common/config'. *Note Target Structure::.
  2977. 'config'
  2978. Configuration files for supported architectures and operating
  2979. systems. *Note Anatomy of a Target Back End: Back End, for details
  2980. of the files in this directory.
  2981. 'doc'
  2982. Texinfo documentation for GCC, together with automatically
  2983. generated man pages and support for converting the installation
  2984. manual to HTML. *Note Documentation::.
  2985. 'ginclude'
  2986. System headers installed by GCC, mainly those required by the C
  2987. standard of freestanding implementations. *Note Headers Installed
  2988. by GCC: Headers, for details of when these and other headers are
  2989. installed.
  2990. 'po'
  2991. Message catalogs with translations of messages produced by GCC into
  2992. various languages, 'LANGUAGE.po'. This directory also contains
  2993. 'gcc.pot', the template for these message catalogues, 'exgettext',
  2994. a wrapper around 'gettext' to extract the messages from the GCC
  2995. sources and create 'gcc.pot', which is run by 'make gcc.pot', and
  2996. 'EXCLUDES', a list of files from which messages should not be
  2997. extracted.
  2998. 'testsuite'
  2999. The GCC testsuites (except for those for runtime libraries). *Note
  3000. Testsuites::.
  3001. 
  3002. File: gccint.info, Node: Configuration, Next: Build, Prev: Subdirectories, Up: gcc Directory
  3003. 6.3.2 Configuration in the 'gcc' Directory
  3004. ------------------------------------------
  3005. The 'gcc' directory is configured with an Autoconf-generated script
  3006. 'configure'. The 'configure' script is generated from 'configure.ac'
  3007. and 'aclocal.m4'. From the files 'configure.ac' and 'acconfig.h',
  3008. Autoheader generates the file 'config.in'. The file 'cstamp-h.in' is
  3009. used as a timestamp.
  3010. * Menu:
  3011. * Config Fragments:: Scripts used by 'configure'.
  3012. * System Config:: The 'config.build', 'config.host', and
  3013. 'config.gcc' files.
  3014. * Configuration Files:: Files created by running 'configure'.
  3015. 
  3016. File: gccint.info, Node: Config Fragments, Next: System Config, Up: Configuration
  3017. 6.3.2.1 Scripts Used by 'configure'
  3018. ...................................
  3019. 'configure' uses some other scripts to help in its work:
  3020. * The standard GNU 'config.sub' and 'config.guess' files, kept in the
  3021. top level directory, are used.
  3022. * The file 'config.gcc' is used to handle configuration specific to
  3023. the particular target machine. The file 'config.build' is used to
  3024. handle configuration specific to the particular build machine. The
  3025. file 'config.host' is used to handle configuration specific to the
  3026. particular host machine. (In general, these should only be used
  3027. for features that cannot reasonably be tested in Autoconf feature
  3028. tests.) *Note The 'config.build'; 'config.host'; and 'config.gcc'
  3029. Files: System Config, for details of the contents of these files.
  3030. * Each language subdirectory has a file 'LANGUAGE/config-lang.in'
  3031. that is used for front-end-specific configuration. *Note The Front
  3032. End 'config-lang.in' File: Front End Config, for details of this
  3033. file.
  3034. * A helper script 'configure.frag' is used as part of creating the
  3035. output of 'configure'.
  3036. 
  3037. File: gccint.info, Node: System Config, Next: Configuration Files, Prev: Config Fragments, Up: Configuration
  3038. 6.3.2.2 The 'config.build'; 'config.host'; and 'config.gcc' Files
  3039. .................................................................
  3040. The 'config.build' file contains specific rules for particular systems
  3041. which GCC is built on. This should be used as rarely as possible, as
  3042. the behavior of the build system can always be detected by autoconf.
  3043. The 'config.host' file contains specific rules for particular systems
  3044. which GCC will run on. This is rarely needed.
  3045. The 'config.gcc' file contains specific rules for particular systems
  3046. which GCC will generate code for. This is usually needed.
  3047. Each file has a list of the shell variables it sets, with descriptions,
  3048. at the top of the file.
  3049. FIXME: document the contents of these files, and what variables should
  3050. be set to control build, host and target configuration.
  3051. 
  3052. File: gccint.info, Node: Configuration Files, Prev: System Config, Up: Configuration
  3053. 6.3.2.3 Files Created by 'configure'
  3054. ....................................
  3055. Here we spell out what files will be set up by 'configure' in the 'gcc'
  3056. directory. Some other files are created as temporary files in the
  3057. configuration process, and are not used in the subsequent build; these
  3058. are not documented.
  3059. * 'Makefile' is constructed from 'Makefile.in', together with the
  3060. host and target fragments (*note Makefile Fragments: Fragments.)
  3061. 't-TARGET' and 'x-HOST' from 'config', if any, and language
  3062. Makefile fragments 'LANGUAGE/Make-lang.in'.
  3063. * 'auto-host.h' contains information about the host machine
  3064. determined by 'configure'. If the host machine is different from
  3065. the build machine, then 'auto-build.h' is also created, containing
  3066. such information about the build machine.
  3067. * 'config.status' is a script that may be run to recreate the current
  3068. configuration.
  3069. * 'configargs.h' is a header containing details of the arguments
  3070. passed to 'configure' to configure GCC, and of the thread model
  3071. used.
  3072. * 'cstamp-h' is used as a timestamp.
  3073. * If a language 'config-lang.in' file (*note The Front End
  3074. 'config-lang.in' File: Front End Config.) sets 'outputs', then the
  3075. files listed in 'outputs' there are also generated.
  3076. The following configuration headers are created from the Makefile,
  3077. using 'mkconfig.sh', rather than directly by 'configure'. 'config.h',
  3078. 'bconfig.h' and 'tconfig.h' all contain the 'xm-MACHINE.h' header, if
  3079. any, appropriate to the host, build and target machines respectively,
  3080. the configuration headers for the target, and some definitions; for the
  3081. host and build machines, these include the autoconfigured headers
  3082. generated by 'configure'. The other configuration headers are
  3083. determined by 'config.gcc'. They also contain the typedefs for 'rtx',
  3084. 'rtvec' and 'tree'.
  3085. * 'config.h', for use in programs that run on the host machine.
  3086. * 'bconfig.h', for use in programs that run on the build machine.
  3087. * 'tconfig.h', for use in programs and libraries for the target
  3088. machine.
  3089. * 'tm_p.h', which includes the header 'MACHINE-protos.h' that
  3090. contains prototypes for functions in the target 'MACHINE.c' file.
  3091. The 'MACHINE-protos.h' header is included after the 'rtl.h' and/or
  3092. 'tree.h' would have been included. The 'tm_p.h' also includes the
  3093. header 'tm-preds.h' which is generated by 'genpreds' program during
  3094. the build to define the declarations and inline functions for the
  3095. predicate functions.
  3096. 
  3097. File: gccint.info, Node: Build, Next: Makefile, Prev: Configuration, Up: gcc Directory
  3098. 6.3.3 Build System in the 'gcc' Directory
  3099. -----------------------------------------
  3100. FIXME: describe the build system, including what is built in what
  3101. stages. Also list the various source files that are used in the build
  3102. process but aren't source files of GCC itself and so aren't documented
  3103. below (*note Passes::).
  3104. 
  3105. File: gccint.info, Node: Makefile, Next: Library Files, Prev: Build, Up: gcc Directory
  3106. 6.3.4 Makefile Targets
  3107. ----------------------
  3108. These targets are available from the 'gcc' directory:
  3109. 'all'
  3110. This is the default target. Depending on what your
  3111. build/host/target configuration is, it coordinates all the things
  3112. that need to be built.
  3113. 'doc'
  3114. Produce info-formatted documentation and man pages. Essentially it
  3115. calls 'make man' and 'make info'.
  3116. 'dvi'
  3117. Produce DVI-formatted documentation.
  3118. 'pdf'
  3119. Produce PDF-formatted documentation.
  3120. 'html'
  3121. Produce HTML-formatted documentation.
  3122. 'man'
  3123. Generate man pages.
  3124. 'info'
  3125. Generate info-formatted pages.
  3126. 'mostlyclean'
  3127. Delete the files made while building the compiler.
  3128. 'clean'
  3129. That, and all the other files built by 'make all'.
  3130. 'distclean'
  3131. That, and all the files created by 'configure'.
  3132. 'maintainer-clean'
  3133. Distclean plus any file that can be generated from other files.
  3134. Note that additional tools may be required beyond what is normally
  3135. needed to build GCC.
  3136. 'srcextra'
  3137. Generates files in the source directory that are not
  3138. version-controlled but should go into a release tarball.
  3139. 'srcinfo'
  3140. 'srcman'
  3141. Copies the info-formatted and manpage documentation into the source
  3142. directory usually for the purpose of generating a release tarball.
  3143. 'install'
  3144. Installs GCC.
  3145. 'uninstall'
  3146. Deletes installed files, though this is not supported.
  3147. 'check'
  3148. Run the testsuite. This creates a 'testsuite' subdirectory that
  3149. has various '.sum' and '.log' files containing the results of the
  3150. testing. You can run subsets with, for example, 'make check-gcc'.
  3151. You can specify specific tests by setting 'RUNTESTFLAGS' to be the
  3152. name of the '.exp' file, optionally followed by (for some tests) an
  3153. equals and a file wildcard, like:
  3154. make check-gcc RUNTESTFLAGS="execute.exp=19980413-*"
  3155. Note that running the testsuite may require additional tools be
  3156. installed, such as Tcl or DejaGnu.
  3157. The toplevel tree from which you start GCC compilation is not the GCC
  3158. directory, but rather a complex Makefile that coordinates the various
  3159. steps of the build, including bootstrapping the compiler and using the
  3160. new compiler to build target libraries.
  3161. When GCC is configured for a native configuration, the default action
  3162. for 'make' is to do a full three-stage bootstrap. This means that GCC
  3163. is built three times--once with the native compiler, once with the
  3164. native-built compiler it just built, and once with the compiler it built
  3165. the second time. In theory, the last two should produce the same
  3166. results, which 'make compare' can check. Each stage is configured
  3167. separately and compiled into a separate directory, to minimize problems
  3168. due to ABI incompatibilities between the native compiler and GCC.
  3169. If you do a change, rebuilding will also start from the first stage and
  3170. "bubble" up the change through the three stages. Each stage is taken
  3171. from its build directory (if it had been built previously), rebuilt, and
  3172. copied to its subdirectory. This will allow you to, for example,
  3173. continue a bootstrap after fixing a bug which causes the stage2 build to
  3174. crash. It does not provide as good coverage of the compiler as
  3175. bootstrapping from scratch, but it ensures that the new code is
  3176. syntactically correct (e.g., that you did not use GCC extensions by
  3177. mistake), and avoids spurious bootstrap comparison failures(1).
  3178. Other targets available from the top level include:
  3179. 'bootstrap-lean'
  3180. Like 'bootstrap', except that the various stages are removed once
  3181. they're no longer needed. This saves disk space.
  3182. 'bootstrap2'
  3183. 'bootstrap2-lean'
  3184. Performs only the first two stages of bootstrap. Unlike a
  3185. three-stage bootstrap, this does not perform a comparison to test
  3186. that the compiler is running properly. Note that the disk space
  3187. required by a "lean" bootstrap is approximately independent of the
  3188. number of stages.
  3189. 'stageN-bubble (N = 1...4, profile, feedback)'
  3190. Rebuild all the stages up to N, with the appropriate flags,
  3191. "bubbling" the changes as described above.
  3192. 'all-stageN (N = 1...4, profile, feedback)'
  3193. Assuming that stage N has already been built, rebuild it with the
  3194. appropriate flags. This is rarely needed.
  3195. 'cleanstrap'
  3196. Remove everything ('make clean') and rebuilds ('make bootstrap').
  3197. 'compare'
  3198. Compares the results of stages 2 and 3. This ensures that the
  3199. compiler is running properly, since it should produce the same
  3200. object files regardless of how it itself was compiled.
  3201. 'profiledbootstrap'
  3202. Builds a compiler with profiling feedback information. In this
  3203. case, the second and third stages are named 'profile' and
  3204. 'feedback', respectively. For more information, see the
  3205. installation instructions.
  3206. 'restrap'
  3207. Restart a bootstrap, so that everything that was not built with the
  3208. system compiler is rebuilt.
  3209. 'stageN-start (N = 1...4, profile, feedback)'
  3210. For each package that is bootstrapped, rename directories so that,
  3211. for example, 'gcc' points to the stageN GCC, compiled with the
  3212. stageN-1 GCC(2).
  3213. You will invoke this target if you need to test or debug the stageN
  3214. GCC. If you only need to execute GCC (but you need not run 'make'
  3215. either to rebuild it or to run test suites), you should be able to
  3216. work directly in the 'stageN-gcc' directory. This makes it easier
  3217. to debug multiple stages in parallel.
  3218. 'stage'
  3219. For each package that is bootstrapped, relocate its build directory
  3220. to indicate its stage. For example, if the 'gcc' directory points
  3221. to the stage2 GCC, after invoking this target it will be renamed to
  3222. 'stage2-gcc'.
  3223. If you wish to use non-default GCC flags when compiling the stage2 and
  3224. stage3 compilers, set 'BOOT_CFLAGS' on the command line when doing
  3225. 'make'.
  3226. Usually, the first stage only builds the languages that the compiler is
  3227. written in: typically, C and maybe Ada. If you are debugging a
  3228. miscompilation of a different stage2 front-end (for example, of the
  3229. Fortran front-end), you may want to have front-ends for other languages
  3230. in the first stage as well. To do so, set 'STAGE1_LANGUAGES' on the
  3231. command line when doing 'make'.
  3232. For example, in the aforementioned scenario of debugging a Fortran
  3233. front-end miscompilation caused by the stage1 compiler, you may need a
  3234. command like
  3235. make stage2-bubble STAGE1_LANGUAGES=c,fortran
  3236. Alternatively, you can use per-language targets to build and test
  3237. languages that are not enabled by default in stage1. For example, 'make
  3238. f951' will build a Fortran compiler even in the stage1 build directory.
  3239. ---------- Footnotes ----------
  3240. (1) Except if the compiler was buggy and miscompiled some of the
  3241. files that were not modified. In this case, it's best to use 'make
  3242. restrap'.
  3243. (2) Customarily, the system compiler is also termed the 'stage0' GCC.
  3244. 
  3245. File: gccint.info, Node: Library Files, Next: Headers, Prev: Makefile, Up: gcc Directory
  3246. 6.3.5 Library Source Files and Headers under the 'gcc' Directory
  3247. ----------------------------------------------------------------
  3248. FIXME: list here, with explanation, all the C source files and headers
  3249. under the 'gcc' directory that aren't built into the GCC executable but
  3250. rather are part of runtime libraries and object files, such as
  3251. 'crtstuff.c' and 'unwind-dw2.c'. *Note Headers Installed by GCC:
  3252. Headers, for more information about the 'ginclude' directory.
  3253. 
  3254. File: gccint.info, Node: Headers, Next: Documentation, Prev: Library Files, Up: gcc Directory
  3255. 6.3.6 Headers Installed by GCC
  3256. ------------------------------
  3257. In general, GCC expects the system C library to provide most of the
  3258. headers to be used with it. However, GCC will fix those headers if
  3259. necessary to make them work with GCC, and will install some headers
  3260. required of freestanding implementations. These headers are installed
  3261. in 'LIBSUBDIR/include'. Headers for non-C runtime libraries are also
  3262. installed by GCC; these are not documented here. (FIXME: document them
  3263. somewhere.)
  3264. Several of the headers GCC installs are in the 'ginclude' directory.
  3265. These headers, 'iso646.h', 'stdarg.h', 'stdbool.h', and 'stddef.h', are
  3266. installed in 'LIBSUBDIR/include', unless the target Makefile fragment
  3267. (*note Target Fragment::) overrides this by setting 'USER_H'.
  3268. In addition to these headers and those generated by fixing system
  3269. headers to work with GCC, some other headers may also be installed in
  3270. 'LIBSUBDIR/include'. 'config.gcc' may set 'extra_headers'; this
  3271. specifies additional headers under 'config' to be installed on some
  3272. systems.
  3273. GCC installs its own version of '<float.h>', from 'ginclude/float.h'.
  3274. This is done to cope with command-line options that change the
  3275. representation of floating point numbers.
  3276. GCC also installs its own version of '<limits.h>'; this is generated
  3277. from 'glimits.h', together with 'limitx.h' and 'limity.h' if the system
  3278. also has its own version of '<limits.h>'. (GCC provides its own header
  3279. because it is required of ISO C freestanding implementations, but needs
  3280. to include the system header from its own header as well because other
  3281. standards such as POSIX specify additional values to be defined in
  3282. '<limits.h>'.) The system's '<limits.h>' header is used via
  3283. 'LIBSUBDIR/include/syslimits.h', which is copied from 'gsyslimits.h' if
  3284. it does not need fixing to work with GCC; if it needs fixing,
  3285. 'syslimits.h' is the fixed copy.
  3286. GCC can also install '<tgmath.h>'. It will do this when 'config.gcc'
  3287. sets 'use_gcc_tgmath' to 'yes'.
  3288. 
  3289. File: gccint.info, Node: Documentation, Next: Front End, Prev: Headers, Up: gcc Directory
  3290. 6.3.7 Building Documentation
  3291. ----------------------------
  3292. The main GCC documentation is in the form of manuals in Texinfo format.
  3293. These are installed in Info format; DVI versions may be generated by
  3294. 'make dvi', PDF versions by 'make pdf', and HTML versions by 'make
  3295. html'. In addition, some man pages are generated from the Texinfo
  3296. manuals, there are some other text files with miscellaneous
  3297. documentation, and runtime libraries have their own documentation
  3298. outside the 'gcc' directory. FIXME: document the documentation for
  3299. runtime libraries somewhere.
  3300. * Menu:
  3301. * Texinfo Manuals:: GCC manuals in Texinfo format.
  3302. * Man Page Generation:: Generating man pages from Texinfo manuals.
  3303. * Miscellaneous Docs:: Miscellaneous text files with documentation.
  3304. 
  3305. File: gccint.info, Node: Texinfo Manuals, Next: Man Page Generation, Up: Documentation
  3306. 6.3.7.1 Texinfo Manuals
  3307. .......................
  3308. The manuals for GCC as a whole, and the C and C++ front ends, are in
  3309. files 'doc/*.texi'. Other front ends have their own manuals in files
  3310. 'LANGUAGE/*.texi'. Common files 'doc/include/*.texi' are provided which
  3311. may be included in multiple manuals; the following files are in
  3312. 'doc/include':
  3313. 'fdl.texi'
  3314. The GNU Free Documentation License.
  3315. 'funding.texi'
  3316. The section "Funding Free Software".
  3317. 'gcc-common.texi'
  3318. Common definitions for manuals.
  3319. 'gpl_v3.texi'
  3320. The GNU General Public License.
  3321. 'texinfo.tex'
  3322. A copy of 'texinfo.tex' known to work with the GCC manuals.
  3323. DVI-formatted manuals are generated by 'make dvi', which uses
  3324. 'texi2dvi' (via the Makefile macro '$(TEXI2DVI)'). PDF-formatted
  3325. manuals are generated by 'make pdf', which uses 'texi2pdf' (via the
  3326. Makefile macro '$(TEXI2PDF)'). HTML formatted manuals are generated by
  3327. 'make html'. Info manuals are generated by 'make info' (which is run as
  3328. part of a bootstrap); this generates the manuals in the source
  3329. directory, using 'makeinfo' via the Makefile macro '$(MAKEINFO)', and
  3330. they are included in release distributions.
  3331. Manuals are also provided on the GCC web site, in both HTML and
  3332. PostScript forms. This is done via the script
  3333. 'maintainer-scripts/update_web_docs_git'. Each manual to be provided
  3334. online must be listed in the definition of 'MANUALS' in that file; a
  3335. file 'NAME.texi' must only appear once in the source tree, and the
  3336. output manual must have the same name as the source file. (However,
  3337. other Texinfo files, included in manuals but not themselves the root
  3338. files of manuals, may have names that appear more than once in the
  3339. source tree.) The manual file 'NAME.texi' should only include other
  3340. files in its own directory or in 'doc/include'. HTML manuals will be
  3341. generated by 'makeinfo --html', PostScript manuals by 'texi2dvi' and
  3342. 'dvips', and PDF manuals by 'texi2pdf'. All Texinfo files that are
  3343. parts of manuals must be version-controlled, even if they are generated
  3344. files, for the generation of online manuals to work.
  3345. The installation manual, 'doc/install.texi', is also provided on the
  3346. GCC web site. The HTML version is generated by the script
  3347. 'doc/install.texi2html'.
  3348. 
  3349. File: gccint.info, Node: Man Page Generation, Next: Miscellaneous Docs, Prev: Texinfo Manuals, Up: Documentation
  3350. 6.3.7.2 Man Page Generation
  3351. ...........................
  3352. Because of user demand, in addition to full Texinfo manuals, man pages
  3353. are provided which contain extracts from those manuals. These man pages
  3354. are generated from the Texinfo manuals using 'contrib/texi2pod.pl' and
  3355. 'pod2man'. (The man page for 'g++', 'cp/g++.1', just contains a '.so'
  3356. reference to 'gcc.1', but all the other man pages are generated from
  3357. Texinfo manuals.)
  3358. Because many systems may not have the necessary tools installed to
  3359. generate the man pages, they are only generated if the 'configure'
  3360. script detects that recent enough tools are installed, and the Makefiles
  3361. allow generating man pages to fail without aborting the build. Man
  3362. pages are also included in release distributions. They are generated in
  3363. the source directory.
  3364. Magic comments in Texinfo files starting '@c man' control what parts of
  3365. a Texinfo file go into a man page. Only a subset of Texinfo is
  3366. supported by 'texi2pod.pl', and it may be necessary to add support for
  3367. more Texinfo features to this script when generating new man pages. To
  3368. improve the man page output, some special Texinfo macros are provided in
  3369. 'doc/include/gcc-common.texi' which 'texi2pod.pl' understands:
  3370. '@gcctabopt'
  3371. Use in the form '@table @gcctabopt' for tables of options, where
  3372. for printed output the effect of '@code' is better than that of
  3373. '@option' but for man page output a different effect is wanted.
  3374. '@gccoptlist'
  3375. Use for summary lists of options in manuals.
  3376. '@gol'
  3377. Use at the end of each line inside '@gccoptlist'. This is
  3378. necessary to avoid problems with differences in how the
  3379. '@gccoptlist' macro is handled by different Texinfo formatters.
  3380. FIXME: describe the 'texi2pod.pl' input language and magic comments in
  3381. more detail.
  3382. 
  3383. File: gccint.info, Node: Miscellaneous Docs, Prev: Man Page Generation, Up: Documentation
  3384. 6.3.7.3 Miscellaneous Documentation
  3385. ...................................
  3386. In addition to the formal documentation that is installed by GCC, there
  3387. are several other text files in the 'gcc' subdirectory with
  3388. miscellaneous documentation:
  3389. 'ABOUT-GCC-NLS'
  3390. Notes on GCC's Native Language Support. FIXME: this should be part
  3391. of this manual rather than a separate file.
  3392. 'ABOUT-NLS'
  3393. Notes on the Free Translation Project.
  3394. 'COPYING'
  3395. 'COPYING3'
  3396. The GNU General Public License, Versions 2 and 3.
  3397. 'COPYING.LIB'
  3398. 'COPYING3.LIB'
  3399. The GNU Lesser General Public License, Versions 2.1 and 3.
  3400. '*ChangeLog*'
  3401. '*/ChangeLog*'
  3402. Change log files for various parts of GCC.
  3403. 'LANGUAGES'
  3404. Details of a few changes to the GCC front-end interface. FIXME:
  3405. the information in this file should be part of general
  3406. documentation of the front-end interface in this manual.
  3407. 'ONEWS'
  3408. Information about new features in old versions of GCC. (For recent
  3409. versions, the information is on the GCC web site.)
  3410. 'README.Portability'
  3411. Information about portability issues when writing code in GCC.
  3412. FIXME: why isn't this part of this manual or of the GCC Coding
  3413. Conventions?
  3414. FIXME: document such files in subdirectories, at least 'config', 'c',
  3415. 'cp', 'objc', 'testsuite'.
  3416. 
  3417. File: gccint.info, Node: Front End, Next: Back End, Prev: Documentation, Up: gcc Directory
  3418. 6.3.8 Anatomy of a Language Front End
  3419. -------------------------------------
  3420. A front end for a language in GCC has the following parts:
  3421. * A directory 'LANGUAGE' under 'gcc' containing source files for that
  3422. front end. *Note The Front End 'LANGUAGE' Directory: Front End
  3423. Directory, for details.
  3424. * A mention of the language in the list of supported languages in
  3425. 'gcc/doc/install.texi'.
  3426. * A mention of the name under which the language's runtime library is
  3427. recognized by '--enable-shared=PACKAGE' in the documentation of
  3428. that option in 'gcc/doc/install.texi'.
  3429. * A mention of any special prerequisites for building the front end
  3430. in the documentation of prerequisites in 'gcc/doc/install.texi'.
  3431. * Details of contributors to that front end in
  3432. 'gcc/doc/contrib.texi'. If the details are in that front end's own
  3433. manual then there should be a link to that manual's list in
  3434. 'contrib.texi'.
  3435. * Information about support for that language in
  3436. 'gcc/doc/frontends.texi'.
  3437. * Information about standards for that language, and the front end's
  3438. support for them, in 'gcc/doc/standards.texi'. This may be a link
  3439. to such information in the front end's own manual.
  3440. * Details of source file suffixes for that language and '-x LANG'
  3441. options supported, in 'gcc/doc/invoke.texi'.
  3442. * Entries in 'default_compilers' in 'gcc.c' for source file suffixes
  3443. for that language.
  3444. * Preferably testsuites, which may be under 'gcc/testsuite' or
  3445. runtime library directories. FIXME: document somewhere how to
  3446. write testsuite harnesses.
  3447. * Probably a runtime library for the language, outside the 'gcc'
  3448. directory. FIXME: document this further.
  3449. * Details of the directories of any runtime libraries in
  3450. 'gcc/doc/sourcebuild.texi'.
  3451. * Check targets in 'Makefile.def' for the top-level 'Makefile' to
  3452. check just the compiler or the compiler and runtime library for the
  3453. language.
  3454. If the front end is added to the official GCC source repository, the
  3455. following are also necessary:
  3456. * At least one Bugzilla component for bugs in that front end and
  3457. runtime libraries. This category needs to be added to the Bugzilla
  3458. database.
  3459. * Normally, one or more maintainers of that front end listed in
  3460. 'MAINTAINERS'.
  3461. * Mentions on the GCC web site in 'index.html' and 'frontends.html',
  3462. with any relevant links on 'readings.html'. (Front ends that are
  3463. not an official part of GCC may also be listed on 'frontends.html',
  3464. with relevant links.)
  3465. * A news item on 'index.html', and possibly an announcement on the
  3466. <gcc-announce@gcc.gnu.org> mailing list.
  3467. * The front end's manuals should be mentioned in
  3468. 'maintainer-scripts/update_web_docs_git' (*note Texinfo Manuals::)
  3469. and the online manuals should be linked to from
  3470. 'onlinedocs/index.html'.
  3471. * Any old releases or CVS repositories of the front end, before its
  3472. inclusion in GCC, should be made available on the GCC web site at
  3473. <https://gcc.gnu.org/pub/gcc/old-releases/>.
  3474. * The release and snapshot script 'maintainer-scripts/gcc_release'
  3475. should be updated to generate appropriate tarballs for this front
  3476. end.
  3477. * If this front end includes its own version files that include the
  3478. current date, 'maintainer-scripts/update_version' should be updated
  3479. accordingly.
  3480. * Menu:
  3481. * Front End Directory:: The front end 'LANGUAGE' directory.
  3482. * Front End Config:: The front end 'config-lang.in' file.
  3483. * Front End Makefile:: The front end 'Make-lang.in' file.
  3484. 
  3485. File: gccint.info, Node: Front End Directory, Next: Front End Config, Up: Front End
  3486. 6.3.8.1 The Front End 'LANGUAGE' Directory
  3487. ..........................................
  3488. A front end 'LANGUAGE' directory contains the source files of that front
  3489. end (but not of any runtime libraries, which should be outside the 'gcc'
  3490. directory). This includes documentation, and possibly some subsidiary
  3491. programs built alongside the front end. Certain files are special and
  3492. other parts of the compiler depend on their names:
  3493. 'config-lang.in'
  3494. This file is required in all language subdirectories. *Note The
  3495. Front End 'config-lang.in' File: Front End Config, for details of
  3496. its contents
  3497. 'Make-lang.in'
  3498. This file is required in all language subdirectories. *Note The
  3499. Front End 'Make-lang.in' File: Front End Makefile, for details of
  3500. its contents.
  3501. 'lang.opt'
  3502. This file registers the set of switches that the front end accepts
  3503. on the command line, and their '--help' text. *Note Options::.
  3504. 'lang-specs.h'
  3505. This file provides entries for 'default_compilers' in 'gcc.c' which
  3506. override the default of giving an error that a compiler for that
  3507. language is not installed.
  3508. 'LANGUAGE-tree.def'
  3509. This file, which need not exist, defines any language-specific tree
  3510. codes.
  3511. 
  3512. File: gccint.info, Node: Front End Config, Next: Front End Makefile, Prev: Front End Directory, Up: Front End
  3513. 6.3.8.2 The Front End 'config-lang.in' File
  3514. ...........................................
  3515. Each language subdirectory contains a 'config-lang.in' file. This file
  3516. is a shell script that may define some variables describing the
  3517. language:
  3518. 'language'
  3519. This definition must be present, and gives the name of the language
  3520. for some purposes such as arguments to '--enable-languages'.
  3521. 'lang_requires'
  3522. If defined, this variable lists (space-separated) language front
  3523. ends other than C that this front end requires to be enabled (with
  3524. the names given being their 'language' settings). For example, the
  3525. Obj-C++ front end depends on the C++ and ObjC front ends, so sets
  3526. 'lang_requires="objc c++"'.
  3527. 'subdir_requires'
  3528. If defined, this variable lists (space-separated) front end
  3529. directories other than C that this front end requires to be
  3530. present. For example, the Objective-C++ front end uses source
  3531. files from the C++ and Objective-C front ends, so sets
  3532. 'subdir_requires="cp objc"'.
  3533. 'target_libs'
  3534. If defined, this variable lists (space-separated) targets in the
  3535. top level 'Makefile' to build the runtime libraries for this
  3536. language, such as 'target-libobjc'.
  3537. 'lang_dirs'
  3538. If defined, this variable lists (space-separated) top level
  3539. directories (parallel to 'gcc'), apart from the runtime libraries,
  3540. that should not be configured if this front end is not built.
  3541. 'build_by_default'
  3542. If defined to 'no', this language front end is not built unless
  3543. enabled in a '--enable-languages' argument. Otherwise, front ends
  3544. are built by default, subject to any special logic in
  3545. 'configure.ac' (as is present to disable the Ada front end if the
  3546. Ada compiler is not already installed).
  3547. 'boot_language'
  3548. If defined to 'yes', this front end is built in stage1 of the
  3549. bootstrap. This is only relevant to front ends written in their
  3550. own languages.
  3551. 'compilers'
  3552. If defined, a space-separated list of compiler executables that
  3553. will be run by the driver. The names here will each end with
  3554. '\$(exeext)'.
  3555. 'outputs'
  3556. If defined, a space-separated list of files that should be
  3557. generated by 'configure' substituting values in them. This
  3558. mechanism can be used to create a file 'LANGUAGE/Makefile' from
  3559. 'LANGUAGE/Makefile.in', but this is deprecated, building everything
  3560. from the single 'gcc/Makefile' is preferred.
  3561. 'gtfiles'
  3562. If defined, a space-separated list of files that should be scanned
  3563. by 'gengtype.c' to generate the garbage collection tables and
  3564. routines for this language. This excludes the files that are
  3565. common to all front ends. *Note Type Information::.
  3566. 
  3567. File: gccint.info, Node: Front End Makefile, Prev: Front End Config, Up: Front End
  3568. 6.3.8.3 The Front End 'Make-lang.in' File
  3569. .........................................
  3570. Each language subdirectory contains a 'Make-lang.in' file. It contains
  3571. targets 'LANG.HOOK' (where 'LANG' is the setting of 'language' in
  3572. 'config-lang.in') for the following values of 'HOOK', and any other
  3573. Makefile rules required to build those targets (which may if necessary
  3574. use other Makefiles specified in 'outputs' in 'config-lang.in', although
  3575. this is deprecated). It also adds any testsuite targets that can use
  3576. the standard rule in 'gcc/Makefile.in' to the variable 'lang_checks'.
  3577. 'all.cross'
  3578. 'start.encap'
  3579. 'rest.encap'
  3580. FIXME: exactly what goes in each of these targets?
  3581. 'tags'
  3582. Build an 'etags' 'TAGS' file in the language subdirectory in the
  3583. source tree.
  3584. 'info'
  3585. Build info documentation for the front end, in the build directory.
  3586. This target is only called by 'make bootstrap' if a suitable
  3587. version of 'makeinfo' is available, so does not need to check for
  3588. this, and should fail if an error occurs.
  3589. 'dvi'
  3590. Build DVI documentation for the front end, in the build directory.
  3591. This should be done using '$(TEXI2DVI)', with appropriate '-I'
  3592. arguments pointing to directories of included files.
  3593. 'pdf'
  3594. Build PDF documentation for the front end, in the build directory.
  3595. This should be done using '$(TEXI2PDF)', with appropriate '-I'
  3596. arguments pointing to directories of included files.
  3597. 'html'
  3598. Build HTML documentation for the front end, in the build directory.
  3599. 'man'
  3600. Build generated man pages for the front end from Texinfo manuals
  3601. (*note Man Page Generation::), in the build directory. This target
  3602. is only called if the necessary tools are available, but should
  3603. ignore errors so as not to stop the build if errors occur; man
  3604. pages are optional and the tools involved may be installed in a
  3605. broken way.
  3606. 'install-common'
  3607. Install everything that is part of the front end, apart from the
  3608. compiler executables listed in 'compilers' in 'config-lang.in'.
  3609. 'install-info'
  3610. Install info documentation for the front end, if it is present in
  3611. the source directory. This target should have dependencies on info
  3612. files that should be installed.
  3613. 'install-man'
  3614. Install man pages for the front end. This target should ignore
  3615. errors.
  3616. 'install-plugin'
  3617. Install headers needed for plugins.
  3618. 'srcextra'
  3619. Copies its dependencies into the source directory. This generally
  3620. should be used for generated files such as Bison output files which
  3621. are not version-controlled, but should be included in any release
  3622. tarballs. This target will be executed during a bootstrap if
  3623. '--enable-generated-files-in-srcdir' was specified as a 'configure'
  3624. option.
  3625. 'srcinfo'
  3626. 'srcman'
  3627. Copies its dependencies into the source directory. These targets
  3628. will be executed during a bootstrap if
  3629. '--enable-generated-files-in-srcdir' was specified as a 'configure'
  3630. option.
  3631. 'uninstall'
  3632. Uninstall files installed by installing the compiler. This is
  3633. currently documented not to be supported, so the hook need not do
  3634. anything.
  3635. 'mostlyclean'
  3636. 'clean'
  3637. 'distclean'
  3638. 'maintainer-clean'
  3639. The language parts of the standard GNU '*clean' targets. *Note
  3640. Standard Targets for Users: (standards)Standard Targets, for
  3641. details of the standard targets. For GCC, 'maintainer-clean'
  3642. should delete all generated files in the source directory that are
  3643. not version-controlled, but should not delete anything that is.
  3644. 'Make-lang.in' must also define a variable 'LANG_OBJS' to a list of
  3645. host object files that are used by that language.
  3646. 
  3647. File: gccint.info, Node: Back End, Prev: Front End, Up: gcc Directory
  3648. 6.3.9 Anatomy of a Target Back End
  3649. ----------------------------------
  3650. A back end for a target architecture in GCC has the following parts:
  3651. * A directory 'MACHINE' under 'gcc/config', containing a machine
  3652. description 'MACHINE.md' file (*note Machine Descriptions: Machine
  3653. Desc.), header files 'MACHINE.h' and 'MACHINE-protos.h' and a
  3654. source file 'MACHINE.c' (*note Target Description Macros and
  3655. Functions: Target Macros.), possibly a target Makefile fragment
  3656. 't-MACHINE' (*note The Target Makefile Fragment: Target Fragment.),
  3657. and maybe some other files. The names of these files may be
  3658. changed from the defaults given by explicit specifications in
  3659. 'config.gcc'.
  3660. * If necessary, a file 'MACHINE-modes.def' in the 'MACHINE'
  3661. directory, containing additional machine modes to represent
  3662. condition codes. *Note Condition Code::, for further details.
  3663. * An optional 'MACHINE.opt' file in the 'MACHINE' directory,
  3664. containing a list of target-specific options. You can also add
  3665. other option files using the 'extra_options' variable in
  3666. 'config.gcc'. *Note Options::.
  3667. * Entries in 'config.gcc' (*note The 'config.gcc' File: System
  3668. Config.) for the systems with this target architecture.
  3669. * Documentation in 'gcc/doc/invoke.texi' for any command-line options
  3670. supported by this target (*note Run-time Target Specification:
  3671. Run-time Target.). This means both entries in the summary table of
  3672. options and details of the individual options.
  3673. * Documentation in 'gcc/doc/extend.texi' for any target-specific
  3674. attributes supported (*note Defining target-specific uses of
  3675. '__attribute__': Target Attributes.), including where the same
  3676. attribute is already supported on some targets, which are
  3677. enumerated in the manual.
  3678. * Documentation in 'gcc/doc/extend.texi' for any target-specific
  3679. pragmas supported.
  3680. * Documentation in 'gcc/doc/extend.texi' of any target-specific
  3681. built-in functions supported.
  3682. * Documentation in 'gcc/doc/extend.texi' of any target-specific
  3683. format checking styles supported.
  3684. * Documentation in 'gcc/doc/md.texi' of any target-specific
  3685. constraint letters (*note Constraints for Particular Machines:
  3686. Machine Constraints.).
  3687. * A note in 'gcc/doc/contrib.texi' under the person or people who
  3688. contributed the target support.
  3689. * Entries in 'gcc/doc/install.texi' for all target triplets supported
  3690. with this target architecture, giving details of any special notes
  3691. about installation for this target, or saying that there are no
  3692. special notes if there are none.
  3693. * Possibly other support outside the 'gcc' directory for runtime
  3694. libraries. FIXME: reference docs for this. The 'libstdc++'
  3695. porting manual needs to be installed as info for this to work, or
  3696. to be a chapter of this manual.
  3697. The 'MACHINE.h' header is included very early in GCC's standard
  3698. sequence of header files, while 'MACHINE-protos.h' is included late in
  3699. the sequence. Thus 'MACHINE-protos.h' can include declarations
  3700. referencing types that are not defined when 'MACHINE.h' is included,
  3701. specifically including those from 'rtl.h' and 'tree.h'. Since both RTL
  3702. and tree types may not be available in every context where
  3703. 'MACHINE-protos.h' is included, in this file you should guard
  3704. declarations using these types inside appropriate '#ifdef RTX_CODE' or
  3705. '#ifdef TREE_CODE' conditional code segments.
  3706. If the backend uses shared data structures that require 'GTY' markers
  3707. for garbage collection (*note Type Information::), you must declare
  3708. those in 'MACHINE.h' rather than 'MACHINE-protos.h'. Any definitions
  3709. required for building libgcc must also go in 'MACHINE.h'.
  3710. GCC uses the macro 'IN_TARGET_CODE' to distinguish between
  3711. machine-specific '.c' and '.cc' files and machine-independent '.c' and
  3712. '.cc' files. Machine-specific files should use the directive:
  3713. #define IN_TARGET_CODE 1
  3714. before including 'config.h'.
  3715. If the back end is added to the official GCC source repository, the
  3716. following are also necessary:
  3717. * An entry for the target architecture in 'readings.html' on the GCC
  3718. web site, with any relevant links.
  3719. * Details of the properties of the back end and target architecture
  3720. in 'backends.html' on the GCC web site.
  3721. * A news item about the contribution of support for that target
  3722. architecture, in 'index.html' on the GCC web site.
  3723. * Normally, one or more maintainers of that target listed in
  3724. 'MAINTAINERS'. Some existing architectures may be unmaintained,
  3725. but it would be unusual to add support for a target that does not
  3726. have a maintainer when support is added.
  3727. * Target triplets covering all 'config.gcc' stanzas for the target,
  3728. in the list in 'contrib/config-list.mk'.
  3729. 
  3730. File: gccint.info, Node: Testsuites, Next: Options, Prev: Source Tree, Up: Top
  3731. 7 Testsuites
  3732. ************
  3733. GCC contains several testsuites to help maintain compiler quality. Most
  3734. of the runtime libraries and language front ends in GCC have testsuites.
  3735. Currently only the C language testsuites are documented here; FIXME:
  3736. document the others.
  3737. * Menu:
  3738. * Test Idioms:: Idioms used in testsuite code.
  3739. * Test Directives:: Directives used within DejaGnu tests.
  3740. * Ada Tests:: The Ada language testsuites.
  3741. * C Tests:: The C language testsuites.
  3742. * LTO Testing:: Support for testing link-time optimizations.
  3743. * gcov Testing:: Support for testing gcov.
  3744. * profopt Testing:: Support for testing profile-directed optimizations.
  3745. * compat Testing:: Support for testing binary compatibility.
  3746. * Torture Tests:: Support for torture testing using multiple options.
  3747. * GIMPLE Tests:: Support for testing GIMPLE passes.
  3748. * RTL Tests:: Support for testing RTL passes.
  3749. 
  3750. File: gccint.info, Node: Test Idioms, Next: Test Directives, Up: Testsuites
  3751. 7.1 Idioms Used in Testsuite Code
  3752. =================================
  3753. In general, C testcases have a trailing '-N.c', starting with '-1.c', in
  3754. case other testcases with similar names are added later. If the test is
  3755. a test of some well-defined feature, it should have a name referring to
  3756. that feature such as 'FEATURE-1.c'. If it does not test a well-defined
  3757. feature but just happens to exercise a bug somewhere in the compiler,
  3758. and a bug report has been filed for this bug in the GCC bug database,
  3759. 'prBUG-NUMBER-1.c' is the appropriate form of name. Otherwise (for
  3760. miscellaneous bugs not filed in the GCC bug database), and previously
  3761. more generally, test cases are named after the date on which they were
  3762. added. This allows people to tell at a glance whether a test failure is
  3763. because of a recently found bug that has not yet been fixed, or whether
  3764. it may be a regression, but does not give any other information about
  3765. the bug or where discussion of it may be found. Some other language
  3766. testsuites follow similar conventions.
  3767. In the 'gcc.dg' testsuite, it is often necessary to test that an error
  3768. is indeed a hard error and not just a warning--for example, where it is
  3769. a constraint violation in the C standard, which must become an error
  3770. with '-pedantic-errors'. The following idiom, where the first line
  3771. shown is line LINE of the file and the line that generates the error, is
  3772. used for this:
  3773. /* { dg-bogus "warning" "warning in place of error" } */
  3774. /* { dg-error "REGEXP" "MESSAGE" { target *-*-* } LINE } */
  3775. It may be necessary to check that an expression is an integer constant
  3776. expression and has a certain value. To check that 'E' has value 'V', an
  3777. idiom similar to the following is used:
  3778. char x[((E) == (V) ? 1 : -1)];
  3779. In 'gcc.dg' tests, '__typeof__' is sometimes used to make assertions
  3780. about the types of expressions. See, for example,
  3781. 'gcc.dg/c99-condexpr-1.c'. The more subtle uses depend on the exact
  3782. rules for the types of conditional expressions in the C standard; see,
  3783. for example, 'gcc.dg/c99-intconst-1.c'.
  3784. It is useful to be able to test that optimizations are being made
  3785. properly. This cannot be done in all cases, but it can be done where
  3786. the optimization will lead to code being optimized away (for example,
  3787. where flow analysis or alias analysis should show that certain code
  3788. cannot be called) or to functions not being called because they have
  3789. been expanded as built-in functions. Such tests go in
  3790. 'gcc.c-torture/execute'. Where code should be optimized away, a call to
  3791. a nonexistent function such as 'link_failure ()' may be inserted; a
  3792. definition
  3793. #ifndef __OPTIMIZE__
  3794. void
  3795. link_failure (void)
  3796. {
  3797. abort ();
  3798. }
  3799. #endif
  3800. will also be needed so that linking still succeeds when the test is run
  3801. without optimization. When all calls to a built-in function should have
  3802. been optimized and no calls to the non-built-in version of the function
  3803. should remain, that function may be defined as 'static' to call 'abort
  3804. ()' (although redeclaring a function as static may not work on all
  3805. targets).
  3806. All testcases must be portable. Target-specific testcases must have
  3807. appropriate code to avoid causing failures on unsupported systems;
  3808. unfortunately, the mechanisms for this differ by directory.
  3809. FIXME: discuss non-C testsuites here.
  3810. 
  3811. File: gccint.info, Node: Test Directives, Next: Ada Tests, Prev: Test Idioms, Up: Testsuites
  3812. 7.2 Directives used within DejaGnu tests
  3813. ========================================
  3814. * Menu:
  3815. * Directives:: Syntax and descriptions of test directives.
  3816. * Selectors:: Selecting targets to which a test applies.
  3817. * Effective-Target Keywords:: Keywords describing target attributes.
  3818. * Add Options:: Features for 'dg-add-options'
  3819. * Require Support:: Variants of 'dg-require-SUPPORT'
  3820. * Final Actions:: Commands for use in 'dg-final'
  3821. 
  3822. File: gccint.info, Node: Directives, Next: Selectors, Up: Test Directives
  3823. 7.2.1 Syntax and Descriptions of test directives
  3824. ------------------------------------------------
  3825. Test directives appear within comments in a test source file and begin
  3826. with 'dg-'. Some of these are defined within DejaGnu and others are
  3827. local to the GCC testsuite.
  3828. The order in which test directives appear in a test can be important:
  3829. directives local to GCC sometimes override information used by the
  3830. DejaGnu directives, which know nothing about the GCC directives, so the
  3831. DejaGnu directives must precede GCC directives.
  3832. Several test directives include selectors (*note Selectors::) which are
  3833. usually preceded by the keyword 'target' or 'xfail'.
  3834. 7.2.1.1 Specify how to build the test
  3835. .....................................
  3836. '{ dg-do DO-WHAT-KEYWORD [{ target/xfail SELECTOR }] }'
  3837. DO-WHAT-KEYWORD specifies how the test is compiled and whether it
  3838. is executed. It is one of:
  3839. 'preprocess'
  3840. Compile with '-E' to run only the preprocessor.
  3841. 'compile'
  3842. Compile with '-S' to produce an assembly code file.
  3843. 'assemble'
  3844. Compile with '-c' to produce a relocatable object file.
  3845. 'link'
  3846. Compile, assemble, and link to produce an executable file.
  3847. 'run'
  3848. Produce and run an executable file, which is expected to
  3849. return an exit code of 0.
  3850. The default is 'compile'. That can be overridden for a set of
  3851. tests by redefining 'dg-do-what-default' within the '.exp' file for
  3852. those tests.
  3853. If the directive includes the optional '{ target SELECTOR }' then
  3854. the test is skipped unless the target system matches the SELECTOR.
  3855. If DO-WHAT-KEYWORD is 'run' and the directive includes the optional
  3856. '{ xfail SELECTOR }' and the selector is met then the test is
  3857. expected to fail. The 'xfail' clause is ignored for other values
  3858. of DO-WHAT-KEYWORD; those tests can use directive 'dg-xfail-if'.
  3859. 7.2.1.2 Specify additional compiler options
  3860. ...........................................
  3861. '{ dg-options OPTIONS [{ target SELECTOR }] }'
  3862. This DejaGnu directive provides a list of compiler options, to be
  3863. used if the target system matches SELECTOR, that replace the
  3864. default options used for this set of tests.
  3865. '{ dg-add-options FEATURE ... }'
  3866. Add any compiler options that are needed to access certain
  3867. features. This directive does nothing on targets that enable the
  3868. features by default, or that don't provide them at all. It must
  3869. come after all 'dg-options' directives. For supported values of
  3870. FEATURE see *note Add Options::.
  3871. '{ dg-additional-options OPTIONS [{ target SELECTOR }] }'
  3872. This directive provides a list of compiler options, to be used if
  3873. the target system matches SELECTOR, that are added to the default
  3874. options used for this set of tests.
  3875. 7.2.1.3 Modify the test timeout value
  3876. .....................................
  3877. The normal timeout limit, in seconds, is found by searching the
  3878. following in order:
  3879. * the value defined by an earlier 'dg-timeout' directive in the test
  3880. * variable TOOL_TIMEOUT defined by the set of tests
  3881. * GCC,TIMEOUT set in the target board
  3882. * 300
  3883. '{ dg-timeout N [{target SELECTOR }] }'
  3884. Set the time limit for the compilation and for the execution of the
  3885. test to the specified number of seconds.
  3886. '{ dg-timeout-factor X [{ target SELECTOR }] }'
  3887. Multiply the normal time limit for compilation and execution of the
  3888. test by the specified floating-point factor.
  3889. 7.2.1.4 Skip a test for some targets
  3890. ....................................
  3891. '{ dg-skip-if COMMENT { SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]] }'
  3892. Arguments INCLUDE-OPTS and EXCLUDE-OPTS are lists in which each
  3893. element is a string of zero or more GCC options. Skip the test if
  3894. all of the following conditions are met:
  3895. * the test system is included in SELECTOR
  3896. * for at least one of the option strings in INCLUDE-OPTS, every
  3897. option from that string is in the set of options with which
  3898. the test would be compiled; use '"*"' for an INCLUDE-OPTS list
  3899. that matches any options; that is the default if INCLUDE-OPTS
  3900. is not specified
  3901. * for each of the option strings in EXCLUDE-OPTS, at least one
  3902. option from that string is not in the set of options with
  3903. which the test would be compiled; use '""' for an empty
  3904. EXCLUDE-OPTS list; that is the default if EXCLUDE-OPTS is not
  3905. specified
  3906. For example, to skip a test if option '-Os' is present:
  3907. /* { dg-skip-if "" { *-*-* } { "-Os" } { "" } } */
  3908. To skip a test if both options '-O2' and '-g' are present:
  3909. /* { dg-skip-if "" { *-*-* } { "-O2 -g" } { "" } } */
  3910. To skip a test if either '-O2' or '-O3' is present:
  3911. /* { dg-skip-if "" { *-*-* } { "-O2" "-O3" } { "" } } */
  3912. To skip a test unless option '-Os' is present:
  3913. /* { dg-skip-if "" { *-*-* } { "*" } { "-Os" } } */
  3914. To skip a test if either '-O2' or '-O3' is used with '-g' but not
  3915. if '-fpic' is also present:
  3916. /* { dg-skip-if "" { *-*-* } { "-O2 -g" "-O3 -g" } { "-fpic" } } */
  3917. '{ dg-require-effective-target KEYWORD [{ SELECTOR }] }'
  3918. Skip the test if the test target, including current multilib flags,
  3919. is not covered by the effective-target keyword. If the directive
  3920. includes the optional '{ SELECTOR }' then the effective-target test
  3921. is only performed if the target system matches the SELECTOR. This
  3922. directive must appear after any 'dg-do' directive in the test and
  3923. before any 'dg-additional-sources' directive. *Note
  3924. Effective-Target Keywords::.
  3925. '{ dg-require-SUPPORT args }'
  3926. Skip the test if the target does not provide the required support.
  3927. These directives must appear after any 'dg-do' directive in the
  3928. test and before any 'dg-additional-sources' directive. They
  3929. require at least one argument, which can be an empty string if the
  3930. specific procedure does not examine the argument. *Note Require
  3931. Support::, for a complete list of these directives.
  3932. 7.2.1.5 Expect a test to fail for some targets
  3933. ..............................................
  3934. '{ dg-xfail-if COMMENT { SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]] }'
  3935. Expect the test to fail if the conditions (which are the same as
  3936. for 'dg-skip-if') are met. This does not affect the execute step.
  3937. '{ dg-xfail-run-if COMMENT { SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]] }'
  3938. Expect the execute step of a test to fail if the conditions (which
  3939. are the same as for 'dg-skip-if') are met.
  3940. 7.2.1.6 Expect the test executable to fail
  3941. ..........................................
  3942. '{ dg-shouldfail COMMENT [{ SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]]] }'
  3943. Expect the test executable to return a nonzero exit status if the
  3944. conditions (which are the same as for 'dg-skip-if') are met.
  3945. 7.2.1.7 Verify compiler messages
  3946. ................................
  3947. Where LINE is an accepted argument for these commands, a value of '0'
  3948. can be used if there is no line associated with the message.
  3949. '{ dg-error REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3950. This DejaGnu directive appears on a source line that is expected to
  3951. get an error message, or else specifies the source line associated
  3952. with the message. If there is no message for that line or if the
  3953. text of that message is not matched by REGEXP then the check fails
  3954. and COMMENT is included in the 'FAIL' message. The check does not
  3955. look for the string 'error' unless it is part of REGEXP.
  3956. '{ dg-warning REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3957. This DejaGnu directive appears on a source line that is expected to
  3958. get a warning message, or else specifies the source line associated
  3959. with the message. If there is no message for that line or if the
  3960. text of that message is not matched by REGEXP then the check fails
  3961. and COMMENT is included in the 'FAIL' message. The check does not
  3962. look for the string 'warning' unless it is part of REGEXP.
  3963. '{ dg-message REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3964. The line is expected to get a message other than an error or
  3965. warning. If there is no message for that line or if the text of
  3966. that message is not matched by REGEXP then the check fails and
  3967. COMMENT is included in the 'FAIL' message.
  3968. '{ dg-bogus REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3969. This DejaGnu directive appears on a source line that should not get
  3970. a message matching REGEXP, or else specifies the source line
  3971. associated with the bogus message. It is usually used with 'xfail'
  3972. to indicate that the message is a known problem for a particular
  3973. set of targets.
  3974. '{ dg-line LINENUMVAR }'
  3975. This DejaGnu directive sets the variable LINENUMVAR to the line
  3976. number of the source line. The variable LINENUMVAR can then be
  3977. used in subsequent 'dg-error', 'dg-warning', 'dg-message' and
  3978. 'dg-bogus' directives. For example:
  3979. int a; /* { dg-line first_def_a } */
  3980. float a; /* { dg-error "conflicting types of" } */
  3981. /* { dg-message "previous declaration of" "" { target *-*-* } first_def_a } */
  3982. '{ dg-excess-errors COMMENT [{ target/xfail SELECTOR }] }'
  3983. This DejaGnu directive indicates that the test is expected to fail
  3984. due to compiler messages that are not handled by 'dg-error',
  3985. 'dg-warning' or 'dg-bogus'. For this directive 'xfail' has the
  3986. same effect as 'target'.
  3987. '{ dg-prune-output REGEXP }'
  3988. Prune messages matching REGEXP from the test output.
  3989. 7.2.1.8 Verify output of the test executable
  3990. ............................................
  3991. '{ dg-output REGEXP [{ target/xfail SELECTOR }] }'
  3992. This DejaGnu directive compares REGEXP to the combined output that
  3993. the test executable writes to 'stdout' and 'stderr'.
  3994. 7.2.1.9 Specify additional files for a test
  3995. ...........................................
  3996. '{ dg-additional-files "FILELIST" }'
  3997. Specify additional files, other than source files, that must be
  3998. copied to the system where the compiler runs.
  3999. '{ dg-additional-sources "FILELIST" }'
  4000. Specify additional source files to appear in the compile line
  4001. following the main test file.
  4002. 7.2.1.10 Add checks at the end of a test
  4003. ........................................
  4004. '{ dg-final { LOCAL-DIRECTIVE } }'
  4005. This DejaGnu directive is placed within a comment anywhere in the
  4006. source file and is processed after the test has been compiled and
  4007. run. Multiple 'dg-final' commands are processed in the order in
  4008. which they appear in the source file. *Note Final Actions::, for a
  4009. list of directives that can be used within 'dg-final'.
  4010. 
  4011. File: gccint.info, Node: Selectors, Next: Effective-Target Keywords, Prev: Directives, Up: Test Directives
  4012. 7.2.2 Selecting targets to which a test applies
  4013. -----------------------------------------------
  4014. Several test directives include SELECTORs to limit the targets for which
  4015. a test is run or to declare that a test is expected to fail on
  4016. particular targets.
  4017. A selector is:
  4018. * one or more target triplets, possibly including wildcard
  4019. characters; use '*-*-*' to match any target
  4020. * a single effective-target keyword (*note Effective-Target
  4021. Keywords::)
  4022. * a logical expression
  4023. Depending on the context, the selector specifies whether a test is
  4024. skipped and reported as unsupported or is expected to fail. A context
  4025. that allows either 'target' or 'xfail' also allows '{ target SELECTOR1
  4026. xfail SELECTOR2 }' to skip the test for targets that don't match
  4027. SELECTOR1 and the test to fail for targets that match SELECTOR2.
  4028. A selector expression appears within curly braces and uses a single
  4029. logical operator: one of '!', '&&', or '||'. An operand is another
  4030. selector expression, an effective-target keyword, a single target
  4031. triplet, or a list of target triplets within quotes or curly braces.
  4032. For example:
  4033. { target { ! "hppa*-*-* ia64*-*-*" } }
  4034. { target { powerpc*-*-* && lp64 } }
  4035. { xfail { lp64 || vect_no_align } }
  4036. 
  4037. File: gccint.info, Node: Effective-Target Keywords, Next: Add Options, Prev: Selectors, Up: Test Directives
  4038. 7.2.3 Keywords describing target attributes
  4039. -------------------------------------------
  4040. Effective-target keywords identify sets of targets that support
  4041. particular functionality. They are used to limit tests to be run only
  4042. for particular targets, or to specify that particular sets of targets
  4043. are expected to fail some tests.
  4044. Effective-target keywords are defined in 'lib/target-supports.exp' in
  4045. the GCC testsuite, with the exception of those that are documented as
  4046. being local to a particular test directory.
  4047. The 'effective target' takes into account all of the compiler options
  4048. with which the test will be compiled, including the multilib options.
  4049. By convention, keywords ending in '_nocache' can also include options
  4050. specified for the particular test in an earlier 'dg-options' or
  4051. 'dg-add-options' directive.
  4052. 7.2.3.1 Endianness
  4053. ..................
  4054. 'be'
  4055. Target uses big-endian memory order for multi-byte and multi-word
  4056. data.
  4057. 'le'
  4058. Target uses little-endian memory order for multi-byte and
  4059. multi-word data.
  4060. 7.2.3.2 Data type sizes
  4061. .......................
  4062. 'ilp32'
  4063. Target has 32-bit 'int', 'long', and pointers.
  4064. 'lp64'
  4065. Target has 32-bit 'int', 64-bit 'long' and pointers.
  4066. 'llp64'
  4067. Target has 32-bit 'int' and 'long', 64-bit 'long long' and
  4068. pointers.
  4069. 'double64'
  4070. Target has 64-bit 'double'.
  4071. 'double64plus'
  4072. Target has 'double' that is 64 bits or longer.
  4073. 'longdouble128'
  4074. Target has 128-bit 'long double'.
  4075. 'int32plus'
  4076. Target has 'int' that is at 32 bits or longer.
  4077. 'int16'
  4078. Target has 'int' that is 16 bits or shorter.
  4079. 'longlong64'
  4080. Target has 64-bit 'long long'.
  4081. 'long_neq_int'
  4082. Target has 'int' and 'long' with different sizes.
  4083. 'int_eq_float'
  4084. Target has 'int' and 'float' with the same size.
  4085. 'ptr_eq_long'
  4086. Target has pointers ('void *') and 'long' with the same size.
  4087. 'large_double'
  4088. Target supports 'double' that is longer than 'float'.
  4089. 'large_long_double'
  4090. Target supports 'long double' that is longer than 'double'.
  4091. 'ptr32plus'
  4092. Target has pointers that are 32 bits or longer.
  4093. 'size20plus'
  4094. Target has a 20-bit or larger address space, so at least supports
  4095. 16-bit array and structure sizes.
  4096. 'size32plus'
  4097. Target has a 32-bit or larger address space, so at least supports
  4098. 24-bit array and structure sizes.
  4099. '4byte_wchar_t'
  4100. Target has 'wchar_t' that is at least 4 bytes.
  4101. 'floatN'
  4102. Target has the '_FloatN' type.
  4103. 'floatNx'
  4104. Target has the '_FloatNx' type.
  4105. 'floatN_runtime'
  4106. Target has the '_FloatN' type, including runtime support for any
  4107. options added with 'dg-add-options'.
  4108. 'floatNx_runtime'
  4109. Target has the '_FloatNx' type, including runtime support for any
  4110. options added with 'dg-add-options'.
  4111. 'floatn_nx_runtime'
  4112. Target has runtime support for any options added with
  4113. 'dg-add-options' for any '_FloatN' or '_FloatNx' type.
  4114. 'inf'
  4115. Target supports floating point infinite ('inf') for type 'double'.
  4116. 7.2.3.3 Fortran-specific attributes
  4117. ...................................
  4118. 'fortran_integer_16'
  4119. Target supports Fortran 'integer' that is 16 bytes or longer.
  4120. 'fortran_real_10'
  4121. Target supports Fortran 'real' that is 10 bytes or longer.
  4122. 'fortran_real_16'
  4123. Target supports Fortran 'real' that is 16 bytes or longer.
  4124. 'fortran_large_int'
  4125. Target supports Fortran 'integer' kinds larger than 'integer(8)'.
  4126. 'fortran_large_real'
  4127. Target supports Fortran 'real' kinds larger than 'real(8)'.
  4128. 7.2.3.4 Vector-specific attributes
  4129. ..................................
  4130. 'vect_align_stack_vars'
  4131. The target's ABI allows stack variables to be aligned to the
  4132. preferred vector alignment.
  4133. 'vect_avg_qi'
  4134. Target supports both signed and unsigned averaging operations on
  4135. vectors of bytes.
  4136. 'vect_mulhrs_hi'
  4137. Target supports both signed and unsigned
  4138. multiply-high-with-round-and-scale operations on vectors of
  4139. half-words.
  4140. 'vect_sdiv_pow2_si'
  4141. Target supports signed division by constant power-of-2 operations
  4142. on vectors of 4-byte integers.
  4143. 'vect_condition'
  4144. Target supports vector conditional operations.
  4145. 'vect_cond_mixed'
  4146. Target supports vector conditional operations where comparison
  4147. operands have different type from the value operands.
  4148. 'vect_double'
  4149. Target supports hardware vectors of 'double'.
  4150. 'vect_double_cond_arith'
  4151. Target supports conditional addition, subtraction, multiplication,
  4152. division, minimum and maximum on vectors of 'double', via the
  4153. 'cond_' optabs.
  4154. 'vect_element_align_preferred'
  4155. The target's preferred vector alignment is the same as the element
  4156. alignment.
  4157. 'vect_float'
  4158. Target supports hardware vectors of 'float' when
  4159. '-funsafe-math-optimizations' is in effect.
  4160. 'vect_float_strict'
  4161. Target supports hardware vectors of 'float' when
  4162. '-funsafe-math-optimizations' is not in effect. This implies
  4163. 'vect_float'.
  4164. 'vect_int'
  4165. Target supports hardware vectors of 'int'.
  4166. 'vect_long'
  4167. Target supports hardware vectors of 'long'.
  4168. 'vect_long_long'
  4169. Target supports hardware vectors of 'long long'.
  4170. 'vect_check_ptrs'
  4171. Target supports the 'check_raw_ptrs' and 'check_war_ptrs' optabs on
  4172. vectors.
  4173. 'vect_fully_masked'
  4174. Target supports fully-masked (also known as fully-predicated)
  4175. loops, so that vector loops can handle partial as well as full
  4176. vectors.
  4177. 'vect_masked_store'
  4178. Target supports vector masked stores.
  4179. 'vect_scatter_store'
  4180. Target supports vector scatter stores.
  4181. 'vect_aligned_arrays'
  4182. Target aligns arrays to vector alignment boundary.
  4183. 'vect_hw_misalign'
  4184. Target supports a vector misalign access.
  4185. 'vect_no_align'
  4186. Target does not support a vector alignment mechanism.
  4187. 'vect_peeling_profitable'
  4188. Target might require to peel loops for alignment purposes.
  4189. 'vect_no_int_min_max'
  4190. Target does not support a vector min and max instruction on 'int'.
  4191. 'vect_no_int_add'
  4192. Target does not support a vector add instruction on 'int'.
  4193. 'vect_no_bitwise'
  4194. Target does not support vector bitwise instructions.
  4195. 'vect_bool_cmp'
  4196. Target supports comparison of 'bool' vectors for at least one
  4197. vector length.
  4198. 'vect_char_add'
  4199. Target supports addition of 'char' vectors for at least one vector
  4200. length.
  4201. 'vect_char_mult'
  4202. Target supports 'vector char' multiplication.
  4203. 'vect_short_mult'
  4204. Target supports 'vector short' multiplication.
  4205. 'vect_int_mult'
  4206. Target supports 'vector int' multiplication.
  4207. 'vect_long_mult'
  4208. Target supports 64 bit 'vector long' multiplication.
  4209. 'vect_extract_even_odd'
  4210. Target supports vector even/odd element extraction.
  4211. 'vect_extract_even_odd_wide'
  4212. Target supports vector even/odd element extraction of vectors with
  4213. elements 'SImode' or larger.
  4214. 'vect_interleave'
  4215. Target supports vector interleaving.
  4216. 'vect_strided'
  4217. Target supports vector interleaving and extract even/odd.
  4218. 'vect_strided_wide'
  4219. Target supports vector interleaving and extract even/odd for wide
  4220. element types.
  4221. 'vect_perm'
  4222. Target supports vector permutation.
  4223. 'vect_perm_byte'
  4224. Target supports permutation of vectors with 8-bit elements.
  4225. 'vect_perm_short'
  4226. Target supports permutation of vectors with 16-bit elements.
  4227. 'vect_perm3_byte'
  4228. Target supports permutation of vectors with 8-bit elements, and for
  4229. the default vector length it is possible to permute:
  4230. { a0, a1, a2, b0, b1, b2, ... }
  4231. to:
  4232. { a0, a0, a0, b0, b0, b0, ... }
  4233. { a1, a1, a1, b1, b1, b1, ... }
  4234. { a2, a2, a2, b2, b2, b2, ... }
  4235. using only two-vector permutes, regardless of how long the sequence
  4236. is.
  4237. 'vect_perm3_int'
  4238. Like 'vect_perm3_byte', but for 32-bit elements.
  4239. 'vect_perm3_short'
  4240. Like 'vect_perm3_byte', but for 16-bit elements.
  4241. 'vect_shift'
  4242. Target supports a hardware vector shift operation.
  4243. 'vect_unaligned_possible'
  4244. Target prefers vectors to have an alignment greater than element
  4245. alignment, but also allows unaligned vector accesses in some
  4246. circumstances.
  4247. 'vect_variable_length'
  4248. Target has variable-length vectors.
  4249. 'vect_widen_sum_hi_to_si'
  4250. Target supports a vector widening summation of 'short' operands
  4251. into 'int' results, or can promote (unpack) from 'short' to 'int'.
  4252. 'vect_widen_sum_qi_to_hi'
  4253. Target supports a vector widening summation of 'char' operands into
  4254. 'short' results, or can promote (unpack) from 'char' to 'short'.
  4255. 'vect_widen_sum_qi_to_si'
  4256. Target supports a vector widening summation of 'char' operands into
  4257. 'int' results.
  4258. 'vect_widen_mult_qi_to_hi'
  4259. Target supports a vector widening multiplication of 'char' operands
  4260. into 'short' results, or can promote (unpack) from 'char' to
  4261. 'short' and perform non-widening multiplication of 'short'.
  4262. 'vect_widen_mult_hi_to_si'
  4263. Target supports a vector widening multiplication of 'short'
  4264. operands into 'int' results, or can promote (unpack) from 'short'
  4265. to 'int' and perform non-widening multiplication of 'int'.
  4266. 'vect_widen_mult_si_to_di_pattern'
  4267. Target supports a vector widening multiplication of 'int' operands
  4268. into 'long' results.
  4269. 'vect_sdot_qi'
  4270. Target supports a vector dot-product of 'signed char'.
  4271. 'vect_udot_qi'
  4272. Target supports a vector dot-product of 'unsigned char'.
  4273. 'vect_sdot_hi'
  4274. Target supports a vector dot-product of 'signed short'.
  4275. 'vect_udot_hi'
  4276. Target supports a vector dot-product of 'unsigned short'.
  4277. 'vect_pack_trunc'
  4278. Target supports a vector demotion (packing) of 'short' to 'char'
  4279. and from 'int' to 'short' using modulo arithmetic.
  4280. 'vect_unpack'
  4281. Target supports a vector promotion (unpacking) of 'char' to 'short'
  4282. and from 'char' to 'int'.
  4283. 'vect_intfloat_cvt'
  4284. Target supports conversion from 'signed int' to 'float'.
  4285. 'vect_uintfloat_cvt'
  4286. Target supports conversion from 'unsigned int' to 'float'.
  4287. 'vect_floatint_cvt'
  4288. Target supports conversion from 'float' to 'signed int'.
  4289. 'vect_floatuint_cvt'
  4290. Target supports conversion from 'float' to 'unsigned int'.
  4291. 'vect_intdouble_cvt'
  4292. Target supports conversion from 'signed int' to 'double'.
  4293. 'vect_doubleint_cvt'
  4294. Target supports conversion from 'double' to 'signed int'.
  4295. 'vect_max_reduc'
  4296. Target supports max reduction for vectors.
  4297. 'vect_sizes_16B_8B'
  4298. Target supports 16- and 8-bytes vectors.
  4299. 'vect_sizes_32B_16B'
  4300. Target supports 32- and 16-bytes vectors.
  4301. 'vect_logical_reduc'
  4302. Target supports AND, IOR and XOR reduction on vectors.
  4303. 'vect_fold_extract_last'
  4304. Target supports the 'fold_extract_last' optab.
  4305. 7.2.3.5 Thread Local Storage attributes
  4306. .......................................
  4307. 'tls'
  4308. Target supports thread-local storage.
  4309. 'tls_native'
  4310. Target supports native (rather than emulated) thread-local storage.
  4311. 'tls_runtime'
  4312. Test system supports executing TLS executables.
  4313. 7.2.3.6 Decimal floating point attributes
  4314. .........................................
  4315. 'dfp'
  4316. Targets supports compiling decimal floating point extension to C.
  4317. 'dfp_nocache'
  4318. Including the options used to compile this particular test, the
  4319. target supports compiling decimal floating point extension to C.
  4320. 'dfprt'
  4321. Test system can execute decimal floating point tests.
  4322. 'dfprt_nocache'
  4323. Including the options used to compile this particular test, the
  4324. test system can execute decimal floating point tests.
  4325. 'hard_dfp'
  4326. Target generates decimal floating point instructions with current
  4327. options.
  4328. 7.2.3.7 ARM-specific attributes
  4329. ...............................
  4330. 'arm32'
  4331. ARM target generates 32-bit code.
  4332. 'arm_little_endian'
  4333. ARM target that generates little-endian code.
  4334. 'arm_eabi'
  4335. ARM target adheres to the ABI for the ARM Architecture.
  4336. 'arm_fp_ok'
  4337. ARM target defines '__ARM_FP' using '-mfloat-abi=softfp' or
  4338. equivalent options. Some multilibs may be incompatible with these
  4339. options.
  4340. 'arm_fp_dp_ok'
  4341. ARM target defines '__ARM_FP' with double-precision support using
  4342. '-mfloat-abi=softfp' or equivalent options. Some multilibs may be
  4343. incompatible with these options.
  4344. 'arm_hf_eabi'
  4345. ARM target adheres to the VFP and Advanced SIMD Register Arguments
  4346. variant of the ABI for the ARM Architecture (as selected with
  4347. '-mfloat-abi=hard').
  4348. 'arm_softfloat'
  4349. ARM target uses the soft-float ABI with no floating-point
  4350. instructions used whatsoever (as selected with '-mfloat-abi=soft').
  4351. 'arm_hard_vfp_ok'
  4352. ARM target supports '-mfpu=vfp -mfloat-abi=hard'. Some multilibs
  4353. may be incompatible with these options.
  4354. 'arm_iwmmxt_ok'
  4355. ARM target supports '-mcpu=iwmmxt'. Some multilibs may be
  4356. incompatible with this option.
  4357. 'arm_neon'
  4358. ARM target supports generating NEON instructions.
  4359. 'arm_tune_string_ops_prefer_neon'
  4360. Test CPU tune supports inlining string operations with NEON
  4361. instructions.
  4362. 'arm_neon_hw'
  4363. Test system supports executing NEON instructions.
  4364. 'arm_neonv2_hw'
  4365. Test system supports executing NEON v2 instructions.
  4366. 'arm_neon_ok'
  4367. ARM Target supports '-mfpu=neon -mfloat-abi=softfp' or compatible
  4368. options. Some multilibs may be incompatible with these options.
  4369. 'arm_neon_ok_no_float_abi'
  4370. ARM Target supports NEON with '-mfpu=neon', but without any
  4371. -mfloat-abi= option. Some multilibs may be incompatible with this
  4372. option.
  4373. 'arm_neonv2_ok'
  4374. ARM Target supports '-mfpu=neon-vfpv4 -mfloat-abi=softfp' or
  4375. compatible options. Some multilibs may be incompatible with these
  4376. options.
  4377. 'arm_fp16_ok'
  4378. Target supports options to generate VFP half-precision
  4379. floating-point instructions. Some multilibs may be incompatible
  4380. with these options. This test is valid for ARM only.
  4381. 'arm_fp16_hw'
  4382. Target supports executing VFP half-precision floating-point
  4383. instructions. This test is valid for ARM only.
  4384. 'arm_neon_fp16_ok'
  4385. ARM Target supports '-mfpu=neon-fp16 -mfloat-abi=softfp' or
  4386. compatible options, including '-mfp16-format=ieee' if necessary to
  4387. obtain the '__fp16' type. Some multilibs may be incompatible with
  4388. these options.
  4389. 'arm_neon_fp16_hw'
  4390. Test system supports executing Neon half-precision float
  4391. instructions. (Implies previous.)
  4392. 'arm_fp16_alternative_ok'
  4393. ARM target supports the ARM FP16 alternative format. Some
  4394. multilibs may be incompatible with the options needed.
  4395. 'arm_fp16_none_ok'
  4396. ARM target supports specifying none as the ARM FP16 format.
  4397. 'arm_thumb1_ok'
  4398. ARM target generates Thumb-1 code for '-mthumb'.
  4399. 'arm_thumb2_ok'
  4400. ARM target generates Thumb-2 code for '-mthumb'.
  4401. 'arm_nothumb'
  4402. ARM target that is not using Thumb.
  4403. 'arm_vfp_ok'
  4404. ARM target supports '-mfpu=vfp -mfloat-abi=softfp'. Some multilibs
  4405. may be incompatible with these options.
  4406. 'arm_vfp3_ok'
  4407. ARM target supports '-mfpu=vfp3 -mfloat-abi=softfp'. Some
  4408. multilibs may be incompatible with these options.
  4409. 'arm_arch_v8a_hard_ok'
  4410. The compiler is targeting 'arm*-*-*' and can compile and assemble
  4411. code using the options '-march=armv8-a -mfpu=neon-fp-armv8
  4412. -mfloat-abi=hard'. This is not enough to guarantee that linking
  4413. works.
  4414. 'arm_arch_v8a_hard_multilib'
  4415. The compiler is targeting 'arm*-*-*' and can build programs using
  4416. the options '-march=armv8-a -mfpu=neon-fp-armv8 -mfloat-abi=hard'.
  4417. The target can also run the resulting binaries.
  4418. 'arm_v8_vfp_ok'
  4419. ARM target supports '-mfpu=fp-armv8 -mfloat-abi=softfp'. Some
  4420. multilibs may be incompatible with these options.
  4421. 'arm_v8_neon_ok'
  4422. ARM target supports '-mfpu=neon-fp-armv8 -mfloat-abi=softfp'. Some
  4423. multilibs may be incompatible with these options.
  4424. 'arm_v8_1a_neon_ok'
  4425. ARM target supports options to generate ARMv8.1-A Adv.SIMD
  4426. instructions. Some multilibs may be incompatible with these
  4427. options.
  4428. 'arm_v8_1a_neon_hw'
  4429. ARM target supports executing ARMv8.1-A Adv.SIMD instructions.
  4430. Some multilibs may be incompatible with the options needed.
  4431. Implies arm_v8_1a_neon_ok.
  4432. 'arm_acq_rel'
  4433. ARM target supports acquire-release instructions.
  4434. 'arm_v8_2a_fp16_scalar_ok'
  4435. ARM target supports options to generate instructions for ARMv8.2-A
  4436. and scalar instructions from the FP16 extension. Some multilibs
  4437. may be incompatible with these options.
  4438. 'arm_v8_2a_fp16_scalar_hw'
  4439. ARM target supports executing instructions for ARMv8.2-A and scalar
  4440. instructions from the FP16 extension. Some multilibs may be
  4441. incompatible with these options. Implies arm_v8_2a_fp16_neon_ok.
  4442. 'arm_v8_2a_fp16_neon_ok'
  4443. ARM target supports options to generate instructions from ARMv8.2-A
  4444. with the FP16 extension. Some multilibs may be incompatible with
  4445. these options. Implies arm_v8_2a_fp16_scalar_ok.
  4446. 'arm_v8_2a_fp16_neon_hw'
  4447. ARM target supports executing instructions from ARMv8.2-A with the
  4448. FP16 extension. Some multilibs may be incompatible with these
  4449. options. Implies arm_v8_2a_fp16_neon_ok and
  4450. arm_v8_2a_fp16_scalar_hw.
  4451. 'arm_v8_2a_dotprod_neon_ok'
  4452. ARM target supports options to generate instructions from ARMv8.2-A
  4453. with the Dot Product extension. Some multilibs may be incompatible
  4454. with these options.
  4455. 'arm_v8_2a_dotprod_neon_hw'
  4456. ARM target supports executing instructions from ARMv8.2-A with the
  4457. Dot Product extension. Some multilibs may be incompatible with
  4458. these options. Implies arm_v8_2a_dotprod_neon_ok.
  4459. 'arm_fp16fml_neon_ok'
  4460. ARM target supports extensions to generate the 'VFMAL' and 'VFMLS'
  4461. half-precision floating-point instructions available from ARMv8.2-A
  4462. and onwards. Some multilibs may be incompatible with these
  4463. options.
  4464. 'arm_v8_2a_bf16_neon_ok'
  4465. ARM target supports options to generate instructions from ARMv8.2-A
  4466. with the BFloat16 extension (bf16). Some multilibs may be
  4467. incompatible with these options.
  4468. 'arm_v8_2a_i8mm_ok'
  4469. ARM target supports options to generate instructions from ARMv8.2-A
  4470. with the 8-Bit Integer Matrix Multiply extension (i8mm). Some
  4471. multilibs may be incompatible with these options.
  4472. 'arm_v8_1m_mve_ok'
  4473. ARM target supports options to generate instructions from ARMv8.1-M
  4474. with the M-Profile Vector Extension (MVE). Some multilibs may be
  4475. incompatible with these options.
  4476. 'arm_v8m_main_cde'
  4477. ARM target supports options to generate instructions from ARMv8-M
  4478. with the Custom Datapath Extension (CDE). Some multilibs may be
  4479. incompatible with these options.
  4480. 'arm_v8m_main_cde_fp'
  4481. ARM target supports options to generate instructions from ARMv8-M
  4482. with the Custom Datapath Extension (CDE) and floating-point (VFP).
  4483. Some multilibs may be incompatible with these options.
  4484. 'arm_v8_1m_main_cde_mve'
  4485. ARM target supports options to generate instructions from ARMv8.1-M
  4486. with the Custom Datapath Extension (CDE) and M-Profile Vector
  4487. Extension (MVE). Some multilibs may be incompatible with these
  4488. options.
  4489. 'arm_prefer_ldrd_strd'
  4490. ARM target prefers 'LDRD' and 'STRD' instructions over 'LDM' and
  4491. 'STM' instructions.
  4492. 'arm_thumb1_movt_ok'
  4493. ARM target generates Thumb-1 code for '-mthumb' with 'MOVW' and
  4494. 'MOVT' instructions available.
  4495. 'arm_thumb1_cbz_ok'
  4496. ARM target generates Thumb-1 code for '-mthumb' with 'CBZ' and
  4497. 'CBNZ' instructions available.
  4498. 'arm_divmod_simode'
  4499. ARM target for which divmod transform is disabled, if it supports
  4500. hardware div instruction.
  4501. 'arm_cmse_ok'
  4502. ARM target supports ARMv8-M Security Extensions, enabled by the
  4503. '-mcmse' option.
  4504. 'arm_coproc1_ok'
  4505. ARM target supports the following coprocessor instructions: 'CDP',
  4506. 'LDC', 'STC', 'MCR' and 'MRC'.
  4507. 'arm_coproc2_ok'
  4508. ARM target supports all the coprocessor instructions also listed as
  4509. supported in *note arm_coproc1_ok:: in addition to the following:
  4510. 'CDP2', 'LDC2', 'LDC2l', 'STC2', 'STC2l', 'MCR2' and 'MRC2'.
  4511. 'arm_coproc3_ok'
  4512. ARM target supports all the coprocessor instructions also listed as
  4513. supported in *note arm_coproc2_ok:: in addition the following:
  4514. 'MCRR' and 'MRRC'.
  4515. 'arm_coproc4_ok'
  4516. ARM target supports all the coprocessor instructions also listed as
  4517. supported in *note arm_coproc3_ok:: in addition the following:
  4518. 'MCRR2' and 'MRRC2'.
  4519. 'arm_simd32_ok'
  4520. ARM Target supports options suitable for accessing the SIMD32
  4521. intrinsics from 'arm_acle.h'. Some multilibs may be incompatible
  4522. with these options.
  4523. 'arm_qbit_ok'
  4524. ARM Target supports options suitable for accessing the Q-bit
  4525. manipulation intrinsics from 'arm_acle.h'. Some multilibs may be
  4526. incompatible with these options.
  4527. 'arm_softfp_ok'
  4528. ARM target supports the '-mfloat-abi=softfp' option.
  4529. 'arm_hard_ok'
  4530. ARM target supports the '-mfloat-abi=hard' option.
  4531. 7.2.3.8 AArch64-specific attributes
  4532. ...................................
  4533. 'aarch64_asm_<ext>_ok'
  4534. AArch64 assembler supports the architecture extension 'ext' via the
  4535. '.arch_extension' pseudo-op.
  4536. 'aarch64_tiny'
  4537. AArch64 target which generates instruction sequences for tiny
  4538. memory model.
  4539. 'aarch64_small'
  4540. AArch64 target which generates instruction sequences for small
  4541. memory model.
  4542. 'aarch64_large'
  4543. AArch64 target which generates instruction sequences for large
  4544. memory model.
  4545. 'aarch64_little_endian'
  4546. AArch64 target which generates instruction sequences for little
  4547. endian.
  4548. 'aarch64_big_endian'
  4549. AArch64 target which generates instruction sequences for big
  4550. endian.
  4551. 'aarch64_small_fpic'
  4552. Binutils installed on test system supports relocation types
  4553. required by -fpic for AArch64 small memory model.
  4554. 'aarch64_sve_hw'
  4555. AArch64 target that is able to generate and execute SVE code
  4556. (regardless of whether it does so by default).
  4557. 'aarch64_sve128_hw'
  4558. 'aarch64_sve256_hw'
  4559. 'aarch64_sve512_hw'
  4560. 'aarch64_sve1024_hw'
  4561. 'aarch64_sve2048_hw'
  4562. Like 'aarch64_sve_hw', but also test for an exact hardware vector
  4563. length.
  4564. 7.2.3.9 MIPS-specific attributes
  4565. ................................
  4566. 'mips64'
  4567. MIPS target supports 64-bit instructions.
  4568. 'nomips16'
  4569. MIPS target does not produce MIPS16 code.
  4570. 'mips16_attribute'
  4571. MIPS target can generate MIPS16 code.
  4572. 'mips_loongson'
  4573. MIPS target is a Loongson-2E or -2F target using an ABI that
  4574. supports the Loongson vector modes.
  4575. 'mips_msa'
  4576. MIPS target supports '-mmsa', MIPS SIMD Architecture (MSA).
  4577. 'mips_newabi_large_long_double'
  4578. MIPS target supports 'long double' larger than 'double' when using
  4579. the new ABI.
  4580. 'mpaired_single'
  4581. MIPS target supports '-mpaired-single'.
  4582. 7.2.3.10 PowerPC-specific attributes
  4583. ....................................
  4584. 'dfp_hw'
  4585. PowerPC target supports executing hardware DFP instructions.
  4586. 'p8vector_hw'
  4587. PowerPC target supports executing VSX instructions (ISA 2.07).
  4588. 'powerpc64'
  4589. Test system supports executing 64-bit instructions.
  4590. 'powerpc_altivec'
  4591. PowerPC target supports AltiVec.
  4592. 'powerpc_altivec_ok'
  4593. PowerPC target supports '-maltivec'.
  4594. 'powerpc_eabi_ok'
  4595. PowerPC target supports '-meabi'.
  4596. 'powerpc_elfv2'
  4597. PowerPC target supports '-mabi=elfv2'.
  4598. 'powerpc_fprs'
  4599. PowerPC target supports floating-point registers.
  4600. 'powerpc_hard_double'
  4601. PowerPC target supports hardware double-precision floating-point.
  4602. 'powerpc_htm_ok'
  4603. PowerPC target supports '-mhtm'
  4604. 'powerpc_p8vector_ok'
  4605. PowerPC target supports '-mpower8-vector'
  4606. 'powerpc_popcntb_ok'
  4607. PowerPC target supports the 'popcntb' instruction, indicating that
  4608. this target supports '-mcpu=power5'.
  4609. 'powerpc_ppu_ok'
  4610. PowerPC target supports '-mcpu=cell'.
  4611. 'powerpc_spe'
  4612. PowerPC target supports PowerPC SPE.
  4613. 'powerpc_spe_nocache'
  4614. Including the options used to compile this particular test, the
  4615. PowerPC target supports PowerPC SPE.
  4616. 'powerpc_spu'
  4617. PowerPC target supports PowerPC SPU.
  4618. 'powerpc_vsx_ok'
  4619. PowerPC target supports '-mvsx'.
  4620. 'powerpc_405_nocache'
  4621. Including the options used to compile this particular test, the
  4622. PowerPC target supports PowerPC 405.
  4623. 'ppc_recip_hw'
  4624. PowerPC target supports executing reciprocal estimate instructions.
  4625. 'vmx_hw'
  4626. PowerPC target supports executing AltiVec instructions.
  4627. 'vsx_hw'
  4628. PowerPC target supports executing VSX instructions (ISA 2.06).
  4629. 7.2.3.11 Other hardware attributes
  4630. ..................................
  4631. 'autoincdec'
  4632. Target supports autoincrement/decrement addressing.
  4633. 'avx'
  4634. Target supports compiling 'avx' instructions.
  4635. 'avx_runtime'
  4636. Target supports the execution of 'avx' instructions.
  4637. 'avx2'
  4638. Target supports compiling 'avx2' instructions.
  4639. 'avx2_runtime'
  4640. Target supports the execution of 'avx2' instructions.
  4641. 'avx512f'
  4642. Target supports compiling 'avx512f' instructions.
  4643. 'avx512f_runtime'
  4644. Target supports the execution of 'avx512f' instructions.
  4645. 'avx512vp2intersect'
  4646. Target supports the execution of 'avx512vp2intersect' instructions.
  4647. 'cell_hw'
  4648. Test system can execute AltiVec and Cell PPU instructions.
  4649. 'coldfire_fpu'
  4650. Target uses a ColdFire FPU.
  4651. 'divmod'
  4652. Target supporting hardware divmod insn or divmod libcall.
  4653. 'divmod_simode'
  4654. Target supporting hardware divmod insn or divmod libcall for
  4655. SImode.
  4656. 'hard_float'
  4657. Target supports FPU instructions.
  4658. 'non_strict_align'
  4659. Target does not require strict alignment.
  4660. 'pie_copyreloc'
  4661. The x86-64 target linker supports PIE with copy reloc.
  4662. 'rdrand'
  4663. Target supports x86 'rdrand' instruction.
  4664. 'sqrt_insn'
  4665. Target has a square root instruction that the compiler can
  4666. generate.
  4667. 'sse'
  4668. Target supports compiling 'sse' instructions.
  4669. 'sse_runtime'
  4670. Target supports the execution of 'sse' instructions.
  4671. 'sse2'
  4672. Target supports compiling 'sse2' instructions.
  4673. 'sse2_runtime'
  4674. Target supports the execution of 'sse2' instructions.
  4675. 'sync_char_short'
  4676. Target supports atomic operations on 'char' and 'short'.
  4677. 'sync_int_long'
  4678. Target supports atomic operations on 'int' and 'long'.
  4679. 'ultrasparc_hw'
  4680. Test environment appears to run executables on a simulator that
  4681. accepts only 'EM_SPARC' executables and chokes on 'EM_SPARC32PLUS'
  4682. or 'EM_SPARCV9' executables.
  4683. 'vect_cmdline_needed'
  4684. Target requires a command line argument to enable a SIMD
  4685. instruction set.
  4686. 'xorsign'
  4687. Target supports the xorsign optab expansion.
  4688. 7.2.3.12 Environment attributes
  4689. ...............................
  4690. 'c'
  4691. The language for the compiler under test is C.
  4692. 'c++'
  4693. The language for the compiler under test is C++.
  4694. 'c99_runtime'
  4695. Target provides a full C99 runtime.
  4696. 'correct_iso_cpp_string_wchar_protos'
  4697. Target 'string.h' and 'wchar.h' headers provide C++ required
  4698. overloads for 'strchr' etc. functions.
  4699. 'd_runtime'
  4700. Target provides the D runtime.
  4701. 'd_runtime_has_std_library'
  4702. Target provides the D standard library (Phobos).
  4703. 'dummy_wcsftime'
  4704. Target uses a dummy 'wcsftime' function that always returns zero.
  4705. 'fd_truncate'
  4706. Target can truncate a file from a file descriptor, as used by
  4707. 'libgfortran/io/unix.c:fd_truncate'; i.e. 'ftruncate' or 'chsize'.
  4708. 'fenv'
  4709. Target provides 'fenv.h' include file.
  4710. 'fenv_exceptions'
  4711. Target supports 'fenv.h' with all the standard IEEE exceptions and
  4712. floating-point exceptions are raised by arithmetic operations.
  4713. 'fileio'
  4714. Target offers such file I/O library functions as 'fopen', 'fclose',
  4715. 'tmpnam', and 'remove'. This is a link-time requirement for the
  4716. presence of the functions in the library; even if they fail at
  4717. runtime, the requirement is still regarded as satisfied.
  4718. 'freestanding'
  4719. Target is 'freestanding' as defined in section 4 of the C99
  4720. standard. Effectively, it is a target which supports no extra
  4721. headers or libraries other than what is considered essential.
  4722. 'gettimeofday'
  4723. Target supports 'gettimeofday'.
  4724. 'init_priority'
  4725. Target supports constructors with initialization priority
  4726. arguments.
  4727. 'inttypes_types'
  4728. Target has the basic signed and unsigned types in 'inttypes.h'.
  4729. This is for tests that GCC's notions of these types agree with
  4730. those in the header, as some systems have only 'inttypes.h'.
  4731. 'lax_strtofp'
  4732. Target might have errors of a few ULP in string to floating-point
  4733. conversion functions and overflow is not always detected correctly
  4734. by those functions.
  4735. 'mempcpy'
  4736. Target provides 'mempcpy' function.
  4737. 'mmap'
  4738. Target supports 'mmap'.
  4739. 'newlib'
  4740. Target supports Newlib.
  4741. 'newlib_nano_io'
  4742. GCC was configured with '--enable-newlib-nano-formatted-io', which
  4743. reduces the code size of Newlib formatted I/O functions.
  4744. 'pow10'
  4745. Target provides 'pow10' function.
  4746. 'pthread'
  4747. Target can compile using 'pthread.h' with no errors or warnings.
  4748. 'pthread_h'
  4749. Target has 'pthread.h'.
  4750. 'run_expensive_tests'
  4751. Expensive testcases (usually those that consume excessive amounts
  4752. of CPU time) should be run on this target. This can be enabled by
  4753. setting the 'GCC_TEST_RUN_EXPENSIVE' environment variable to a
  4754. non-empty string.
  4755. 'simulator'
  4756. Test system runs executables on a simulator (i.e. slowly) rather
  4757. than hardware (i.e. fast).
  4758. 'signal'
  4759. Target has 'signal.h'.
  4760. 'stabs'
  4761. Target supports the stabs debugging format.
  4762. 'stdint_types'
  4763. Target has the basic signed and unsigned C types in 'stdint.h'.
  4764. This will be obsolete when GCC ensures a working 'stdint.h' for all
  4765. targets.
  4766. 'stpcpy'
  4767. Target provides 'stpcpy' function.
  4768. 'trampolines'
  4769. Target supports trampolines.
  4770. 'uclibc'
  4771. Target supports uClibc.
  4772. 'unwrapped'
  4773. Target does not use a status wrapper.
  4774. 'vxworks_kernel'
  4775. Target is a VxWorks kernel.
  4776. 'vxworks_rtp'
  4777. Target is a VxWorks RTP.
  4778. 'wchar'
  4779. Target supports wide characters.
  4780. 7.2.3.13 Other attributes
  4781. .........................
  4782. 'automatic_stack_alignment'
  4783. Target supports automatic stack alignment.
  4784. 'branch_cost'
  4785. Target supports '-branch-cost=N'.
  4786. 'cxa_atexit'
  4787. Target uses '__cxa_atexit'.
  4788. 'default_packed'
  4789. Target has packed layout of structure members by default.
  4790. 'exceptions'
  4791. Target supports exceptions.
  4792. 'exceptions_enabled'
  4793. Target supports exceptions and they are enabled in the current
  4794. testing configuration.
  4795. 'fgraphite'
  4796. Target supports Graphite optimizations.
  4797. 'fixed_point'
  4798. Target supports fixed-point extension to C.
  4799. 'fopenacc'
  4800. Target supports OpenACC via '-fopenacc'.
  4801. 'fopenmp'
  4802. Target supports OpenMP via '-fopenmp'.
  4803. 'fpic'
  4804. Target supports '-fpic' and '-fPIC'.
  4805. 'freorder'
  4806. Target supports '-freorder-blocks-and-partition'.
  4807. 'fstack_protector'
  4808. Target supports '-fstack-protector'.
  4809. 'gas'
  4810. Target uses GNU 'as'.
  4811. 'gc_sections'
  4812. Target supports '--gc-sections'.
  4813. 'gld'
  4814. Target uses GNU 'ld'.
  4815. 'keeps_null_pointer_checks'
  4816. Target keeps null pointer checks, either due to the use of
  4817. '-fno-delete-null-pointer-checks' or hardwired into the target.
  4818. 'llvm_binutils'
  4819. Target is using an LLVM assembler and/or linker, instead of GNU
  4820. Binutils.
  4821. 'lto'
  4822. Compiler has been configured to support link-time optimization
  4823. (LTO).
  4824. 'lto_incremental'
  4825. Compiler and linker support link-time optimization relocatable
  4826. linking with '-r' and '-flto' options.
  4827. 'naked_functions'
  4828. Target supports the 'naked' function attribute.
  4829. 'named_sections'
  4830. Target supports named sections.
  4831. 'natural_alignment_32'
  4832. Target uses natural alignment (aligned to type size) for types of
  4833. 32 bits or less.
  4834. 'target_natural_alignment_64'
  4835. Target uses natural alignment (aligned to type size) for types of
  4836. 64 bits or less.
  4837. 'noinit'
  4838. Target supports the 'noinit' variable attribute.
  4839. 'nonpic'
  4840. Target does not generate PIC by default.
  4841. 'offload_gcn'
  4842. Target has been configured for OpenACC/OpenMP offloading on AMD
  4843. GCN.
  4844. 'pie_enabled'
  4845. Target generates PIE by default.
  4846. 'pcc_bitfield_type_matters'
  4847. Target defines 'PCC_BITFIELD_TYPE_MATTERS'.
  4848. 'pe_aligned_commons'
  4849. Target supports '-mpe-aligned-commons'.
  4850. 'pie'
  4851. Target supports '-pie', '-fpie' and '-fPIE'.
  4852. 'rdynamic'
  4853. Target supports '-rdynamic'.
  4854. 'scalar_all_fma'
  4855. Target supports all four fused multiply-add optabs for both 'float'
  4856. and 'double'. These optabs are: 'fma_optab', 'fms_optab',
  4857. 'fnma_optab' and 'fnms_optab'.
  4858. 'section_anchors'
  4859. Target supports section anchors.
  4860. 'short_enums'
  4861. Target defaults to short enums.
  4862. 'stack_size'
  4863. Target has limited stack size. The stack size limit can be
  4864. obtained using the STACK_SIZE macro defined by *note
  4865. 'dg-add-options' feature 'stack_size': stack_size_ao.
  4866. 'static'
  4867. Target supports '-static'.
  4868. 'static_libgfortran'
  4869. Target supports statically linking 'libgfortran'.
  4870. 'string_merging'
  4871. Target supports merging string constants at link time.
  4872. 'ucn'
  4873. Target supports compiling and assembling UCN.
  4874. 'ucn_nocache'
  4875. Including the options used to compile this particular test, the
  4876. target supports compiling and assembling UCN.
  4877. 'unaligned_stack'
  4878. Target does not guarantee that its 'STACK_BOUNDARY' is greater than
  4879. or equal to the required vector alignment.
  4880. 'vector_alignment_reachable'
  4881. Vector alignment is reachable for types of 32 bits or less.
  4882. 'vector_alignment_reachable_for_64bit'
  4883. Vector alignment is reachable for types of 64 bits or less.
  4884. 'wchar_t_char16_t_compatible'
  4885. Target supports 'wchar_t' that is compatible with 'char16_t'.
  4886. 'wchar_t_char32_t_compatible'
  4887. Target supports 'wchar_t' that is compatible with 'char32_t'.
  4888. 'comdat_group'
  4889. Target uses comdat groups.
  4890. 'indirect_calls'
  4891. Target supports indirect calls, i.e. calls where the target is not
  4892. constant.
  4893. 7.2.3.14 Local to tests in 'gcc.target/i386'
  4894. ............................................
  4895. '3dnow'
  4896. Target supports compiling '3dnow' instructions.
  4897. 'aes'
  4898. Target supports compiling 'aes' instructions.
  4899. 'fma4'
  4900. Target supports compiling 'fma4' instructions.
  4901. 'mfentry'
  4902. Target supports the '-mfentry' option that alters the position of
  4903. profiling calls such that they precede the prologue.
  4904. 'ms_hook_prologue'
  4905. Target supports attribute 'ms_hook_prologue'.
  4906. 'pclmul'
  4907. Target supports compiling 'pclmul' instructions.
  4908. 'sse3'
  4909. Target supports compiling 'sse3' instructions.
  4910. 'sse4'
  4911. Target supports compiling 'sse4' instructions.
  4912. 'sse4a'
  4913. Target supports compiling 'sse4a' instructions.
  4914. 'ssse3'
  4915. Target supports compiling 'ssse3' instructions.
  4916. 'vaes'
  4917. Target supports compiling 'vaes' instructions.
  4918. 'vpclmul'
  4919. Target supports compiling 'vpclmul' instructions.
  4920. 'xop'
  4921. Target supports compiling 'xop' instructions.
  4922. 7.2.3.15 Local to tests in 'gcc.test-framework'
  4923. ...............................................
  4924. 'no'
  4925. Always returns 0.
  4926. 'yes'
  4927. Always returns 1.
  4928. 
  4929. File: gccint.info, Node: Add Options, Next: Require Support, Prev: Effective-Target Keywords, Up: Test Directives
  4930. 7.2.4 Features for 'dg-add-options'
  4931. -----------------------------------
  4932. The supported values of FEATURE for directive 'dg-add-options' are:
  4933. 'arm_fp'
  4934. '__ARM_FP' definition. Only ARM targets support this feature, and
  4935. only then in certain modes; see the *note arm_fp_ok effective
  4936. target keyword: arm_fp_ok.
  4937. 'arm_fp_dp'
  4938. '__ARM_FP' definition with double-precision support. Only ARM
  4939. targets support this feature, and only then in certain modes; see
  4940. the *note arm_fp_dp_ok effective target keyword: arm_fp_dp_ok.
  4941. 'arm_neon'
  4942. NEON support. Only ARM targets support this feature, and only then
  4943. in certain modes; see the *note arm_neon_ok effective target
  4944. keyword: arm_neon_ok.
  4945. 'arm_fp16'
  4946. VFP half-precision floating point support. This does not select
  4947. the FP16 format; for that, use *note arm_fp16_ieee: arm_fp16_ieee.
  4948. or *note arm_fp16_alternative: arm_fp16_alternative. instead. This
  4949. feature is only supported by ARM targets and then only in certain
  4950. modes; see the *note arm_fp16_ok effective target keyword:
  4951. arm_fp16_ok.
  4952. 'arm_fp16_ieee'
  4953. ARM IEEE 754-2008 format VFP half-precision floating point support.
  4954. This feature is only supported by ARM targets and then only in
  4955. certain modes; see the *note arm_fp16_ok effective target keyword:
  4956. arm_fp16_ok.
  4957. 'arm_fp16_alternative'
  4958. ARM Alternative format VFP half-precision floating point support.
  4959. This feature is only supported by ARM targets and then only in
  4960. certain modes; see the *note arm_fp16_ok effective target keyword:
  4961. arm_fp16_ok.
  4962. 'arm_neon_fp16'
  4963. NEON and half-precision floating point support. Only ARM targets
  4964. support this feature, and only then in certain modes; see the *note
  4965. arm_neon_fp16_ok effective target keyword: arm_neon_fp16_ok.
  4966. 'arm_vfp3'
  4967. arm vfp3 floating point support; see the *note arm_vfp3_ok
  4968. effective target keyword: arm_vfp3_ok.
  4969. 'arm_arch_v8a_hard'
  4970. Add options for ARMv8-A and the hard-float variant of the AAPCS, if
  4971. this is supported by the compiler; see the *note
  4972. arm_arch_v8a_hard_ok: arm_arch_v8a_hard_ok. effective target
  4973. keyword.
  4974. 'arm_v8_1a_neon'
  4975. Add options for ARMv8.1-A with Adv.SIMD support, if this is
  4976. supported by the target; see the *note arm_v8_1a_neon_ok:
  4977. arm_v8_1a_neon_ok. effective target keyword.
  4978. 'arm_v8_2a_fp16_scalar'
  4979. Add options for ARMv8.2-A with scalar FP16 support, if this is
  4980. supported by the target; see the *note arm_v8_2a_fp16_scalar_ok:
  4981. arm_v8_2a_fp16_scalar_ok. effective target keyword.
  4982. 'arm_v8_2a_fp16_neon'
  4983. Add options for ARMv8.2-A with Adv.SIMD FP16 support, if this is
  4984. supported by the target; see the *note arm_v8_2a_fp16_neon_ok:
  4985. arm_v8_2a_fp16_neon_ok. effective target keyword.
  4986. 'arm_v8_2a_dotprod_neon'
  4987. Add options for ARMv8.2-A with Adv.SIMD Dot Product support, if
  4988. this is supported by the target; see the *note
  4989. arm_v8_2a_dotprod_neon_ok:: effective target keyword.
  4990. 'arm_fp16fml_neon'
  4991. Add options to enable generation of the 'VFMAL' and 'VFMSL'
  4992. instructions, if this is supported by the target; see the *note
  4993. arm_fp16fml_neon_ok:: effective target keyword.
  4994. 'bind_pic_locally'
  4995. Add the target-specific flags needed to enable functions to bind
  4996. locally when using pic/PIC passes in the testsuite.
  4997. 'floatN'
  4998. Add the target-specific flags needed to use the '_FloatN' type.
  4999. 'floatNx'
  5000. Add the target-specific flags needed to use the '_FloatNx' type.
  5001. 'ieee'
  5002. Add the target-specific flags needed to enable full IEEE compliance
  5003. mode.
  5004. 'mips16_attribute'
  5005. 'mips16' function attributes. Only MIPS targets support this
  5006. feature, and only then in certain modes.
  5007. 'stack_size'
  5008. Add the flags needed to define macro STACK_SIZE and set it to the
  5009. stack size limit associated with the *note 'stack_size' effective
  5010. target: stack_size_et.
  5011. 'sqrt_insn'
  5012. Add the target-specific flags needed to enable hardware square root
  5013. instructions, if any.
  5014. 'tls'
  5015. Add the target-specific flags needed to use thread-local storage.
  5016. 
  5017. File: gccint.info, Node: Require Support, Next: Final Actions, Prev: Add Options, Up: Test Directives
  5018. 7.2.5 Variants of 'dg-require-SUPPORT'
  5019. --------------------------------------
  5020. A few of the 'dg-require' directives take arguments.
  5021. 'dg-require-iconv CODESET'
  5022. Skip the test if the target does not support iconv. CODESET is the
  5023. codeset to convert to.
  5024. 'dg-require-profiling PROFOPT'
  5025. Skip the test if the target does not support profiling with option
  5026. PROFOPT.
  5027. 'dg-require-stack-check CHECK'
  5028. Skip the test if the target does not support the '-fstack-check'
  5029. option. If CHECK is '""', support for '-fstack-check' is checked,
  5030. for '-fstack-check=("CHECK")' otherwise.
  5031. 'dg-require-stack-size SIZE'
  5032. Skip the test if the target does not support a stack size of SIZE.
  5033. 'dg-require-visibility VIS'
  5034. Skip the test if the target does not support the 'visibility'
  5035. attribute. If VIS is '""', support for 'visibility("hidden")' is
  5036. checked, for 'visibility("VIS")' otherwise.
  5037. The original 'dg-require' directives were defined before there was
  5038. support for effective-target keywords. The directives that do not take
  5039. arguments could be replaced with effective-target keywords.
  5040. 'dg-require-alias ""'
  5041. Skip the test if the target does not support the 'alias' attribute.
  5042. 'dg-require-ascii-locale ""'
  5043. Skip the test if the host does not support an ASCII locale.
  5044. 'dg-require-compat-dfp ""'
  5045. Skip this test unless both compilers in a 'compat' testsuite
  5046. support decimal floating point.
  5047. 'dg-require-cxa-atexit ""'
  5048. Skip the test if the target does not support '__cxa_atexit'. This
  5049. is equivalent to 'dg-require-effective-target cxa_atexit'.
  5050. 'dg-require-dll ""'
  5051. Skip the test if the target does not support DLL attributes.
  5052. 'dg-require-dot ""'
  5053. Skip the test if the host does not have 'dot'.
  5054. 'dg-require-fork ""'
  5055. Skip the test if the target does not support 'fork'.
  5056. 'dg-require-gc-sections ""'
  5057. Skip the test if the target's linker does not support the
  5058. '--gc-sections' flags. This is equivalent to
  5059. 'dg-require-effective-target gc-sections'.
  5060. 'dg-require-host-local ""'
  5061. Skip the test if the host is remote, rather than the same as the
  5062. build system. Some tests are incompatible with DejaGnu's handling
  5063. of remote hosts, which involves copying the source file to the host
  5064. and compiling it with a relative path and "'-o a.out'".
  5065. 'dg-require-mkfifo ""'
  5066. Skip the test if the target does not support 'mkfifo'.
  5067. 'dg-require-named-sections ""'
  5068. Skip the test is the target does not support named sections. This
  5069. is equivalent to 'dg-require-effective-target named_sections'.
  5070. 'dg-require-weak ""'
  5071. Skip the test if the target does not support weak symbols.
  5072. 'dg-require-weak-override ""'
  5073. Skip the test if the target does not support overriding weak
  5074. symbols.
  5075. 
  5076. File: gccint.info, Node: Final Actions, Prev: Require Support, Up: Test Directives
  5077. 7.2.6 Commands for use in 'dg-final'
  5078. ------------------------------------
  5079. The GCC testsuite defines the following directives to be used within
  5080. 'dg-final'.
  5081. 7.2.6.1 Scan a particular file
  5082. ..............................
  5083. 'scan-file FILENAME REGEXP [{ target/xfail SELECTOR }]'
  5084. Passes if REGEXP matches text in FILENAME.
  5085. 'scan-file-not FILENAME REGEXP [{ target/xfail SELECTOR }]'
  5086. Passes if REGEXP does not match text in FILENAME.
  5087. 'scan-module MODULE REGEXP [{ target/xfail SELECTOR }]'
  5088. Passes if REGEXP matches in Fortran module MODULE.
  5089. 'dg-check-dot FILENAME'
  5090. Passes if FILENAME is a valid '.dot' file (by running 'dot -Tpng'
  5091. on it, and verifying the exit code is 0).
  5092. 7.2.6.2 Scan the assembly output
  5093. ................................
  5094. 'scan-assembler REGEX [{ target/xfail SELECTOR }]'
  5095. Passes if REGEX matches text in the test's assembler output.
  5096. 'scan-assembler-not REGEX [{ target/xfail SELECTOR }]'
  5097. Passes if REGEX does not match text in the test's assembler output.
  5098. 'scan-assembler-times REGEX NUM [{ target/xfail SELECTOR }]'
  5099. Passes if REGEX is matched exactly NUM times in the test's
  5100. assembler output.
  5101. 'scan-assembler-dem REGEX [{ target/xfail SELECTOR }]'
  5102. Passes if REGEX matches text in the test's demangled assembler
  5103. output.
  5104. 'scan-assembler-dem-not REGEX [{ target/xfail SELECTOR }]'
  5105. Passes if REGEX does not match text in the test's demangled
  5106. assembler output.
  5107. 'scan-hidden SYMBOL [{ target/xfail SELECTOR }]'
  5108. Passes if SYMBOL is defined as a hidden symbol in the test's
  5109. assembly output.
  5110. 'scan-not-hidden SYMBOL [{ target/xfail SELECTOR }]'
  5111. Passes if SYMBOL is not defined as a hidden symbol in the test's
  5112. assembly output.
  5113. 'check-function-bodies PREFIX TERMINATOR [OPTIONS [{ target/xfail SELECTOR }]]'
  5114. Looks through the source file for comments that give the expected
  5115. assembly output for selected functions. Each line of expected
  5116. output starts with the prefix string PREFIX and the expected output
  5117. for a function as a whole is followed by a line that starts with
  5118. the string TERMINATOR. Specifying an empty terminator is
  5119. equivalent to specifying '"*/"'.
  5120. OPTIONS, if specified, is a list of regular expressions, each of
  5121. which matches a full command-line option. A non-empty list
  5122. prevents the test from running unless all of the given options are
  5123. present on the command line. This can help if a source file is
  5124. compiled both with and without optimization, since it is rarely
  5125. useful to check the full function body for unoptimized code.
  5126. The first line of the expected output for a function FN has the
  5127. form:
  5128. PREFIX FN: [{ target/xfail SELECTOR }]
  5129. Subsequent lines of the expected output also start with PREFIX. In
  5130. both cases, whitespace after PREFIX is not significant.
  5131. The test discards assembly directives such as '.cfi_startproc' and
  5132. local label definitions such as '.LFB0' from the compiler's
  5133. assembly output. It then matches the result against the expected
  5134. output for a function as a single regular expression. This means
  5135. that later lines can use backslashes to refer back to '(...)'
  5136. captures on earlier lines. For example:
  5137. /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
  5138. ...
  5139. /*
  5140. ** add_w0_s8_m:
  5141. ** mov (z[0-9]+\.b), w0
  5142. ** add z0\.b, p0/m, z0\.b, \1
  5143. ** ret
  5144. */
  5145. svint8_t add_w0_s8_m (...) { ... }
  5146. ...
  5147. /*
  5148. ** add_b0_s8_m:
  5149. ** mov (z[0-9]+\.b), b0
  5150. ** add z1\.b, p0/m, z1\.b, \1
  5151. ** ret
  5152. */
  5153. svint8_t add_b0_s8_m (...) { ... }
  5154. checks whether the implementations of 'add_w0_s8_m' and
  5155. 'add_b0_s8_m' match the regular expressions given. The test only
  5156. runs when '-DCHECK_ASM' is passed on the command line.
  5157. It is possible to create non-capturing multi-line regular
  5158. expression groups of the form '(A|B|...)' by putting the '(', '|'
  5159. and ')' on separate lines (each still using PREFIX). For example:
  5160. /*
  5161. ** cmple_f16_tied:
  5162. ** (
  5163. ** fcmge p0\.h, p0/z, z1\.h, z0\.h
  5164. ** |
  5165. ** fcmle p0\.h, p0/z, z0\.h, z1\.h
  5166. ** )
  5167. ** ret
  5168. */
  5169. svbool_t cmple_f16_tied (...) { ... }
  5170. checks whether 'cmple_f16_tied' is implemented by the 'fcmge'
  5171. instruction followed by 'ret' or by the 'fcmle' instruction
  5172. followed by 'ret'. The test is still a single regular rexpression.
  5173. A line containing just:
  5174. PREFIX ...
  5175. stands for zero or more unmatched lines; the whitespace after
  5176. PREFIX is again not significant.
  5177. 7.2.6.3 Scan optimization dump files
  5178. ....................................
  5179. These commands are available for KIND of 'tree', 'ltrans-tree',
  5180. 'offload-tree', 'rtl', 'offload-rtl', 'ipa', and 'wpa-ipa'.
  5181. 'scan-KIND-dump REGEX SUFFIX [{ target/xfail SELECTOR }]'
  5182. Passes if REGEX matches text in the dump file with suffix SUFFIX.
  5183. 'scan-KIND-dump-not REGEX SUFFIX [{ target/xfail SELECTOR }]'
  5184. Passes if REGEX does not match text in the dump file with suffix
  5185. SUFFIX.
  5186. 'scan-KIND-dump-times REGEX NUM SUFFIX [{ target/xfail SELECTOR }]'
  5187. Passes if REGEX is found exactly NUM times in the dump file with
  5188. suffix SUFFIX.
  5189. 'scan-KIND-dump-dem REGEX SUFFIX [{ target/xfail SELECTOR }]'
  5190. Passes if REGEX matches demangled text in the dump file with suffix
  5191. SUFFIX.
  5192. 'scan-KIND-dump-dem-not REGEX SUFFIX [{ target/xfail SELECTOR }]'
  5193. Passes if REGEX does not match demangled text in the dump file with
  5194. suffix SUFFIX.
  5195. 7.2.6.4 Check for output files
  5196. ..............................
  5197. 'output-exists [{ target/xfail SELECTOR }]'
  5198. Passes if compiler output file exists.
  5199. 'output-exists-not [{ target/xfail SELECTOR }]'
  5200. Passes if compiler output file does not exist.
  5201. 'scan-symbol REGEXP [{ target/xfail SELECTOR }]'
  5202. Passes if the pattern is present in the final executable.
  5203. 'scan-symbol-not REGEXP [{ target/xfail SELECTOR }]'
  5204. Passes if the pattern is absent from the final executable.
  5205. 7.2.6.5 Checks for 'gcov' tests
  5206. ...............................
  5207. 'run-gcov SOURCEFILE'
  5208. Check line counts in 'gcov' tests.
  5209. 'run-gcov [branches] [calls] { OPTS SOURCEFILE }'
  5210. Check branch and/or call counts, in addition to line counts, in
  5211. 'gcov' tests.
  5212. 7.2.6.6 Clean up generated test files
  5213. .....................................
  5214. Usually the test-framework removes files that were generated during
  5215. testing. If a testcase, for example, uses any dumping mechanism to
  5216. inspect a passes dump file, the testsuite recognized the dump option
  5217. passed to the tool and schedules a final cleanup to remove these files.
  5218. There are, however, following additional cleanup directives that can be
  5219. used to annotate a testcase "manually".
  5220. 'cleanup-coverage-files'
  5221. Removes coverage data files generated for this test.
  5222. 'cleanup-modules "LIST-OF-EXTRA-MODULES"'
  5223. Removes Fortran module files generated for this test, excluding the
  5224. module names listed in keep-modules. Cleaning up module files is
  5225. usually done automatically by the testsuite by looking at the
  5226. source files and removing the modules after the test has been
  5227. executed.
  5228. module MoD1
  5229. end module MoD1
  5230. module Mod2
  5231. end module Mod2
  5232. module moD3
  5233. end module moD3
  5234. module mod4
  5235. end module mod4
  5236. ! { dg-final { cleanup-modules "mod1 mod2" } } ! redundant
  5237. ! { dg-final { keep-modules "mod3 mod4" } }
  5238. 'keep-modules "LIST-OF-MODULES-NOT-TO-DELETE"'
  5239. Whitespace separated list of module names that should not be
  5240. deleted by cleanup-modules. If the list of modules is empty, all
  5241. modules defined in this file are kept.
  5242. module maybe_unneeded
  5243. end module maybe_unneeded
  5244. module keep1
  5245. end module keep1
  5246. module keep2
  5247. end module keep2
  5248. ! { dg-final { keep-modules "keep1 keep2" } } ! just keep these two
  5249. ! { dg-final { keep-modules "" } } ! keep all
  5250. 'dg-keep-saved-temps "LIST-OF-SUFFIXES-NOT-TO-DELETE"'
  5251. Whitespace separated list of suffixes that should not be deleted
  5252. automatically in a testcase that uses '-save-temps'.
  5253. // { dg-options "-save-temps -fpch-preprocess -I." }
  5254. int main() { return 0; }
  5255. // { dg-keep-saved-temps ".s" } ! just keep assembler file
  5256. // { dg-keep-saved-temps ".s" ".i" } ! ... and .i
  5257. // { dg-keep-saved-temps ".ii" ".o" } ! or just .ii and .o
  5258. 'cleanup-profile-file'
  5259. Removes profiling files generated for this test.
  5260. 
  5261. File: gccint.info, Node: Ada Tests, Next: C Tests, Prev: Test Directives, Up: Testsuites
  5262. 7.3 Ada Language Testsuites
  5263. ===========================
  5264. The Ada testsuite includes executable tests from the ACATS testsuite,
  5265. publicly available at <http://www.ada-auth.org/acats.html>.
  5266. These tests are integrated in the GCC testsuite in the 'ada/acats'
  5267. directory, and enabled automatically when running 'make check', assuming
  5268. the Ada language has been enabled when configuring GCC.
  5269. You can also run the Ada testsuite independently, using 'make
  5270. check-ada', or run a subset of the tests by specifying which chapter to
  5271. run, e.g.:
  5272. $ make check-ada CHAPTERS="c3 c9"
  5273. The tests are organized by directory, each directory corresponding to a
  5274. chapter of the Ada Reference Manual. So for example, 'c9' corresponds
  5275. to chapter 9, which deals with tasking features of the language.
  5276. The tests are run using two 'sh' scripts: 'run_acats' and 'run_all.sh'.
  5277. To run the tests using a simulator or a cross target, see the small
  5278. customization section at the top of 'run_all.sh'.
  5279. These tests are run using the build tree: they can be run without doing
  5280. a 'make install'.
  5281. 
  5282. File: gccint.info, Node: C Tests, Next: LTO Testing, Prev: Ada Tests, Up: Testsuites
  5283. 7.4 C Language Testsuites
  5284. =========================
  5285. GCC contains the following C language testsuites, in the 'gcc/testsuite'
  5286. directory:
  5287. 'gcc.dg'
  5288. This contains tests of particular features of the C compiler, using
  5289. the more modern 'dg' harness. Correctness tests for various
  5290. compiler features should go here if possible.
  5291. Magic comments determine whether the file is preprocessed,
  5292. compiled, linked or run. In these tests, error and warning message
  5293. texts are compared against expected texts or regular expressions
  5294. given in comments. These tests are run with the options '-ansi
  5295. -pedantic' unless other options are given in the test. Except as
  5296. noted below they are not run with multiple optimization options.
  5297. 'gcc.dg/compat'
  5298. This subdirectory contains tests for binary compatibility using
  5299. 'lib/compat.exp', which in turn uses the language-independent
  5300. support (*note Support for testing binary compatibility: compat
  5301. Testing.).
  5302. 'gcc.dg/cpp'
  5303. This subdirectory contains tests of the preprocessor.
  5304. 'gcc.dg/debug'
  5305. This subdirectory contains tests for debug formats. Tests in this
  5306. subdirectory are run for each debug format that the compiler
  5307. supports.
  5308. 'gcc.dg/format'
  5309. This subdirectory contains tests of the '-Wformat' format checking.
  5310. Tests in this directory are run with and without '-DWIDE'.
  5311. 'gcc.dg/noncompile'
  5312. This subdirectory contains tests of code that should not compile
  5313. and does not need any special compilation options. They are run
  5314. with multiple optimization options, since sometimes invalid code
  5315. crashes the compiler with optimization.
  5316. 'gcc.dg/special'
  5317. FIXME: describe this.
  5318. 'gcc.c-torture'
  5319. This contains particular code fragments which have historically
  5320. broken easily. These tests are run with multiple optimization
  5321. options, so tests for features which only break at some
  5322. optimization levels belong here. This also contains tests to check
  5323. that certain optimizations occur. It might be worthwhile to
  5324. separate the correctness tests cleanly from the code quality tests,
  5325. but it hasn't been done yet.
  5326. 'gcc.c-torture/compat'
  5327. FIXME: describe this.
  5328. This directory should probably not be used for new tests.
  5329. 'gcc.c-torture/compile'
  5330. This testsuite contains test cases that should compile, but do not
  5331. need to link or run. These test cases are compiled with several
  5332. different combinations of optimization options. All warnings are
  5333. disabled for these test cases, so this directory is not suitable if
  5334. you wish to test for the presence or absence of compiler warnings.
  5335. While special options can be set, and tests disabled on specific
  5336. platforms, by the use of '.x' files, mostly these test cases should
  5337. not contain platform dependencies. FIXME: discuss how defines such
  5338. as 'STACK_SIZE' are used.
  5339. 'gcc.c-torture/execute'
  5340. This testsuite contains test cases that should compile, link and
  5341. run; otherwise the same comments as for 'gcc.c-torture/compile'
  5342. apply.
  5343. 'gcc.c-torture/execute/ieee'
  5344. This contains tests which are specific to IEEE floating point.
  5345. 'gcc.c-torture/unsorted'
  5346. FIXME: describe this.
  5347. This directory should probably not be used for new tests.
  5348. 'gcc.misc-tests'
  5349. This directory contains C tests that require special handling.
  5350. Some of these tests have individual expect files, and others share
  5351. special-purpose expect files:
  5352. 'bprob*.c'
  5353. Test '-fbranch-probabilities' using
  5354. 'gcc.misc-tests/bprob.exp', which in turn uses the generic,
  5355. language-independent framework (*note Support for testing
  5356. profile-directed optimizations: profopt Testing.).
  5357. 'gcov*.c'
  5358. Test 'gcov' output using 'gcov.exp', which in turn uses the
  5359. language-independent support (*note Support for testing gcov:
  5360. gcov Testing.).
  5361. 'i386-pf-*.c'
  5362. Test i386-specific support for data prefetch using
  5363. 'i386-prefetch.exp'.
  5364. 'gcc.test-framework'
  5365. 'dg-*.c'
  5366. Test the testsuite itself using
  5367. 'gcc.test-framework/test-framework.exp'.
  5368. FIXME: merge in 'testsuite/README.gcc' and discuss the format of test
  5369. cases and magic comments more.
  5370. 
  5371. File: gccint.info, Node: LTO Testing, Next: gcov Testing, Prev: C Tests, Up: Testsuites
  5372. 7.5 Support for testing link-time optimizations
  5373. ===============================================
  5374. Tests for link-time optimizations usually require multiple source files
  5375. that are compiled separately, perhaps with different sets of options.
  5376. There are several special-purpose test directives used for these tests.
  5377. '{ dg-lto-do DO-WHAT-KEYWORD }'
  5378. DO-WHAT-KEYWORD specifies how the test is compiled and whether it
  5379. is executed. It is one of:
  5380. 'assemble'
  5381. Compile with '-c' to produce a relocatable object file.
  5382. 'link'
  5383. Compile, assemble, and link to produce an executable file.
  5384. 'run'
  5385. Produce and run an executable file, which is expected to
  5386. return an exit code of 0.
  5387. The default is 'assemble'. That can be overridden for a set of
  5388. tests by redefining 'dg-do-what-default' within the '.exp' file for
  5389. those tests.
  5390. Unlike 'dg-do', 'dg-lto-do' does not support an optional 'target'
  5391. or 'xfail' list. Use 'dg-skip-if', 'dg-xfail-if', or
  5392. 'dg-xfail-run-if'.
  5393. '{ dg-lto-options { { OPTIONS } [{ OPTIONS }] } [{ target SELECTOR }]}'
  5394. This directive provides a list of one or more sets of compiler
  5395. options to override LTO_OPTIONS. Each test will be compiled and
  5396. run with each of these sets of options.
  5397. '{ dg-extra-ld-options OPTIONS [{ target SELECTOR }]}'
  5398. This directive adds OPTIONS to the linker options used.
  5399. '{ dg-suppress-ld-options OPTIONS [{ target SELECTOR }]}'
  5400. This directive removes OPTIONS from the set of linker options used.
  5401. 
  5402. File: gccint.info, Node: gcov Testing, Next: profopt Testing, Prev: LTO Testing, Up: Testsuites
  5403. 7.6 Support for testing 'gcov'
  5404. ==============================
  5405. Language-independent support for testing 'gcov', and for checking that
  5406. branch profiling produces expected values, is provided by the expect
  5407. file 'lib/gcov.exp'. 'gcov' tests also rely on procedures in
  5408. 'lib/gcc-dg.exp' to compile and run the test program. A typical 'gcov'
  5409. test contains the following DejaGnu commands within comments:
  5410. { dg-options "--coverage" }
  5411. { dg-do run { target native } }
  5412. { dg-final { run-gcov sourcefile } }
  5413. Checks of 'gcov' output can include line counts, branch percentages,
  5414. and call return percentages. All of these checks are requested via
  5415. commands that appear in comments in the test's source file. Commands to
  5416. check line counts are processed by default. Commands to check branch
  5417. percentages and call return percentages are processed if the 'run-gcov'
  5418. command has arguments 'branches' or 'calls', respectively. For example,
  5419. the following specifies checking both, as well as passing '-b' to
  5420. 'gcov':
  5421. { dg-final { run-gcov branches calls { -b sourcefile } } }
  5422. A line count command appears within a comment on the source line that
  5423. is expected to get the specified count and has the form 'count(CNT)'. A
  5424. test should only check line counts for lines that will get the same
  5425. count for any architecture.
  5426. Commands to check branch percentages ('branch') and call return
  5427. percentages ('returns') are very similar to each other. A beginning
  5428. command appears on or before the first of a range of lines that will
  5429. report the percentage, and the ending command follows that range of
  5430. lines. The beginning command can include a list of percentages, all of
  5431. which are expected to be found within the range. A range is terminated
  5432. by the next command of the same kind. A command 'branch(end)' or
  5433. 'returns(end)' marks the end of a range without starting a new one. For
  5434. example:
  5435. if (i > 10 && j > i && j < 20) /* branch(27 50 75) */
  5436. /* branch(end) */
  5437. foo (i, j);
  5438. For a call return percentage, the value specified is the percentage of
  5439. calls reported to return. For a branch percentage, the value is either
  5440. the expected percentage or 100 minus that value, since the direction of
  5441. a branch can differ depending on the target or the optimization level.
  5442. Not all branches and calls need to be checked. A test should not check
  5443. for branches that might be optimized away or replaced with predicated
  5444. instructions. Don't check for calls inserted by the compiler or ones
  5445. that might be inlined or optimized away.
  5446. A single test can check for combinations of line counts, branch
  5447. percentages, and call return percentages. The command to check a line
  5448. count must appear on the line that will report that count, but commands
  5449. to check branch percentages and call return percentages can bracket the
  5450. lines that report them.
  5451. 
  5452. File: gccint.info, Node: profopt Testing, Next: compat Testing, Prev: gcov Testing, Up: Testsuites
  5453. 7.7 Support for testing profile-directed optimizations
  5454. ======================================================
  5455. The file 'profopt.exp' provides language-independent support for
  5456. checking correct execution of a test built with profile-directed
  5457. optimization. This testing requires that a test program be built and
  5458. executed twice. The first time it is compiled to generate profile data,
  5459. and the second time it is compiled to use the data that was generated
  5460. during the first execution. The second execution is to verify that the
  5461. test produces the expected results.
  5462. To check that the optimization actually generated better code, a test
  5463. can be built and run a third time with normal optimizations to verify
  5464. that the performance is better with the profile-directed optimizations.
  5465. 'profopt.exp' has the beginnings of this kind of support.
  5466. 'profopt.exp' provides generic support for profile-directed
  5467. optimizations. Each set of tests that uses it provides information
  5468. about a specific optimization:
  5469. 'tool'
  5470. tool being tested, e.g., 'gcc'
  5471. 'profile_option'
  5472. options used to generate profile data
  5473. 'feedback_option'
  5474. options used to optimize using that profile data
  5475. 'prof_ext'
  5476. suffix of profile data files
  5477. 'PROFOPT_OPTIONS'
  5478. list of options with which to run each test, similar to the lists
  5479. for torture tests
  5480. '{ dg-final-generate { LOCAL-DIRECTIVE } }'
  5481. This directive is similar to 'dg-final', but the LOCAL-DIRECTIVE is
  5482. run after the generation of profile data.
  5483. '{ dg-final-use { LOCAL-DIRECTIVE } }'
  5484. The LOCAL-DIRECTIVE is run after the profile data have been used.
  5485. 
  5486. File: gccint.info, Node: compat Testing, Next: Torture Tests, Prev: profopt Testing, Up: Testsuites
  5487. 7.8 Support for testing binary compatibility
  5488. ============================================
  5489. The file 'compat.exp' provides language-independent support for binary
  5490. compatibility testing. It supports testing interoperability of two
  5491. compilers that follow the same ABI, or of multiple sets of compiler
  5492. options that should not affect binary compatibility. It is intended to
  5493. be used for testsuites that complement ABI testsuites.
  5494. A test supported by this framework has three parts, each in a separate
  5495. source file: a main program and two pieces that interact with each other
  5496. to split up the functionality being tested.
  5497. 'TESTNAME_main.SUFFIX'
  5498. Contains the main program, which calls a function in file
  5499. 'TESTNAME_x.SUFFIX'.
  5500. 'TESTNAME_x.SUFFIX'
  5501. Contains at least one call to a function in 'TESTNAME_y.SUFFIX'.
  5502. 'TESTNAME_y.SUFFIX'
  5503. Shares data with, or gets arguments from, 'TESTNAME_x.SUFFIX'.
  5504. Within each test, the main program and one functional piece are
  5505. compiled by the GCC under test. The other piece can be compiled by an
  5506. alternate compiler. If no alternate compiler is specified, then all
  5507. three source files are all compiled by the GCC under test. You can
  5508. specify pairs of sets of compiler options. The first element of such a
  5509. pair specifies options used with the GCC under test, and the second
  5510. element of the pair specifies options used with the alternate compiler.
  5511. Each test is compiled with each pair of options.
  5512. 'compat.exp' defines default pairs of compiler options. These can be
  5513. overridden by defining the environment variable 'COMPAT_OPTIONS' as:
  5514. COMPAT_OPTIONS="[list [list {TST1} {ALT1}]
  5515. ...[list {TSTN} {ALTN}]]"
  5516. where TSTI and ALTI are lists of options, with TSTI used by the
  5517. compiler under test and ALTI used by the alternate compiler. For
  5518. example, with '[list [list {-g -O0} {-O3}] [list {-fpic} {-fPIC -O2}]]',
  5519. the test is first built with '-g -O0' by the compiler under test and
  5520. with '-O3' by the alternate compiler. The test is built a second time
  5521. using '-fpic' by the compiler under test and '-fPIC -O2' by the
  5522. alternate compiler.
  5523. An alternate compiler is specified by defining an environment variable
  5524. to be the full pathname of an installed compiler; for C define
  5525. 'ALT_CC_UNDER_TEST', and for C++ define 'ALT_CXX_UNDER_TEST'. These
  5526. will be written to the 'site.exp' file used by DejaGnu. The default is
  5527. to build each test with the compiler under test using the first of each
  5528. pair of compiler options from 'COMPAT_OPTIONS'. When
  5529. 'ALT_CC_UNDER_TEST' or 'ALT_CXX_UNDER_TEST' is 'same', each test is
  5530. built using the compiler under test but with combinations of the options
  5531. from 'COMPAT_OPTIONS'.
  5532. To run only the C++ compatibility suite using the compiler under test
  5533. and another version of GCC using specific compiler options, do the
  5534. following from 'OBJDIR/gcc':
  5535. rm site.exp
  5536. make -k \
  5537. ALT_CXX_UNDER_TEST=${alt_prefix}/bin/g++ \
  5538. COMPAT_OPTIONS="LISTS AS SHOWN ABOVE" \
  5539. check-c++ \
  5540. RUNTESTFLAGS="compat.exp"
  5541. A test that fails when the source files are compiled with different
  5542. compilers, but passes when the files are compiled with the same
  5543. compiler, demonstrates incompatibility of the generated code or runtime
  5544. support. A test that fails for the alternate compiler but passes for
  5545. the compiler under test probably tests for a bug that was fixed in the
  5546. compiler under test but is present in the alternate compiler.
  5547. The binary compatibility tests support a small number of test framework
  5548. commands that appear within comments in a test file.
  5549. 'dg-require-*'
  5550. These commands can be used in 'TESTNAME_main.SUFFIX' to skip the
  5551. test if specific support is not available on the target.
  5552. 'dg-options'
  5553. The specified options are used for compiling this particular source
  5554. file, appended to the options from 'COMPAT_OPTIONS'. When this
  5555. command appears in 'TESTNAME_main.SUFFIX' the options are also used
  5556. to link the test program.
  5557. 'dg-xfail-if'
  5558. This command can be used in a secondary source file to specify that
  5559. compilation is expected to fail for particular options on
  5560. particular targets.
  5561. 
  5562. File: gccint.info, Node: Torture Tests, Next: GIMPLE Tests, Prev: compat Testing, Up: Testsuites
  5563. 7.9 Support for torture testing using multiple options
  5564. ======================================================
  5565. Throughout the compiler testsuite there are several directories whose
  5566. tests are run multiple times, each with a different set of options.
  5567. These are known as torture tests. 'lib/torture-options.exp' defines
  5568. procedures to set up these lists:
  5569. 'torture-init'
  5570. Initialize use of torture lists.
  5571. 'set-torture-options'
  5572. Set lists of torture options to use for tests with and without
  5573. loops. Optionally combine a set of torture options with a set of
  5574. other options, as is done with Objective-C runtime options.
  5575. 'torture-finish'
  5576. Finalize use of torture lists.
  5577. The '.exp' file for a set of tests that use torture options must
  5578. include calls to these three procedures if:
  5579. * It calls 'gcc-dg-runtest' and overrides DG_TORTURE_OPTIONS.
  5580. * It calls ${TOOL}'-torture' or ${TOOL}'-torture-execute', where TOOL
  5581. is 'c', 'fortran', or 'objc'.
  5582. * It calls 'dg-pch'.
  5583. It is not necessary for a '.exp' file that calls 'gcc-dg-runtest' to
  5584. call the torture procedures if the tests should use the list in
  5585. DG_TORTURE_OPTIONS defined in 'gcc-dg.exp'.
  5586. Most uses of torture options can override the default lists by defining
  5587. TORTURE_OPTIONS or add to the default list by defining
  5588. ADDITIONAL_TORTURE_OPTIONS. Define these in a '.dejagnurc' file or add
  5589. them to the 'site.exp' file; for example
  5590. set ADDITIONAL_TORTURE_OPTIONS [list \
  5591. { -O2 -ftree-loop-linear } \
  5592. { -O2 -fpeel-loops } ]
  5593. 
  5594. File: gccint.info, Node: GIMPLE Tests, Next: RTL Tests, Prev: Torture Tests, Up: Testsuites
  5595. 7.10 Support for testing GIMPLE passes
  5596. ======================================
  5597. As of gcc 7, C functions can be tagged with '__GIMPLE' to indicate that
  5598. the function body will be GIMPLE, rather than C. The compiler requires
  5599. the option '-fgimple' to enable this functionality. For example:
  5600. /* { dg-do compile } */
  5601. /* { dg-options "-O -fgimple" } */
  5602. void __GIMPLE (startwith ("dse2")) foo ()
  5603. {
  5604. int a;
  5605. bb_2:
  5606. if (a > 4)
  5607. goto bb_3;
  5608. else
  5609. goto bb_4;
  5610. bb_3:
  5611. a_2 = 10;
  5612. goto bb_5;
  5613. bb_4:
  5614. a_3 = 20;
  5615. bb_5:
  5616. a_1 = __PHI (bb_3: a_2, bb_4: a_3);
  5617. a_4 = a_1 + 4;
  5618. return;
  5619. }
  5620. The 'startwith' argument indicates at which pass to begin.
  5621. Use the dump modifier '-gimple' (e.g. '-fdump-tree-all-gimple') to make
  5622. tree dumps more closely follow the format accepted by the GIMPLE parser.
  5623. Example DejaGnu tests of GIMPLE can be seen in the source tree at
  5624. 'gcc/testsuite/gcc.dg/gimplefe-*.c'.
  5625. The '__GIMPLE' parser is integrated with the C tokenizer and
  5626. preprocessor, so it should be possible to use macros to build out test
  5627. coverage.
  5628. 
  5629. File: gccint.info, Node: RTL Tests, Prev: GIMPLE Tests, Up: Testsuites
  5630. 7.11 Support for testing RTL passes
  5631. ===================================
  5632. As of gcc 7, C functions can be tagged with '__RTL' to indicate that the
  5633. function body will be RTL, rather than C. For example:
  5634. double __RTL (startwith ("ira")) test (struct foo *f, const struct bar *b)
  5635. {
  5636. (function "test"
  5637. [...snip; various directives go in here...]
  5638. ) ;; function "test"
  5639. }
  5640. The 'startwith' argument indicates at which pass to begin.
  5641. The parser expects the RTL body to be in the format emitted by this
  5642. dumping function:
  5643. DEBUG_FUNCTION void
  5644. print_rtx_function (FILE *outfile, function *fn, bool compact);
  5645. when "compact" is true. So you can capture RTL in the correct format
  5646. from the debugger using:
  5647. (gdb) print_rtx_function (stderr, cfun, true);
  5648. and copy and paste the output into the body of the C function.
  5649. Example DejaGnu tests of RTL can be seen in the source tree under
  5650. 'gcc/testsuite/gcc.dg/rtl'.
  5651. The '__RTL' parser is not integrated with the C tokenizer or
  5652. preprocessor, and works simply by reading the relevant lines within the
  5653. braces. In particular, the RTL body must be on separate lines from the
  5654. enclosing braces, and the preprocessor is not usable within it.
  5655. 
  5656. File: gccint.info, Node: Options, Next: Passes, Prev: Testsuites, Up: Top
  5657. 8 Option specification files
  5658. ****************************
  5659. Most GCC command-line options are described by special option definition
  5660. files, the names of which conventionally end in '.opt'. This chapter
  5661. describes the format of these files.
  5662. * Menu:
  5663. * Option file format:: The general layout of the files
  5664. * Option properties:: Supported option properties
  5665. 
  5666. File: gccint.info, Node: Option file format, Next: Option properties, Up: Options
  5667. 8.1 Option file format
  5668. ======================
  5669. Option files are a simple list of records in which each field occupies
  5670. its own line and in which the records themselves are separated by blank
  5671. lines. Comments may appear on their own line anywhere within the file
  5672. and are preceded by semicolons. Whitespace is allowed before the
  5673. semicolon.
  5674. The files can contain the following types of record:
  5675. * A language definition record. These records have two fields: the
  5676. string 'Language' and the name of the language. Once a language
  5677. has been declared in this way, it can be used as an option
  5678. property. *Note Option properties::.
  5679. * A target specific save record to save additional information.
  5680. These records have two fields: the string 'TargetSave', and a
  5681. declaration type to go in the 'cl_target_option' structure.
  5682. * A variable record to define a variable used to store option
  5683. information. These records have two fields: the string 'Variable',
  5684. and a declaration of the type and name of the variable, optionally
  5685. with an initializer (but without any trailing ';'). These records
  5686. may be used for variables used for many options where declaring the
  5687. initializer in a single option definition record, or duplicating it
  5688. in many records, would be inappropriate, or for variables set in
  5689. option handlers rather than referenced by 'Var' properties.
  5690. * A variable record to define a variable used to store option
  5691. information. These records have two fields: the string
  5692. 'TargetVariable', and a declaration of the type and name of the
  5693. variable, optionally with an initializer (but without any trailing
  5694. ';'). 'TargetVariable' is a combination of 'Variable' and
  5695. 'TargetSave' records in that the variable is defined in the
  5696. 'gcc_options' structure, but these variables are also stored in the
  5697. 'cl_target_option' structure. The variables are saved in the
  5698. target save code and restored in the target restore code.
  5699. * A variable record to record any additional files that the
  5700. 'options.h' file should include. This is useful to provide
  5701. enumeration or structure definitions needed for target variables.
  5702. These records have two fields: the string 'HeaderInclude' and the
  5703. name of the include file.
  5704. * A variable record to record any additional files that the
  5705. 'options.c' or 'options-save.c' file should include. This is
  5706. useful to provide inline functions needed for target variables
  5707. and/or '#ifdef' sequences to properly set up the initialization.
  5708. These records have two fields: the string 'SourceInclude' and the
  5709. name of the include file.
  5710. * An enumeration record to define a set of strings that may be used
  5711. as arguments to an option or options. These records have three
  5712. fields: the string 'Enum', a space-separated list of properties and
  5713. help text used to describe the set of strings in '--help' output.
  5714. Properties use the same format as option properties; the following
  5715. are valid:
  5716. 'Name(NAME)'
  5717. This property is required; NAME must be a name (suitable for
  5718. use in C identifiers) used to identify the set of strings in
  5719. 'Enum' option properties.
  5720. 'Type(TYPE)'
  5721. This property is required; TYPE is the C type for variables
  5722. set by options using this enumeration together with 'Var'.
  5723. 'UnknownError(MESSAGE)'
  5724. The message MESSAGE will be used as an error message if the
  5725. argument is invalid; for enumerations without 'UnknownError',
  5726. a generic error message is used. MESSAGE should contain a
  5727. single '%qs' format, which will be used to format the invalid
  5728. argument.
  5729. * An enumeration value record to define one of the strings in a set
  5730. given in an 'Enum' record. These records have two fields: the
  5731. string 'EnumValue' and a space-separated list of properties.
  5732. Properties use the same format as option properties; the following
  5733. are valid:
  5734. 'Enum(NAME)'
  5735. This property is required; NAME says which 'Enum' record this
  5736. 'EnumValue' record corresponds to.
  5737. 'String(STRING)'
  5738. This property is required; STRING is the string option
  5739. argument being described by this record.
  5740. 'Value(VALUE)'
  5741. This property is required; it says what value (representable
  5742. as 'int') should be used for the given string.
  5743. 'Canonical'
  5744. This property is optional. If present, it says the present
  5745. string is the canonical one among all those with the given
  5746. value. Other strings yielding that value will be mapped to
  5747. this one so specs do not need to handle them.
  5748. 'DriverOnly'
  5749. This property is optional. If present, the present string
  5750. will only be accepted by the driver. This is used for cases
  5751. such as '-march=native' that are processed by the driver so
  5752. that 'gcc -v' shows how the options chosen depended on the
  5753. system on which the compiler was run.
  5754. * An option definition record. These records have the following
  5755. fields:
  5756. 1. the name of the option, with the leading "-" removed
  5757. 2. a space-separated list of option properties (*note Option
  5758. properties::)
  5759. 3. the help text to use for '--help' (omitted if the second field
  5760. contains the 'Undocumented' property).
  5761. By default, all options beginning with "f", "W" or "m" are
  5762. implicitly assumed to take a "no-" form. This form should not be
  5763. listed separately. If an option beginning with one of these
  5764. letters does not have a "no-" form, you can use the
  5765. 'RejectNegative' property to reject it.
  5766. The help text is automatically line-wrapped before being displayed.
  5767. Normally the name of the option is printed on the left-hand side of
  5768. the output and the help text is printed on the right. However, if
  5769. the help text contains a tab character, the text to the left of the
  5770. tab is used instead of the option's name and the text to the right
  5771. of the tab forms the help text. This allows you to elaborate on
  5772. what type of argument the option takes.
  5773. * A target mask record. These records have one field of the form
  5774. 'Mask(X)'. The options-processing script will automatically
  5775. allocate a bit in 'target_flags' (*note Run-time Target::) for each
  5776. mask name X and set the macro 'MASK_X' to the appropriate bitmask.
  5777. It will also declare a 'TARGET_X' macro that has the value 1 when
  5778. bit 'MASK_X' is set and 0 otherwise.
  5779. They are primarily intended to declare target masks that are not
  5780. associated with user options, either because these masks represent
  5781. internal switches or because the options are not available on all
  5782. configurations and yet the masks always need to be defined.
  5783. 
  5784. File: gccint.info, Node: Option properties, Prev: Option file format, Up: Options
  5785. 8.2 Option properties
  5786. =====================
  5787. The second field of an option record can specify any of the following
  5788. properties. When an option takes an argument, it is enclosed in
  5789. parentheses following the option property name. The parser that handles
  5790. option files is quite simplistic, and will be tricked by any nested
  5791. parentheses within the argument text itself; in this case, the entire
  5792. option argument can be wrapped in curly braces within the parentheses to
  5793. demarcate it, e.g.:
  5794. Condition({defined (USE_CYGWIN_LIBSTDCXX_WRAPPERS)})
  5795. 'Common'
  5796. The option is available for all languages and targets.
  5797. 'Target'
  5798. The option is available for all languages but is target-specific.
  5799. 'Driver'
  5800. The option is handled by the compiler driver using code not shared
  5801. with the compilers proper ('cc1' etc.).
  5802. 'LANGUAGE'
  5803. The option is available when compiling for the given language.
  5804. It is possible to specify several different languages for the same
  5805. option. Each LANGUAGE must have been declared by an earlier
  5806. 'Language' record. *Note Option file format::.
  5807. 'RejectDriver'
  5808. The option is only handled by the compilers proper ('cc1' etc.) and
  5809. should not be accepted by the driver.
  5810. 'RejectNegative'
  5811. The option does not have a "no-" form. All options beginning with
  5812. "f", "W" or "m" are assumed to have a "no-" form unless this
  5813. property is used.
  5814. 'Negative(OTHERNAME)'
  5815. The option will turn off another option OTHERNAME, which is the
  5816. option name with the leading "-" removed. This chain action will
  5817. propagate through the 'Negative' property of the option to be
  5818. turned off. The driver will prune options, removing those that are
  5819. turned off by some later option. This pruning is not done for
  5820. options with 'Joined' or 'JoinedOrMissing' properties, unless the
  5821. options have either 'RejectNegative' property or the 'Negative'
  5822. property mentions an option other than itself.
  5823. As a consequence, if you have a group of mutually-exclusive
  5824. options, their 'Negative' properties should form a circular chain.
  5825. For example, if options '-A', '-B' and '-C' are mutually exclusive,
  5826. their respective 'Negative' properties should be 'Negative(B)',
  5827. 'Negative(C)' and 'Negative(A)'.
  5828. 'Joined'
  5829. 'Separate'
  5830. The option takes a mandatory argument. 'Joined' indicates that the
  5831. option and argument can be included in the same 'argv' entry (as
  5832. with '-mflush-func=NAME', for example). 'Separate' indicates that
  5833. the option and argument can be separate 'argv' entries (as with
  5834. '-o'). An option is allowed to have both of these properties.
  5835. 'JoinedOrMissing'
  5836. The option takes an optional argument. If the argument is given,
  5837. it will be part of the same 'argv' entry as the option itself.
  5838. This property cannot be used alongside 'Joined' or 'Separate'.
  5839. 'MissingArgError(MESSAGE)'
  5840. For an option marked 'Joined' or 'Separate', the message MESSAGE
  5841. will be used as an error message if the mandatory argument is
  5842. missing; for options without 'MissingArgError', a generic error
  5843. message is used. MESSAGE should contain a single '%qs' format,
  5844. which will be used to format the name of the option passed.
  5845. 'Args(N)'
  5846. For an option marked 'Separate', indicate that it takes N
  5847. arguments. The default is 1.
  5848. 'UInteger'
  5849. The option's argument is a non-negative integer consisting of
  5850. either decimal or hexadecimal digits interpreted as 'int'.
  5851. Hexadecimal integers may optionally start with the '0x' or '0X'
  5852. prefix. The option parser validates and converts the argument
  5853. before passing it to the relevant option handler. 'UInteger'
  5854. should also be used with options like '-falign-loops' where both
  5855. '-falign-loops' and '-falign-loops'=N are supported to make sure
  5856. the saved options are given a full integer. Positive values of the
  5857. argument in excess of 'INT_MAX' wrap around zero.
  5858. 'Host_Wide_Int'
  5859. The option's argument is a non-negative integer consisting of
  5860. either decimal or hexadecimal digits interpreted as the widest
  5861. integer type on the host. As with an 'UInteger' argument,
  5862. hexadecimal integers may optionally start with the '0x' or '0X'
  5863. prefix. The option parser validates and converts the argument
  5864. before passing it to the relevant option handler. 'Host_Wide_Int'
  5865. should be used with options that need to accept very large values.
  5866. Positive values of the argument in excess of 'HOST_WIDE_INT_M1U'
  5867. are assigned 'HOST_WIDE_INT_M1U'.
  5868. 'IntegerRange(N, M)'
  5869. The options's arguments are integers of type 'int'. The option's
  5870. parser validates that the value of an option integer argument is
  5871. within the closed range [N, M].
  5872. 'ByteSize'
  5873. A property applicable only to 'UInteger' or 'Host_Wide_Int'
  5874. arguments. The option's integer argument is interpreted as if in
  5875. infinite precision using saturation arithmetic in the corresponding
  5876. type. The argument may be followed by a 'byte-size' suffix
  5877. designating a multiple of bytes such as 'kB' and 'KiB' for kilobyte
  5878. and kibibyte, respectively, 'MB' and 'MiB' for megabyte and
  5879. mebibyte, 'GB' and 'GiB' for gigabyte and gigibyte, and so on.
  5880. 'ByteSize' should be used for with options that take a very large
  5881. argument representing a size in bytes, such as '-Wlarger-than='.
  5882. 'ToLower'
  5883. The option's argument should be converted to lowercase as part of
  5884. putting it in canonical form, and before comparing with the strings
  5885. indicated by any 'Enum' property.
  5886. 'NoDriverArg'
  5887. For an option marked 'Separate', the option only takes an argument
  5888. in the compiler proper, not in the driver. This is for
  5889. compatibility with existing options that are used both directly and
  5890. via '-Wp,'; new options should not have this property.
  5891. 'Var(VAR)'
  5892. The state of this option should be stored in variable VAR (actually
  5893. a macro for 'global_options.x_VAR'). The way that the state is
  5894. stored depends on the type of option:
  5895. 'WarnRemoved'
  5896. The option is removed and every usage of such option will result in
  5897. a warning. We use it option backward compatibility.
  5898. 'Var(VAR, SET)'
  5899. The option controls an integer variable VAR and is active when VAR
  5900. equals SET. The option parser will set VAR to SET when the
  5901. positive form of the option is used and '!SET' when the "no-" form
  5902. is used.
  5903. VAR is declared in the same way as for the single-argument form
  5904. described above.
  5905. * If the option uses the 'Mask' or 'InverseMask' properties, VAR
  5906. is the integer variable that contains the mask.
  5907. * If the option is a normal on/off switch, VAR is an integer
  5908. variable that is nonzero when the option is enabled. The
  5909. options parser will set the variable to 1 when the positive
  5910. form of the option is used and 0 when the "no-" form is used.
  5911. * If the option takes an argument and has the 'UInteger'
  5912. property, VAR is an integer variable that stores the value of
  5913. the argument.
  5914. * If the option takes an argument and has the 'Enum' property,
  5915. VAR is a variable (type given in the 'Type' property of the
  5916. 'Enum' record whose 'Name' property has the same argument as
  5917. the 'Enum' property of this option) that stores the value of
  5918. the argument.
  5919. * If the option has the 'Defer' property, VAR is a pointer to a
  5920. 'VEC(cl_deferred_option,heap)' that stores the option for
  5921. later processing. (VAR is declared with type 'void *' and
  5922. needs to be cast to 'VEC(cl_deferred_option,heap)' before
  5923. use.)
  5924. * Otherwise, if the option takes an argument, VAR is a pointer
  5925. to the argument string. The pointer will be null if the
  5926. argument is optional and wasn't given.
  5927. The option-processing script will usually zero-initialize VAR. You
  5928. can modify this behavior using 'Init'.
  5929. 'Init(VALUE)'
  5930. The variable specified by the 'Var' property should be statically
  5931. initialized to VALUE. If more than one option using the same
  5932. variable specifies 'Init', all must specify the same initializer.
  5933. 'Mask(NAME)'
  5934. The option is associated with a bit in the 'target_flags' variable
  5935. (*note Run-time Target::) and is active when that bit is set. You
  5936. may also specify 'Var' to select a variable other than
  5937. 'target_flags'.
  5938. The options-processing script will automatically allocate a unique
  5939. bit for the option. If the option is attached to 'target_flags',
  5940. the script will set the macro 'MASK_NAME' to the appropriate
  5941. bitmask. It will also declare a 'TARGET_NAME' macro that has the
  5942. value 1 when the option is active and 0 otherwise. If you use
  5943. 'Var' to attach the option to a different variable, the bitmask
  5944. macro with be called 'OPTION_MASK_NAME'.
  5945. 'InverseMask(OTHERNAME)'
  5946. 'InverseMask(OTHERNAME, THISNAME)'
  5947. The option is the inverse of another option that has the
  5948. 'Mask(OTHERNAME)' property. If THISNAME is given, the
  5949. options-processing script will declare a 'TARGET_THISNAME' macro
  5950. that is 1 when the option is active and 0 otherwise.
  5951. 'Enum(NAME)'
  5952. The option's argument is a string from the set of strings
  5953. associated with the corresponding 'Enum' record. The string is
  5954. checked and converted to the integer specified in the corresponding
  5955. 'EnumValue' record before being passed to option handlers.
  5956. 'Defer'
  5957. The option should be stored in a vector, specified with 'Var', for
  5958. later processing.
  5959. 'Alias(OPT)'
  5960. 'Alias(OPT, ARG)'
  5961. 'Alias(OPT, POSARG, NEGARG)'
  5962. The option is an alias for '-OPT' (or the negative form of that
  5963. option, depending on 'NegativeAlias'). In the first form, any
  5964. argument passed to the alias is considered to be passed to '-OPT',
  5965. and '-OPT' is considered to be negated if the alias is used in
  5966. negated form. In the second form, the alias may not be negated or
  5967. have an argument, and POSARG is considered to be passed as an
  5968. argument to '-OPT'. In the third form, the alias may not have an
  5969. argument, if the alias is used in the positive form then POSARG is
  5970. considered to be passed to '-OPT', and if the alias is used in the
  5971. negative form then NEGARG is considered to be passed to '-OPT'.
  5972. Aliases should not specify 'Var' or 'Mask' or 'UInteger'. Aliases
  5973. should normally specify the same languages as the target of the
  5974. alias; the flags on the target will be used to determine any
  5975. diagnostic for use of an option for the wrong language, while those
  5976. on the alias will be used to identify what command-line text is the
  5977. option and what text is any argument to that option.
  5978. When an 'Alias' definition is used for an option, driver specs do
  5979. not need to handle it and no 'OPT_' enumeration value is defined
  5980. for it; only the canonical form of the option will be seen in those
  5981. places.
  5982. 'NegativeAlias'
  5983. For an option marked with 'Alias(OPT)', the option is considered to
  5984. be an alias for the positive form of '-OPT' if negated and for the
  5985. negative form of '-OPT' if not negated. 'NegativeAlias' may not be
  5986. used with the forms of 'Alias' taking more than one argument.
  5987. 'Ignore'
  5988. This option is ignored apart from printing any warning specified
  5989. using 'Warn'. The option will not be seen by specs and no 'OPT_'
  5990. enumeration value is defined for it.
  5991. 'SeparateAlias'
  5992. For an option marked with 'Joined', 'Separate' and 'Alias', the
  5993. option only acts as an alias when passed a separate argument; with
  5994. a joined argument it acts as a normal option, with an 'OPT_'
  5995. enumeration value. This is for compatibility with the Java '-d'
  5996. option and should not be used for new options.
  5997. 'Warn(MESSAGE)'
  5998. If this option is used, output the warning MESSAGE. MESSAGE is a
  5999. format string, either taking a single operand with a '%qs' format
  6000. which is the option name, or not taking any operands, which is
  6001. passed to the 'warning' function. If an alias is marked 'Warn',
  6002. the target of the alias must not also be marked 'Warn'.
  6003. 'Report'
  6004. The state of the option should be printed by '-fverbose-asm'.
  6005. 'Warning'
  6006. This is a warning option and should be shown as such in '--help'
  6007. output. This flag does not currently affect anything other than
  6008. '--help'.
  6009. 'Optimization'
  6010. This is an optimization option. It should be shown as such in
  6011. '--help' output, and any associated variable named using 'Var'
  6012. should be saved and restored when the optimization level is changed
  6013. with 'optimize' attributes.
  6014. 'PerFunction'
  6015. This is an option that can be overridden on a per-function basis.
  6016. 'Optimization' implies 'PerFunction', but options that do not
  6017. affect executable code generation may use this flag instead, so
  6018. that the option is not taken into account in ways that might affect
  6019. executable code generation.
  6020. 'Param'
  6021. This is an option that is a parameter.
  6022. 'Undocumented'
  6023. The option is deliberately missing documentation and should not be
  6024. included in the '--help' output.
  6025. 'Condition(COND)'
  6026. The option should only be accepted if preprocessor condition COND
  6027. is true. Note that any C declarations associated with the option
  6028. will be present even if COND is false; COND simply controls whether
  6029. the option is accepted and whether it is printed in the '--help'
  6030. output.
  6031. 'Save'
  6032. Build the 'cl_target_option' structure to hold a copy of the
  6033. option, add the functions 'cl_target_option_save' and
  6034. 'cl_target_option_restore' to save and restore the options.
  6035. 'SetByCombined'
  6036. The option may also be set by a combined option such as
  6037. '-ffast-math'. This causes the 'gcc_options' struct to have a
  6038. field 'frontend_set_NAME', where 'NAME' is the name of the field
  6039. holding the value of this option (without the leading 'x_'). This
  6040. gives the front end a way to indicate that the value has been set
  6041. explicitly and should not be changed by the combined option. For
  6042. example, some front ends use this to prevent '-ffast-math' and
  6043. '-fno-fast-math' from changing the value of '-fmath-errno' for
  6044. languages that do not use 'errno'.
  6045. 'EnabledBy(OPT)'
  6046. 'EnabledBy(OPT || OPT2)'
  6047. 'EnabledBy(OPT && OPT2)'
  6048. If not explicitly set, the option is set to the value of '-OPT';
  6049. multiple options can be given, separated by '||'. The third form
  6050. using '&&' specifies that the option is only set if both OPT and
  6051. OPT2 are set. The options OPT and OPT2 must have the 'Common'
  6052. property; otherwise, use 'LangEnabledBy'.
  6053. 'LangEnabledBy(LANGUAGE, OPT)'
  6054. 'LangEnabledBy(LANGUAGE, OPT, POSARG, NEGARG)'
  6055. When compiling for the given language, the option is set to the
  6056. value of '-OPT', if not explicitly set. OPT can be also a list of
  6057. '||' separated options. In the second form, if OPT is used in the
  6058. positive form then POSARG is considered to be passed to the option,
  6059. and if OPT is used in the negative form then NEGARG is considered
  6060. to be passed to the option. It is possible to specify several
  6061. different languages. Each LANGUAGE must have been declared by an
  6062. earlier 'Language' record. *Note Option file format::.
  6063. 'NoDWARFRecord'
  6064. The option is omitted from the producer string written by
  6065. '-grecord-gcc-switches'.
  6066. 'PchIgnore'
  6067. Even if this is a target option, this option will not be recorded /
  6068. compared to determine if a precompiled header file matches.
  6069. 'CPP(VAR)'
  6070. The state of this option should be kept in sync with the
  6071. preprocessor option VAR. If this property is set, then properties
  6072. 'Var' and 'Init' must be set as well.
  6073. 'CppReason(CPP_W_ENUM)'
  6074. This warning option corresponds to 'cpplib.h' warning reason code
  6075. CPP_W_ENUM. This should only be used for warning options of the
  6076. C-family front-ends.
  6077. 
  6078. File: gccint.info, Node: Passes, Next: poly_int, Prev: Options, Up: Top
  6079. 9 Passes and Files of the Compiler
  6080. **********************************
  6081. This chapter is dedicated to giving an overview of the optimization and
  6082. code generation passes of the compiler. In the process, it describes
  6083. some of the language front end interface, though this description is no
  6084. where near complete.
  6085. * Menu:
  6086. * Parsing pass:: The language front end turns text into bits.
  6087. * Gimplification pass:: The bits are turned into something we can optimize.
  6088. * Pass manager:: Sequencing the optimization passes.
  6089. * IPA passes:: Inter-procedural optimizations.
  6090. * Tree SSA passes:: Optimizations on a high-level representation.
  6091. * RTL passes:: Optimizations on a low-level representation.
  6092. * Optimization info:: Dumping optimization information from passes.
  6093. 
  6094. File: gccint.info, Node: Parsing pass, Next: Gimplification pass, Up: Passes
  6095. 9.1 Parsing pass
  6096. ================
  6097. The language front end is invoked only once, via
  6098. 'lang_hooks.parse_file', to parse the entire input. The language front
  6099. end may use any intermediate language representation deemed appropriate.
  6100. The C front end uses GENERIC trees (*note GENERIC::), plus a double
  6101. handful of language specific tree codes defined in 'c-common.def'. The
  6102. Fortran front end uses a completely different private representation.
  6103. At some point the front end must translate the representation used in
  6104. the front end to a representation understood by the language-independent
  6105. portions of the compiler. Current practice takes one of two forms. The
  6106. C front end manually invokes the gimplifier (*note GIMPLE::) on each
  6107. function, and uses the gimplifier callbacks to convert the
  6108. language-specific tree nodes directly to GIMPLE before passing the
  6109. function off to be compiled. The Fortran front end converts from a
  6110. private representation to GENERIC, which is later lowered to GIMPLE when
  6111. the function is compiled. Which route to choose probably depends on how
  6112. well GENERIC (plus extensions) can be made to match up with the source
  6113. language and necessary parsing data structures.
  6114. BUG: Gimplification must occur before nested function lowering, and
  6115. nested function lowering must be done by the front end before passing
  6116. the data off to cgraph.
  6117. TODO: Cgraph should control nested function lowering. It would only be
  6118. invoked when it is certain that the outer-most function is used.
  6119. TODO: Cgraph needs a gimplify_function callback. It should be invoked
  6120. when (1) it is certain that the function is used, (2) warning flags
  6121. specified by the user require some amount of compilation in order to
  6122. honor, (3) the language indicates that semantic analysis is not complete
  6123. until gimplification occurs. Hum... this sounds overly complicated.
  6124. Perhaps we should just have the front end gimplify always; in most cases
  6125. it's only one function call.
  6126. The front end needs to pass all function definitions and top level
  6127. declarations off to the middle-end so that they can be compiled and
  6128. emitted to the object file. For a simple procedural language, it is
  6129. usually most convenient to do this as each top level declaration or
  6130. definition is seen. There is also a distinction to be made between
  6131. generating functional code and generating complete debug information.
  6132. The only thing that is absolutely required for functional code is that
  6133. function and data _definitions_ be passed to the middle-end. For
  6134. complete debug information, function, data and type declarations should
  6135. all be passed as well.
  6136. In any case, the front end needs each complete top-level function or
  6137. data declaration, and each data definition should be passed to
  6138. 'rest_of_decl_compilation'. Each complete type definition should be
  6139. passed to 'rest_of_type_compilation'. Each function definition should
  6140. be passed to 'cgraph_finalize_function'.
  6141. TODO: I know rest_of_compilation currently has all sorts of RTL
  6142. generation semantics. I plan to move all code generation bits (both
  6143. Tree and RTL) to compile_function. Should we hide cgraph from the front
  6144. ends and move back to rest_of_compilation as the official interface?
  6145. Possibly we should rename all three interfaces such that the names match
  6146. in some meaningful way and that is more descriptive than "rest_of".
  6147. The middle-end will, at its option, emit the function and data
  6148. definitions immediately or queue them for later processing.
  6149. 
  6150. File: gccint.info, Node: Gimplification pass, Next: Pass manager, Prev: Parsing pass, Up: Passes
  6151. 9.2 Gimplification pass
  6152. =======================
  6153. "Gimplification" is a whimsical term for the process of converting the
  6154. intermediate representation of a function into the GIMPLE language
  6155. (*note GIMPLE::). The term stuck, and so words like "gimplification",
  6156. "gimplify", "gimplifier" and the like are sprinkled throughout this
  6157. section of code.
  6158. While a front end may certainly choose to generate GIMPLE directly if
  6159. it chooses, this can be a moderately complex process unless the
  6160. intermediate language used by the front end is already fairly simple.
  6161. Usually it is easier to generate GENERIC trees plus extensions and let
  6162. the language-independent gimplifier do most of the work.
  6163. The main entry point to this pass is 'gimplify_function_tree' located
  6164. in 'gimplify.c'. From here we process the entire function gimplifying
  6165. each statement in turn. The main workhorse for this pass is
  6166. 'gimplify_expr'. Approximately everything passes through here at least
  6167. once, and it is from here that we invoke the 'lang_hooks.gimplify_expr'
  6168. callback.
  6169. The callback should examine the expression in question and return
  6170. 'GS_UNHANDLED' if the expression is not a language specific construct
  6171. that requires attention. Otherwise it should alter the expression in
  6172. some way to such that forward progress is made toward producing valid
  6173. GIMPLE. If the callback is certain that the transformation is complete
  6174. and the expression is valid GIMPLE, it should return 'GS_ALL_DONE'.
  6175. Otherwise it should return 'GS_OK', which will cause the expression to
  6176. be processed again. If the callback encounters an error during the
  6177. transformation (because the front end is relying on the gimplification
  6178. process to finish semantic checks), it should return 'GS_ERROR'.
  6179. 
  6180. File: gccint.info, Node: Pass manager, Next: IPA passes, Prev: Gimplification pass, Up: Passes
  6181. 9.3 Pass manager
  6182. ================
  6183. The pass manager is located in 'passes.c', 'tree-optimize.c' and
  6184. 'tree-pass.h'. It processes passes as described in 'passes.def'. Its
  6185. job is to run all of the individual passes in the correct order, and
  6186. take care of standard bookkeeping that applies to every pass.
  6187. The theory of operation is that each pass defines a structure that
  6188. represents everything we need to know about that pass--when it should be
  6189. run, how it should be run, what intermediate language form or
  6190. on-the-side data structures it needs. We register the pass to be run in
  6191. some particular order, and the pass manager arranges for everything to
  6192. happen in the correct order.
  6193. The actuality doesn't completely live up to the theory at present.
  6194. Command-line switches and 'timevar_id_t' enumerations must still be
  6195. defined elsewhere. The pass manager validates constraints but does not
  6196. attempt to (re-)generate data structures or lower intermediate language
  6197. form based on the requirements of the next pass. Nevertheless, what is
  6198. present is useful, and a far sight better than nothing at all.
  6199. Each pass should have a unique name. Each pass may have its own dump
  6200. file (for GCC debugging purposes). Passes with a name starting with a
  6201. star do not dump anything. Sometimes passes are supposed to share a
  6202. dump file / option name. To still give these unique names, you can use
  6203. a prefix that is delimited by a space from the part that is used for the
  6204. dump file / option name. E.g. When the pass name is "ud dce", the name
  6205. used for dump file/options is "dce".
  6206. TODO: describe the global variables set up by the pass manager, and a
  6207. brief description of how a new pass should use it. I need to look at
  6208. what info RTL passes use first...
  6209. 
  6210. File: gccint.info, Node: IPA passes, Next: Tree SSA passes, Prev: Pass manager, Up: Passes
  6211. 9.4 Inter-procedural optimization passes
  6212. ========================================
  6213. The inter-procedural optimization (IPA) passes use call graph
  6214. information to perform transformations across function boundaries. IPA
  6215. is a critical part of link-time optimization (LTO) and whole-program
  6216. (WHOPR) optimization, and these passes are structured with the needs of
  6217. LTO and WHOPR in mind by dividing their operations into stages. For
  6218. detailed discussion of the LTO/WHOPR IPA pass stages and interfaces, see
  6219. *note IPA::.
  6220. The following briefly describes the inter-procedural optimization (IPA)
  6221. passes, which are split into small IPA passes, regular IPA passes, and
  6222. late IPA passes, according to the LTO/WHOPR processing model.
  6223. * Menu:
  6224. * Small IPA passes::
  6225. * Regular IPA passes::
  6226. * Late IPA passes::
  6227. 
  6228. File: gccint.info, Node: Small IPA passes, Next: Regular IPA passes, Up: IPA passes
  6229. 9.4.1 Small IPA passes
  6230. ----------------------
  6231. A small IPA pass is a pass derived from 'simple_ipa_opt_pass'. As
  6232. described in *note IPA::, it does everything at once and defines only
  6233. the _Execute_ stage. During this stage it accesses and modifies the
  6234. function bodies. No 'generate_summary', 'read_summary', or
  6235. 'write_summary' hooks are defined.
  6236. * IPA free lang data
  6237. This pass frees resources that are used by the front end but are
  6238. not needed once it is done. It is located in 'tree.c' and is
  6239. described by 'pass_ipa_free_lang_data'.
  6240. * IPA function and variable visibility
  6241. This is a local function pass handling visibilities of all symbols.
  6242. This happens before LTO streaming, so '-fwhole-program' should be
  6243. ignored at this level. It is located in 'ipa-visibility.c' and is
  6244. described by 'pass_ipa_function_and_variable_visibility'.
  6245. * IPA remove symbols
  6246. This pass performs reachability analysis and reclaims all
  6247. unreachable nodes. It is located in 'passes.c' and is described by
  6248. 'pass_ipa_remove_symbols'.
  6249. * IPA OpenACC
  6250. This is a pass group for OpenACC processing. It is located in
  6251. 'tree-ssa-loop.c' and is described by 'pass_ipa_oacc'.
  6252. * IPA points-to analysis
  6253. This is a tree-based points-to analysis pass. The idea behind this
  6254. analyzer is to generate set constraints from the program, then
  6255. solve the resulting constraints in order to generate the points-to
  6256. sets. It is located in 'tree-ssa-structalias.c' and is described
  6257. by 'pass_ipa_pta'.
  6258. * IPA OpenACC kernels
  6259. This is a pass group for processing OpenACC kernels regions. It is
  6260. a subpass of the IPA OpenACC pass group that runs on offloaded
  6261. functions containing OpenACC kernels loops. It is located in
  6262. 'tree-ssa-loop.c' and is described by 'pass_ipa_oacc_kernels'.
  6263. * Target clone
  6264. This is a pass for parsing functions with multiple target
  6265. attributes. It is located in 'multiple_target.c' and is described
  6266. by 'pass_target_clone'.
  6267. * IPA auto profile
  6268. This pass uses AutoFDO profiling data to annotate the control flow
  6269. graph. It is located in 'auto-profile.c' and is described by
  6270. 'pass_ipa_auto_profile'.
  6271. * IPA tree profile
  6272. This pass does profiling for all functions in the call graph. It
  6273. calculates branch probabilities and basic block execution counts.
  6274. It is located in 'tree-profile.c' and is described by
  6275. 'pass_ipa_tree_profile'.
  6276. * IPA free function summary
  6277. This pass is a small IPA pass when argument 'small_p' is true. It
  6278. releases inline function summaries and call summaries. It is
  6279. located in 'ipa-fnsummary.c' and is described by
  6280. 'pass_ipa_free_free_fn_summary'.
  6281. * IPA increase alignment
  6282. This pass increases the alignment of global arrays to improve
  6283. vectorization. It is located in 'tree-vectorizer.c' and is
  6284. described by 'pass_ipa_increase_alignment'.
  6285. * IPA transactional memory
  6286. This pass is for transactional memory support. It is located in
  6287. 'trans-mem.c' and is described by 'pass_ipa_tm'.
  6288. * IPA lower emulated TLS
  6289. This pass lowers thread-local storage (TLS) operations to emulation
  6290. functions provided by libgcc. It is located in 'tree-emutls.c' and
  6291. is described by 'pass_ipa_lower_emutls'.
  6292. 
  6293. File: gccint.info, Node: Regular IPA passes, Next: Late IPA passes, Prev: Small IPA passes, Up: IPA passes
  6294. 9.4.2 Regular IPA passes
  6295. ------------------------
  6296. A regular IPA pass is a pass derived from 'ipa_opt_pass_d' that is
  6297. executed in WHOPR compilation. Regular IPA passes may have summary
  6298. hooks implemented in any of the LGEN, WPA or LTRANS stages (*note
  6299. IPA::).
  6300. * IPA whole program visibility
  6301. This pass performs various optimizations involving symbol
  6302. visibility with '-fwhole-program', including symbol privatization,
  6303. discovering local functions, and dismantling comdat groups. It is
  6304. located in 'ipa-visibility.c' and is described by
  6305. 'pass_ipa_whole_program_visibility'.
  6306. * IPA profile
  6307. The IPA profile pass propagates profiling frequencies across the
  6308. call graph. It is located in 'ipa-profile.c' and is described by
  6309. 'pass_ipa_profile'.
  6310. * IPA identical code folding
  6311. This is the inter-procedural identical code folding pass. The goal
  6312. of this transformation is to discover functions and read-only
  6313. variables that have exactly the same semantics. It is located in
  6314. 'ipa-icf.c' and is described by 'pass_ipa_icf'.
  6315. * IPA devirtualization
  6316. This pass performs speculative devirtualization based on the type
  6317. inheritance graph. When a polymorphic call has only one likely
  6318. target in the unit, it is turned into a speculative call. It is
  6319. located in 'ipa-devirt.c' and is described by 'pass_ipa_devirt'.
  6320. * IPA constant propagation
  6321. The goal of this pass is to discover functions that are always
  6322. invoked with some arguments with the same known constant values and
  6323. to modify the functions accordingly. It can also do partial
  6324. specialization and type-based devirtualization. It is located in
  6325. 'ipa-cp.c' and is described by 'pass_ipa_cp'.
  6326. * IPA scalar replacement of aggregates
  6327. This pass can replace an aggregate parameter with a set of other
  6328. parameters representing part of the original, turning those passed
  6329. by reference into new ones which pass the value directly. It also
  6330. removes unused function return values and unused function
  6331. parameters. This pass is located in 'ipa-sra.c' and is described
  6332. by 'pass_ipa_sra'.
  6333. * IPA constructor/destructor merge
  6334. This pass merges multiple constructors and destructors for static
  6335. objects into single functions. It's only run at LTO time unless
  6336. the target doesn't support constructors and destructors natively.
  6337. The pass is located in 'ipa.c' and is described by
  6338. 'pass_ipa_cdtor_merge'.
  6339. * IPA HSA
  6340. This pass is part of the GCC support for HSA (Heterogeneous System
  6341. Architecture) accelerators. It is responsible for creation of HSA
  6342. clones and emitting HSAIL instructions for them. It is located in
  6343. 'ipa-hsa.c' and is described by 'pass_ipa_hsa'.
  6344. * IPA function summary
  6345. This pass provides function analysis for inter-procedural passes.
  6346. It collects estimates of function body size, execution time, and
  6347. frame size for each function. It also estimates information about
  6348. function calls: call statement size, time and how often the
  6349. parameters change for each call. It is located in
  6350. 'ipa-fnsummary.c' and is described by 'pass_ipa_fn_summary'.
  6351. * IPA inline
  6352. The IPA inline pass handles function inlining with whole-program
  6353. knowledge. Small functions that are candidates for inlining are
  6354. ordered in increasing badness, bounded by unit growth parameters.
  6355. Unreachable functions are removed from the call graph. Functions
  6356. called once and not exported from the unit are inlined. This pass
  6357. is located in 'ipa-inline.c' and is described by 'pass_ipa_inline'.
  6358. * IPA pure/const analysis
  6359. This pass marks functions as being either const ('TREE_READONLY')
  6360. or pure ('DECL_PURE_P'). The per-function information is produced
  6361. by 'pure_const_generate_summary', then the global information is
  6362. computed by performing a transitive closure over the call graph.
  6363. It is located in 'ipa-pure-const.c' and is described by
  6364. 'pass_ipa_pure_const'.
  6365. * IPA free function summary
  6366. This pass is a regular IPA pass when argument 'small_p' is false.
  6367. It releases inline function summaries and call summaries. It is
  6368. located in 'ipa-fnsummary.c' and is described by
  6369. 'pass_ipa_free_fn_summary'.
  6370. * IPA reference
  6371. This pass gathers information about how variables whose scope is
  6372. confined to the compilation unit are used. It is located in
  6373. 'ipa-reference.c' and is described by 'pass_ipa_reference'.
  6374. * IPA single use
  6375. This pass checks whether variables are used by a single function.
  6376. It is located in 'ipa.c' and is described by 'pass_ipa_single_use'.
  6377. * IPA comdats
  6378. This pass looks for static symbols that are used exclusively within
  6379. one comdat group, and moves them into that comdat group. It is
  6380. located in 'ipa-comdats.c' and is described by 'pass_ipa_comdats'.
  6381. 
  6382. File: gccint.info, Node: Late IPA passes, Prev: Regular IPA passes, Up: IPA passes
  6383. 9.4.3 Late IPA passes
  6384. ---------------------
  6385. Late IPA passes are simple IPA passes executed after the regular passes.
  6386. In WHOPR mode the passes are executed after partitioning and thus see
  6387. just parts of the compiled unit.
  6388. * Materialize all clones
  6389. Once all functions from compilation unit are in memory, produce all
  6390. clones and update all calls. It is located in 'ipa.c' and is
  6391. described by 'pass_materialize_all_clones'.
  6392. * IPA points-to analysis
  6393. Points-to analysis; this is the same as the points-to-analysis pass
  6394. run with the small IPA passes (*note Small IPA passes::).
  6395. * OpenMP simd clone
  6396. This is the OpenMP constructs' SIMD clone pass. It creates the
  6397. appropriate SIMD clones for functions tagged as elemental SIMD
  6398. functions. It is located in 'omp-simd-clone.c' and is described by
  6399. 'pass_omp_simd_clone'.
  6400. 
  6401. File: gccint.info, Node: Tree SSA passes, Next: RTL passes, Prev: IPA passes, Up: Passes
  6402. 9.5 Tree SSA passes
  6403. ===================
  6404. The following briefly describes the Tree optimization passes that are
  6405. run after gimplification and what source files they are located in.
  6406. * Remove useless statements
  6407. This pass is an extremely simple sweep across the gimple code in
  6408. which we identify obviously dead code and remove it. Here we do
  6409. things like simplify 'if' statements with constant conditions,
  6410. remove exception handling constructs surrounding code that
  6411. obviously cannot throw, remove lexical bindings that contain no
  6412. variables, and other assorted simplistic cleanups. The idea is to
  6413. get rid of the obvious stuff quickly rather than wait until later
  6414. when it's more work to get rid of it. This pass is located in
  6415. 'tree-cfg.c' and described by 'pass_remove_useless_stmts'.
  6416. * OpenMP lowering
  6417. If OpenMP generation ('-fopenmp') is enabled, this pass lowers
  6418. OpenMP constructs into GIMPLE.
  6419. Lowering of OpenMP constructs involves creating replacement
  6420. expressions for local variables that have been mapped using data
  6421. sharing clauses, exposing the control flow of most synchronization
  6422. directives and adding region markers to facilitate the creation of
  6423. the control flow graph. The pass is located in 'omp-low.c' and is
  6424. described by 'pass_lower_omp'.
  6425. * OpenMP expansion
  6426. If OpenMP generation ('-fopenmp') is enabled, this pass expands
  6427. parallel regions into their own functions to be invoked by the
  6428. thread library. The pass is located in 'omp-low.c' and is
  6429. described by 'pass_expand_omp'.
  6430. * Lower control flow
  6431. This pass flattens 'if' statements ('COND_EXPR') and moves lexical
  6432. bindings ('BIND_EXPR') out of line. After this pass, all 'if'
  6433. statements will have exactly two 'goto' statements in its 'then'
  6434. and 'else' arms. Lexical binding information for each statement
  6435. will be found in 'TREE_BLOCK' rather than being inferred from its
  6436. position under a 'BIND_EXPR'. This pass is found in 'gimple-low.c'
  6437. and is described by 'pass_lower_cf'.
  6438. * Lower exception handling control flow
  6439. This pass decomposes high-level exception handling constructs
  6440. ('TRY_FINALLY_EXPR' and 'TRY_CATCH_EXPR') into a form that
  6441. explicitly represents the control flow involved. After this pass,
  6442. 'lookup_stmt_eh_region' will return a non-negative number for any
  6443. statement that may have EH control flow semantics; examine
  6444. 'tree_can_throw_internal' or 'tree_can_throw_external' for exact
  6445. semantics. Exact control flow may be extracted from
  6446. 'foreach_reachable_handler'. The EH region nesting tree is defined
  6447. in 'except.h' and built in 'except.c'. The lowering pass itself is
  6448. in 'tree-eh.c' and is described by 'pass_lower_eh'.
  6449. * Build the control flow graph
  6450. This pass decomposes a function into basic blocks and creates all
  6451. of the edges that connect them. It is located in 'tree-cfg.c' and
  6452. is described by 'pass_build_cfg'.
  6453. * Find all referenced variables
  6454. This pass walks the entire function and collects an array of all
  6455. variables referenced in the function, 'referenced_vars'. The index
  6456. at which a variable is found in the array is used as a UID for the
  6457. variable within this function. This data is needed by the SSA
  6458. rewriting routines. The pass is located in 'tree-dfa.c' and is
  6459. described by 'pass_referenced_vars'.
  6460. * Enter static single assignment form
  6461. This pass rewrites the function such that it is in SSA form. After
  6462. this pass, all 'is_gimple_reg' variables will be referenced by
  6463. 'SSA_NAME', and all occurrences of other variables will be
  6464. annotated with 'VDEFS' and 'VUSES'; PHI nodes will have been
  6465. inserted as necessary for each basic block. This pass is located
  6466. in 'tree-ssa.c' and is described by 'pass_build_ssa'.
  6467. * Warn for uninitialized variables
  6468. This pass scans the function for uses of 'SSA_NAME's that are fed
  6469. by default definition. For non-parameter variables, such uses are
  6470. uninitialized. The pass is run twice, before and after
  6471. optimization (if turned on). In the first pass we only warn for
  6472. uses that are positively uninitialized; in the second pass we warn
  6473. for uses that are possibly uninitialized. The pass is located in
  6474. 'tree-ssa.c' and is defined by 'pass_early_warn_uninitialized' and
  6475. 'pass_late_warn_uninitialized'.
  6476. * Dead code elimination
  6477. This pass scans the function for statements without side effects
  6478. whose result is unused. It does not do memory life analysis, so
  6479. any value that is stored in memory is considered used. The pass is
  6480. run multiple times throughout the optimization process. It is
  6481. located in 'tree-ssa-dce.c' and is described by 'pass_dce'.
  6482. * Dominator optimizations
  6483. This pass performs trivial dominator-based copy and constant
  6484. propagation, expression simplification, and jump threading. It is
  6485. run multiple times throughout the optimization process. It is
  6486. located in 'tree-ssa-dom.c' and is described by 'pass_dominator'.
  6487. * Forward propagation of single-use variables
  6488. This pass attempts to remove redundant computation by substituting
  6489. variables that are used once into the expression that uses them and
  6490. seeing if the result can be simplified. It is located in
  6491. 'tree-ssa-forwprop.c' and is described by 'pass_forwprop'.
  6492. * Copy Renaming
  6493. This pass attempts to change the name of compiler temporaries
  6494. involved in copy operations such that SSA->normal can coalesce the
  6495. copy away. When compiler temporaries are copies of user variables,
  6496. it also renames the compiler temporary to the user variable
  6497. resulting in better use of user symbols. It is located in
  6498. 'tree-ssa-copyrename.c' and is described by 'pass_copyrename'.
  6499. * PHI node optimizations
  6500. This pass recognizes forms of PHI inputs that can be represented as
  6501. conditional expressions and rewrites them into straight line code.
  6502. It is located in 'tree-ssa-phiopt.c' and is described by
  6503. 'pass_phiopt'.
  6504. * May-alias optimization
  6505. This pass performs a flow sensitive SSA-based points-to analysis.
  6506. The resulting may-alias, must-alias, and escape analysis
  6507. information is used to promote variables from in-memory addressable
  6508. objects to non-aliased variables that can be renamed into SSA form.
  6509. We also update the 'VDEF'/'VUSE' memory tags for non-renameable
  6510. aggregates so that we get fewer false kills. The pass is located
  6511. in 'tree-ssa-alias.c' and is described by 'pass_may_alias'.
  6512. Interprocedural points-to information is located in
  6513. 'tree-ssa-structalias.c' and described by 'pass_ipa_pta'.
  6514. * Profiling
  6515. This pass instruments the function in order to collect runtime
  6516. block and value profiling data. Such data may be fed back into the
  6517. compiler on a subsequent run so as to allow optimization based on
  6518. expected execution frequencies. The pass is located in
  6519. 'tree-profile.c' and is described by 'pass_ipa_tree_profile'.
  6520. * Static profile estimation
  6521. This pass implements series of heuristics to guess propababilities
  6522. of branches. The resulting predictions are turned into edge
  6523. profile by propagating branches across the control flow graphs.
  6524. The pass is located in 'tree-profile.c' and is described by
  6525. 'pass_profile'.
  6526. * Lower complex arithmetic
  6527. This pass rewrites complex arithmetic operations into their
  6528. component scalar arithmetic operations. The pass is located in
  6529. 'tree-complex.c' and is described by 'pass_lower_complex'.
  6530. * Scalar replacement of aggregates
  6531. This pass rewrites suitable non-aliased local aggregate variables
  6532. into a set of scalar variables. The resulting scalar variables are
  6533. rewritten into SSA form, which allows subsequent optimization
  6534. passes to do a significantly better job with them. The pass is
  6535. located in 'tree-sra.c' and is described by 'pass_sra'.
  6536. * Dead store elimination
  6537. This pass eliminates stores to memory that are subsequently
  6538. overwritten by another store, without any intervening loads. The
  6539. pass is located in 'tree-ssa-dse.c' and is described by 'pass_dse'.
  6540. * Tail recursion elimination
  6541. This pass transforms tail recursion into a loop. It is located in
  6542. 'tree-tailcall.c' and is described by 'pass_tail_recursion'.
  6543. * Forward store motion
  6544. This pass sinks stores and assignments down the flowgraph closer to
  6545. their use point. The pass is located in 'tree-ssa-sink.c' and is
  6546. described by 'pass_sink_code'.
  6547. * Partial redundancy elimination
  6548. This pass eliminates partially redundant computations, as well as
  6549. performing load motion. The pass is located in 'tree-ssa-pre.c'
  6550. and is described by 'pass_pre'.
  6551. Just before partial redundancy elimination, if
  6552. '-funsafe-math-optimizations' is on, GCC tries to convert divisions
  6553. to multiplications by the reciprocal. The pass is located in
  6554. 'tree-ssa-math-opts.c' and is described by 'pass_cse_reciprocal'.
  6555. * Full redundancy elimination
  6556. This is a simpler form of PRE that only eliminates redundancies
  6557. that occur on all paths. It is located in 'tree-ssa-pre.c' and
  6558. described by 'pass_fre'.
  6559. * Loop optimization
  6560. The main driver of the pass is placed in 'tree-ssa-loop.c' and
  6561. described by 'pass_loop'.
  6562. The optimizations performed by this pass are:
  6563. Loop invariant motion. This pass moves only invariants that would
  6564. be hard to handle on RTL level (function calls, operations that
  6565. expand to nontrivial sequences of insns). With '-funswitch-loops'
  6566. it also moves operands of conditions that are invariant out of the
  6567. loop, so that we can use just trivial invariantness analysis in
  6568. loop unswitching. The pass also includes store motion. The pass
  6569. is implemented in 'tree-ssa-loop-im.c'.
  6570. Canonical induction variable creation. This pass creates a simple
  6571. counter for number of iterations of the loop and replaces the exit
  6572. condition of the loop using it, in case when a complicated analysis
  6573. is necessary to determine the number of iterations. Later
  6574. optimizations then may determine the number easily. The pass is
  6575. implemented in 'tree-ssa-loop-ivcanon.c'.
  6576. Induction variable optimizations. This pass performs standard
  6577. induction variable optimizations, including strength reduction,
  6578. induction variable merging and induction variable elimination. The
  6579. pass is implemented in 'tree-ssa-loop-ivopts.c'.
  6580. Loop unswitching. This pass moves the conditional jumps that are
  6581. invariant out of the loops. To achieve this, a duplicate of the
  6582. loop is created for each possible outcome of conditional jump(s).
  6583. The pass is implemented in 'tree-ssa-loop-unswitch.c'.
  6584. Loop splitting. If a loop contains a conditional statement that is
  6585. always true for one part of the iteration space and false for the
  6586. other this pass splits the loop into two, one dealing with one side
  6587. the other only with the other, thereby removing one inner-loop
  6588. conditional. The pass is implemented in 'tree-ssa-loop-split.c'.
  6589. The optimizations also use various utility functions contained in
  6590. 'tree-ssa-loop-manip.c', 'cfgloop.c', 'cfgloopanal.c' and
  6591. 'cfgloopmanip.c'.
  6592. Vectorization. This pass transforms loops to operate on vector
  6593. types instead of scalar types. Data parallelism across loop
  6594. iterations is exploited to group data elements from consecutive
  6595. iterations into a vector and operate on them in parallel.
  6596. Depending on available target support the loop is conceptually
  6597. unrolled by a factor 'VF' (vectorization factor), which is the
  6598. number of elements operated upon in parallel in each iteration, and
  6599. the 'VF' copies of each scalar operation are fused to form a vector
  6600. operation. Additional loop transformations such as peeling and
  6601. versioning may take place to align the number of iterations, and to
  6602. align the memory accesses in the loop. The pass is implemented in
  6603. 'tree-vectorizer.c' (the main driver), 'tree-vect-loop.c' and
  6604. 'tree-vect-loop-manip.c' (loop specific parts and general loop
  6605. utilities), 'tree-vect-slp' (loop-aware SLP functionality),
  6606. 'tree-vect-stmts.c' and 'tree-vect-data-refs.c'. Analysis of data
  6607. references is in 'tree-data-ref.c'.
  6608. SLP Vectorization. This pass performs vectorization of
  6609. straight-line code. The pass is implemented in 'tree-vectorizer.c'
  6610. (the main driver), 'tree-vect-slp.c', 'tree-vect-stmts.c' and
  6611. 'tree-vect-data-refs.c'.
  6612. Autoparallelization. This pass splits the loop iteration space to
  6613. run into several threads. The pass is implemented in
  6614. 'tree-parloops.c'.
  6615. Graphite is a loop transformation framework based on the polyhedral
  6616. model. Graphite stands for Gimple Represented as Polyhedra. The
  6617. internals of this infrastructure are documented in
  6618. <http://gcc.gnu.org/wiki/Graphite>. The passes working on this
  6619. representation are implemented in the various 'graphite-*' files.
  6620. * Tree level if-conversion for vectorizer
  6621. This pass applies if-conversion to simple loops to help vectorizer.
  6622. We identify if convertible loops, if-convert statements and merge
  6623. basic blocks in one big block. The idea is to present loop in such
  6624. form so that vectorizer can have one to one mapping between
  6625. statements and available vector operations. This pass is located
  6626. in 'tree-if-conv.c' and is described by 'pass_if_conversion'.
  6627. * Conditional constant propagation
  6628. This pass relaxes a lattice of values in order to identify those
  6629. that must be constant even in the presence of conditional branches.
  6630. The pass is located in 'tree-ssa-ccp.c' and is described by
  6631. 'pass_ccp'.
  6632. A related pass that works on memory loads and stores, and not just
  6633. register values, is located in 'tree-ssa-ccp.c' and described by
  6634. 'pass_store_ccp'.
  6635. * Conditional copy propagation
  6636. This is similar to constant propagation but the lattice of values
  6637. is the "copy-of" relation. It eliminates redundant copies from the
  6638. code. The pass is located in 'tree-ssa-copy.c' and described by
  6639. 'pass_copy_prop'.
  6640. A related pass that works on memory copies, and not just register
  6641. copies, is located in 'tree-ssa-copy.c' and described by
  6642. 'pass_store_copy_prop'.
  6643. * Value range propagation
  6644. This transformation is similar to constant propagation but instead
  6645. of propagating single constant values, it propagates known value
  6646. ranges. The implementation is based on Patterson's range
  6647. propagation algorithm (Accurate Static Branch Prediction by Value
  6648. Range Propagation, J. R. C. Patterson, PLDI '95). In contrast to
  6649. Patterson's algorithm, this implementation does not propagate
  6650. branch probabilities nor it uses more than a single range per SSA
  6651. name. This means that the current implementation cannot be used
  6652. for branch prediction (though adapting it would not be difficult).
  6653. The pass is located in 'tree-vrp.c' and is described by 'pass_vrp'.
  6654. * Folding built-in functions
  6655. This pass simplifies built-in functions, as applicable, with
  6656. constant arguments or with inferable string lengths. It is located
  6657. in 'tree-ssa-ccp.c' and is described by 'pass_fold_builtins'.
  6658. * Split critical edges
  6659. This pass identifies critical edges and inserts empty basic blocks
  6660. such that the edge is no longer critical. The pass is located in
  6661. 'tree-cfg.c' and is described by 'pass_split_crit_edges'.
  6662. * Control dependence dead code elimination
  6663. This pass is a stronger form of dead code elimination that can
  6664. eliminate unnecessary control flow statements. It is located in
  6665. 'tree-ssa-dce.c' and is described by 'pass_cd_dce'.
  6666. * Tail call elimination
  6667. This pass identifies function calls that may be rewritten into
  6668. jumps. No code transformation is actually applied here, but the
  6669. data and control flow problem is solved. The code transformation
  6670. requires target support, and so is delayed until RTL. In the
  6671. meantime 'CALL_EXPR_TAILCALL' is set indicating the possibility.
  6672. The pass is located in 'tree-tailcall.c' and is described by
  6673. 'pass_tail_calls'. The RTL transformation is handled by
  6674. 'fixup_tail_calls' in 'calls.c'.
  6675. * Warn for function return without value
  6676. For non-void functions, this pass locates return statements that do
  6677. not specify a value and issues a warning. Such a statement may
  6678. have been injected by falling off the end of the function. This
  6679. pass is run last so that we have as much time as possible to prove
  6680. that the statement is not reachable. It is located in 'tree-cfg.c'
  6681. and is described by 'pass_warn_function_return'.
  6682. * Leave static single assignment form
  6683. This pass rewrites the function such that it is in normal form. At
  6684. the same time, we eliminate as many single-use temporaries as
  6685. possible, so the intermediate language is no longer GIMPLE, but
  6686. GENERIC. The pass is located in 'tree-outof-ssa.c' and is
  6687. described by 'pass_del_ssa'.
  6688. * Merge PHI nodes that feed into one another
  6689. This is part of the CFG cleanup passes. It attempts to join PHI
  6690. nodes from a forwarder CFG block into another block with PHI nodes.
  6691. The pass is located in 'tree-cfgcleanup.c' and is described by
  6692. 'pass_merge_phi'.
  6693. * Return value optimization
  6694. If a function always returns the same local variable, and that
  6695. local variable is an aggregate type, then the variable is replaced
  6696. with the return value for the function (i.e., the function's
  6697. DECL_RESULT). This is equivalent to the C++ named return value
  6698. optimization applied to GIMPLE. The pass is located in
  6699. 'tree-nrv.c' and is described by 'pass_nrv'.
  6700. * Return slot optimization
  6701. If a function returns a memory object and is called as 'var =
  6702. foo()', this pass tries to change the call so that the address of
  6703. 'var' is sent to the caller to avoid an extra memory copy. This
  6704. pass is located in 'tree-nrv.c' and is described by
  6705. 'pass_return_slot'.
  6706. * Optimize calls to '__builtin_object_size'
  6707. This is a propagation pass similar to CCP that tries to remove
  6708. calls to '__builtin_object_size' when the size of the object can be
  6709. computed at compile-time. This pass is located in
  6710. 'tree-object-size.c' and is described by 'pass_object_sizes'.
  6711. * Loop invariant motion
  6712. This pass removes expensive loop-invariant computations out of
  6713. loops. The pass is located in 'tree-ssa-loop.c' and described by
  6714. 'pass_lim'.
  6715. * Loop nest optimizations
  6716. This is a family of loop transformations that works on loop nests.
  6717. It includes loop interchange, scaling, skewing and reversal and
  6718. they are all geared to the optimization of data locality in array
  6719. traversals and the removal of dependencies that hamper
  6720. optimizations such as loop parallelization and vectorization. The
  6721. pass is located in 'tree-loop-linear.c' and described by
  6722. 'pass_linear_transform'.
  6723. * Removal of empty loops
  6724. This pass removes loops with no code in them. The pass is located
  6725. in 'tree-ssa-loop-ivcanon.c' and described by 'pass_empty_loop'.
  6726. * Unrolling of small loops
  6727. This pass completely unrolls loops with few iterations. The pass
  6728. is located in 'tree-ssa-loop-ivcanon.c' and described by
  6729. 'pass_complete_unroll'.
  6730. * Predictive commoning
  6731. This pass makes the code reuse the computations from the previous
  6732. iterations of the loops, especially loads and stores to memory. It
  6733. does so by storing the values of these computations to a bank of
  6734. temporary variables that are rotated at the end of loop. To avoid
  6735. the need for this rotation, the loop is then unrolled and the
  6736. copies of the loop body are rewritten to use the appropriate
  6737. version of the temporary variable. This pass is located in
  6738. 'tree-predcom.c' and described by 'pass_predcom'.
  6739. * Array prefetching
  6740. This pass issues prefetch instructions for array references inside
  6741. loops. The pass is located in 'tree-ssa-loop-prefetch.c' and
  6742. described by 'pass_loop_prefetch'.
  6743. * Reassociation
  6744. This pass rewrites arithmetic expressions to enable optimizations
  6745. that operate on them, like redundancy elimination and
  6746. vectorization. The pass is located in 'tree-ssa-reassoc.c' and
  6747. described by 'pass_reassoc'.
  6748. * Optimization of 'stdarg' functions
  6749. This pass tries to avoid the saving of register arguments into the
  6750. stack on entry to 'stdarg' functions. If the function doesn't use
  6751. any 'va_start' macros, no registers need to be saved. If
  6752. 'va_start' macros are used, the 'va_list' variables don't escape
  6753. the function, it is only necessary to save registers that will be
  6754. used in 'va_arg' macros. For instance, if 'va_arg' is only used
  6755. with integral types in the function, floating point registers don't
  6756. need to be saved. This pass is located in 'tree-stdarg.c' and
  6757. described by 'pass_stdarg'.
  6758. 
  6759. File: gccint.info, Node: RTL passes, Next: Optimization info, Prev: Tree SSA passes, Up: Passes
  6760. 9.6 RTL passes
  6761. ==============
  6762. The following briefly describes the RTL generation and optimization
  6763. passes that are run after the Tree optimization passes.
  6764. * RTL generation
  6765. The source files for RTL generation include 'stmt.c', 'calls.c',
  6766. 'expr.c', 'explow.c', 'expmed.c', 'function.c', 'optabs.c' and
  6767. 'emit-rtl.c'. Also, the file 'insn-emit.c', generated from the
  6768. machine description by the program 'genemit', is used in this pass.
  6769. The header file 'expr.h' is used for communication within this
  6770. pass.
  6771. The header files 'insn-flags.h' and 'insn-codes.h', generated from
  6772. the machine description by the programs 'genflags' and 'gencodes',
  6773. tell this pass which standard names are available for use and which
  6774. patterns correspond to them.
  6775. * Generation of exception landing pads
  6776. This pass generates the glue that handles communication between the
  6777. exception handling library routines and the exception handlers
  6778. within the function. Entry points in the function that are invoked
  6779. by the exception handling library are called "landing pads". The
  6780. code for this pass is located in 'except.c'.
  6781. * Control flow graph cleanup
  6782. This pass removes unreachable code, simplifies jumps to next, jumps
  6783. to jump, jumps across jumps, etc. The pass is run multiple times.
  6784. For historical reasons, it is occasionally referred to as the "jump
  6785. optimization pass". The bulk of the code for this pass is in
  6786. 'cfgcleanup.c', and there are support routines in 'cfgrtl.c' and
  6787. 'jump.c'.
  6788. * Forward propagation of single-def values
  6789. This pass attempts to remove redundant computation by substituting
  6790. variables that come from a single definition, and seeing if the
  6791. result can be simplified. It performs copy propagation and
  6792. addressing mode selection. The pass is run twice, with values
  6793. being propagated into loops only on the second run. The code is
  6794. located in 'fwprop.c'.
  6795. * Common subexpression elimination
  6796. This pass removes redundant computation within basic blocks, and
  6797. optimizes addressing modes based on cost. The pass is run twice.
  6798. The code for this pass is located in 'cse.c'.
  6799. * Global common subexpression elimination
  6800. This pass performs two different types of GCSE depending on whether
  6801. you are optimizing for size or not (LCM based GCSE tends to
  6802. increase code size for a gain in speed, while Morel-Renvoise based
  6803. GCSE does not). When optimizing for size, GCSE is done using
  6804. Morel-Renvoise Partial Redundancy Elimination, with the exception
  6805. that it does not try to move invariants out of loops--that is left
  6806. to the loop optimization pass. If MR PRE GCSE is done, code
  6807. hoisting (aka unification) is also done, as well as load motion.
  6808. If you are optimizing for speed, LCM (lazy code motion) based GCSE
  6809. is done. LCM is based on the work of Knoop, Ruthing, and Steffen.
  6810. LCM based GCSE also does loop invariant code motion. We also
  6811. perform load and store motion when optimizing for speed.
  6812. Regardless of which type of GCSE is used, the GCSE pass also
  6813. performs global constant and copy propagation. The source file for
  6814. this pass is 'gcse.c', and the LCM routines are in 'lcm.c'.
  6815. * Loop optimization
  6816. This pass performs several loop related optimizations. The source
  6817. files 'cfgloopanal.c' and 'cfgloopmanip.c' contain generic loop
  6818. analysis and manipulation code. Initialization and finalization of
  6819. loop structures is handled by 'loop-init.c'. A loop invariant
  6820. motion pass is implemented in 'loop-invariant.c'. Basic block
  6821. level optimizations--unrolling, and peeling loops-- are implemented
  6822. in 'loop-unroll.c'. Replacing of the exit condition of loops by
  6823. special machine-dependent instructions is handled by
  6824. 'loop-doloop.c'.
  6825. * Jump bypassing
  6826. This pass is an aggressive form of GCSE that transforms the control
  6827. flow graph of a function by propagating constants into conditional
  6828. branch instructions. The source file for this pass is 'gcse.c'.
  6829. * If conversion
  6830. This pass attempts to replace conditional branches and surrounding
  6831. assignments with arithmetic, boolean value producing comparison
  6832. instructions, and conditional move instructions. In the very last
  6833. invocation after reload/LRA, it will generate predicated
  6834. instructions when supported by the target. The code is located in
  6835. 'ifcvt.c'.
  6836. * Web construction
  6837. This pass splits independent uses of each pseudo-register. This
  6838. can improve effect of the other transformation, such as CSE or
  6839. register allocation. The code for this pass is located in 'web.c'.
  6840. * Instruction combination
  6841. This pass attempts to combine groups of two or three instructions
  6842. that are related by data flow into single instructions. It
  6843. combines the RTL expressions for the instructions by substitution,
  6844. simplifies the result using algebra, and then attempts to match the
  6845. result against the machine description. The code is located in
  6846. 'combine.c'.
  6847. * Mode switching optimization
  6848. This pass looks for instructions that require the processor to be
  6849. in a specific "mode" and minimizes the number of mode changes
  6850. required to satisfy all users. What these modes are, and what they
  6851. apply to are completely target-specific. The code for this pass is
  6852. located in 'mode-switching.c'.
  6853. * Modulo scheduling
  6854. This pass looks at innermost loops and reorders their instructions
  6855. by overlapping different iterations. Modulo scheduling is
  6856. performed immediately before instruction scheduling. The code for
  6857. this pass is located in 'modulo-sched.c'.
  6858. * Instruction scheduling
  6859. This pass looks for instructions whose output will not be available
  6860. by the time that it is used in subsequent instructions. Memory
  6861. loads and floating point instructions often have this behavior on
  6862. RISC machines. It re-orders instructions within a basic block to
  6863. try to separate the definition and use of items that otherwise
  6864. would cause pipeline stalls. This pass is performed twice, before
  6865. and after register allocation. The code for this pass is located
  6866. in 'haifa-sched.c', 'sched-deps.c', 'sched-ebb.c', 'sched-rgn.c'
  6867. and 'sched-vis.c'.
  6868. * Register allocation
  6869. These passes make sure that all occurrences of pseudo registers are
  6870. eliminated, either by allocating them to a hard register, replacing
  6871. them by an equivalent expression (e.g. a constant) or by placing
  6872. them on the stack. This is done in several subpasses:
  6873. * The integrated register allocator (IRA). It is called
  6874. integrated because coalescing, register live range splitting,
  6875. and hard register preferencing are done on-the-fly during
  6876. coloring. It also has better integration with the reload/LRA
  6877. pass. Pseudo-registers spilled by the allocator or the
  6878. reload/LRA have still a chance to get hard-registers if the
  6879. reload/LRA evicts some pseudo-registers from hard-registers.
  6880. The allocator helps to choose better pseudos for spilling
  6881. based on their live ranges and to coalesce stack slots
  6882. allocated for the spilled pseudo-registers. IRA is a regional
  6883. register allocator which is transformed into Chaitin-Briggs
  6884. allocator if there is one region. By default, IRA chooses
  6885. regions using register pressure but the user can force it to
  6886. use one region or regions corresponding to all loops.
  6887. Source files of the allocator are 'ira.c', 'ira-build.c',
  6888. 'ira-costs.c', 'ira-conflicts.c', 'ira-color.c', 'ira-emit.c',
  6889. 'ira-lives', plus header files 'ira.h' and 'ira-int.h' used
  6890. for the communication between the allocator and the rest of
  6891. the compiler and between the IRA files.
  6892. * Reloading. This pass renumbers pseudo registers with the
  6893. hardware registers numbers they were allocated. Pseudo
  6894. registers that did not get hard registers are replaced with
  6895. stack slots. Then it finds instructions that are invalid
  6896. because a value has failed to end up in a register, or has
  6897. ended up in a register of the wrong kind. It fixes up these
  6898. instructions by reloading the problematical values temporarily
  6899. into registers. Additional instructions are generated to do
  6900. the copying.
  6901. The reload pass also optionally eliminates the frame pointer
  6902. and inserts instructions to save and restore call-clobbered
  6903. registers around calls.
  6904. Source files are 'reload.c' and 'reload1.c', plus the header
  6905. 'reload.h' used for communication between them.
  6906. * This pass is a modern replacement of the reload pass. Source
  6907. files are 'lra.c', 'lra-assign.c', 'lra-coalesce.c',
  6908. 'lra-constraints.c', 'lra-eliminations.c', 'lra-lives.c',
  6909. 'lra-remat.c', 'lra-spills.c', the header 'lra-int.h' used for
  6910. communication between them, and the header 'lra.h' used for
  6911. communication between LRA and the rest of compiler.
  6912. Unlike the reload pass, intermediate LRA decisions are
  6913. reflected in RTL as much as possible. This reduces the number
  6914. of target-dependent macros and hooks, leaving instruction
  6915. constraints as the primary source of control.
  6916. LRA is run on targets for which TARGET_LRA_P returns true.
  6917. * Basic block reordering
  6918. This pass implements profile guided code positioning. If profile
  6919. information is not available, various types of static analysis are
  6920. performed to make the predictions normally coming from the profile
  6921. feedback (IE execution frequency, branch probability, etc). It is
  6922. implemented in the file 'bb-reorder.c', and the various prediction
  6923. routines are in 'predict.c'.
  6924. * Variable tracking
  6925. This pass computes where the variables are stored at each position
  6926. in code and generates notes describing the variable locations to
  6927. RTL code. The location lists are then generated according to these
  6928. notes to debug information if the debugging information format
  6929. supports location lists. The code is located in 'var-tracking.c'.
  6930. * Delayed branch scheduling
  6931. This optional pass attempts to find instructions that can go into
  6932. the delay slots of other instructions, usually jumps and calls.
  6933. The code for this pass is located in 'reorg.c'.
  6934. * Branch shortening
  6935. On many RISC machines, branch instructions have a limited range.
  6936. Thus, longer sequences of instructions must be used for long
  6937. branches. In this pass, the compiler figures out what how far each
  6938. instruction will be from each other instruction, and therefore
  6939. whether the usual instructions, or the longer sequences, must be
  6940. used for each branch. The code for this pass is located in
  6941. 'final.c'.
  6942. * Register-to-stack conversion
  6943. Conversion from usage of some hard registers to usage of a register
  6944. stack may be done at this point. Currently, this is supported only
  6945. for the floating-point registers of the Intel 80387 coprocessor.
  6946. The code for this pass is located in 'reg-stack.c'.
  6947. * Final
  6948. This pass outputs the assembler code for the function. The source
  6949. files are 'final.c' plus 'insn-output.c'; the latter is generated
  6950. automatically from the machine description by the tool 'genoutput'.
  6951. The header file 'conditions.h' is used for communication between
  6952. these files.
  6953. * Debugging information output
  6954. This is run after final because it must output the stack slot
  6955. offsets for pseudo registers that did not get hard registers.
  6956. Source files are 'dbxout.c' for DBX symbol table format,
  6957. 'dwarfout.c' for DWARF symbol table format, files 'dwarf2out.c' and
  6958. 'dwarf2asm.c' for DWARF2 symbol table format, and 'vmsdbgout.c' for
  6959. VMS debug symbol table format.
  6960. 
  6961. File: gccint.info, Node: Optimization info, Prev: RTL passes, Up: Passes
  6962. 9.7 Optimization info
  6963. =====================
  6964. This section is describes dump infrastructure which is common to both
  6965. pass dumps as well as optimization dumps. The goal for this
  6966. infrastructure is to provide both gcc developers and users detailed
  6967. information about various compiler transformations and optimizations.
  6968. * Menu:
  6969. * Dump setup:: Setup of optimization dumps.
  6970. * Optimization groups:: Groups made up of optimization passes.
  6971. * Dump files and streams:: Dump output file names and streams.
  6972. * Dump output verbosity:: How much information to dump.
  6973. * Dump types:: Various types of dump functions.
  6974. * Dump examples:: Sample usage.
  6975. 
  6976. File: gccint.info, Node: Dump setup, Next: Optimization groups, Up: Optimization info
  6977. 9.7.1 Dump setup
  6978. ----------------
  6979. A dump_manager class is defined in 'dumpfile.h'. Various passes
  6980. register dumping pass-specific information via 'dump_register' in
  6981. 'passes.c'. During the registration, an optimization pass can select
  6982. its optimization group (*note Optimization groups::). After that
  6983. optimization information corresponding to the entire group (presumably
  6984. from multiple passes) can be output via command-line switches. Note
  6985. that if a pass does not fit into any of the pre-defined groups, it can
  6986. select 'OPTGROUP_NONE'.
  6987. Note that in general, a pass need not know its dump output file name,
  6988. whether certain flags are enabled, etc. However, for legacy reasons,
  6989. passes could also call 'dump_begin' which returns a stream in case the
  6990. particular pass has optimization dumps enabled. A pass could call
  6991. 'dump_end' when the dump has ended. These methods should go away once
  6992. all the passes are converted to use the new dump infrastructure.
  6993. The recommended way to setup the dump output is via 'dump_start' and
  6994. 'dump_end'.
  6995. 
  6996. File: gccint.info, Node: Optimization groups, Next: Dump files and streams, Prev: Dump setup, Up: Optimization info
  6997. 9.7.2 Optimization groups
  6998. -------------------------
  6999. The optimization passes are grouped into several categories. Currently
  7000. defined categories in 'dumpfile.h' are
  7001. 'OPTGROUP_IPA'
  7002. IPA optimization passes. Enabled by '-ipa'
  7003. 'OPTGROUP_LOOP'
  7004. Loop optimization passes. Enabled by '-loop'.
  7005. 'OPTGROUP_INLINE'
  7006. Inlining passes. Enabled by '-inline'.
  7007. 'OPTGROUP_OMP'
  7008. OMP (Offloading and Multi Processing) passes. Enabled by '-omp'.
  7009. 'OPTGROUP_VEC'
  7010. Vectorization passes. Enabled by '-vec'.
  7011. 'OPTGROUP_OTHER'
  7012. All other optimization passes which do not fall into one of the
  7013. above.
  7014. 'OPTGROUP_ALL'
  7015. All optimization passes. Enabled by '-optall'.
  7016. By using groups a user could selectively enable optimization
  7017. information only for a group of passes. By default, the optimization
  7018. information for all the passes is dumped.
  7019. 
  7020. File: gccint.info, Node: Dump files and streams, Next: Dump output verbosity, Prev: Optimization groups, Up: Optimization info
  7021. 9.7.3 Dump files and streams
  7022. ----------------------------
  7023. There are two separate output streams available for outputting
  7024. optimization information from passes. Note that both these streams
  7025. accept 'stderr' and 'stdout' as valid streams and thus it is possible to
  7026. dump output to standard output or error. This is specially handy for
  7027. outputting all available information in a single file by redirecting
  7028. 'stderr'.
  7029. 'pstream'
  7030. This stream is for pass-specific dump output. For example,
  7031. '-fdump-tree-vect=foo.v' dumps tree vectorization pass output into
  7032. the given file name 'foo.v'. If the file name is not provided, the
  7033. default file name is based on the source file and pass number.
  7034. Note that one could also use special file names 'stdout' and
  7035. 'stderr' for dumping to standard output and standard error
  7036. respectively.
  7037. 'alt_stream'
  7038. This steam is used for printing optimization specific output in
  7039. response to the '-fopt-info'. Again a file name can be given. If
  7040. the file name is not given, it defaults to 'stderr'.
  7041. 
  7042. File: gccint.info, Node: Dump output verbosity, Next: Dump types, Prev: Dump files and streams, Up: Optimization info
  7043. 9.7.4 Dump output verbosity
  7044. ---------------------------
  7045. The dump verbosity has the following options
  7046. 'optimized'
  7047. Print information when an optimization is successfully applied. It
  7048. is up to a pass to decide which information is relevant. For
  7049. example, the vectorizer passes print the source location of loops
  7050. which got successfully vectorized.
  7051. 'missed'
  7052. Print information about missed optimizations. Individual passes
  7053. control which information to include in the output. For example,
  7054. gcc -O2 -ftree-vectorize -fopt-info-vec-missed
  7055. will print information about missed optimization opportunities from
  7056. vectorization passes on stderr.
  7057. 'note'
  7058. Print verbose information about optimizations, such as certain
  7059. transformations, more detailed messages about decisions etc.
  7060. 'all'
  7061. Print detailed optimization information. This includes OPTIMIZED,
  7062. MISSED, and NOTE.
  7063. 
  7064. File: gccint.info, Node: Dump types, Next: Dump examples, Prev: Dump output verbosity, Up: Optimization info
  7065. 9.7.5 Dump types
  7066. ----------------
  7067. 'dump_printf'
  7068. This is a generic method for doing formatted output. It takes an
  7069. additional argument 'dump_kind' which signifies the type of dump.
  7070. This method outputs information only when the dumps are enabled for
  7071. this particular 'dump_kind'. Note that the caller doesn't need to
  7072. know if the particular dump is enabled or not, or even the file
  7073. name. The caller only needs to decide which dump output
  7074. information is relevant, and under what conditions. This
  7075. determines the associated flags.
  7076. Consider the following example from 'loop-unroll.c' where an
  7077. informative message about a loop (along with its location) is
  7078. printed when any of the following flags is enabled
  7079. - optimization messages
  7080. - RTL dumps
  7081. - detailed dumps
  7082. int report_flags = MSG_OPTIMIZED_LOCATIONS | TDF_RTL | TDF_DETAILS;
  7083. dump_printf_loc (report_flags, insn,
  7084. "loop turned into non-loop; it never loops.\n");
  7085. 'dump_basic_block'
  7086. Output basic block.
  7087. 'dump_generic_expr'
  7088. Output generic expression.
  7089. 'dump_gimple_stmt'
  7090. Output gimple statement.
  7091. Note that the above methods also have variants prefixed with
  7092. '_loc', such as 'dump_printf_loc', which are similar except they
  7093. also output the source location information. The '_loc' variants
  7094. take a 'const dump_location_t &'. This class can be constructed
  7095. from a 'gimple *' or from a 'rtx_insn *', and so callers can pass a
  7096. 'gimple *' or a 'rtx_insn *' as the '_loc' argument. The
  7097. 'dump_location_t' constructor will extract the source location from
  7098. the statement or instruction, along with the profile count, and the
  7099. location in GCC's own source code (or the plugin) from which the
  7100. dump call was emitted. Only the source location is currently used.
  7101. There is also a 'dump_user_location_t' class, capturing the source
  7102. location and profile count, but not the dump emission location, so
  7103. that locations in the user's code can be passed around. This can
  7104. also be constructed from a 'gimple *' and from a 'rtx_insn *', and
  7105. it too can be passed as the '_loc' argument.
  7106. 
  7107. File: gccint.info, Node: Dump examples, Prev: Dump types, Up: Optimization info
  7108. 9.7.6 Dump examples
  7109. -------------------
  7110. gcc -O3 -fopt-info-missed=missed.all
  7111. outputs missed optimization report from all the passes into
  7112. 'missed.all'.
  7113. As another example,
  7114. gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
  7115. will output information about missed optimizations as well as optimized
  7116. locations from all the inlining passes into 'inline.txt'.
  7117. If the FILENAME is provided, then the dumps from all the applicable
  7118. optimizations are concatenated into the 'filename'. Otherwise the dump
  7119. is output onto 'stderr'. If OPTIONS is omitted, it defaults to
  7120. 'optimized-optall', which means dump all information about successful
  7121. optimizations from all the passes. In the following example, the
  7122. optimization information is output on to 'stderr'.
  7123. gcc -O3 -fopt-info
  7124. Note that '-fopt-info-vec-missed' behaves the same as
  7125. '-fopt-info-missed-vec'. The order of the optimization group names and
  7126. message types listed after '-fopt-info' does not matter.
  7127. As another example, consider
  7128. gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
  7129. Here the two output file names 'vec.miss' and 'loop.opt' are in
  7130. conflict since only one output file is allowed. In this case, only the
  7131. first option takes effect and the subsequent options are ignored. Thus
  7132. only the 'vec.miss' is produced which containts dumps from the
  7133. vectorizer about missed opportunities.
  7134. 
  7135. File: gccint.info, Node: poly_int, Next: GENERIC, Prev: Passes, Up: Top
  7136. 10 Sizes and offsets as runtime invariants
  7137. ******************************************
  7138. GCC allows the size of a hardware register to be a runtime invariant
  7139. rather than a compile-time constant. This in turn means that various
  7140. sizes and offsets must also be runtime invariants rather than
  7141. compile-time constants, such as:
  7142. * the size of a general 'machine_mode' (*note Machine Modes::);
  7143. * the size of a spill slot;
  7144. * the offset of something within a stack frame;
  7145. * the number of elements in a vector;
  7146. * the size and offset of a 'mem' rtx (*note Regs and Memory::); and
  7147. * the byte offset in a 'subreg' rtx (*note Regs and Memory::).
  7148. The motivating example is the Arm SVE ISA, whose vector registers can
  7149. be any multiple of 128 bits between 128 and 2048 inclusive. The
  7150. compiler normally produces code that works for all SVE register sizes,
  7151. with the actual size only being known at runtime.
  7152. GCC's main representation of such runtime invariants is the 'poly_int'
  7153. class. This chapter describes what 'poly_int' does, lists the available
  7154. operations, and gives some general usage guidelines.
  7155. * Menu:
  7156. * Overview of poly_int::
  7157. * Consequences of using poly_int::
  7158. * Comparisons involving poly_int::
  7159. * Arithmetic on poly_ints::
  7160. * Alignment of poly_ints::
  7161. * Computing bounds on poly_ints::
  7162. * Converting poly_ints::
  7163. * Miscellaneous poly_int routines::
  7164. * Guidelines for using poly_int::
  7165. 
  7166. File: gccint.info, Node: Overview of poly_int, Next: Consequences of using poly_int, Up: poly_int
  7167. 10.1 Overview of 'poly_int'
  7168. ===========================
  7169. We define indeterminates X1, ..., XN whose values are only known at
  7170. runtime and use polynomials of the form:
  7171. C0 + C1 * X1 + ... + CN * XN
  7172. to represent a size or offset whose value might depend on some of these
  7173. indeterminates. The coefficients C0, ..., CN are always known at
  7174. compile time, with the C0 term being the "constant" part that does not
  7175. depend on any runtime value.
  7176. GCC uses the 'poly_int' class to represent these coefficients. The
  7177. class has two template parameters: the first specifies the number of
  7178. coefficients (N + 1) and the second specifies the type of the
  7179. coefficients. For example, 'poly_int<2, unsigned short>' represents a
  7180. polynomial with two coefficients (and thus one indeterminate), with each
  7181. coefficient having type 'unsigned short'. When N is 0, the class
  7182. degenerates to a single compile-time constant C0.
  7183. The number of coefficients needed for compilation is a fixed property
  7184. of each target and is specified by the configuration macro
  7185. 'NUM_POLY_INT_COEFFS'. The default value is 1, since most targets do
  7186. not have such runtime invariants. Targets that need a different value
  7187. should '#define' the macro in their 'CPU-modes.def' file. *Note Back
  7188. End::.
  7189. 'poly_int' makes the simplifying requirement that each indeterminate
  7190. must be a nonnegative integer. An indeterminate value of 0 should
  7191. usually represent the minimum possible runtime value, with C0 specifying
  7192. the value in that case.
  7193. For example, when targetting the Arm SVE ISA, the single indeterminate
  7194. represents the number of 128-bit blocks in a vector _beyond the minimum
  7195. length of 128 bits_. Thus the number of 64-bit doublewords in a vector
  7196. is 2 + 2 * X1. If an aggregate has a single SVE vector and 16
  7197. additional bytes, its total size is 32 + 16 * X1 bytes.
  7198. The header file 'poly-int-types.h' provides typedefs for the most
  7199. common forms of 'poly_int', all having 'NUM_POLY_INT_COEFFS'
  7200. coefficients:
  7201. 'poly_uint16'
  7202. a 'poly_int' with 'unsigned short' coefficients.
  7203. 'poly_int64'
  7204. a 'poly_int' with 'HOST_WIDE_INT' coefficients.
  7205. 'poly_uint64'
  7206. a 'poly_int' with 'unsigned HOST_WIDE_INT' coefficients.
  7207. 'poly_offset_int'
  7208. a 'poly_int' with 'offset_int' coefficients.
  7209. 'poly_wide_int'
  7210. a 'poly_int' with 'wide_int' coefficients.
  7211. 'poly_widest_int'
  7212. a 'poly_int' with 'widest_int' coefficients.
  7213. Since the main purpose of 'poly_int' is to represent sizes and offsets,
  7214. the last two typedefs are only rarely used.
  7215. 
  7216. File: gccint.info, Node: Consequences of using poly_int, Next: Comparisons involving poly_int, Prev: Overview of poly_int, Up: poly_int
  7217. 10.2 Consequences of using 'poly_int'
  7218. =====================================
  7219. The two main consequences of using polynomial sizes and offsets are
  7220. that:
  7221. * there is no total ordering between the values at compile time, and
  7222. * some operations might yield results that cannot be expressed as a
  7223. 'poly_int'.
  7224. For example, if X is a runtime invariant, we cannot tell at compile
  7225. time whether:
  7226. 3 + 4X <= 1 + 5X
  7227. since the condition is false when X <= 1 and true when X >= 2.
  7228. Similarly, 'poly_int' cannot represent the result of:
  7229. (3 + 4X) * (1 + 5X)
  7230. since it cannot (and in practice does not need to) store powers greater
  7231. than one. It also cannot represent the result of:
  7232. (3 + 4X) / (1 + 5X)
  7233. The following sections describe how we deal with these restrictions.
  7234. As described earlier, a 'poly_int<1, T>' has no indeterminates and so
  7235. degenerates to a compile-time constant of type T. It would be possible
  7236. in that case to do all normal arithmetic on the T, and to compare the T
  7237. using the normal C++ operators. We deliberately prevent
  7238. target-independent code from doing this, since the compiler needs to
  7239. support other 'poly_int<N, T>' as well, regardless of the current
  7240. target's 'NUM_POLY_INT_COEFFS'.
  7241. However, it would be very artificial to force target-specific code to
  7242. follow these restrictions if the target has no runtime indeterminates.
  7243. There is therefore an implicit conversion from 'poly_int<1, T>' to T
  7244. when compiling target-specific translation units.
  7245. 
  7246. File: gccint.info, Node: Comparisons involving poly_int, Next: Arithmetic on poly_ints, Prev: Consequences of using poly_int, Up: poly_int
  7247. 10.3 Comparisons involving 'poly_int'
  7248. =====================================
  7249. In general we need to compare sizes and offsets in two situations: those
  7250. in which the values need to be ordered, and those in which the values
  7251. can be unordered. More loosely, the distinction is often between values
  7252. that have a definite link (usually because they refer to the same
  7253. underlying register or memory location) and values that have no definite
  7254. link. An example of the former is the relationship between the inner
  7255. and outer sizes of a subreg, where we must know at compile time whether
  7256. the subreg is paradoxical, partial, or complete. An example of the
  7257. latter is alias analysis: we might want to check whether two arbitrary
  7258. memory references overlap.
  7259. Referring back to the examples in the previous section, it makes sense
  7260. to ask whether a memory reference of size '3 + 4X' overlaps one of size
  7261. '1 + 5X', but it does not make sense to have a subreg in which the outer
  7262. mode has '3 + 4X' bytes and the inner mode has '1 + 5X' bytes (or vice
  7263. versa). Such subregs are always invalid and should trigger an internal
  7264. compiler error if formed.
  7265. The underlying operators are the same in both cases, but the
  7266. distinction affects how they are used.
  7267. * Menu:
  7268. * Comparison functions for poly_int::
  7269. * Properties of the poly_int comparisons::
  7270. * Comparing potentially-unordered poly_ints::
  7271. * Comparing ordered poly_ints::
  7272. * Checking for a poly_int marker value::
  7273. * Range checks on poly_ints::
  7274. * Sorting poly_ints::
  7275. 
  7276. File: gccint.info, Node: Comparison functions for poly_int, Next: Properties of the poly_int comparisons, Up: Comparisons involving poly_int
  7277. 10.3.1 Comparison functions for 'poly_int'
  7278. ------------------------------------------
  7279. 'poly_int' provides the following routines for checking whether a
  7280. particular condition "may be" (might be) true:
  7281. maybe_lt maybe_le maybe_eq maybe_ge maybe_gt
  7282. maybe_ne
  7283. The functions have their natural meaning:
  7284. 'maybe_lt(A, B)'
  7285. Return true if A might be less than B.
  7286. 'maybe_le(A, B)'
  7287. Return true if A might be less than or equal to B.
  7288. 'maybe_eq(A, B)'
  7289. Return true if A might be equal to B.
  7290. 'maybe_ne(A, B)'
  7291. Return true if A might not be equal to B.
  7292. 'maybe_ge(A, B)'
  7293. Return true if A might be greater than or equal to B.
  7294. 'maybe_gt(A, B)'
  7295. Return true if A might be greater than B.
  7296. For readability, 'poly_int' also provides "known" inverses of these
  7297. functions:
  7298. known_lt (A, B) == !maybe_ge (A, B)
  7299. known_le (A, B) == !maybe_gt (A, B)
  7300. known_eq (A, B) == !maybe_ne (A, B)
  7301. known_ge (A, B) == !maybe_lt (A, B)
  7302. known_gt (A, B) == !maybe_le (A, B)
  7303. known_ne (A, B) == !maybe_eq (A, B)
  7304. 
  7305. File: gccint.info, Node: Properties of the poly_int comparisons, Next: Comparing potentially-unordered poly_ints, Prev: Comparison functions for poly_int, Up: Comparisons involving poly_int
  7306. 10.3.2 Properties of the 'poly_int' comparisons
  7307. -----------------------------------------------
  7308. All "maybe" relations except 'maybe_ne' are transitive, so for example:
  7309. maybe_lt (A, B) && maybe_lt (B, C) implies maybe_lt (A, C)
  7310. for all A, B and C. 'maybe_lt', 'maybe_gt' and 'maybe_ne' are
  7311. irreflexive, so for example:
  7312. !maybe_lt (A, A)
  7313. is true for all A. 'maybe_le', 'maybe_eq' and 'maybe_ge' are
  7314. reflexive, so for example:
  7315. maybe_le (A, A)
  7316. is true for all A. 'maybe_eq' and 'maybe_ne' are symmetric, so:
  7317. maybe_eq (A, B) == maybe_eq (B, A)
  7318. maybe_ne (A, B) == maybe_ne (B, A)
  7319. for all A and B. In addition:
  7320. maybe_le (A, B) == maybe_lt (A, B) || maybe_eq (A, B)
  7321. maybe_ge (A, B) == maybe_gt (A, B) || maybe_eq (A, B)
  7322. maybe_lt (A, B) == maybe_gt (B, A)
  7323. maybe_le (A, B) == maybe_ge (B, A)
  7324. However:
  7325. maybe_le (A, B) && maybe_le (B, A) does not imply !maybe_ne (A, B) [== known_eq (A, B)]
  7326. maybe_ge (A, B) && maybe_ge (B, A) does not imply !maybe_ne (A, B) [== known_eq (A, B)]
  7327. One example is again 'A == 3 + 4X' and 'B == 1 + 5X', where 'maybe_le
  7328. (A, B)', 'maybe_ge (A, B)' and 'maybe_ne (A, B)' all hold. 'maybe_le'
  7329. and 'maybe_ge' are therefore not antisymetric and do not form a partial
  7330. order.
  7331. From the above, it follows that:
  7332. * All "known" relations except 'known_ne' are transitive.
  7333. * 'known_lt', 'known_ne' and 'known_gt' are irreflexive.
  7334. * 'known_le', 'known_eq' and 'known_ge' are reflexive.
  7335. Also:
  7336. known_lt (A, B) == known_gt (B, A)
  7337. known_le (A, B) == known_ge (B, A)
  7338. known_lt (A, B) implies !known_lt (B, A) [asymmetry]
  7339. known_gt (A, B) implies !known_gt (B, A)
  7340. known_le (A, B) && known_le (B, A) == known_eq (A, B) [== !maybe_ne (A, B)]
  7341. known_ge (A, B) && known_ge (B, A) == known_eq (A, B) [== !maybe_ne (A, B)]
  7342. 'known_le' and 'known_ge' are therefore antisymmetric and are partial
  7343. orders. However:
  7344. known_le (A, B) does not imply known_lt (A, B) || known_eq (A, B)
  7345. known_ge (A, B) does not imply known_gt (A, B) || known_eq (A, B)
  7346. For example, 'known_le (4, 4 + 4X)' holds because the runtime
  7347. indeterminate X is a nonnegative integer, but neither 'known_lt (4, 4 +
  7348. 4X)' nor 'known_eq (4, 4 + 4X)' hold.
  7349. 
  7350. File: gccint.info, Node: Comparing potentially-unordered poly_ints, Next: Comparing ordered poly_ints, Prev: Properties of the poly_int comparisons, Up: Comparisons involving poly_int
  7351. 10.3.3 Comparing potentially-unordered 'poly_int's
  7352. --------------------------------------------------
  7353. In cases where there is no definite link between two 'poly_int's, we can
  7354. usually make a conservatively-correct assumption. For example, the
  7355. conservative assumption for alias analysis is that two references
  7356. _might_ alias.
  7357. One way of checking whether [BEGIN1, END1) might overlap [BEGIN2, END2)
  7358. using the 'poly_int' comparisons is:
  7359. maybe_gt (END1, BEGIN2) && maybe_gt (END2, BEGIN1)
  7360. and another (equivalent) way is:
  7361. !(known_le (END1, BEGIN2) || known_le (END2, BEGIN1))
  7362. However, in this particular example, it is better to use the range
  7363. helper functions instead. *Note Range checks on poly_ints::.
  7364. 
  7365. File: gccint.info, Node: Comparing ordered poly_ints, Next: Checking for a poly_int marker value, Prev: Comparing potentially-unordered poly_ints, Up: Comparisons involving poly_int
  7366. 10.3.4 Comparing ordered 'poly_int's
  7367. ------------------------------------
  7368. In cases where there is a definite link between two 'poly_int's, such as
  7369. the outer and inner sizes of subregs, we usually require the sizes to be
  7370. ordered by the 'known_le' partial order. 'poly_int' provides the
  7371. following utility functions for ordered values:
  7372. 'ordered_p (A, B)'
  7373. Return true if A and B are ordered by the 'known_le' partial order.
  7374. 'ordered_min (A, B)'
  7375. Assert that A and B are ordered by 'known_le' and return the
  7376. minimum of the two. When using this function, please add a comment
  7377. explaining why the values are known to be ordered.
  7378. 'ordered_max (A, B)'
  7379. Assert that A and B are ordered by 'known_le' and return the
  7380. maximum of the two. When using this function, please add a comment
  7381. explaining why the values are known to be ordered.
  7382. For example, if a subreg has an outer mode of size OUTER and an inner
  7383. mode of size INNER:
  7384. * the subreg is complete if known_eq (INNER, OUTER)
  7385. * otherwise, the subreg is paradoxical if known_le (INNER, OUTER)
  7386. * otherwise, the subreg is partial if known_le (OUTER, INNER)
  7387. * otherwise, the subreg is ill-formed
  7388. Thus the subreg is only valid if 'ordered_p (OUTER, INNER)' is true.
  7389. If this condition is already known to be true then:
  7390. * the subreg is complete if known_eq (INNER, OUTER)
  7391. * the subreg is paradoxical if maybe_lt (INNER, OUTER)
  7392. * the subreg is partial if maybe_lt (OUTER, INNER)
  7393. with the three conditions being mutually exclusive.
  7394. Code that checks whether a subreg is valid would therefore generally
  7395. check whether 'ordered_p' holds (in addition to whatever other checks
  7396. are required for subreg validity). Code that is dealing with existing
  7397. subregs can assert that 'ordered_p' holds and use either of the
  7398. classifications above.
  7399. 
  7400. File: gccint.info, Node: Checking for a poly_int marker value, Next: Range checks on poly_ints, Prev: Comparing ordered poly_ints, Up: Comparisons involving poly_int
  7401. 10.3.5 Checking for a 'poly_int' marker value
  7402. ---------------------------------------------
  7403. It is sometimes useful to have a special "marker value" that is not
  7404. meant to be taken literally. For example, some code uses a size of -1
  7405. to represent an unknown size, rather than having to carry around a
  7406. separate boolean to say whether the size is known.
  7407. The best way of checking whether something is a marker value is
  7408. 'known_eq'. Conversely the best way of checking whether something is
  7409. _not_ a marker value is 'maybe_ne'.
  7410. Thus in the size example just mentioned, 'known_eq (size, -1)' would
  7411. check for an unknown size and 'maybe_ne (size, -1)' would check for a
  7412. known size.
  7413. 
  7414. File: gccint.info, Node: Range checks on poly_ints, Next: Sorting poly_ints, Prev: Checking for a poly_int marker value, Up: Comparisons involving poly_int
  7415. 10.3.6 Range checks on 'poly_int's
  7416. ----------------------------------
  7417. As well as the core comparisons (*note Comparison functions for
  7418. poly_int::), 'poly_int' provides utilities for various kinds of range
  7419. check. In each case the range is represented by a start position and a
  7420. size rather than a start position and an end position; this is because
  7421. the former is used much more often than the latter in GCC. Also, the
  7422. sizes can be -1 (or all ones for unsigned sizes) to indicate a range
  7423. with a known start position but an unknown size. All other sizes must
  7424. be nonnegative. A range of size 0 does not contain anything or overlap
  7425. anything.
  7426. 'known_size_p (SIZE)'
  7427. Return true if SIZE represents a known range size, false if it is
  7428. -1 or all ones (for signed and unsigned types respectively).
  7429. 'ranges_maybe_overlap_p (POS1, SIZE1, POS2, SIZE2)'
  7430. Return true if the range described by POS1 and SIZE1 _might_
  7431. overlap the range described by POS2 and SIZE2 (in other words,
  7432. return true if we cannot prove that the ranges are disjoint).
  7433. 'ranges_known_overlap_p (POS1, SIZE1, POS2, SIZE2)'
  7434. Return true if the range described by POS1 and SIZE1 is known to
  7435. overlap the range described by POS2 and SIZE2.
  7436. 'known_subrange_p (POS1, SIZE1, POS2, SIZE2)'
  7437. Return true if the range described by POS1 and SIZE1 is known to be
  7438. contained in the range described by POS2 and SIZE2.
  7439. 'maybe_in_range_p (VALUE, POS, SIZE)'
  7440. Return true if VALUE _might_ be in the range described by POS and
  7441. SIZE (in other words, return true if we cannot prove that VALUE is
  7442. outside that range).
  7443. 'known_in_range_p (VALUE, POS, SIZE)'
  7444. Return true if VALUE is known to be in the range described by POS
  7445. and SIZE.
  7446. 'endpoint_representable_p (POS, SIZE)'
  7447. Return true if the range described by POS and SIZE is open-ended or
  7448. if the endpoint (POS + SIZE) is representable in the same type as
  7449. POS and SIZE. The function returns false if adding SIZE to POS
  7450. makes conceptual sense but could overflow.
  7451. There is also a 'poly_int' version of the 'IN_RANGE_P' macro:
  7452. 'coeffs_in_range_p (X, LOWER, UPPER)'
  7453. Return true if every coefficient of X is in the inclusive range
  7454. [LOWER, UPPER]. This function can be useful when testing whether
  7455. an operation would cause the values of coefficients to overflow.
  7456. Note that the function does not indicate whether X itself is in the
  7457. given range. X can be either a constant or a 'poly_int'.
  7458. 
  7459. File: gccint.info, Node: Sorting poly_ints, Prev: Range checks on poly_ints, Up: Comparisons involving poly_int
  7460. 10.3.7 Sorting 'poly_int's
  7461. --------------------------
  7462. 'poly_int' provides the following routine for sorting:
  7463. 'compare_sizes_for_sort (A, B)'
  7464. Compare A and B in reverse lexicographical order (that is, compare
  7465. the highest-indexed coefficients first). This can be useful when
  7466. sorting data structures, since it has the effect of separating
  7467. constant and non-constant values. If all values are nonnegative,
  7468. the constant values come first.
  7469. Note that the values do not necessarily end up in numerical order.
  7470. For example, '1 + 1X' would come after '100' in the sort order, but
  7471. may well be less than '100' at run time.
  7472. 
  7473. File: gccint.info, Node: Arithmetic on poly_ints, Next: Alignment of poly_ints, Prev: Comparisons involving poly_int, Up: poly_int
  7474. 10.4 Arithmetic on 'poly_int's
  7475. ==============================
  7476. Addition, subtraction, negation and bit inversion all work normally for
  7477. 'poly_int's. Multiplication by a constant multiplier and left shifting
  7478. by a constant shift amount also work normally. General multiplication
  7479. of two 'poly_int's is not supported and is not useful in practice.
  7480. Other operations are only conditionally supported: the operation might
  7481. succeed or might fail, depending on the inputs.
  7482. This section describes both types of operation.
  7483. * Menu:
  7484. * Using poly_int with C++ arithmetic operators::
  7485. * wi arithmetic on poly_ints::
  7486. * Division of poly_ints::
  7487. * Other poly_int arithmetic::
  7488. 
  7489. File: gccint.info, Node: Using poly_int with C++ arithmetic operators, Next: wi arithmetic on poly_ints, Up: Arithmetic on poly_ints
  7490. 10.4.1 Using 'poly_int' with C++ arithmetic operators
  7491. -----------------------------------------------------
  7492. The following C++ expressions are supported, where P1 and P2 are
  7493. 'poly_int's and where C1 and C2 are scalars:
  7494. -P1
  7495. ~P1
  7496. P1 + P2
  7497. P1 + C2
  7498. C1 + P2
  7499. P1 - P2
  7500. P1 - C2
  7501. C1 - P2
  7502. C1 * P2
  7503. P1 * C2
  7504. P1 << C2
  7505. P1 += P2
  7506. P1 += C2
  7507. P1 -= P2
  7508. P1 -= C2
  7509. P1 *= C2
  7510. P1 <<= C2
  7511. These arithmetic operations handle integer ranks in a similar way to
  7512. C++. The main difference is that every coefficient narrower than
  7513. 'HOST_WIDE_INT' promotes to 'HOST_WIDE_INT', whereas in C++ everything
  7514. narrower than 'int' promotes to 'int'. For example:
  7515. poly_uint16 + int -> poly_int64
  7516. unsigned int + poly_uint16 -> poly_int64
  7517. poly_int64 + int -> poly_int64
  7518. poly_int32 + poly_uint64 -> poly_uint64
  7519. uint64 + poly_int64 -> poly_uint64
  7520. poly_offset_int + int32 -> poly_offset_int
  7521. offset_int + poly_uint16 -> poly_offset_int
  7522. In the first two examples, both coefficients are narrower than
  7523. 'HOST_WIDE_INT', so the result has coefficients of type 'HOST_WIDE_INT'.
  7524. In the other examples, the coefficient with the highest rank "wins".
  7525. If one of the operands is 'wide_int' or 'poly_wide_int', the rules are
  7526. the same as for 'wide_int' arithmetic.
  7527. 
  7528. File: gccint.info, Node: wi arithmetic on poly_ints, Next: Division of poly_ints, Prev: Using poly_int with C++ arithmetic operators, Up: Arithmetic on poly_ints
  7529. 10.4.2 'wi' arithmetic on 'poly_int's
  7530. -------------------------------------
  7531. As well as the C++ operators, 'poly_int' supports the following 'wi'
  7532. routines:
  7533. wi::neg (P1, &OVERFLOW)
  7534. wi::add (P1, P2)
  7535. wi::add (P1, C2)
  7536. wi::add (C1, P1)
  7537. wi::add (P1, P2, SIGN, &OVERFLOW)
  7538. wi::sub (P1, P2)
  7539. wi::sub (P1, C2)
  7540. wi::sub (C1, P1)
  7541. wi::sub (P1, P2, SIGN, &OVERFLOW)
  7542. wi::mul (P1, C2)
  7543. wi::mul (C1, P1)
  7544. wi::mul (P1, C2, SIGN, &OVERFLOW)
  7545. wi::lshift (P1, C2)
  7546. These routines just check whether overflow occurs on any individual
  7547. coefficient; it is not possible to know at compile time whether the
  7548. final runtime value would overflow.
  7549. 
  7550. File: gccint.info, Node: Division of poly_ints, Next: Other poly_int arithmetic, Prev: wi arithmetic on poly_ints, Up: Arithmetic on poly_ints
  7551. 10.4.3 Division of 'poly_int's
  7552. ------------------------------
  7553. Division of 'poly_int's is possible for certain inputs. The functions
  7554. for division return true if the operation is possible and in most cases
  7555. return the results by pointer. The routines are:
  7556. 'multiple_p (A, B)'
  7557. 'multiple_p (A, B, &QUOTIENT)'
  7558. Return true if A is an exact multiple of B, storing the result in
  7559. QUOTIENT if so. There are overloads for various combinations of
  7560. polynomial and constant A, B and QUOTIENT.
  7561. 'constant_multiple_p (A, B)'
  7562. 'constant_multiple_p (A, B, &QUOTIENT)'
  7563. Like 'multiple_p', but also test whether the multiple is a
  7564. compile-time constant.
  7565. 'can_div_trunc_p (A, B, &QUOTIENT)'
  7566. 'can_div_trunc_p (A, B, &QUOTIENT, &REMAINDER)'
  7567. Return true if we can calculate 'trunc (A / B)' at compile time,
  7568. storing the result in QUOTIENT and REMAINDER if so.
  7569. 'can_div_away_from_zero_p (A, B, &QUOTIENT)'
  7570. Return true if we can calculate 'A / B' at compile time, rounding
  7571. away from zero. Store the result in QUOTIENT if so.
  7572. Note that this is true if and only if 'can_div_trunc_p' is true.
  7573. The only difference is in the rounding of the result.
  7574. There is also an asserting form of division:
  7575. 'exact_div (A, B)'
  7576. Assert that A is a multiple of B and return 'A / B'. The result is
  7577. a 'poly_int' if A is a 'poly_int'.
  7578. 
  7579. File: gccint.info, Node: Other poly_int arithmetic, Prev: Division of poly_ints, Up: Arithmetic on poly_ints
  7580. 10.4.4 Other 'poly_int' arithmetic
  7581. ----------------------------------
  7582. There are tentative routines for other operations besides division:
  7583. 'can_ior_p (A, B, &RESULT)'
  7584. Return true if we can calculate 'A | B' at compile time, storing
  7585. the result in RESULT if so.
  7586. Also, ANDs with a value '(1 << Y) - 1' or its inverse can be treated as
  7587. alignment operations. *Note Alignment of poly_ints::.
  7588. In addition, the following miscellaneous routines are available:
  7589. 'coeff_gcd (A)'
  7590. Return the greatest common divisor of all nonzero coefficients in
  7591. A, or zero if A is known to be zero.
  7592. 'common_multiple (A, B)'
  7593. Return a value that is a multiple of both A and B, where one value
  7594. is a 'poly_int' and the other is a scalar. The result will be the
  7595. least common multiple for some indeterminate values but not
  7596. necessarily for all.
  7597. 'force_common_multiple (A, B)'
  7598. Return a value that is a multiple of both 'poly_int' A and
  7599. 'poly_int' B, asserting that such a value exists. The result will
  7600. be the least common multiple for some indeterminate values but not
  7601. necessarily for all.
  7602. When using this routine, please add a comment explaining why the
  7603. assertion is known to hold.
  7604. Please add any other operations that you find to be useful.
  7605. 
  7606. File: gccint.info, Node: Alignment of poly_ints, Next: Computing bounds on poly_ints, Prev: Arithmetic on poly_ints, Up: poly_int
  7607. 10.5 Alignment of 'poly_int's
  7608. =============================
  7609. 'poly_int' provides various routines for aligning values and for
  7610. querying misalignments. In each case the alignment must be a power of
  7611. 2.
  7612. 'can_align_p (VALUE, ALIGN)'
  7613. Return true if we can align VALUE up or down to the nearest
  7614. multiple of ALIGN at compile time. The answer is the same for both
  7615. directions.
  7616. 'can_align_down (VALUE, ALIGN, &ALIGNED)'
  7617. Return true if 'can_align_p'; if so, set ALIGNED to the greatest
  7618. aligned value that is less than or equal to VALUE.
  7619. 'can_align_up (VALUE, ALIGN, &ALIGNED)'
  7620. Return true if 'can_align_p'; if so, set ALIGNED to the lowest
  7621. aligned value that is greater than or equal to VALUE.
  7622. 'known_equal_after_align_down (A, B, ALIGN)'
  7623. Return true if we can align A and B down to the nearest ALIGN
  7624. boundary at compile time and if the two results are equal.
  7625. 'known_equal_after_align_up (A, B, ALIGN)'
  7626. Return true if we can align A and B up to the nearest ALIGN
  7627. boundary at compile time and if the two results are equal.
  7628. 'aligned_lower_bound (VALUE, ALIGN)'
  7629. Return a result that is no greater than VALUE and that is aligned
  7630. to ALIGN. The result will the closest aligned value for some
  7631. indeterminate values but not necessarily for all.
  7632. For example, suppose we are allocating an object of SIZE bytes in a
  7633. downward-growing stack whose current limit is given by LIMIT. If
  7634. the object requires ALIGN bytes of alignment, the new stack limit
  7635. is given by:
  7636. aligned_lower_bound (LIMIT - SIZE, ALIGN)
  7637. 'aligned_upper_bound (VALUE, ALIGN)'
  7638. Likewise return a result that is no less than VALUE and that is
  7639. aligned to ALIGN. This is the routine that would be used for
  7640. upward-growing stacks in the scenario just described.
  7641. 'known_misalignment (VALUE, ALIGN, &MISALIGN)'
  7642. Return true if we can calculate the misalignment of VALUE with
  7643. respect to ALIGN at compile time, storing the result in MISALIGN if
  7644. so.
  7645. 'known_alignment (VALUE)'
  7646. Return the minimum alignment that VALUE is known to have (in other
  7647. words, the largest alignment that can be guaranteed whatever the
  7648. values of the indeterminates turn out to be). Return 0 if VALUE is
  7649. known to be 0.
  7650. 'force_align_down (VALUE, ALIGN)'
  7651. Assert that VALUE can be aligned down to ALIGN at compile time and
  7652. return the result. When using this routine, please add a comment
  7653. explaining why the assertion is known to hold.
  7654. 'force_align_up (VALUE, ALIGN)'
  7655. Likewise, but aligning up.
  7656. 'force_align_down_and_div (VALUE, ALIGN)'
  7657. Divide the result of 'force_align_down' by ALIGN. Again, please
  7658. add a comment explaining why the assertion in 'force_align_down' is
  7659. known to hold.
  7660. 'force_align_up_and_div (VALUE, ALIGN)'
  7661. Likewise for 'force_align_up'.
  7662. 'force_get_misalignment (VALUE, ALIGN)'
  7663. Assert that we can calculate the misalignment of VALUE with respect
  7664. to ALIGN at compile time and return the misalignment. When using
  7665. this function, please add a comment explaining why the assertion is
  7666. known to hold.
  7667. 
  7668. File: gccint.info, Node: Computing bounds on poly_ints, Next: Converting poly_ints, Prev: Alignment of poly_ints, Up: poly_int
  7669. 10.6 Computing bounds on 'poly_int's
  7670. ====================================
  7671. 'poly_int' also provides routines for calculating lower and upper
  7672. bounds:
  7673. 'constant_lower_bound (A)'
  7674. Assert that A is nonnegative and return the smallest value it can
  7675. have.
  7676. 'constant_lower_bound_with_limit (A, B)'
  7677. Return the least value A can have, given that the context in which
  7678. A appears guarantees that the answer is no less than B. In other
  7679. words, the caller is asserting that A is greater than or equal to B
  7680. even if 'known_ge (A, B)' doesn't hold.
  7681. 'constant_upper_bound_with_limit (A, B)'
  7682. Return the greatest value A can have, given that the context in
  7683. which A appears guarantees that the answer is no greater than B.
  7684. In other words, the caller is asserting that A is less than or
  7685. equal to B even if 'known_le (A, B)' doesn't hold.
  7686. 'lower_bound (A, B)'
  7687. Return a value that is always less than or equal to both A and B.
  7688. It will be the greatest such value for some indeterminate values
  7689. but necessarily for all.
  7690. 'upper_bound (A, B)'
  7691. Return a value that is always greater than or equal to both A and
  7692. B. It will be the least such value for some indeterminate values
  7693. but necessarily for all.
  7694. 
  7695. File: gccint.info, Node: Converting poly_ints, Next: Miscellaneous poly_int routines, Prev: Computing bounds on poly_ints, Up: poly_int
  7696. 10.7 Converting 'poly_int's
  7697. ===========================
  7698. A 'poly_int<N, T>' can be constructed from up to N individual T
  7699. coefficients, with the remaining coefficients being implicitly zero. In
  7700. particular, this means that every 'poly_int<N, T>' can be constructed
  7701. from a single scalar T, or something compatible with T.
  7702. Also, a 'poly_int<N, T>' can be constructed from a 'poly_int<N, U>' if
  7703. T can be constructed from U.
  7704. The following functions provide other forms of conversion, or test
  7705. whether such a conversion would succeed.
  7706. 'VALUE.is_constant ()'
  7707. Return true if 'poly_int' VALUE is a compile-time constant.
  7708. 'VALUE.is_constant (&C1)'
  7709. Return true if 'poly_int' VALUE is a compile-time constant, storing
  7710. it in C1 if so. C1 must be able to hold all constant values of
  7711. VALUE without loss of precision.
  7712. 'VALUE.to_constant ()'
  7713. Assert that VALUE is a compile-time constant and return its value.
  7714. When using this function, please add a comment explaining why the
  7715. condition is known to hold (for example, because an earlier phase
  7716. of analysis rejected non-constants).
  7717. 'VALUE.to_shwi (&P2)'
  7718. Return true if 'poly_int<N, T>' VALUE can be represented without
  7719. loss of precision as a 'poly_int<N, 'HOST_WIDE_INT'>', storing it
  7720. in that form in P2 if so.
  7721. 'VALUE.to_uhwi (&P2)'
  7722. Return true if 'poly_int<N, T>' VALUE can be represented without
  7723. loss of precision as a 'poly_int<N, 'unsigned HOST_WIDE_INT'>',
  7724. storing it in that form in P2 if so.
  7725. 'VALUE.force_shwi ()'
  7726. Forcibly convert each coefficient of 'poly_int<N, T>' VALUE to
  7727. 'HOST_WIDE_INT', truncating any that are out of range. Return the
  7728. result as a 'poly_int<N, 'HOST_WIDE_INT'>'.
  7729. 'VALUE.force_uhwi ()'
  7730. Forcibly convert each coefficient of 'poly_int<N, T>' VALUE to
  7731. 'unsigned HOST_WIDE_INT', truncating any that are out of range.
  7732. Return the result as a 'poly_int<N, 'unsigned HOST_WIDE_INT'>'.
  7733. 'wi::shwi (VALUE, PRECISION)'
  7734. Return a 'poly_int' with the same value as VALUE, but with the
  7735. coefficients converted from 'HOST_WIDE_INT' to 'wide_int'.
  7736. PRECISION specifies the precision of the 'wide_int' cofficients; if
  7737. this is wider than a 'HOST_WIDE_INT', the coefficients of VALUE
  7738. will be sign-extended to fit.
  7739. 'wi::uhwi (VALUE, PRECISION)'
  7740. Like 'wi::shwi', except that VALUE has coefficients of type
  7741. 'unsigned HOST_WIDE_INT'. If PRECISION is wider than a
  7742. 'HOST_WIDE_INT', the coefficients of VALUE will be zero-extended to
  7743. fit.
  7744. 'wi::sext (VALUE, PRECISION)'
  7745. Return a 'poly_int' of the same type as VALUE, sign-extending every
  7746. coefficient from the low PRECISION bits. This in effect applies
  7747. 'wi::sext' to each coefficient individually.
  7748. 'wi::zext (VALUE, PRECISION)'
  7749. Like 'wi::sext', but for zero extension.
  7750. 'poly_wide_int::from (VALUE, PRECISION, SIGN)'
  7751. Convert VALUE to a 'poly_wide_int' in which each coefficient has
  7752. PRECISION bits. Extend the coefficients according to SIGN if the
  7753. coefficients have fewer bits.
  7754. 'poly_offset_int::from (VALUE, SIGN)'
  7755. Convert VALUE to a 'poly_offset_int', extending its coefficients
  7756. according to SIGN if they have fewer bits than 'offset_int'.
  7757. 'poly_widest_int::from (VALUE, SIGN)'
  7758. Convert VALUE to a 'poly_widest_int', extending its coefficients
  7759. according to SIGN if they have fewer bits than 'widest_int'.
  7760. 
  7761. File: gccint.info, Node: Miscellaneous poly_int routines, Next: Guidelines for using poly_int, Prev: Converting poly_ints, Up: poly_int
  7762. 10.8 Miscellaneous 'poly_int' routines
  7763. ======================================
  7764. 'print_dec (VALUE, FILE, SIGN)'
  7765. 'print_dec (VALUE, FILE)'
  7766. Print VALUE to FILE as a decimal value, interpreting the
  7767. coefficients according to SIGN. The final argument is optional if
  7768. VALUE has an inherent sign; for example, 'poly_int64' values print
  7769. as signed by default and 'poly_uint64' values print as unsigned by
  7770. default.
  7771. This is a simply a 'poly_int' version of a wide-int routine.
  7772. 
  7773. File: gccint.info, Node: Guidelines for using poly_int, Prev: Miscellaneous poly_int routines, Up: poly_int
  7774. 10.9 Guidelines for using 'poly_int'
  7775. ====================================
  7776. One of the main design goals of 'poly_int' was to make it easy to write
  7777. target-independent code that handles variable-sized registers even when
  7778. the current target has fixed-sized registers. There are two aspects to
  7779. this:
  7780. * The set of 'poly_int' operations should be complete enough that the
  7781. question in most cases becomes "Can we do this operation on these
  7782. particular 'poly_int' values? If not, bail out" rather than "Are
  7783. these 'poly_int' values constant? If so, do the operation,
  7784. otherwise bail out".
  7785. * If target-independent code compiles and runs correctly on a target
  7786. with one value of 'NUM_POLY_INT_COEFFS', and if the code does not
  7787. use asserting functions like 'to_constant', it is reasonable to
  7788. assume that the code also works on targets with other values of
  7789. 'NUM_POLY_INT_COEFFS'. There is no need to check this during
  7790. everyday development.
  7791. So the general principle is: if target-independent code is dealing with
  7792. a 'poly_int' value, it is better to operate on it as a 'poly_int' if at
  7793. all possible, choosing conservatively-correct behavior if a particular
  7794. operation fails. For example, the following code handles an index 'pos'
  7795. into a sequence of vectors that each have 'nunits' elements:
  7796. /* Calculate which vector contains the result, and which lane of
  7797. that vector we need. */
  7798. if (!can_div_trunc_p (pos, nunits, &vec_entry, &vec_index))
  7799. {
  7800. if (dump_enabled_p ())
  7801. dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
  7802. "Cannot determine which vector holds the"
  7803. " final result.\n");
  7804. return false;
  7805. }
  7806. However, there are some contexts in which operating on a 'poly_int' is
  7807. not possible or does not make sense. One example is when handling
  7808. static initializers, since no current target supports the concept of a
  7809. variable-length static initializer. In these situations, a reasonable
  7810. fallback is:
  7811. if (POLY_VALUE.is_constant (&CONST_VALUE))
  7812. {
  7813. ...
  7814. /* Operate on CONST_VALUE. */
  7815. ...
  7816. }
  7817. else
  7818. {
  7819. ...
  7820. /* Conservatively correct fallback. */
  7821. ...
  7822. }
  7823. 'poly_int' also provides some asserting functions like 'to_constant'.
  7824. Please only use these functions if there is a good theoretical reason to
  7825. believe that the assertion cannot fire. For example, if some work is
  7826. divided into an analysis phase and an implementation phase, the analysis
  7827. phase might reject inputs that are not 'is_constant', in which case the
  7828. implementation phase can reasonably use 'to_constant' on the remaining
  7829. inputs. The assertions should not be used to discover whether a
  7830. condition ever occurs "in the field"; in other words, they should not be
  7831. used to restrict code to constants at first, with the intention of only
  7832. implementing a 'poly_int' version if a user hits the assertion.
  7833. If a particular asserting function like 'to_constant' is needed more
  7834. than once for the same reason, it is probably worth adding a helper
  7835. function or macro for that situation, so that the justification only
  7836. needs to be given once. For example:
  7837. /* Return the size of an element in a vector of size SIZE, given that
  7838. the vector has NELTS elements. The return value is in the same units
  7839. as SIZE (either bits or bytes).
  7840. to_constant () is safe in this situation because vector elements are
  7841. always constant-sized scalars. */
  7842. #define vector_element_size(SIZE, NELTS) \
  7843. (exact_div (SIZE, NELTS).to_constant ())
  7844. Target-specific code in 'config/CPU' only needs to handle non-constant
  7845. 'poly_int's if 'NUM_POLY_INT_COEFFS' is greater than one. For other
  7846. targets, 'poly_int' degenerates to a compile-time constant and is often
  7847. interchangable with a normal scalar integer. There are two main
  7848. exceptions:
  7849. * Sometimes an explicit cast to an integer type might be needed, such
  7850. as to resolve ambiguities in a '?:' expression, or when passing
  7851. values through '...' to things like print functions.
  7852. * Target macros are included in target-independent code and so do not
  7853. have access to the implicit conversion to a scalar integer. If
  7854. this becomes a problem for a particular target macro, the possible
  7855. solutions, in order of preference, are:
  7856. * Convert the target macro to a target hook (for all targets).
  7857. * Put the target's implementation of the target macro in its
  7858. 'CPU.c' file and call it from the target macro in the 'CPU.h'
  7859. file.
  7860. * Add 'to_constant ()' calls where necessary. The previous
  7861. option is preferable because it will help with any future
  7862. conversion of the macro to a hook.
  7863. 
  7864. File: gccint.info, Node: GENERIC, Next: GIMPLE, Prev: poly_int, Up: Top
  7865. 11 GENERIC
  7866. **********
  7867. The purpose of GENERIC is simply to provide a language-independent way
  7868. of representing an entire function in trees. To this end, it was
  7869. necessary to add a few new tree codes to the back end, but almost
  7870. everything was already there. If you can express it with the codes in
  7871. 'gcc/tree.def', it's GENERIC.
  7872. Early on, there was a great deal of debate about how to think about
  7873. statements in a tree IL. In GENERIC, a statement is defined as any
  7874. expression whose value, if any, is ignored. A statement will always
  7875. have 'TREE_SIDE_EFFECTS' set (or it will be discarded), but a
  7876. non-statement expression may also have side effects. A 'CALL_EXPR', for
  7877. instance.
  7878. It would be possible for some local optimizations to work on the
  7879. GENERIC form of a function; indeed, the adapted tree inliner works fine
  7880. on GENERIC, but the current compiler performs inlining after lowering to
  7881. GIMPLE (a restricted form described in the next section). Indeed,
  7882. currently the frontends perform this lowering before handing off to
  7883. 'tree_rest_of_compilation', but this seems inelegant.
  7884. * Menu:
  7885. * Deficiencies:: Topics net yet covered in this document.
  7886. * Tree overview:: All about 'tree's.
  7887. * Types:: Fundamental and aggregate types.
  7888. * Declarations:: Type declarations and variables.
  7889. * Attributes:: Declaration and type attributes.
  7890. * Expressions: Expression trees. Operating on data.
  7891. * Statements:: Control flow and related trees.
  7892. * Functions:: Function bodies, linkage, and other aspects.
  7893. * Language-dependent trees:: Topics and trees specific to language front ends.
  7894. * C and C++ Trees:: Trees specific to C and C++.
  7895. 
  7896. File: gccint.info, Node: Deficiencies, Next: Tree overview, Up: GENERIC
  7897. 11.1 Deficiencies
  7898. =================
  7899. There are many places in which this document is incomplet and incorrekt.
  7900. It is, as of yet, only _preliminary_ documentation.
  7901. 
  7902. File: gccint.info, Node: Tree overview, Next: Types, Prev: Deficiencies, Up: GENERIC
  7903. 11.2 Overview
  7904. =============
  7905. The central data structure used by the internal representation is the
  7906. 'tree'. These nodes, while all of the C type 'tree', are of many
  7907. varieties. A 'tree' is a pointer type, but the object to which it
  7908. points may be of a variety of types. From this point forward, we will
  7909. refer to trees in ordinary type, rather than in 'this font', except when
  7910. talking about the actual C type 'tree'.
  7911. You can tell what kind of node a particular tree is by using the
  7912. 'TREE_CODE' macro. Many, many macros take trees as input and return
  7913. trees as output. However, most macros require a certain kind of tree
  7914. node as input. In other words, there is a type-system for trees, but it
  7915. is not reflected in the C type-system.
  7916. For safety, it is useful to configure GCC with '--enable-checking'.
  7917. Although this results in a significant performance penalty (since all
  7918. tree types are checked at run-time), and is therefore inappropriate in a
  7919. release version, it is extremely helpful during the development process.
  7920. Many macros behave as predicates. Many, although not all, of these
  7921. predicates end in '_P'. Do not rely on the result type of these macros
  7922. being of any particular type. You may, however, rely on the fact that
  7923. the type can be compared to '0', so that statements like
  7924. if (TEST_P (t) && !TEST_P (y))
  7925. x = 1;
  7926. and
  7927. int i = (TEST_P (t) != 0);
  7928. are legal. Macros that return 'int' values now may be changed to return
  7929. 'tree' values, or other pointers in the future. Even those that
  7930. continue to return 'int' may return multiple nonzero codes where
  7931. previously they returned only zero and one. Therefore, you should not
  7932. write code like
  7933. if (TEST_P (t) == 1)
  7934. as this code is not guaranteed to work correctly in the future.
  7935. You should not take the address of values returned by the macros or
  7936. functions described here. In particular, no guarantee is given that the
  7937. values are lvalues.
  7938. In general, the names of macros are all in uppercase, while the names
  7939. of functions are entirely in lowercase. There are rare exceptions to
  7940. this rule. You should assume that any macro or function whose name is
  7941. made up entirely of uppercase letters may evaluate its arguments more
  7942. than once. You may assume that a macro or function whose name is made
  7943. up entirely of lowercase letters will evaluate its arguments only once.
  7944. The 'error_mark_node' is a special tree. Its tree code is
  7945. 'ERROR_MARK', but since there is only ever one node with that code, the
  7946. usual practice is to compare the tree against 'error_mark_node'. (This
  7947. test is just a test for pointer equality.) If an error has occurred
  7948. during front-end processing the flag 'errorcount' will be set. If the
  7949. front end has encountered code it cannot handle, it will issue a message
  7950. to the user and set 'sorrycount'. When these flags are set, any macro
  7951. or function which normally returns a tree of a particular kind may
  7952. instead return the 'error_mark_node'. Thus, if you intend to do any
  7953. processing of erroneous code, you must be prepared to deal with the
  7954. 'error_mark_node'.
  7955. Occasionally, a particular tree slot (like an operand to an expression,
  7956. or a particular field in a declaration) will be referred to as "reserved
  7957. for the back end". These slots are used to store RTL when the tree is
  7958. converted to RTL for use by the GCC back end. However, if that process
  7959. is not taking place (e.g., if the front end is being hooked up to an
  7960. intelligent editor), then those slots may be used by the back end
  7961. presently in use.
  7962. If you encounter situations that do not match this documentation, such
  7963. as tree nodes of types not mentioned here, or macros documented to
  7964. return entities of a particular kind that instead return entities of
  7965. some different kind, you have found a bug, either in the front end or in
  7966. the documentation. Please report these bugs as you would any other bug.
  7967. * Menu:
  7968. * Macros and Functions::Macros and functions that can be used with all trees.
  7969. * Identifiers:: The names of things.
  7970. * Containers:: Lists and vectors.
  7971. 
  7972. File: gccint.info, Node: Macros and Functions, Next: Identifiers, Up: Tree overview
  7973. 11.2.1 Trees
  7974. ------------
  7975. All GENERIC trees have two fields in common. First, 'TREE_CHAIN' is a
  7976. pointer that can be used as a singly-linked list to other trees. The
  7977. other is 'TREE_TYPE'. Many trees store the type of an expression or
  7978. declaration in this field.
  7979. These are some other functions for handling trees:
  7980. 'tree_size'
  7981. Return the number of bytes a tree takes.
  7982. 'build0'
  7983. 'build1'
  7984. 'build2'
  7985. 'build3'
  7986. 'build4'
  7987. 'build5'
  7988. 'build6'
  7989. These functions build a tree and supply values to put in each
  7990. parameter. The basic signature is 'code, type, [operands]'.
  7991. 'code' is the 'TREE_CODE', and 'type' is a tree representing the
  7992. 'TREE_TYPE'. These are followed by the operands, each of which is
  7993. also a tree.
  7994. 
  7995. File: gccint.info, Node: Identifiers, Next: Containers, Prev: Macros and Functions, Up: Tree overview
  7996. 11.2.2 Identifiers
  7997. ------------------
  7998. An 'IDENTIFIER_NODE' represents a slightly more general concept than the
  7999. standard C or C++ concept of identifier. In particular, an
  8000. 'IDENTIFIER_NODE' may contain a '$', or other extraordinary characters.
  8001. There are never two distinct 'IDENTIFIER_NODE's representing the same
  8002. identifier. Therefore, you may use pointer equality to compare
  8003. 'IDENTIFIER_NODE's, rather than using a routine like 'strcmp'. Use
  8004. 'get_identifier' to obtain the unique 'IDENTIFIER_NODE' for a supplied
  8005. string.
  8006. You can use the following macros to access identifiers:
  8007. 'IDENTIFIER_POINTER'
  8008. The string represented by the identifier, represented as a 'char*'.
  8009. This string is always 'NUL'-terminated, and contains no embedded
  8010. 'NUL' characters.
  8011. 'IDENTIFIER_LENGTH'
  8012. The length of the string returned by 'IDENTIFIER_POINTER', not
  8013. including the trailing 'NUL'. This value of 'IDENTIFIER_LENGTH
  8014. (x)' is always the same as 'strlen (IDENTIFIER_POINTER (x))'.
  8015. 'IDENTIFIER_OPNAME_P'
  8016. This predicate holds if the identifier represents the name of an
  8017. overloaded operator. In this case, you should not depend on the
  8018. contents of either the 'IDENTIFIER_POINTER' or the
  8019. 'IDENTIFIER_LENGTH'.
  8020. 'IDENTIFIER_TYPENAME_P'
  8021. This predicate holds if the identifier represents the name of a
  8022. user-defined conversion operator. In this case, the 'TREE_TYPE' of
  8023. the 'IDENTIFIER_NODE' holds the type to which the conversion
  8024. operator converts.
  8025. 
  8026. File: gccint.info, Node: Containers, Prev: Identifiers, Up: Tree overview
  8027. 11.2.3 Containers
  8028. -----------------
  8029. Two common container data structures can be represented directly with
  8030. tree nodes. A 'TREE_LIST' is a singly linked list containing two trees
  8031. per node. These are the 'TREE_PURPOSE' and 'TREE_VALUE' of each node.
  8032. (Often, the 'TREE_PURPOSE' contains some kind of tag, or additional
  8033. information, while the 'TREE_VALUE' contains the majority of the
  8034. payload. In other cases, the 'TREE_PURPOSE' is simply 'NULL_TREE',
  8035. while in still others both the 'TREE_PURPOSE' and 'TREE_VALUE' are of
  8036. equal stature.) Given one 'TREE_LIST' node, the next node is found by
  8037. following the 'TREE_CHAIN'. If the 'TREE_CHAIN' is 'NULL_TREE', then
  8038. you have reached the end of the list.
  8039. A 'TREE_VEC' is a simple vector. The 'TREE_VEC_LENGTH' is an integer
  8040. (not a tree) giving the number of nodes in the vector. The nodes
  8041. themselves are accessed using the 'TREE_VEC_ELT' macro, which takes two
  8042. arguments. The first is the 'TREE_VEC' in question; the second is an
  8043. integer indicating which element in the vector is desired. The elements
  8044. are indexed from zero.
  8045. 
  8046. File: gccint.info, Node: Types, Next: Declarations, Prev: Tree overview, Up: GENERIC
  8047. 11.3 Types
  8048. ==========
  8049. All types have corresponding tree nodes. However, you should not assume
  8050. that there is exactly one tree node corresponding to each type. There
  8051. are often multiple nodes corresponding to the same type.
  8052. For the most part, different kinds of types have different tree codes.
  8053. (For example, pointer types use a 'POINTER_TYPE' code while arrays use
  8054. an 'ARRAY_TYPE' code.) However, pointers to member functions use the
  8055. 'RECORD_TYPE' code. Therefore, when writing a 'switch' statement that
  8056. depends on the code associated with a particular type, you should take
  8057. care to handle pointers to member functions under the 'RECORD_TYPE' case
  8058. label.
  8059. The following functions and macros deal with cv-qualification of types:
  8060. 'TYPE_MAIN_VARIANT'
  8061. This macro returns the unqualified version of a type. It may be
  8062. applied to an unqualified type, but it is not always the identity
  8063. function in that case.
  8064. A few other macros and functions are usable with all types:
  8065. 'TYPE_SIZE'
  8066. The number of bits required to represent the type, represented as
  8067. an 'INTEGER_CST'. For an incomplete type, 'TYPE_SIZE' will be
  8068. 'NULL_TREE'.
  8069. 'TYPE_ALIGN'
  8070. The alignment of the type, in bits, represented as an 'int'.
  8071. 'TYPE_NAME'
  8072. This macro returns a declaration (in the form of a 'TYPE_DECL') for
  8073. the type. (Note this macro does _not_ return an 'IDENTIFIER_NODE',
  8074. as you might expect, given its name!) You can look at the
  8075. 'DECL_NAME' of the 'TYPE_DECL' to obtain the actual name of the
  8076. type. The 'TYPE_NAME' will be 'NULL_TREE' for a type that is not a
  8077. built-in type, the result of a typedef, or a named class type.
  8078. 'TYPE_CANONICAL'
  8079. This macro returns the "canonical" type for the given type node.
  8080. Canonical types are used to improve performance in the C++ and
  8081. Objective-C++ front ends by allowing efficient comparison between
  8082. two type nodes in 'same_type_p': if the 'TYPE_CANONICAL' values of
  8083. the types are equal, the types are equivalent; otherwise, the types
  8084. are not equivalent. The notion of equivalence for canonical types
  8085. is the same as the notion of type equivalence in the language
  8086. itself. For instance,
  8087. When 'TYPE_CANONICAL' is 'NULL_TREE', there is no canonical type
  8088. for the given type node. In this case, comparison between this
  8089. type and any other type requires the compiler to perform a deep,
  8090. "structural" comparison to see if the two type nodes have the same
  8091. form and properties.
  8092. The canonical type for a node is always the most fundamental type
  8093. in the equivalence class of types. For instance, 'int' is its own
  8094. canonical type. A typedef 'I' of 'int' will have 'int' as its
  8095. canonical type. Similarly, 'I*' and a typedef 'IP' (defined to
  8096. 'I*') will has 'int*' as their canonical type. When building a new
  8097. type node, be sure to set 'TYPE_CANONICAL' to the appropriate
  8098. canonical type. If the new type is a compound type (built from
  8099. other types), and any of those other types require structural
  8100. equality, use 'SET_TYPE_STRUCTURAL_EQUALITY' to ensure that the new
  8101. type also requires structural equality. Finally, if for some
  8102. reason you cannot guarantee that 'TYPE_CANONICAL' will point to the
  8103. canonical type, use 'SET_TYPE_STRUCTURAL_EQUALITY' to make sure
  8104. that the new type-and any type constructed based on it-requires
  8105. structural equality. If you suspect that the canonical type system
  8106. is miscomparing types, pass '--param verify-canonical-types=1' to
  8107. the compiler or configure with '--enable-checking' to force the
  8108. compiler to verify its canonical-type comparisons against the
  8109. structural comparisons; the compiler will then print any warnings
  8110. if the canonical types miscompare.
  8111. 'TYPE_STRUCTURAL_EQUALITY_P'
  8112. This predicate holds when the node requires structural equality
  8113. checks, e.g., when 'TYPE_CANONICAL' is 'NULL_TREE'.
  8114. 'SET_TYPE_STRUCTURAL_EQUALITY'
  8115. This macro states that the type node it is given requires
  8116. structural equality checks, e.g., it sets 'TYPE_CANONICAL' to
  8117. 'NULL_TREE'.
  8118. 'same_type_p'
  8119. This predicate takes two types as input, and holds if they are the
  8120. same type. For example, if one type is a 'typedef' for the other,
  8121. or both are 'typedef's for the same type. This predicate also
  8122. holds if the two trees given as input are simply copies of one
  8123. another; i.e., there is no difference between them at the source
  8124. level, but, for whatever reason, a duplicate has been made in the
  8125. representation. You should never use '==' (pointer equality) to
  8126. compare types; always use 'same_type_p' instead.
  8127. Detailed below are the various kinds of types, and the macros that can
  8128. be used to access them. Although other kinds of types are used
  8129. elsewhere in G++, the types described here are the only ones that you
  8130. will encounter while examining the intermediate representation.
  8131. 'VOID_TYPE'
  8132. Used to represent the 'void' type.
  8133. 'INTEGER_TYPE'
  8134. Used to represent the various integral types, including 'char',
  8135. 'short', 'int', 'long', and 'long long'. This code is not used for
  8136. enumeration types, nor for the 'bool' type. The 'TYPE_PRECISION'
  8137. is the number of bits used in the representation, represented as an
  8138. 'unsigned int'. (Note that in the general case this is not the
  8139. same value as 'TYPE_SIZE'; suppose that there were a 24-bit integer
  8140. type, but that alignment requirements for the ABI required 32-bit
  8141. alignment. Then, 'TYPE_SIZE' would be an 'INTEGER_CST' for 32,
  8142. while 'TYPE_PRECISION' would be 24.) The integer type is unsigned
  8143. if 'TYPE_UNSIGNED' holds; otherwise, it is signed.
  8144. The 'TYPE_MIN_VALUE' is an 'INTEGER_CST' for the smallest integer
  8145. that may be represented by this type. Similarly, the
  8146. 'TYPE_MAX_VALUE' is an 'INTEGER_CST' for the largest integer that
  8147. may be represented by this type.
  8148. 'REAL_TYPE'
  8149. Used to represent the 'float', 'double', and 'long double' types.
  8150. The number of bits in the floating-point representation is given by
  8151. 'TYPE_PRECISION', as in the 'INTEGER_TYPE' case.
  8152. 'FIXED_POINT_TYPE'
  8153. Used to represent the 'short _Fract', '_Fract', 'long _Fract',
  8154. 'long long _Fract', 'short _Accum', '_Accum', 'long _Accum', and
  8155. 'long long _Accum' types. The number of bits in the fixed-point
  8156. representation is given by 'TYPE_PRECISION', as in the
  8157. 'INTEGER_TYPE' case. There may be padding bits, fractional bits
  8158. and integral bits. The number of fractional bits is given by
  8159. 'TYPE_FBIT', and the number of integral bits is given by
  8160. 'TYPE_IBIT'. The fixed-point type is unsigned if 'TYPE_UNSIGNED'
  8161. holds; otherwise, it is signed. The fixed-point type is saturating
  8162. if 'TYPE_SATURATING' holds; otherwise, it is not saturating.
  8163. 'COMPLEX_TYPE'
  8164. Used to represent GCC built-in '__complex__' data types. The
  8165. 'TREE_TYPE' is the type of the real and imaginary parts.
  8166. 'ENUMERAL_TYPE'
  8167. Used to represent an enumeration type. The 'TYPE_PRECISION' gives
  8168. (as an 'int'), the number of bits used to represent the type. If
  8169. there are no negative enumeration constants, 'TYPE_UNSIGNED' will
  8170. hold. The minimum and maximum enumeration constants may be
  8171. obtained with 'TYPE_MIN_VALUE' and 'TYPE_MAX_VALUE', respectively;
  8172. each of these macros returns an 'INTEGER_CST'.
  8173. The actual enumeration constants themselves may be obtained by
  8174. looking at the 'TYPE_VALUES'. This macro will return a
  8175. 'TREE_LIST', containing the constants. The 'TREE_PURPOSE' of each
  8176. node will be an 'IDENTIFIER_NODE' giving the name of the constant;
  8177. the 'TREE_VALUE' will be an 'INTEGER_CST' giving the value assigned
  8178. to that constant. These constants will appear in the order in
  8179. which they were declared. The 'TREE_TYPE' of each of these
  8180. constants will be the type of enumeration type itself.
  8181. 'BOOLEAN_TYPE'
  8182. Used to represent the 'bool' type.
  8183. 'POINTER_TYPE'
  8184. Used to represent pointer types, and pointer to data member types.
  8185. The 'TREE_TYPE' gives the type to which this type points.
  8186. 'REFERENCE_TYPE'
  8187. Used to represent reference types. The 'TREE_TYPE' gives the type
  8188. to which this type refers.
  8189. 'FUNCTION_TYPE'
  8190. Used to represent the type of non-member functions and of static
  8191. member functions. The 'TREE_TYPE' gives the return type of the
  8192. function. The 'TYPE_ARG_TYPES' are a 'TREE_LIST' of the argument
  8193. types. The 'TREE_VALUE' of each node in this list is the type of
  8194. the corresponding argument; the 'TREE_PURPOSE' is an expression for
  8195. the default argument value, if any. If the last node in the list
  8196. is 'void_list_node' (a 'TREE_LIST' node whose 'TREE_VALUE' is the
  8197. 'void_type_node'), then functions of this type do not take variable
  8198. arguments. Otherwise, they do take a variable number of arguments.
  8199. Note that in C (but not in C++) a function declared like 'void f()'
  8200. is an unprototyped function taking a variable number of arguments;
  8201. the 'TYPE_ARG_TYPES' of such a function will be 'NULL'.
  8202. 'METHOD_TYPE'
  8203. Used to represent the type of a non-static member function. Like a
  8204. 'FUNCTION_TYPE', the return type is given by the 'TREE_TYPE'. The
  8205. type of '*this', i.e., the class of which functions of this type
  8206. are a member, is given by the 'TYPE_METHOD_BASETYPE'. The
  8207. 'TYPE_ARG_TYPES' is the parameter list, as for a 'FUNCTION_TYPE',
  8208. and includes the 'this' argument.
  8209. 'ARRAY_TYPE'
  8210. Used to represent array types. The 'TREE_TYPE' gives the type of
  8211. the elements in the array. If the array-bound is present in the
  8212. type, the 'TYPE_DOMAIN' is an 'INTEGER_TYPE' whose 'TYPE_MIN_VALUE'
  8213. and 'TYPE_MAX_VALUE' will be the lower and upper bounds of the
  8214. array, respectively. The 'TYPE_MIN_VALUE' will always be an
  8215. 'INTEGER_CST' for zero, while the 'TYPE_MAX_VALUE' will be one less
  8216. than the number of elements in the array, i.e., the highest value
  8217. which may be used to index an element in the array.
  8218. 'RECORD_TYPE'
  8219. Used to represent 'struct' and 'class' types, as well as pointers
  8220. to member functions and similar constructs in other languages.
  8221. 'TYPE_FIELDS' contains the items contained in this type, each of
  8222. which can be a 'FIELD_DECL', 'VAR_DECL', 'CONST_DECL', or
  8223. 'TYPE_DECL'. You may not make any assumptions about the ordering
  8224. of the fields in the type or whether one or more of them overlap.
  8225. 'UNION_TYPE'
  8226. Used to represent 'union' types. Similar to 'RECORD_TYPE' except
  8227. that all 'FIELD_DECL' nodes in 'TYPE_FIELD' start at bit position
  8228. zero.
  8229. 'QUAL_UNION_TYPE'
  8230. Used to represent part of a variant record in Ada. Similar to
  8231. 'UNION_TYPE' except that each 'FIELD_DECL' has a 'DECL_QUALIFIER'
  8232. field, which contains a boolean expression that indicates whether
  8233. the field is present in the object. The type will only have one
  8234. field, so each field's 'DECL_QUALIFIER' is only evaluated if none
  8235. of the expressions in the previous fields in 'TYPE_FIELDS' are
  8236. nonzero. Normally these expressions will reference a field in the
  8237. outer object using a 'PLACEHOLDER_EXPR'.
  8238. 'LANG_TYPE'
  8239. This node is used to represent a language-specific type. The front
  8240. end must handle it.
  8241. 'OFFSET_TYPE'
  8242. This node is used to represent a pointer-to-data member. For a
  8243. data member 'X::m' the 'TYPE_OFFSET_BASETYPE' is 'X' and the
  8244. 'TREE_TYPE' is the type of 'm'.
  8245. There are variables whose values represent some of the basic types.
  8246. These include:
  8247. 'void_type_node'
  8248. A node for 'void'.
  8249. 'integer_type_node'
  8250. A node for 'int'.
  8251. 'unsigned_type_node.'
  8252. A node for 'unsigned int'.
  8253. 'char_type_node.'
  8254. A node for 'char'.
  8255. It may sometimes be useful to compare one of these variables with a type
  8256. in hand, using 'same_type_p'.
  8257. 
  8258. File: gccint.info, Node: Declarations, Next: Attributes, Prev: Types, Up: GENERIC
  8259. 11.4 Declarations
  8260. =================
  8261. This section covers the various kinds of declarations that appear in the
  8262. internal representation, except for declarations of functions
  8263. (represented by 'FUNCTION_DECL' nodes), which are described in *note
  8264. Functions::.
  8265. * Menu:
  8266. * Working with declarations:: Macros and functions that work on
  8267. declarations.
  8268. * Internal structure:: How declaration nodes are represented.
  8269. 
  8270. File: gccint.info, Node: Working with declarations, Next: Internal structure, Up: Declarations
  8271. 11.4.1 Working with declarations
  8272. --------------------------------
  8273. Some macros can be used with any kind of declaration. These include:
  8274. 'DECL_NAME'
  8275. This macro returns an 'IDENTIFIER_NODE' giving the name of the
  8276. entity.
  8277. 'TREE_TYPE'
  8278. This macro returns the type of the entity declared.
  8279. 'EXPR_FILENAME'
  8280. This macro returns the name of the file in which the entity was
  8281. declared, as a 'char*'. For an entity declared implicitly by the
  8282. compiler (like '__builtin_memcpy'), this will be the string
  8283. '"<internal>"'.
  8284. 'EXPR_LINENO'
  8285. This macro returns the line number at which the entity was
  8286. declared, as an 'int'.
  8287. 'DECL_ARTIFICIAL'
  8288. This predicate holds if the declaration was implicitly generated by
  8289. the compiler. For example, this predicate will hold of an
  8290. implicitly declared member function, or of the 'TYPE_DECL'
  8291. implicitly generated for a class type. Recall that in C++ code
  8292. like:
  8293. struct S {};
  8294. is roughly equivalent to C code like:
  8295. struct S {};
  8296. typedef struct S S;
  8297. The implicitly generated 'typedef' declaration is represented by a
  8298. 'TYPE_DECL' for which 'DECL_ARTIFICIAL' holds.
  8299. The various kinds of declarations include:
  8300. 'LABEL_DECL'
  8301. These nodes are used to represent labels in function bodies. For
  8302. more information, see *note Functions::. These nodes only appear
  8303. in block scopes.
  8304. 'CONST_DECL'
  8305. These nodes are used to represent enumeration constants. The value
  8306. of the constant is given by 'DECL_INITIAL' which will be an
  8307. 'INTEGER_CST' with the same type as the 'TREE_TYPE' of the
  8308. 'CONST_DECL', i.e., an 'ENUMERAL_TYPE'.
  8309. 'RESULT_DECL'
  8310. These nodes represent the value returned by a function. When a
  8311. value is assigned to a 'RESULT_DECL', that indicates that the value
  8312. should be returned, via bitwise copy, by the function. You can use
  8313. 'DECL_SIZE' and 'DECL_ALIGN' on a 'RESULT_DECL', just as with a
  8314. 'VAR_DECL'.
  8315. 'TYPE_DECL'
  8316. These nodes represent 'typedef' declarations. The 'TREE_TYPE' is
  8317. the type declared to have the name given by 'DECL_NAME'. In some
  8318. cases, there is no associated name.
  8319. 'VAR_DECL'
  8320. These nodes represent variables with namespace or block scope, as
  8321. well as static data members. The 'DECL_SIZE' and 'DECL_ALIGN' are
  8322. analogous to 'TYPE_SIZE' and 'TYPE_ALIGN'. For a declaration, you
  8323. should always use the 'DECL_SIZE' and 'DECL_ALIGN' rather than the
  8324. 'TYPE_SIZE' and 'TYPE_ALIGN' given by the 'TREE_TYPE', since
  8325. special attributes may have been applied to the variable to give it
  8326. a particular size and alignment. You may use the predicates
  8327. 'DECL_THIS_STATIC' or 'DECL_THIS_EXTERN' to test whether the
  8328. storage class specifiers 'static' or 'extern' were used to declare
  8329. a variable.
  8330. If this variable is initialized (but does not require a
  8331. constructor), the 'DECL_INITIAL' will be an expression for the
  8332. initializer. The initializer should be evaluated, and a bitwise
  8333. copy into the variable performed. If the 'DECL_INITIAL' is the
  8334. 'error_mark_node', there is an initializer, but it is given by an
  8335. explicit statement later in the code; no bitwise copy is required.
  8336. GCC provides an extension that allows either automatic variables,
  8337. or global variables, to be placed in particular registers. This
  8338. extension is being used for a particular 'VAR_DECL' if
  8339. 'DECL_REGISTER' holds for the 'VAR_DECL', and if
  8340. 'DECL_ASSEMBLER_NAME' is not equal to 'DECL_NAME'. In that case,
  8341. 'DECL_ASSEMBLER_NAME' is the name of the register into which the
  8342. variable will be placed.
  8343. 'PARM_DECL'
  8344. Used to represent a parameter to a function. Treat these nodes
  8345. similarly to 'VAR_DECL' nodes. These nodes only appear in the
  8346. 'DECL_ARGUMENTS' for a 'FUNCTION_DECL'.
  8347. The 'DECL_ARG_TYPE' for a 'PARM_DECL' is the type that will
  8348. actually be used when a value is passed to this function. It may
  8349. be a wider type than the 'TREE_TYPE' of the parameter; for example,
  8350. the ordinary type might be 'short' while the 'DECL_ARG_TYPE' is
  8351. 'int'.
  8352. 'DEBUG_EXPR_DECL'
  8353. Used to represent an anonymous debug-information temporary created
  8354. to hold an expression as it is optimized away, so that its value
  8355. can be referenced in debug bind statements.
  8356. 'FIELD_DECL'
  8357. These nodes represent non-static data members. The 'DECL_SIZE' and
  8358. 'DECL_ALIGN' behave as for 'VAR_DECL' nodes. The position of the
  8359. field within the parent record is specified by a combination of
  8360. three attributes. 'DECL_FIELD_OFFSET' is the position, counting in
  8361. bytes, of the 'DECL_OFFSET_ALIGN'-bit sized word containing the bit
  8362. of the field closest to the beginning of the structure.
  8363. 'DECL_FIELD_BIT_OFFSET' is the bit offset of the first bit of the
  8364. field within this word; this may be nonzero even for fields that
  8365. are not bit-fields, since 'DECL_OFFSET_ALIGN' may be greater than
  8366. the natural alignment of the field's type.
  8367. If 'DECL_C_BIT_FIELD' holds, this field is a bit-field. In a
  8368. bit-field, 'DECL_BIT_FIELD_TYPE' also contains the type that was
  8369. originally specified for it, while DECL_TYPE may be a modified type
  8370. with lesser precision, according to the size of the bit field.
  8371. 'NAMESPACE_DECL'
  8372. Namespaces provide a name hierarchy for other declarations. They
  8373. appear in the 'DECL_CONTEXT' of other '_DECL' nodes.
  8374. 
  8375. File: gccint.info, Node: Internal structure, Prev: Working with declarations, Up: Declarations
  8376. 11.4.2 Internal structure
  8377. -------------------------
  8378. 'DECL' nodes are represented internally as a hierarchy of structures.
  8379. * Menu:
  8380. * Current structure hierarchy:: The current DECL node structure
  8381. hierarchy.
  8382. * Adding new DECL node types:: How to add a new DECL node to a
  8383. frontend.
  8384. 
  8385. File: gccint.info, Node: Current structure hierarchy, Next: Adding new DECL node types, Up: Internal structure
  8386. 11.4.2.1 Current structure hierarchy
  8387. ....................................
  8388. 'struct tree_decl_minimal'
  8389. This is the minimal structure to inherit from in order for common
  8390. 'DECL' macros to work. The fields it contains are a unique ID,
  8391. source location, context, and name.
  8392. 'struct tree_decl_common'
  8393. This structure inherits from 'struct tree_decl_minimal'. It
  8394. contains fields that most 'DECL' nodes need, such as a field to
  8395. store alignment, machine mode, size, and attributes.
  8396. 'struct tree_field_decl'
  8397. This structure inherits from 'struct tree_decl_common'. It is used
  8398. to represent 'FIELD_DECL'.
  8399. 'struct tree_label_decl'
  8400. This structure inherits from 'struct tree_decl_common'. It is used
  8401. to represent 'LABEL_DECL'.
  8402. 'struct tree_translation_unit_decl'
  8403. This structure inherits from 'struct tree_decl_common'. It is used
  8404. to represent 'TRANSLATION_UNIT_DECL'.
  8405. 'struct tree_decl_with_rtl'
  8406. This structure inherits from 'struct tree_decl_common'. It
  8407. contains a field to store the low-level RTL associated with a
  8408. 'DECL' node.
  8409. 'struct tree_result_decl'
  8410. This structure inherits from 'struct tree_decl_with_rtl'. It is
  8411. used to represent 'RESULT_DECL'.
  8412. 'struct tree_const_decl'
  8413. This structure inherits from 'struct tree_decl_with_rtl'. It is
  8414. used to represent 'CONST_DECL'.
  8415. 'struct tree_parm_decl'
  8416. This structure inherits from 'struct tree_decl_with_rtl'. It is
  8417. used to represent 'PARM_DECL'.
  8418. 'struct tree_decl_with_vis'
  8419. This structure inherits from 'struct tree_decl_with_rtl'. It
  8420. contains fields necessary to store visibility information, as well
  8421. as a section name and assembler name.
  8422. 'struct tree_var_decl'
  8423. This structure inherits from 'struct tree_decl_with_vis'. It is
  8424. used to represent 'VAR_DECL'.
  8425. 'struct tree_function_decl'
  8426. This structure inherits from 'struct tree_decl_with_vis'. It is
  8427. used to represent 'FUNCTION_DECL'.
  8428. 
  8429. File: gccint.info, Node: Adding new DECL node types, Prev: Current structure hierarchy, Up: Internal structure
  8430. 11.4.2.2 Adding new DECL node types
  8431. ...................................
  8432. Adding a new 'DECL' tree consists of the following steps
  8433. Add a new tree code for the 'DECL' node
  8434. For language specific 'DECL' nodes, there is a '.def' file in each
  8435. frontend directory where the tree code should be added. For 'DECL'
  8436. nodes that are part of the middle-end, the code should be added to
  8437. 'tree.def'.
  8438. Create a new structure type for the 'DECL' node
  8439. These structures should inherit from one of the existing structures
  8440. in the language hierarchy by using that structure as the first
  8441. member.
  8442. struct tree_foo_decl
  8443. {
  8444. struct tree_decl_with_vis common;
  8445. }
  8446. Would create a structure name 'tree_foo_decl' that inherits from
  8447. 'struct tree_decl_with_vis'.
  8448. For language specific 'DECL' nodes, this new structure type should
  8449. go in the appropriate '.h' file. For 'DECL' nodes that are part of
  8450. the middle-end, the structure type should go in 'tree.h'.
  8451. Add a member to the tree structure enumerator for the node
  8452. For garbage collection and dynamic checking purposes, each 'DECL'
  8453. node structure type is required to have a unique enumerator value
  8454. specified with it. For language specific 'DECL' nodes, this new
  8455. enumerator value should go in the appropriate '.def' file. For
  8456. 'DECL' nodes that are part of the middle-end, the enumerator values
  8457. are specified in 'treestruct.def'.
  8458. Update 'union tree_node'
  8459. In order to make your new structure type usable, it must be added
  8460. to 'union tree_node'. For language specific 'DECL' nodes, a new
  8461. entry should be added to the appropriate '.h' file of the form
  8462. struct tree_foo_decl GTY ((tag ("TS_VAR_DECL"))) foo_decl;
  8463. For 'DECL' nodes that are part of the middle-end, the additional
  8464. member goes directly into 'union tree_node' in 'tree.h'.
  8465. Update dynamic checking info
  8466. In order to be able to check whether accessing a named portion of
  8467. 'union tree_node' is legal, and whether a certain 'DECL' node
  8468. contains one of the enumerated 'DECL' node structures in the
  8469. hierarchy, a simple lookup table is used. This lookup table needs
  8470. to be kept up to date with the tree structure hierarchy, or else
  8471. checking and containment macros will fail inappropriately.
  8472. For language specific 'DECL' nodes, their is an 'init_ts' function
  8473. in an appropriate '.c' file, which initializes the lookup table.
  8474. Code setting up the table for new 'DECL' nodes should be added
  8475. there. For each 'DECL' tree code and enumerator value representing
  8476. a member of the inheritance hierarchy, the table should contain 1
  8477. if that tree code inherits (directly or indirectly) from that
  8478. member. Thus, a 'FOO_DECL' node derived from 'struct
  8479. decl_with_rtl', and enumerator value 'TS_FOO_DECL', would be set up
  8480. as follows
  8481. tree_contains_struct[FOO_DECL][TS_FOO_DECL] = 1;
  8482. tree_contains_struct[FOO_DECL][TS_DECL_WRTL] = 1;
  8483. tree_contains_struct[FOO_DECL][TS_DECL_COMMON] = 1;
  8484. tree_contains_struct[FOO_DECL][TS_DECL_MINIMAL] = 1;
  8485. For 'DECL' nodes that are part of the middle-end, the setup code
  8486. goes into 'tree.c'.
  8487. Add macros to access any new fields and flags
  8488. Each added field or flag should have a macro that is used to access
  8489. it, that performs appropriate checking to ensure only the right
  8490. type of 'DECL' nodes access the field.
  8491. These macros generally take the following form
  8492. #define FOO_DECL_FIELDNAME(NODE) FOO_DECL_CHECK(NODE)->foo_decl.fieldname
  8493. However, if the structure is simply a base class for further
  8494. structures, something like the following should be used
  8495. #define BASE_STRUCT_CHECK(T) CONTAINS_STRUCT_CHECK(T, TS_BASE_STRUCT)
  8496. #define BASE_STRUCT_FIELDNAME(NODE) \
  8497. (BASE_STRUCT_CHECK(NODE)->base_struct.fieldname
  8498. Reading them from the generated 'all-tree.def' file (which in turn
  8499. includes all the 'tree.def' files), 'gencheck.c' is used during
  8500. GCC's build to generate the '*_CHECK' macros for all tree codes.
  8501. 
  8502. File: gccint.info, Node: Attributes, Next: Expression trees, Prev: Declarations, Up: GENERIC
  8503. 11.5 Attributes in trees
  8504. ========================
  8505. Attributes, as specified using the '__attribute__' keyword, are
  8506. represented internally as a 'TREE_LIST'. The 'TREE_PURPOSE' is the name
  8507. of the attribute, as an 'IDENTIFIER_NODE'. The 'TREE_VALUE' is a
  8508. 'TREE_LIST' of the arguments of the attribute, if any, or 'NULL_TREE' if
  8509. there are no arguments; the arguments are stored as the 'TREE_VALUE' of
  8510. successive entries in the list, and may be identifiers or expressions.
  8511. The 'TREE_CHAIN' of the attribute is the next attribute in a list of
  8512. attributes applying to the same declaration or type, or 'NULL_TREE' if
  8513. there are no further attributes in the list.
  8514. Attributes may be attached to declarations and to types; these
  8515. attributes may be accessed with the following macros. All attributes
  8516. are stored in this way, and many also cause other changes to the
  8517. declaration or type or to other internal compiler data structures.
  8518. -- Tree Macro: tree DECL_ATTRIBUTES (tree DECL)
  8519. This macro returns the attributes on the declaration DECL.
  8520. -- Tree Macro: tree TYPE_ATTRIBUTES (tree TYPE)
  8521. This macro returns the attributes on the type TYPE.
  8522. 
  8523. File: gccint.info, Node: Expression trees, Next: Statements, Prev: Attributes, Up: GENERIC
  8524. 11.6 Expressions
  8525. ================
  8526. The internal representation for expressions is for the most part quite
  8527. straightforward. However, there are a few facts that one must bear in
  8528. mind. In particular, the expression "tree" is actually a directed
  8529. acyclic graph. (For example there may be many references to the integer
  8530. constant zero throughout the source program; many of these will be
  8531. represented by the same expression node.) You should not rely on
  8532. certain kinds of node being shared, nor should you rely on certain kinds
  8533. of nodes being unshared.
  8534. The following macros can be used with all expression nodes:
  8535. 'TREE_TYPE'
  8536. Returns the type of the expression. This value may not be
  8537. precisely the same type that would be given the expression in the
  8538. original program.
  8539. In what follows, some nodes that one might expect to always have type
  8540. 'bool' are documented to have either integral or boolean type. At some
  8541. point in the future, the C front end may also make use of this same
  8542. intermediate representation, and at this point these nodes will
  8543. certainly have integral type. The previous sentence is not meant to
  8544. imply that the C++ front end does not or will not give these nodes
  8545. integral type.
  8546. Below, we list the various kinds of expression nodes. Except where
  8547. noted otherwise, the operands to an expression are accessed using the
  8548. 'TREE_OPERAND' macro. For example, to access the first operand to a
  8549. binary plus expression 'expr', use:
  8550. TREE_OPERAND (expr, 0)
  8551. As this example indicates, the operands are zero-indexed.
  8552. * Menu:
  8553. * Constants: Constant expressions.
  8554. * Storage References::
  8555. * Unary and Binary Expressions::
  8556. * Vectors::
  8557. 
  8558. File: gccint.info, Node: Constant expressions, Next: Storage References, Up: Expression trees
  8559. 11.6.1 Constant expressions
  8560. ---------------------------
  8561. The table below begins with constants, moves on to unary expressions,
  8562. then proceeds to binary expressions, and concludes with various other
  8563. kinds of expressions:
  8564. 'INTEGER_CST'
  8565. These nodes represent integer constants. Note that the type of
  8566. these constants is obtained with 'TREE_TYPE'; they are not always
  8567. of type 'int'. In particular, 'char' constants are represented
  8568. with 'INTEGER_CST' nodes. The value of the integer constant 'e' is
  8569. represented in an array of HOST_WIDE_INT. There are enough elements
  8570. in the array to represent the value without taking extra elements
  8571. for redundant 0s or -1. The number of elements used to represent
  8572. 'e' is available via 'TREE_INT_CST_NUNITS'. Element 'i' can be
  8573. extracted by using 'TREE_INT_CST_ELT (e, i)'. 'TREE_INT_CST_LOW'
  8574. is a shorthand for 'TREE_INT_CST_ELT (e, 0)'.
  8575. The functions 'tree_fits_shwi_p' and 'tree_fits_uhwi_p' can be used
  8576. to tell if the value is small enough to fit in a signed
  8577. HOST_WIDE_INT or an unsigned HOST_WIDE_INT respectively. The value
  8578. can then be extracted using 'tree_to_shwi' and 'tree_to_uhwi'.
  8579. 'REAL_CST'
  8580. FIXME: Talk about how to obtain representations of this constant,
  8581. do comparisons, and so forth.
  8582. 'FIXED_CST'
  8583. These nodes represent fixed-point constants. The type of these
  8584. constants is obtained with 'TREE_TYPE'. 'TREE_FIXED_CST_PTR'
  8585. points to a 'struct fixed_value'; 'TREE_FIXED_CST' returns the
  8586. structure itself. 'struct fixed_value' contains 'data' with the
  8587. size of two 'HOST_BITS_PER_WIDE_INT' and 'mode' as the associated
  8588. fixed-point machine mode for 'data'.
  8589. 'COMPLEX_CST'
  8590. These nodes are used to represent complex number constants, that is
  8591. a '__complex__' whose parts are constant nodes. The
  8592. 'TREE_REALPART' and 'TREE_IMAGPART' return the real and the
  8593. imaginary parts respectively.
  8594. 'VECTOR_CST'
  8595. These nodes are used to represent vector constants. Each vector
  8596. constant V is treated as a specific instance of an arbitrary-length
  8597. sequence that itself contains 'VECTOR_CST_NPATTERNS (V)'
  8598. interleaved patterns. Each pattern has the form:
  8599. { BASE0, BASE1, BASE1 + STEP, BASE1 + STEP * 2, ... }
  8600. The first three elements in each pattern are enough to determine
  8601. the values of the other elements. However, if all STEPs are zero,
  8602. only the first two elements are needed. If in addition each BASE1
  8603. is equal to the corresponding BASE0, only the first element in each
  8604. pattern is needed. The number of encoded elements per pattern is
  8605. given by 'VECTOR_CST_NELTS_PER_PATTERN (V)'.
  8606. For example, the constant:
  8607. { 0, 1, 2, 6, 3, 8, 4, 10, 5, 12, 6, 14, 7, 16, 8, 18 }
  8608. is interpreted as an interleaving of the sequences:
  8609. { 0, 2, 3, 4, 5, 6, 7, 8 }
  8610. { 1, 6, 8, 10, 12, 14, 16, 18 }
  8611. where the sequences are represented by the following patterns:
  8612. BASE0 == 0, BASE1 == 2, STEP == 1
  8613. BASE0 == 1, BASE1 == 6, STEP == 2
  8614. In this case:
  8615. VECTOR_CST_NPATTERNS (V) == 2
  8616. VECTOR_CST_NELTS_PER_PATTERN (V) == 3
  8617. The vector is therefore encoded using the first 6 elements ('{ 0,
  8618. 1, 2, 6, 3, 8 }'), with the remaining 10 elements being implicit
  8619. extensions of them.
  8620. Sometimes this scheme can create two possible encodings of the same
  8621. vector. For example { 0, 1 } could be seen as two patterns with
  8622. one element each or one pattern with two elements (BASE0 and
  8623. BASE1). The canonical encoding is always the one with the fewest
  8624. patterns or (if both encodings have the same number of petterns)
  8625. the one with the fewest encoded elements.
  8626. 'vector_cst_encoding_nelts (V)' gives the total number of encoded
  8627. elements in V, which is 6 in the example above.
  8628. 'VECTOR_CST_ENCODED_ELTS (V)' gives a pointer to the elements
  8629. encoded in V and 'VECTOR_CST_ENCODED_ELT (V, I)' accesses the value
  8630. of encoded element I.
  8631. 'VECTOR_CST_DUPLICATE_P (V)' is true if V simply contains repeated
  8632. instances of 'VECTOR_CST_NPATTERNS (V)' values. This is a
  8633. shorthand for testing 'VECTOR_CST_NELTS_PER_PATTERN (V) == 1'.
  8634. 'VECTOR_CST_STEPPED_P (V)' is true if at least one pattern in V has
  8635. a nonzero step. This is a shorthand for testing
  8636. 'VECTOR_CST_NELTS_PER_PATTERN (V) == 3'.
  8637. The utility function 'vector_cst_elt' gives the value of an
  8638. arbitrary index as a 'tree'. 'vector_cst_int_elt' gives the same
  8639. value as a 'wide_int'.
  8640. 'STRING_CST'
  8641. These nodes represent string-constants. The 'TREE_STRING_LENGTH'
  8642. returns the length of the string, as an 'int'. The
  8643. 'TREE_STRING_POINTER' is a 'char*' containing the string itself.
  8644. The string may not be 'NUL'-terminated, and it may contain embedded
  8645. 'NUL' characters. Therefore, the 'TREE_STRING_LENGTH' includes the
  8646. trailing 'NUL' if it is present.
  8647. For wide string constants, the 'TREE_STRING_LENGTH' is the number
  8648. of bytes in the string, and the 'TREE_STRING_POINTER' points to an
  8649. array of the bytes of the string, as represented on the target
  8650. system (that is, as integers in the target endianness). Wide and
  8651. non-wide string constants are distinguished only by the 'TREE_TYPE'
  8652. of the 'STRING_CST'.
  8653. FIXME: The formats of string constants are not well-defined when
  8654. the target system bytes are not the same width as host system
  8655. bytes.
  8656. 'POLY_INT_CST'
  8657. These nodes represent invariants that depend on some
  8658. target-specific runtime parameters. They consist of
  8659. 'NUM_POLY_INT_COEFFS' coefficients, with the first coefficient
  8660. being the constant term and the others being multipliers that are
  8661. applied to the runtime parameters.
  8662. 'POLY_INT_CST_ELT (X, I)' references coefficient number I of
  8663. 'POLY_INT_CST' node X. Each coefficient is an 'INTEGER_CST'.
  8664. 
  8665. File: gccint.info, Node: Storage References, Next: Unary and Binary Expressions, Prev: Constant expressions, Up: Expression trees
  8666. 11.6.2 References to storage
  8667. ----------------------------
  8668. 'ARRAY_REF'
  8669. These nodes represent array accesses. The first operand is the
  8670. array; the second is the index. To calculate the address of the
  8671. memory accessed, you must scale the index by the size of the type
  8672. of the array elements. The type of these expressions must be the
  8673. type of a component of the array. The third and fourth operands
  8674. are used after gimplification to represent the lower bound and
  8675. component size but should not be used directly; call
  8676. 'array_ref_low_bound' and 'array_ref_element_size' instead.
  8677. 'ARRAY_RANGE_REF'
  8678. These nodes represent access to a range (or "slice") of an array.
  8679. The operands are the same as that for 'ARRAY_REF' and have the same
  8680. meanings. The type of these expressions must be an array whose
  8681. component type is the same as that of the first operand. The range
  8682. of that array type determines the amount of data these expressions
  8683. access.
  8684. 'TARGET_MEM_REF'
  8685. These nodes represent memory accesses whose address directly map to
  8686. an addressing mode of the target architecture. The first argument
  8687. is 'TMR_SYMBOL' and must be a 'VAR_DECL' of an object with a fixed
  8688. address. The second argument is 'TMR_BASE' and the third one is
  8689. 'TMR_INDEX'. The fourth argument is 'TMR_STEP' and must be an
  8690. 'INTEGER_CST'. The fifth argument is 'TMR_OFFSET' and must be an
  8691. 'INTEGER_CST'. Any of the arguments may be NULL if the appropriate
  8692. component does not appear in the address. Address of the
  8693. 'TARGET_MEM_REF' is determined in the following way.
  8694. &TMR_SYMBOL + TMR_BASE + TMR_INDEX * TMR_STEP + TMR_OFFSET
  8695. The sixth argument is the reference to the original memory access,
  8696. which is preserved for the purposes of the RTL alias analysis. The
  8697. seventh argument is a tag representing the results of tree level
  8698. alias analysis.
  8699. 'ADDR_EXPR'
  8700. These nodes are used to represent the address of an object. (These
  8701. expressions will always have pointer or reference type.) The
  8702. operand may be another expression, or it may be a declaration.
  8703. As an extension, GCC allows users to take the address of a label.
  8704. In this case, the operand of the 'ADDR_EXPR' will be a
  8705. 'LABEL_DECL'. The type of such an expression is 'void*'.
  8706. If the object addressed is not an lvalue, a temporary is created,
  8707. and the address of the temporary is used.
  8708. 'INDIRECT_REF'
  8709. These nodes are used to represent the object pointed to by a
  8710. pointer. The operand is the pointer being dereferenced; it will
  8711. always have pointer or reference type.
  8712. 'MEM_REF'
  8713. These nodes are used to represent the object pointed to by a
  8714. pointer offset by a constant. The first operand is the pointer
  8715. being dereferenced; it will always have pointer or reference type.
  8716. The second operand is a pointer constant. Its type is specifying
  8717. the type to be used for type-based alias analysis.
  8718. 'COMPONENT_REF'
  8719. These nodes represent non-static data member accesses. The first
  8720. operand is the object (rather than a pointer to it); the second
  8721. operand is the 'FIELD_DECL' for the data member. The third operand
  8722. represents the byte offset of the field, but should not be used
  8723. directly; call 'component_ref_field_offset' instead.
  8724. 
  8725. File: gccint.info, Node: Unary and Binary Expressions, Next: Vectors, Prev: Storage References, Up: Expression trees
  8726. 11.6.3 Unary and Binary Expressions
  8727. -----------------------------------
  8728. 'NEGATE_EXPR'
  8729. These nodes represent unary negation of the single operand, for
  8730. both integer and floating-point types. The type of negation can be
  8731. determined by looking at the type of the expression.
  8732. The behavior of this operation on signed arithmetic overflow is
  8733. controlled by the 'flag_wrapv' and 'flag_trapv' variables.
  8734. 'ABS_EXPR'
  8735. These nodes represent the absolute value of the single operand, for
  8736. both integer and floating-point types. This is typically used to
  8737. implement the 'abs', 'labs' and 'llabs' builtins for integer types,
  8738. and the 'fabs', 'fabsf' and 'fabsl' builtins for floating point
  8739. types. The type of abs operation can be determined by looking at
  8740. the type of the expression.
  8741. This node is not used for complex types. To represent the modulus
  8742. or complex abs of a complex value, use the 'BUILT_IN_CABS',
  8743. 'BUILT_IN_CABSF' or 'BUILT_IN_CABSL' builtins, as used to implement
  8744. the C99 'cabs', 'cabsf' and 'cabsl' built-in functions.
  8745. 'ABSU_EXPR'
  8746. These nodes represent the absolute value of the single operand in
  8747. equivalent unsigned type such that 'ABSU_EXPR' of 'TYPE_MIN' is
  8748. well defined.
  8749. 'BIT_NOT_EXPR'
  8750. These nodes represent bitwise complement, and will always have
  8751. integral type. The only operand is the value to be complemented.
  8752. 'TRUTH_NOT_EXPR'
  8753. These nodes represent logical negation, and will always have
  8754. integral (or boolean) type. The operand is the value being
  8755. negated. The type of the operand and that of the result are always
  8756. of 'BOOLEAN_TYPE' or 'INTEGER_TYPE'.
  8757. 'PREDECREMENT_EXPR'
  8758. 'PREINCREMENT_EXPR'
  8759. 'POSTDECREMENT_EXPR'
  8760. 'POSTINCREMENT_EXPR'
  8761. These nodes represent increment and decrement expressions. The
  8762. value of the single operand is computed, and the operand
  8763. incremented or decremented. In the case of 'PREDECREMENT_EXPR' and
  8764. 'PREINCREMENT_EXPR', the value of the expression is the value
  8765. resulting after the increment or decrement; in the case of
  8766. 'POSTDECREMENT_EXPR' and 'POSTINCREMENT_EXPR' is the value before
  8767. the increment or decrement occurs. The type of the operand, like
  8768. that of the result, will be either integral, boolean, or
  8769. floating-point.
  8770. 'FIX_TRUNC_EXPR'
  8771. These nodes represent conversion of a floating-point value to an
  8772. integer. The single operand will have a floating-point type, while
  8773. the complete expression will have an integral (or boolean) type.
  8774. The operand is rounded towards zero.
  8775. 'FLOAT_EXPR'
  8776. These nodes represent conversion of an integral (or boolean) value
  8777. to a floating-point value. The single operand will have integral
  8778. type, while the complete expression will have a floating-point
  8779. type.
  8780. FIXME: How is the operand supposed to be rounded? Is this
  8781. dependent on '-mieee'?
  8782. 'COMPLEX_EXPR'
  8783. These nodes are used to represent complex numbers constructed from
  8784. two expressions of the same (integer or real) type. The first
  8785. operand is the real part and the second operand is the imaginary
  8786. part.
  8787. 'CONJ_EXPR'
  8788. These nodes represent the conjugate of their operand.
  8789. 'REALPART_EXPR'
  8790. 'IMAGPART_EXPR'
  8791. These nodes represent respectively the real and the imaginary parts
  8792. of complex numbers (their sole argument).
  8793. 'NON_LVALUE_EXPR'
  8794. These nodes indicate that their one and only operand is not an
  8795. lvalue. A back end can treat these identically to the single
  8796. operand.
  8797. 'NOP_EXPR'
  8798. These nodes are used to represent conversions that do not require
  8799. any code-generation. For example, conversion of a 'char*' to an
  8800. 'int*' does not require any code be generated; such a conversion is
  8801. represented by a 'NOP_EXPR'. The single operand is the expression
  8802. to be converted. The conversion from a pointer to a reference is
  8803. also represented with a 'NOP_EXPR'.
  8804. 'CONVERT_EXPR'
  8805. These nodes are similar to 'NOP_EXPR's, but are used in those
  8806. situations where code may need to be generated. For example, if an
  8807. 'int*' is converted to an 'int' code may need to be generated on
  8808. some platforms. These nodes are never used for C++-specific
  8809. conversions, like conversions between pointers to different classes
  8810. in an inheritance hierarchy. Any adjustments that need to be made
  8811. in such cases are always indicated explicitly. Similarly, a
  8812. user-defined conversion is never represented by a 'CONVERT_EXPR';
  8813. instead, the function calls are made explicit.
  8814. 'FIXED_CONVERT_EXPR'
  8815. These nodes are used to represent conversions that involve
  8816. fixed-point values. For example, from a fixed-point value to
  8817. another fixed-point value, from an integer to a fixed-point value,
  8818. from a fixed-point value to an integer, from a floating-point value
  8819. to a fixed-point value, or from a fixed-point value to a
  8820. floating-point value.
  8821. 'LSHIFT_EXPR'
  8822. 'RSHIFT_EXPR'
  8823. These nodes represent left and right shifts, respectively. The
  8824. first operand is the value to shift; it will always be of integral
  8825. type. The second operand is an expression for the number of bits
  8826. by which to shift. Right shift should be treated as arithmetic,
  8827. i.e., the high-order bits should be zero-filled when the expression
  8828. has unsigned type and filled with the sign bit when the expression
  8829. has signed type. Note that the result is undefined if the second
  8830. operand is larger than or equal to the first operand's type size.
  8831. Unlike most nodes, these can have a vector as first operand and a
  8832. scalar as second operand.
  8833. 'BIT_IOR_EXPR'
  8834. 'BIT_XOR_EXPR'
  8835. 'BIT_AND_EXPR'
  8836. These nodes represent bitwise inclusive or, bitwise exclusive or,
  8837. and bitwise and, respectively. Both operands will always have
  8838. integral type.
  8839. 'TRUTH_ANDIF_EXPR'
  8840. 'TRUTH_ORIF_EXPR'
  8841. These nodes represent logical "and" and logical "or", respectively.
  8842. These operators are not strict; i.e., the second operand is
  8843. evaluated only if the value of the expression is not determined by
  8844. evaluation of the first operand. The type of the operands and that
  8845. of the result are always of 'BOOLEAN_TYPE' or 'INTEGER_TYPE'.
  8846. 'TRUTH_AND_EXPR'
  8847. 'TRUTH_OR_EXPR'
  8848. 'TRUTH_XOR_EXPR'
  8849. These nodes represent logical and, logical or, and logical
  8850. exclusive or. They are strict; both arguments are always
  8851. evaluated. There are no corresponding operators in C or C++, but
  8852. the front end will sometimes generate these expressions anyhow, if
  8853. it can tell that strictness does not matter. The type of the
  8854. operands and that of the result are always of 'BOOLEAN_TYPE' or
  8855. 'INTEGER_TYPE'.
  8856. 'POINTER_PLUS_EXPR'
  8857. This node represents pointer arithmetic. The first operand is
  8858. always a pointer/reference type. The second operand is always an
  8859. unsigned integer type compatible with sizetype. This and
  8860. POINTER_DIFF_EXPR are the only binary arithmetic operators that can
  8861. operate on pointer types.
  8862. 'POINTER_DIFF_EXPR'
  8863. This node represents pointer subtraction. The two operands always
  8864. have pointer/reference type. It returns a signed integer of the
  8865. same precision as the pointers. The behavior is undefined if the
  8866. difference of the two pointers, seen as infinite precision
  8867. non-negative integers, does not fit in the result type. The result
  8868. does not depend on the pointer type, it is not divided by the size
  8869. of the pointed-to type.
  8870. 'PLUS_EXPR'
  8871. 'MINUS_EXPR'
  8872. 'MULT_EXPR'
  8873. These nodes represent various binary arithmetic operations.
  8874. Respectively, these operations are addition, subtraction (of the
  8875. second operand from the first) and multiplication. Their operands
  8876. may have either integral or floating type, but there will never be
  8877. case in which one operand is of floating type and the other is of
  8878. integral type.
  8879. The behavior of these operations on signed arithmetic overflow is
  8880. controlled by the 'flag_wrapv' and 'flag_trapv' variables.
  8881. 'MULT_HIGHPART_EXPR'
  8882. This node represents the "high-part" of a widening multiplication.
  8883. For an integral type with B bits of precision, the result is the
  8884. most significant B bits of the full 2B product.
  8885. 'RDIV_EXPR'
  8886. This node represents a floating point division operation.
  8887. 'TRUNC_DIV_EXPR'
  8888. 'FLOOR_DIV_EXPR'
  8889. 'CEIL_DIV_EXPR'
  8890. 'ROUND_DIV_EXPR'
  8891. These nodes represent integer division operations that return an
  8892. integer result. 'TRUNC_DIV_EXPR' rounds towards zero,
  8893. 'FLOOR_DIV_EXPR' rounds towards negative infinity, 'CEIL_DIV_EXPR'
  8894. rounds towards positive infinity and 'ROUND_DIV_EXPR' rounds to the
  8895. closest integer. Integer division in C and C++ is truncating, i.e.
  8896. 'TRUNC_DIV_EXPR'.
  8897. The behavior of these operations on signed arithmetic overflow,
  8898. when dividing the minimum signed integer by minus one, is
  8899. controlled by the 'flag_wrapv' and 'flag_trapv' variables.
  8900. 'TRUNC_MOD_EXPR'
  8901. 'FLOOR_MOD_EXPR'
  8902. 'CEIL_MOD_EXPR'
  8903. 'ROUND_MOD_EXPR'
  8904. These nodes represent the integer remainder or modulus operation.
  8905. The integer modulus of two operands 'a' and 'b' is defined as 'a -
  8906. (a/b)*b' where the division calculated using the corresponding
  8907. division operator. Hence for 'TRUNC_MOD_EXPR' this definition
  8908. assumes division using truncation towards zero, i.e.
  8909. 'TRUNC_DIV_EXPR'. Integer remainder in C and C++ uses truncating
  8910. division, i.e. 'TRUNC_MOD_EXPR'.
  8911. 'EXACT_DIV_EXPR'
  8912. The 'EXACT_DIV_EXPR' code is used to represent integer divisions
  8913. where the numerator is known to be an exact multiple of the
  8914. denominator. This allows the backend to choose between the faster
  8915. of 'TRUNC_DIV_EXPR', 'CEIL_DIV_EXPR' and 'FLOOR_DIV_EXPR' for the
  8916. current target.
  8917. 'LT_EXPR'
  8918. 'LE_EXPR'
  8919. 'GT_EXPR'
  8920. 'GE_EXPR'
  8921. 'LTGT_EXPR'
  8922. 'EQ_EXPR'
  8923. 'NE_EXPR'
  8924. These nodes represent the less than, less than or equal to, greater
  8925. than, greater than or equal to, less or greater than, equal, and
  8926. not equal comparison operators. The first and second operands will
  8927. either be both of integral type, both of floating type or both of
  8928. vector type, except for LTGT_EXPR where they will only be both of
  8929. floating type. The result type of these expressions will always be
  8930. of integral, boolean or signed integral vector type. These
  8931. operations return the result type's zero value for false, the
  8932. result type's one value for true, and a vector whose elements are
  8933. zero (false) or minus one (true) for vectors.
  8934. For floating point comparisons, if we honor IEEE NaNs and either
  8935. operand is NaN, then 'NE_EXPR' always returns true and the
  8936. remaining operators always return false. On some targets,
  8937. comparisons against an IEEE NaN, other than equality and
  8938. inequality, may generate a floating-point exception.
  8939. 'ORDERED_EXPR'
  8940. 'UNORDERED_EXPR'
  8941. These nodes represent non-trapping ordered and unordered comparison
  8942. operators. These operations take two floating point operands and
  8943. determine whether they are ordered or unordered relative to each
  8944. other. If either operand is an IEEE NaN, their comparison is
  8945. defined to be unordered, otherwise the comparison is defined to be
  8946. ordered. The result type of these expressions will always be of
  8947. integral or boolean type. These operations return the result
  8948. type's zero value for false, and the result type's one value for
  8949. true.
  8950. 'UNLT_EXPR'
  8951. 'UNLE_EXPR'
  8952. 'UNGT_EXPR'
  8953. 'UNGE_EXPR'
  8954. 'UNEQ_EXPR'
  8955. These nodes represent the unordered comparison operators. These
  8956. operations take two floating point operands and determine whether
  8957. the operands are unordered or are less than, less than or equal to,
  8958. greater than, greater than or equal to, or equal respectively. For
  8959. example, 'UNLT_EXPR' returns true if either operand is an IEEE NaN
  8960. or the first operand is less than the second. All these operations
  8961. are guaranteed not to generate a floating point exception. The
  8962. result type of these expressions will always be of integral or
  8963. boolean type. These operations return the result type's zero value
  8964. for false, and the result type's one value for true.
  8965. 'MODIFY_EXPR'
  8966. These nodes represent assignment. The left-hand side is the first
  8967. operand; the right-hand side is the second operand. The left-hand
  8968. side will be a 'VAR_DECL', 'INDIRECT_REF', 'COMPONENT_REF', or
  8969. other lvalue.
  8970. These nodes are used to represent not only assignment with '=' but
  8971. also compound assignments (like '+='), by reduction to '='
  8972. assignment. In other words, the representation for 'i += 3' looks
  8973. just like that for 'i = i + 3'.
  8974. 'INIT_EXPR'
  8975. These nodes are just like 'MODIFY_EXPR', but are used only when a
  8976. variable is initialized, rather than assigned to subsequently.
  8977. This means that we can assume that the target of the initialization
  8978. is not used in computing its own value; any reference to the lhs in
  8979. computing the rhs is undefined.
  8980. 'COMPOUND_EXPR'
  8981. These nodes represent comma-expressions. The first operand is an
  8982. expression whose value is computed and thrown away prior to the
  8983. evaluation of the second operand. The value of the entire
  8984. expression is the value of the second operand.
  8985. 'COND_EXPR'
  8986. These nodes represent '?:' expressions. The first operand is of
  8987. boolean or integral type. If it evaluates to a nonzero value, the
  8988. second operand should be evaluated, and returned as the value of
  8989. the expression. Otherwise, the third operand is evaluated, and
  8990. returned as the value of the expression.
  8991. The second operand must have the same type as the entire
  8992. expression, unless it unconditionally throws an exception or calls
  8993. a noreturn function, in which case it should have void type. The
  8994. same constraints apply to the third operand. This allows array
  8995. bounds checks to be represented conveniently as '(i >= 0 && i < 10)
  8996. ? i : abort()'.
  8997. As a GNU extension, the C language front-ends allow the second
  8998. operand of the '?:' operator may be omitted in the source. For
  8999. example, 'x ? : 3' is equivalent to 'x ? x : 3', assuming that 'x'
  9000. is an expression without side effects. In the tree representation,
  9001. however, the second operand is always present, possibly protected
  9002. by 'SAVE_EXPR' if the first argument does cause side effects.
  9003. 'CALL_EXPR'
  9004. These nodes are used to represent calls to functions, including
  9005. non-static member functions. 'CALL_EXPR's are implemented as
  9006. expression nodes with a variable number of operands. Rather than
  9007. using 'TREE_OPERAND' to extract them, it is preferable to use the
  9008. specialized accessor macros and functions that operate specifically
  9009. on 'CALL_EXPR' nodes.
  9010. 'CALL_EXPR_FN' returns a pointer to the function to call; it is
  9011. always an expression whose type is a 'POINTER_TYPE'.
  9012. The number of arguments to the call is returned by
  9013. 'call_expr_nargs', while the arguments themselves can be accessed
  9014. with the 'CALL_EXPR_ARG' macro. The arguments are zero-indexed and
  9015. numbered left-to-right. You can iterate over the arguments using
  9016. 'FOR_EACH_CALL_EXPR_ARG', as in:
  9017. tree call, arg;
  9018. call_expr_arg_iterator iter;
  9019. FOR_EACH_CALL_EXPR_ARG (arg, iter, call)
  9020. /* arg is bound to successive arguments of call. */
  9021. ...;
  9022. For non-static member functions, there will be an operand
  9023. corresponding to the 'this' pointer. There will always be
  9024. expressions corresponding to all of the arguments, even if the
  9025. function is declared with default arguments and some arguments are
  9026. not explicitly provided at the call sites.
  9027. 'CALL_EXPR's also have a 'CALL_EXPR_STATIC_CHAIN' operand that is
  9028. used to implement nested functions. This operand is otherwise
  9029. null.
  9030. 'CLEANUP_POINT_EXPR'
  9031. These nodes represent full-expressions. The single operand is an
  9032. expression to evaluate. Any destructor calls engendered by the
  9033. creation of temporaries during the evaluation of that expression
  9034. should be performed immediately after the expression is evaluated.
  9035. 'CONSTRUCTOR'
  9036. These nodes represent the brace-enclosed initializers for a
  9037. structure or an array. They contain a sequence of component values
  9038. made out of a vector of constructor_elt, which is a ('INDEX',
  9039. 'VALUE') pair.
  9040. If the 'TREE_TYPE' of the 'CONSTRUCTOR' is a 'RECORD_TYPE',
  9041. 'UNION_TYPE' or 'QUAL_UNION_TYPE' then the 'INDEX' of each node in
  9042. the sequence will be a 'FIELD_DECL' and the 'VALUE' will be the
  9043. expression used to initialize that field.
  9044. If the 'TREE_TYPE' of the 'CONSTRUCTOR' is an 'ARRAY_TYPE', then
  9045. the 'INDEX' of each node in the sequence will be an 'INTEGER_CST'
  9046. or a 'RANGE_EXPR' of two 'INTEGER_CST's. A single 'INTEGER_CST'
  9047. indicates which element of the array is being assigned to. A
  9048. 'RANGE_EXPR' indicates an inclusive range of elements to
  9049. initialize. In both cases the 'VALUE' is the corresponding
  9050. initializer. It is re-evaluated for each element of a
  9051. 'RANGE_EXPR'. If the 'INDEX' is 'NULL_TREE', then the initializer
  9052. is for the next available array element.
  9053. In the front end, you should not depend on the fields appearing in
  9054. any particular order. However, in the middle end, fields must
  9055. appear in declaration order. You should not assume that all fields
  9056. will be represented. Unrepresented fields will be cleared
  9057. (zeroed), unless the CONSTRUCTOR_NO_CLEARING flag is set, in which
  9058. case their value becomes undefined.
  9059. 'COMPOUND_LITERAL_EXPR'
  9060. These nodes represent ISO C99 compound literals. The
  9061. 'COMPOUND_LITERAL_EXPR_DECL_EXPR' is a 'DECL_EXPR' containing an
  9062. anonymous 'VAR_DECL' for the unnamed object represented by the
  9063. compound literal; the 'DECL_INITIAL' of that 'VAR_DECL' is a
  9064. 'CONSTRUCTOR' representing the brace-enclosed list of initializers
  9065. in the compound literal. That anonymous 'VAR_DECL' can also be
  9066. accessed directly by the 'COMPOUND_LITERAL_EXPR_DECL' macro.
  9067. 'SAVE_EXPR'
  9068. A 'SAVE_EXPR' represents an expression (possibly involving side
  9069. effects) that is used more than once. The side effects should
  9070. occur only the first time the expression is evaluated. Subsequent
  9071. uses should just reuse the computed value. The first operand to
  9072. the 'SAVE_EXPR' is the expression to evaluate. The side effects
  9073. should be executed where the 'SAVE_EXPR' is first encountered in a
  9074. depth-first preorder traversal of the expression tree.
  9075. 'TARGET_EXPR'
  9076. A 'TARGET_EXPR' represents a temporary object. The first operand
  9077. is a 'VAR_DECL' for the temporary variable. The second operand is
  9078. the initializer for the temporary. The initializer is evaluated
  9079. and, if non-void, copied (bitwise) into the temporary. If the
  9080. initializer is void, that means that it will perform the
  9081. initialization itself.
  9082. Often, a 'TARGET_EXPR' occurs on the right-hand side of an
  9083. assignment, or as the second operand to a comma-expression which is
  9084. itself the right-hand side of an assignment, etc. In this case, we
  9085. say that the 'TARGET_EXPR' is "normal"; otherwise, we say it is
  9086. "orphaned". For a normal 'TARGET_EXPR' the temporary variable
  9087. should be treated as an alias for the left-hand side of the
  9088. assignment, rather than as a new temporary variable.
  9089. The third operand to the 'TARGET_EXPR', if present, is a
  9090. cleanup-expression (i.e., destructor call) for the temporary. If
  9091. this expression is orphaned, then this expression must be executed
  9092. when the statement containing this expression is complete. These
  9093. cleanups must always be executed in the order opposite to that in
  9094. which they were encountered. Note that if a temporary is created
  9095. on one branch of a conditional operator (i.e., in the second or
  9096. third operand to a 'COND_EXPR'), the cleanup must be run only if
  9097. that branch is actually executed.
  9098. 'VA_ARG_EXPR'
  9099. This node is used to implement support for the C/C++ variable
  9100. argument-list mechanism. It represents expressions like 'va_arg
  9101. (ap, type)'. Its 'TREE_TYPE' yields the tree representation for
  9102. 'type' and its sole argument yields the representation for 'ap'.
  9103. 'ANNOTATE_EXPR'
  9104. This node is used to attach markers to an expression. The first
  9105. operand is the annotated expression, the second is an 'INTEGER_CST'
  9106. with a value from 'enum annot_expr_kind', the third is an
  9107. 'INTEGER_CST'.
  9108. 
  9109. File: gccint.info, Node: Vectors, Prev: Unary and Binary Expressions, Up: Expression trees
  9110. 11.6.4 Vectors
  9111. --------------
  9112. 'VEC_DUPLICATE_EXPR'
  9113. This node has a single operand and represents a vector in which
  9114. every element is equal to that operand.
  9115. 'VEC_SERIES_EXPR'
  9116. This node represents a vector formed from a scalar base and step,
  9117. given as the first and second operands respectively. Element I of
  9118. the result is equal to 'BASE + I*STEP'.
  9119. This node is restricted to integral types, in order to avoid
  9120. specifying the rounding behavior for floating-point types.
  9121. 'VEC_LSHIFT_EXPR'
  9122. 'VEC_RSHIFT_EXPR'
  9123. These nodes represent whole vector left and right shifts,
  9124. respectively. The first operand is the vector to shift; it will
  9125. always be of vector type. The second operand is an expression for
  9126. the number of bits by which to shift. Note that the result is
  9127. undefined if the second operand is larger than or equal to the
  9128. first operand's type size.
  9129. 'VEC_WIDEN_MULT_HI_EXPR'
  9130. 'VEC_WIDEN_MULT_LO_EXPR'
  9131. These nodes represent widening vector multiplication of the high
  9132. and low parts of the two input vectors, respectively. Their
  9133. operands are vectors that contain the same number of elements ('N')
  9134. of the same integral type. The result is a vector that contains
  9135. half as many elements, of an integral type whose size is twice as
  9136. wide. In the case of 'VEC_WIDEN_MULT_HI_EXPR' the high 'N/2'
  9137. elements of the two vector are multiplied to produce the vector of
  9138. 'N/2' products. In the case of 'VEC_WIDEN_MULT_LO_EXPR' the low
  9139. 'N/2' elements of the two vector are multiplied to produce the
  9140. vector of 'N/2' products.
  9141. 'VEC_UNPACK_HI_EXPR'
  9142. 'VEC_UNPACK_LO_EXPR'
  9143. These nodes represent unpacking of the high and low parts of the
  9144. input vector, respectively. The single operand is a vector that
  9145. contains 'N' elements of the same integral or floating point type.
  9146. The result is a vector that contains half as many elements, of an
  9147. integral or floating point type whose size is twice as wide. In
  9148. the case of 'VEC_UNPACK_HI_EXPR' the high 'N/2' elements of the
  9149. vector are extracted and widened (promoted). In the case of
  9150. 'VEC_UNPACK_LO_EXPR' the low 'N/2' elements of the vector are
  9151. extracted and widened (promoted).
  9152. 'VEC_UNPACK_FLOAT_HI_EXPR'
  9153. 'VEC_UNPACK_FLOAT_LO_EXPR'
  9154. These nodes represent unpacking of the high and low parts of the
  9155. input vector, where the values are converted from fixed point to
  9156. floating point. The single operand is a vector that contains 'N'
  9157. elements of the same integral type. The result is a vector that
  9158. contains half as many elements of a floating point type whose size
  9159. is twice as wide. In the case of 'VEC_UNPACK_FLOAT_HI_EXPR' the
  9160. high 'N/2' elements of the vector are extracted, converted and
  9161. widened. In the case of 'VEC_UNPACK_FLOAT_LO_EXPR' the low 'N/2'
  9162. elements of the vector are extracted, converted and widened.
  9163. 'VEC_UNPACK_FIX_TRUNC_HI_EXPR'
  9164. 'VEC_UNPACK_FIX_TRUNC_LO_EXPR'
  9165. These nodes represent unpacking of the high and low parts of the
  9166. input vector, where the values are truncated from floating point to
  9167. fixed point. The single operand is a vector that contains 'N'
  9168. elements of the same floating point type. The result is a vector
  9169. that contains half as many elements of an integral type whose size
  9170. is twice as wide. In the case of 'VEC_UNPACK_FIX_TRUNC_HI_EXPR'
  9171. the high 'N/2' elements of the vector are extracted and converted
  9172. with truncation. In the case of 'VEC_UNPACK_FIX_TRUNC_LO_EXPR' the
  9173. low 'N/2' elements of the vector are extracted and converted with
  9174. truncation.
  9175. 'VEC_PACK_TRUNC_EXPR'
  9176. This node represents packing of truncated elements of the two input
  9177. vectors into the output vector. Input operands are vectors that
  9178. contain the same number of elements of the same integral or
  9179. floating point type. The result is a vector that contains twice as
  9180. many elements of an integral or floating point type whose size is
  9181. half as wide. The elements of the two vectors are demoted and
  9182. merged (concatenated) to form the output vector.
  9183. 'VEC_PACK_SAT_EXPR'
  9184. This node represents packing of elements of the two input vectors
  9185. into the output vector using saturation. Input operands are
  9186. vectors that contain the same number of elements of the same
  9187. integral type. The result is a vector that contains twice as many
  9188. elements of an integral type whose size is half as wide. The
  9189. elements of the two vectors are demoted and merged (concatenated)
  9190. to form the output vector.
  9191. 'VEC_PACK_FIX_TRUNC_EXPR'
  9192. This node represents packing of elements of the two input vectors
  9193. into the output vector, where the values are converted from
  9194. floating point to fixed point. Input operands are vectors that
  9195. contain the same number of elements of a floating point type. The
  9196. result is a vector that contains twice as many elements of an
  9197. integral type whose size is half as wide. The elements of the two
  9198. vectors are merged (concatenated) to form the output vector.
  9199. 'VEC_PACK_FLOAT_EXPR'
  9200. This node represents packing of elements of the two input vectors
  9201. into the output vector, where the values are converted from fixed
  9202. point to floating point. Input operands are vectors that contain
  9203. the same number of elements of an integral type. The result is a
  9204. vector that contains twice as many elements of floating point type
  9205. whose size is half as wide. The elements of the two vectors are
  9206. merged (concatenated) to form the output vector.
  9207. 'VEC_COND_EXPR'
  9208. These nodes represent '?:' expressions. The three operands must be
  9209. vectors of the same size and number of elements. The second and
  9210. third operands must have the same type as the entire expression.
  9211. The first operand is of signed integral vector type. If an element
  9212. of the first operand evaluates to a zero value, the corresponding
  9213. element of the result is taken from the third operand. If it
  9214. evaluates to a minus one value, it is taken from the second
  9215. operand. It should never evaluate to any other value currently,
  9216. but optimizations should not rely on that property. In contrast
  9217. with a 'COND_EXPR', all operands are always evaluated.
  9218. 'SAD_EXPR'
  9219. This node represents the Sum of Absolute Differences operation.
  9220. The three operands must be vectors of integral types. The first
  9221. and second operand must have the same type. The size of the vector
  9222. element of the third operand must be at lease twice of the size of
  9223. the vector element of the first and second one. The SAD is
  9224. calculated between the first and second operands, added to the
  9225. third operand, and returned.
  9226. 
  9227. File: gccint.info, Node: Statements, Next: Functions, Prev: Expression trees, Up: GENERIC
  9228. 11.7 Statements
  9229. ===============
  9230. Most statements in GIMPLE are assignment statements, represented by
  9231. 'GIMPLE_ASSIGN'. No other C expressions can appear at statement level;
  9232. a reference to a volatile object is converted into a 'GIMPLE_ASSIGN'.
  9233. There are also several varieties of complex statements.
  9234. * Menu:
  9235. * Basic Statements::
  9236. * Blocks::
  9237. * Statement Sequences::
  9238. * Empty Statements::
  9239. * Jumps::
  9240. * Cleanups::
  9241. * OpenMP::
  9242. * OpenACC::
  9243. 
  9244. File: gccint.info, Node: Basic Statements, Next: Blocks, Up: Statements
  9245. 11.7.1 Basic Statements
  9246. -----------------------
  9247. 'ASM_EXPR'
  9248. Used to represent an inline assembly statement. For an inline
  9249. assembly statement like:
  9250. asm ("mov x, y");
  9251. The 'ASM_STRING' macro will return a 'STRING_CST' node for '"mov x,
  9252. y"'. If the original statement made use of the extended-assembly
  9253. syntax, then 'ASM_OUTPUTS', 'ASM_INPUTS', and 'ASM_CLOBBERS' will
  9254. be the outputs, inputs, and clobbers for the statement, represented
  9255. as 'STRING_CST' nodes. The extended-assembly syntax looks like:
  9256. asm ("fsinx %1,%0" : "=f" (result) : "f" (angle));
  9257. The first string is the 'ASM_STRING', containing the instruction
  9258. template. The next two strings are the output and inputs,
  9259. respectively; this statement has no clobbers. As this example
  9260. indicates, "plain" assembly statements are merely a special case of
  9261. extended assembly statements; they have no cv-qualifiers, outputs,
  9262. inputs, or clobbers. All of the strings will be 'NUL'-terminated,
  9263. and will contain no embedded 'NUL'-characters.
  9264. If the assembly statement is declared 'volatile', or if the
  9265. statement was not an extended assembly statement, and is therefore
  9266. implicitly volatile, then the predicate 'ASM_VOLATILE_P' will hold
  9267. of the 'ASM_EXPR'.
  9268. 'DECL_EXPR'
  9269. Used to represent a local declaration. The 'DECL_EXPR_DECL' macro
  9270. can be used to obtain the entity declared. This declaration may be
  9271. a 'LABEL_DECL', indicating that the label declared is a local
  9272. label. (As an extension, GCC allows the declaration of labels with
  9273. scope.) In C, this declaration may be a 'FUNCTION_DECL',
  9274. indicating the use of the GCC nested function extension. For more
  9275. information, *note Functions::.
  9276. 'LABEL_EXPR'
  9277. Used to represent a label. The 'LABEL_DECL' declared by this
  9278. statement can be obtained with the 'LABEL_EXPR_LABEL' macro. The
  9279. 'IDENTIFIER_NODE' giving the name of the label can be obtained from
  9280. the 'LABEL_DECL' with 'DECL_NAME'.
  9281. 'GOTO_EXPR'
  9282. Used to represent a 'goto' statement. The 'GOTO_DESTINATION' will
  9283. usually be a 'LABEL_DECL'. However, if the "computed goto"
  9284. extension has been used, the 'GOTO_DESTINATION' will be an
  9285. arbitrary expression indicating the destination. This expression
  9286. will always have pointer type.
  9287. 'RETURN_EXPR'
  9288. Used to represent a 'return' statement. Operand 0 represents the
  9289. value to return. It should either be the 'RESULT_DECL' for the
  9290. containing function, or a 'MODIFY_EXPR' or 'INIT_EXPR' setting the
  9291. function's 'RESULT_DECL'. It will be 'NULL_TREE' if the statement
  9292. was just
  9293. return;
  9294. 'LOOP_EXPR'
  9295. These nodes represent "infinite" loops. The 'LOOP_EXPR_BODY'
  9296. represents the body of the loop. It should be executed forever,
  9297. unless an 'EXIT_EXPR' is encountered.
  9298. 'EXIT_EXPR'
  9299. These nodes represent conditional exits from the nearest enclosing
  9300. 'LOOP_EXPR'. The single operand is the condition; if it is
  9301. nonzero, then the loop should be exited. An 'EXIT_EXPR' will only
  9302. appear within a 'LOOP_EXPR'.
  9303. 'SWITCH_STMT'
  9304. Used to represent a 'switch' statement. The 'SWITCH_STMT_COND' is
  9305. the expression on which the switch is occurring. See the
  9306. documentation for an 'IF_STMT' for more information on the
  9307. representation used for the condition. The 'SWITCH_STMT_BODY' is
  9308. the body of the switch statement. The 'SWITCH_STMT_TYPE' is the
  9309. original type of switch expression as given in the source, before
  9310. any compiler conversions.
  9311. 'CASE_LABEL_EXPR'
  9312. Use to represent a 'case' label, range of 'case' labels, or a
  9313. 'default' label. If 'CASE_LOW' is 'NULL_TREE', then this is a
  9314. 'default' label. Otherwise, if 'CASE_HIGH' is 'NULL_TREE', then
  9315. this is an ordinary 'case' label. In this case, 'CASE_LOW' is an
  9316. expression giving the value of the label. Both 'CASE_LOW' and
  9317. 'CASE_HIGH' are 'INTEGER_CST' nodes. These values will have the
  9318. same type as the condition expression in the switch statement.
  9319. Otherwise, if both 'CASE_LOW' and 'CASE_HIGH' are defined, the
  9320. statement is a range of case labels. Such statements originate
  9321. with the extension that allows users to write things of the form:
  9322. case 2 ... 5:
  9323. The first value will be 'CASE_LOW', while the second will be
  9324. 'CASE_HIGH'.
  9325. 'DEBUG_BEGIN_STMT'
  9326. Marks the beginning of a source statement, for purposes of debug
  9327. information generation.
  9328. 
  9329. File: gccint.info, Node: Blocks, Next: Statement Sequences, Prev: Basic Statements, Up: Statements
  9330. 11.7.2 Blocks
  9331. -------------
  9332. Block scopes and the variables they declare in GENERIC are expressed
  9333. using the 'BIND_EXPR' code, which in previous versions of GCC was
  9334. primarily used for the C statement-expression extension.
  9335. Variables in a block are collected into 'BIND_EXPR_VARS' in declaration
  9336. order through their 'TREE_CHAIN' field. Any runtime initialization is
  9337. moved out of 'DECL_INITIAL' and into a statement in the controlled
  9338. block. When gimplifying from C or C++, this initialization replaces the
  9339. 'DECL_STMT'. These variables will never require cleanups. The scope of
  9340. these variables is just the body
  9341. Variable-length arrays (VLAs) complicate this process, as their size
  9342. often refers to variables initialized earlier in the block and their
  9343. initialization involves an explicit stack allocation. To handle this,
  9344. we add an indirection and replace them with a pointer to stack space
  9345. allocated by means of 'alloca'. In most cases, we also arrange for this
  9346. space to be reclaimed when the enclosing 'BIND_EXPR' is exited, the
  9347. exception to this being when there is an explicit call to 'alloca' in
  9348. the source code, in which case the stack is left depressed on exit of
  9349. the 'BIND_EXPR'.
  9350. A C++ program will usually contain more 'BIND_EXPR's than there are
  9351. syntactic blocks in the source code, since several C++ constructs have
  9352. implicit scopes associated with them. On the other hand, although the
  9353. C++ front end uses pseudo-scopes to handle cleanups for objects with
  9354. destructors, these don't translate into the GIMPLE form; multiple
  9355. declarations at the same level use the same 'BIND_EXPR'.
  9356. 
  9357. File: gccint.info, Node: Statement Sequences, Next: Empty Statements, Prev: Blocks, Up: Statements
  9358. 11.7.3 Statement Sequences
  9359. --------------------------
  9360. Multiple statements at the same nesting level are collected into a
  9361. 'STATEMENT_LIST'. Statement lists are modified and traversed using the
  9362. interface in 'tree-iterator.h'.
  9363. 
  9364. File: gccint.info, Node: Empty Statements, Next: Jumps, Prev: Statement Sequences, Up: Statements
  9365. 11.7.4 Empty Statements
  9366. -----------------------
  9367. Whenever possible, statements with no effect are discarded. But if they
  9368. are nested within another construct which cannot be discarded for some
  9369. reason, they are instead replaced with an empty statement, generated by
  9370. 'build_empty_stmt'. Initially, all empty statements were shared, after
  9371. the pattern of the Java front end, but this caused a lot of trouble in
  9372. practice.
  9373. An empty statement is represented as '(void)0'.
  9374. 
  9375. File: gccint.info, Node: Jumps, Next: Cleanups, Prev: Empty Statements, Up: Statements
  9376. 11.7.5 Jumps
  9377. ------------
  9378. Other jumps are expressed by either 'GOTO_EXPR' or 'RETURN_EXPR'.
  9379. The operand of a 'GOTO_EXPR' must be either a label or a variable
  9380. containing the address to jump to.
  9381. The operand of a 'RETURN_EXPR' is either 'NULL_TREE', 'RESULT_DECL', or
  9382. a 'MODIFY_EXPR' which sets the return value. It would be nice to move
  9383. the 'MODIFY_EXPR' into a separate statement, but the special return
  9384. semantics in 'expand_return' make that difficult. It may still happen
  9385. in the future, perhaps by moving most of that logic into
  9386. 'expand_assignment'.
  9387. 
  9388. File: gccint.info, Node: Cleanups, Next: OpenMP, Prev: Jumps, Up: Statements
  9389. 11.7.6 Cleanups
  9390. ---------------
  9391. Destructors for local C++ objects and similar dynamic cleanups are
  9392. represented in GIMPLE by a 'TRY_FINALLY_EXPR'. 'TRY_FINALLY_EXPR' has
  9393. two operands, both of which are a sequence of statements to execute.
  9394. The first sequence is executed. When it completes the second sequence
  9395. is executed.
  9396. The first sequence may complete in the following ways:
  9397. 1. Execute the last statement in the sequence and fall off the end.
  9398. 2. Execute a goto statement ('GOTO_EXPR') to an ordinary label outside
  9399. the sequence.
  9400. 3. Execute a return statement ('RETURN_EXPR').
  9401. 4. Throw an exception. This is currently not explicitly represented
  9402. in GIMPLE.
  9403. The second sequence is not executed if the first sequence completes by
  9404. calling 'setjmp' or 'exit' or any other function that does not return.
  9405. The second sequence is also not executed if the first sequence completes
  9406. via a non-local goto or a computed goto (in general the compiler does
  9407. not know whether such a goto statement exits the first sequence or not,
  9408. so we assume that it doesn't).
  9409. After the second sequence is executed, if it completes normally by
  9410. falling off the end, execution continues wherever the first sequence
  9411. would have continued, by falling off the end, or doing a goto, etc.
  9412. If the second sequence is an 'EH_ELSE_EXPR' selector, then the sequence
  9413. in its first operand is used when the first sequence completes normally,
  9414. and that in its second operand is used for exceptional cleanups, i.e.,
  9415. when an exception propagates out of the first sequence.
  9416. 'TRY_FINALLY_EXPR' complicates the flow graph, since the cleanup needs
  9417. to appear on every edge out of the controlled block; this reduces the
  9418. freedom to move code across these edges. Therefore, the EH lowering
  9419. pass which runs before most of the optimization passes eliminates these
  9420. expressions by explicitly adding the cleanup to each edge. Rethrowing
  9421. the exception is represented using 'RESX_EXPR'.
  9422. 
  9423. File: gccint.info, Node: OpenMP, Next: OpenACC, Prev: Cleanups, Up: Statements
  9424. 11.7.7 OpenMP
  9425. -------------
  9426. All the statements starting with 'OMP_' represent directives and clauses
  9427. used by the OpenMP API <https://www.openmp.org>.
  9428. 'OMP_PARALLEL'
  9429. Represents '#pragma omp parallel [clause1 ... clauseN]'. It has
  9430. four operands:
  9431. Operand 'OMP_PARALLEL_BODY' is valid while in GENERIC and High
  9432. GIMPLE forms. It contains the body of code to be executed by all
  9433. the threads. During GIMPLE lowering, this operand becomes 'NULL'
  9434. and the body is emitted linearly after 'OMP_PARALLEL'.
  9435. Operand 'OMP_PARALLEL_CLAUSES' is the list of clauses associated
  9436. with the directive.
  9437. Operand 'OMP_PARALLEL_FN' is created by 'pass_lower_omp', it
  9438. contains the 'FUNCTION_DECL' for the function that will contain the
  9439. body of the parallel region.
  9440. Operand 'OMP_PARALLEL_DATA_ARG' is also created by
  9441. 'pass_lower_omp'. If there are shared variables to be communicated
  9442. to the children threads, this operand will contain the 'VAR_DECL'
  9443. that contains all the shared values and variables.
  9444. 'OMP_FOR'
  9445. Represents '#pragma omp for [clause1 ... clauseN]'. It has six
  9446. operands:
  9447. Operand 'OMP_FOR_BODY' contains the loop body.
  9448. Operand 'OMP_FOR_CLAUSES' is the list of clauses associated with
  9449. the directive.
  9450. Operand 'OMP_FOR_INIT' is the loop initialization code of the form
  9451. 'VAR = N1'.
  9452. Operand 'OMP_FOR_COND' is the loop conditional expression of the
  9453. form 'VAR {<,>,<=,>=} N2'.
  9454. Operand 'OMP_FOR_INCR' is the loop index increment of the form 'VAR
  9455. {+=,-=} INCR'.
  9456. Operand 'OMP_FOR_PRE_BODY' contains side effect code from operands
  9457. 'OMP_FOR_INIT', 'OMP_FOR_COND' and 'OMP_FOR_INC'. These side
  9458. effects are part of the 'OMP_FOR' block but must be evaluated
  9459. before the start of loop body.
  9460. The loop index variable 'VAR' must be a signed integer variable,
  9461. which is implicitly private to each thread. Bounds 'N1' and 'N2'
  9462. and the increment expression 'INCR' are required to be loop
  9463. invariant integer expressions that are evaluated without any
  9464. synchronization. The evaluation order, frequency of evaluation and
  9465. side effects are unspecified by the standard.
  9466. 'OMP_SECTIONS'
  9467. Represents '#pragma omp sections [clause1 ... clauseN]'.
  9468. Operand 'OMP_SECTIONS_BODY' contains the sections body, which in
  9469. turn contains a set of 'OMP_SECTION' nodes for each of the
  9470. concurrent sections delimited by '#pragma omp section'.
  9471. Operand 'OMP_SECTIONS_CLAUSES' is the list of clauses associated
  9472. with the directive.
  9473. 'OMP_SECTION'
  9474. Section delimiter for 'OMP_SECTIONS'.
  9475. 'OMP_SINGLE'
  9476. Represents '#pragma omp single'.
  9477. Operand 'OMP_SINGLE_BODY' contains the body of code to be executed
  9478. by a single thread.
  9479. Operand 'OMP_SINGLE_CLAUSES' is the list of clauses associated with
  9480. the directive.
  9481. 'OMP_MASTER'
  9482. Represents '#pragma omp master'.
  9483. Operand 'OMP_MASTER_BODY' contains the body of code to be executed
  9484. by the master thread.
  9485. 'OMP_ORDERED'
  9486. Represents '#pragma omp ordered'.
  9487. Operand 'OMP_ORDERED_BODY' contains the body of code to be executed
  9488. in the sequential order dictated by the loop index variable.
  9489. 'OMP_CRITICAL'
  9490. Represents '#pragma omp critical [name]'.
  9491. Operand 'OMP_CRITICAL_BODY' is the critical section.
  9492. Operand 'OMP_CRITICAL_NAME' is an optional identifier to label the
  9493. critical section.
  9494. 'OMP_RETURN'
  9495. This does not represent any OpenMP directive, it is an artificial
  9496. marker to indicate the end of the body of an OpenMP. It is used by
  9497. the flow graph ('tree-cfg.c') and OpenMP region building code
  9498. ('omp-low.c').
  9499. 'OMP_CONTINUE'
  9500. Similarly, this instruction does not represent an OpenMP directive,
  9501. it is used by 'OMP_FOR' (and similar codes) as well as
  9502. 'OMP_SECTIONS' to mark the place where the code needs to loop to
  9503. the next iteration, or the next section, respectively.
  9504. In some cases, 'OMP_CONTINUE' is placed right before 'OMP_RETURN'.
  9505. But if there are cleanups that need to occur right after the
  9506. looping body, it will be emitted between 'OMP_CONTINUE' and
  9507. 'OMP_RETURN'.
  9508. 'OMP_ATOMIC'
  9509. Represents '#pragma omp atomic'.
  9510. Operand 0 is the address at which the atomic operation is to be
  9511. performed.
  9512. Operand 1 is the expression to evaluate. The gimplifier tries
  9513. three alternative code generation strategies. Whenever possible,
  9514. an atomic update built-in is used. If that fails, a
  9515. compare-and-swap loop is attempted. If that also fails, a regular
  9516. critical section around the expression is used.
  9517. 'OMP_CLAUSE'
  9518. Represents clauses associated with one of the 'OMP_' directives.
  9519. Clauses are represented by separate subcodes defined in 'tree.h'.
  9520. Clauses codes can be one of: 'OMP_CLAUSE_PRIVATE',
  9521. 'OMP_CLAUSE_SHARED', 'OMP_CLAUSE_FIRSTPRIVATE',
  9522. 'OMP_CLAUSE_LASTPRIVATE', 'OMP_CLAUSE_COPYIN',
  9523. 'OMP_CLAUSE_COPYPRIVATE', 'OMP_CLAUSE_IF',
  9524. 'OMP_CLAUSE_NUM_THREADS', 'OMP_CLAUSE_SCHEDULE',
  9525. 'OMP_CLAUSE_NOWAIT', 'OMP_CLAUSE_ORDERED', 'OMP_CLAUSE_DEFAULT',
  9526. 'OMP_CLAUSE_REDUCTION', 'OMP_CLAUSE_COLLAPSE', 'OMP_CLAUSE_UNTIED',
  9527. 'OMP_CLAUSE_FINAL', and 'OMP_CLAUSE_MERGEABLE'. Each code
  9528. represents the corresponding OpenMP clause.
  9529. Clauses associated with the same directive are chained together via
  9530. 'OMP_CLAUSE_CHAIN'. Those clauses that accept a list of variables
  9531. are restricted to exactly one, accessed with 'OMP_CLAUSE_VAR'.
  9532. Therefore, multiple variables under the same clause 'C' need to be
  9533. represented as multiple 'C' clauses chained together. This
  9534. facilitates adding new clauses during compilation.
  9535. 
  9536. File: gccint.info, Node: OpenACC, Prev: OpenMP, Up: Statements
  9537. 11.7.8 OpenACC
  9538. --------------
  9539. All the statements starting with 'OACC_' represent directives and
  9540. clauses used by the OpenACC API <https://www.openacc.org>.
  9541. 'OACC_CACHE'
  9542. Represents '#pragma acc cache (var ...)'.
  9543. 'OACC_DATA'
  9544. Represents '#pragma acc data [clause1 ... clauseN]'.
  9545. 'OACC_DECLARE'
  9546. Represents '#pragma acc declare [clause1 ... clauseN]'.
  9547. 'OACC_ENTER_DATA'
  9548. Represents '#pragma acc enter data [clause1 ... clauseN]'.
  9549. 'OACC_EXIT_DATA'
  9550. Represents '#pragma acc exit data [clause1 ... clauseN]'.
  9551. 'OACC_HOST_DATA'
  9552. Represents '#pragma acc host_data [clause1 ... clauseN]'.
  9553. 'OACC_KERNELS'
  9554. Represents '#pragma acc kernels [clause1 ... clauseN]'.
  9555. 'OACC_LOOP'
  9556. Represents '#pragma acc loop [clause1 ... clauseN]'.
  9557. See the description of the 'OMP_FOR' code.
  9558. 'OACC_PARALLEL'
  9559. Represents '#pragma acc parallel [clause1 ... clauseN]'.
  9560. 'OACC_SERIAL'
  9561. Represents '#pragma acc serial [clause1 ... clauseN]'.
  9562. 'OACC_UPDATE'
  9563. Represents '#pragma acc update [clause1 ... clauseN]'.
  9564. 
  9565. File: gccint.info, Node: Functions, Next: Language-dependent trees, Prev: Statements, Up: GENERIC
  9566. 11.8 Functions
  9567. ==============
  9568. A function is represented by a 'FUNCTION_DECL' node. It stores the
  9569. basic pieces of the function such as body, parameters, and return type
  9570. as well as information on the surrounding context, visibility, and
  9571. linkage.
  9572. * Menu:
  9573. * Function Basics:: Function names, body, and parameters.
  9574. * Function Properties:: Context, linkage, etc.
  9575. 
  9576. File: gccint.info, Node: Function Basics, Next: Function Properties, Up: Functions
  9577. 11.8.1 Function Basics
  9578. ----------------------
  9579. A function has four core parts: the name, the parameters, the result,
  9580. and the body. The following macros and functions access these parts of
  9581. a 'FUNCTION_DECL' as well as other basic features:
  9582. 'DECL_NAME'
  9583. This macro returns the unqualified name of the function, as an
  9584. 'IDENTIFIER_NODE'. For an instantiation of a function template,
  9585. the 'DECL_NAME' is the unqualified name of the template, not
  9586. something like 'f<int>'. The value of 'DECL_NAME' is undefined
  9587. when used on a constructor, destructor, overloaded operator, or
  9588. type-conversion operator, or any function that is implicitly
  9589. generated by the compiler. See below for macros that can be used
  9590. to distinguish these cases.
  9591. 'DECL_ASSEMBLER_NAME'
  9592. This macro returns the mangled name of the function, also an
  9593. 'IDENTIFIER_NODE'. This name does not contain leading underscores
  9594. on systems that prefix all identifiers with underscores. The
  9595. mangled name is computed in the same way on all platforms; if
  9596. special processing is required to deal with the object file format
  9597. used on a particular platform, it is the responsibility of the back
  9598. end to perform those modifications. (Of course, the back end
  9599. should not modify 'DECL_ASSEMBLER_NAME' itself.)
  9600. Using 'DECL_ASSEMBLER_NAME' will cause additional memory to be
  9601. allocated (for the mangled name of the entity) so it should be used
  9602. only when emitting assembly code. It should not be used within the
  9603. optimizers to determine whether or not two declarations are the
  9604. same, even though some of the existing optimizers do use it in that
  9605. way. These uses will be removed over time.
  9606. 'DECL_ARGUMENTS'
  9607. This macro returns the 'PARM_DECL' for the first argument to the
  9608. function. Subsequent 'PARM_DECL' nodes can be obtained by
  9609. following the 'TREE_CHAIN' links.
  9610. 'DECL_RESULT'
  9611. This macro returns the 'RESULT_DECL' for the function.
  9612. 'DECL_SAVED_TREE'
  9613. This macro returns the complete body of the function.
  9614. 'TREE_TYPE'
  9615. This macro returns the 'FUNCTION_TYPE' or 'METHOD_TYPE' for the
  9616. function.
  9617. 'DECL_INITIAL'
  9618. A function that has a definition in the current translation unit
  9619. will have a non-'NULL' 'DECL_INITIAL'. However, back ends should
  9620. not make use of the particular value given by 'DECL_INITIAL'.
  9621. It should contain a tree of 'BLOCK' nodes that mirrors the scopes
  9622. that variables are bound in the function. Each block contains a
  9623. list of decls declared in a basic block, a pointer to a chain of
  9624. blocks at the next lower scope level, then a pointer to the next
  9625. block at the same level and a backpointer to the parent 'BLOCK' or
  9626. 'FUNCTION_DECL'. So given a function as follows:
  9627. void foo()
  9628. {
  9629. int a;
  9630. {
  9631. int b;
  9632. }
  9633. int c;
  9634. }
  9635. you would get the following:
  9636. tree foo = FUNCTION_DECL;
  9637. tree decl_a = VAR_DECL;
  9638. tree decl_b = VAR_DECL;
  9639. tree decl_c = VAR_DECL;
  9640. tree block_a = BLOCK;
  9641. tree block_b = BLOCK;
  9642. tree block_c = BLOCK;
  9643. BLOCK_VARS(block_a) = decl_a;
  9644. BLOCK_SUBBLOCKS(block_a) = block_b;
  9645. BLOCK_CHAIN(block_a) = block_c;
  9646. BLOCK_SUPERCONTEXT(block_a) = foo;
  9647. BLOCK_VARS(block_b) = decl_b;
  9648. BLOCK_SUPERCONTEXT(block_b) = block_a;
  9649. BLOCK_VARS(block_c) = decl_c;
  9650. BLOCK_SUPERCONTEXT(block_c) = foo;
  9651. DECL_INITIAL(foo) = block_a;
  9652. 
  9653. File: gccint.info, Node: Function Properties, Prev: Function Basics, Up: Functions
  9654. 11.8.2 Function Properties
  9655. --------------------------
  9656. To determine the scope of a function, you can use the 'DECL_CONTEXT'
  9657. macro. This macro will return the class (either a 'RECORD_TYPE' or a
  9658. 'UNION_TYPE') or namespace (a 'NAMESPACE_DECL') of which the function is
  9659. a member. For a virtual function, this macro returns the class in which
  9660. the function was actually defined, not the base class in which the
  9661. virtual declaration occurred.
  9662. In C, the 'DECL_CONTEXT' for a function maybe another function. This
  9663. representation indicates that the GNU nested function extension is in
  9664. use. For details on the semantics of nested functions, see the GCC
  9665. Manual. The nested function can refer to local variables in its
  9666. containing function. Such references are not explicitly marked in the
  9667. tree structure; back ends must look at the 'DECL_CONTEXT' for the
  9668. referenced 'VAR_DECL'. If the 'DECL_CONTEXT' for the referenced
  9669. 'VAR_DECL' is not the same as the function currently being processed,
  9670. and neither 'DECL_EXTERNAL' nor 'TREE_STATIC' hold, then the reference
  9671. is to a local variable in a containing function, and the back end must
  9672. take appropriate action.
  9673. 'DECL_EXTERNAL'
  9674. This predicate holds if the function is undefined.
  9675. 'TREE_PUBLIC'
  9676. This predicate holds if the function has external linkage.
  9677. 'TREE_STATIC'
  9678. This predicate holds if the function has been defined.
  9679. 'TREE_THIS_VOLATILE'
  9680. This predicate holds if the function does not return normally.
  9681. 'TREE_READONLY'
  9682. This predicate holds if the function can only read its arguments.
  9683. 'DECL_PURE_P'
  9684. This predicate holds if the function can only read its arguments,
  9685. but may also read global memory.
  9686. 'DECL_VIRTUAL_P'
  9687. This predicate holds if the function is virtual.
  9688. 'DECL_ARTIFICIAL'
  9689. This macro holds if the function was implicitly generated by the
  9690. compiler, rather than explicitly declared. In addition to
  9691. implicitly generated class member functions, this macro holds for
  9692. the special functions created to implement static initialization
  9693. and destruction, to compute run-time type information, and so
  9694. forth.
  9695. 'DECL_FUNCTION_SPECIFIC_TARGET'
  9696. This macro returns a tree node that holds the target options that
  9697. are to be used to compile this particular function or 'NULL_TREE'
  9698. if the function is to be compiled with the target options specified
  9699. on the command line.
  9700. 'DECL_FUNCTION_SPECIFIC_OPTIMIZATION'
  9701. This macro returns a tree node that holds the optimization options
  9702. that are to be used to compile this particular function or
  9703. 'NULL_TREE' if the function is to be compiled with the optimization
  9704. options specified on the command line.
  9705. 
  9706. File: gccint.info, Node: Language-dependent trees, Next: C and C++ Trees, Prev: Functions, Up: GENERIC
  9707. 11.9 Language-dependent trees
  9708. =============================
  9709. Front ends may wish to keep some state associated with various GENERIC
  9710. trees while parsing. To support this, trees provide a set of flags that
  9711. may be used by the front end. They are accessed using
  9712. 'TREE_LANG_FLAG_n' where 'n' is currently 0 through 6.
  9713. If necessary, a front end can use some language-dependent tree codes in
  9714. its GENERIC representation, so long as it provides a hook for converting
  9715. them to GIMPLE and doesn't expect them to work with any (hypothetical)
  9716. optimizers that run before the conversion to GIMPLE. The intermediate
  9717. representation used while parsing C and C++ looks very little like
  9718. GENERIC, but the C and C++ gimplifier hooks are perfectly happy to take
  9719. it as input and spit out GIMPLE.
  9720. 
  9721. File: gccint.info, Node: C and C++ Trees, Prev: Language-dependent trees, Up: GENERIC
  9722. 11.10 C and C++ Trees
  9723. =====================
  9724. This section documents the internal representation used by GCC to
  9725. represent C and C++ source programs. When presented with a C or C++
  9726. source program, GCC parses the program, performs semantic analysis
  9727. (including the generation of error messages), and then produces the
  9728. internal representation described here. This representation contains a
  9729. complete representation for the entire translation unit provided as
  9730. input to the front end. This representation is then typically processed
  9731. by a code-generator in order to produce machine code, but could also be
  9732. used in the creation of source browsers, intelligent editors, automatic
  9733. documentation generators, interpreters, and any other programs needing
  9734. the ability to process C or C++ code.
  9735. This section explains the internal representation. In particular, it
  9736. documents the internal representation for C and C++ source constructs,
  9737. and the macros, functions, and variables that can be used to access
  9738. these constructs. The C++ representation is largely a superset of the
  9739. representation used in the C front end. There is only one construct
  9740. used in C that does not appear in the C++ front end and that is the GNU
  9741. "nested function" extension. Many of the macros documented here do not
  9742. apply in C because the corresponding language constructs do not appear
  9743. in C.
  9744. The C and C++ front ends generate a mix of GENERIC trees and ones
  9745. specific to C and C++. These language-specific trees are higher-level
  9746. constructs than the ones in GENERIC to make the parser's job easier.
  9747. This section describes those trees that aren't part of GENERIC as well
  9748. as aspects of GENERIC trees that are treated in a language-specific
  9749. manner.
  9750. If you are developing a "back end", be it is a code-generator or some
  9751. other tool, that uses this representation, you may occasionally find
  9752. that you need to ask questions not easily answered by the functions and
  9753. macros available here. If that situation occurs, it is quite likely
  9754. that GCC already supports the functionality you desire, but that the
  9755. interface is simply not documented here. In that case, you should ask
  9756. the GCC maintainers (via mail to <gcc@gcc.gnu.org>) about documenting
  9757. the functionality you require. Similarly, if you find yourself writing
  9758. functions that do not deal directly with your back end, but instead
  9759. might be useful to other people using the GCC front end, you should
  9760. submit your patches for inclusion in GCC.
  9761. * Menu:
  9762. * Types for C++:: Fundamental and aggregate types.
  9763. * Namespaces:: Namespaces.
  9764. * Classes:: Classes.
  9765. * Functions for C++:: Overloading and accessors for C++.
  9766. * Statements for C++:: Statements specific to C and C++.
  9767. * C++ Expressions:: From 'typeid' to 'throw'.
  9768. 
  9769. File: gccint.info, Node: Types for C++, Next: Namespaces, Up: C and C++ Trees
  9770. 11.10.1 Types for C++
  9771. ---------------------
  9772. In C++, an array type is not qualified; rather the type of the array
  9773. elements is qualified. This situation is reflected in the intermediate
  9774. representation. The macros described here will always examine the
  9775. qualification of the underlying element type when applied to an array
  9776. type. (If the element type is itself an array, then the recursion
  9777. continues until a non-array type is found, and the qualification of this
  9778. type is examined.) So, for example, 'CP_TYPE_CONST_P' will hold of the
  9779. type 'const int ()[7]', denoting an array of seven 'int's.
  9780. The following functions and macros deal with cv-qualification of types:
  9781. 'cp_type_quals'
  9782. This function returns the set of type qualifiers applied to this
  9783. type. This value is 'TYPE_UNQUALIFIED' if no qualifiers have been
  9784. applied. The 'TYPE_QUAL_CONST' bit is set if the type is
  9785. 'const'-qualified. The 'TYPE_QUAL_VOLATILE' bit is set if the type
  9786. is 'volatile'-qualified. The 'TYPE_QUAL_RESTRICT' bit is set if
  9787. the type is 'restrict'-qualified.
  9788. 'CP_TYPE_CONST_P'
  9789. This macro holds if the type is 'const'-qualified.
  9790. 'CP_TYPE_VOLATILE_P'
  9791. This macro holds if the type is 'volatile'-qualified.
  9792. 'CP_TYPE_RESTRICT_P'
  9793. This macro holds if the type is 'restrict'-qualified.
  9794. 'CP_TYPE_CONST_NON_VOLATILE_P'
  9795. This predicate holds for a type that is 'const'-qualified, but
  9796. _not_ 'volatile'-qualified; other cv-qualifiers are ignored as
  9797. well: only the 'const'-ness is tested.
  9798. A few other macros and functions are usable with all types:
  9799. 'TYPE_SIZE'
  9800. The number of bits required to represent the type, represented as
  9801. an 'INTEGER_CST'. For an incomplete type, 'TYPE_SIZE' will be
  9802. 'NULL_TREE'.
  9803. 'TYPE_ALIGN'
  9804. The alignment of the type, in bits, represented as an 'int'.
  9805. 'TYPE_NAME'
  9806. This macro returns a declaration (in the form of a 'TYPE_DECL') for
  9807. the type. (Note this macro does _not_ return an 'IDENTIFIER_NODE',
  9808. as you might expect, given its name!) You can look at the
  9809. 'DECL_NAME' of the 'TYPE_DECL' to obtain the actual name of the
  9810. type. The 'TYPE_NAME' will be 'NULL_TREE' for a type that is not a
  9811. built-in type, the result of a typedef, or a named class type.
  9812. 'CP_INTEGRAL_TYPE'
  9813. This predicate holds if the type is an integral type. Notice that
  9814. in C++, enumerations are _not_ integral types.
  9815. 'ARITHMETIC_TYPE_P'
  9816. This predicate holds if the type is an integral type (in the C++
  9817. sense) or a floating point type.
  9818. 'CLASS_TYPE_P'
  9819. This predicate holds for a class-type.
  9820. 'TYPE_BUILT_IN'
  9821. This predicate holds for a built-in type.
  9822. 'TYPE_PTRDATAMEM_P'
  9823. This predicate holds if the type is a pointer to data member.
  9824. 'TYPE_PTR_P'
  9825. This predicate holds if the type is a pointer type, and the pointee
  9826. is not a data member.
  9827. 'TYPE_PTRFN_P'
  9828. This predicate holds for a pointer to function type.
  9829. 'TYPE_PTROB_P'
  9830. This predicate holds for a pointer to object type. Note however
  9831. that it does not hold for the generic pointer to object type 'void
  9832. *'. You may use 'TYPE_PTROBV_P' to test for a pointer to object
  9833. type as well as 'void *'.
  9834. The table below describes types specific to C and C++ as well as
  9835. language-dependent info about GENERIC types.
  9836. 'POINTER_TYPE'
  9837. Used to represent pointer types, and pointer to data member types.
  9838. If 'TREE_TYPE' is a pointer to data member type, then
  9839. 'TYPE_PTRDATAMEM_P' will hold. For a pointer to data member type
  9840. of the form 'T X::*', 'TYPE_PTRMEM_CLASS_TYPE' will be the type
  9841. 'X', while 'TYPE_PTRMEM_POINTED_TO_TYPE' will be the type 'T'.
  9842. 'RECORD_TYPE'
  9843. Used to represent 'struct' and 'class' types in C and C++. If
  9844. 'TYPE_PTRMEMFUNC_P' holds, then this type is a pointer-to-member
  9845. type. In that case, the 'TYPE_PTRMEMFUNC_FN_TYPE' is a
  9846. 'POINTER_TYPE' pointing to a 'METHOD_TYPE'. The 'METHOD_TYPE' is
  9847. the type of a function pointed to by the pointer-to-member
  9848. function. If 'TYPE_PTRMEMFUNC_P' does not hold, this type is a
  9849. class type. For more information, *note Classes::.
  9850. 'UNKNOWN_TYPE'
  9851. This node is used to represent a type the knowledge of which is
  9852. insufficient for a sound processing.
  9853. 'TYPENAME_TYPE'
  9854. Used to represent a construct of the form 'typename T::A'. The
  9855. 'TYPE_CONTEXT' is 'T'; the 'TYPE_NAME' is an 'IDENTIFIER_NODE' for
  9856. 'A'. If the type is specified via a template-id, then
  9857. 'TYPENAME_TYPE_FULLNAME' yields a 'TEMPLATE_ID_EXPR'. The
  9858. 'TREE_TYPE' is non-'NULL' if the node is implicitly generated in
  9859. support for the implicit typename extension; in which case the
  9860. 'TREE_TYPE' is a type node for the base-class.
  9861. 'TYPEOF_TYPE'
  9862. Used to represent the '__typeof__' extension. The 'TYPE_FIELDS' is
  9863. the expression the type of which is being represented.
  9864. 
  9865. File: gccint.info, Node: Namespaces, Next: Classes, Prev: Types for C++, Up: C and C++ Trees
  9866. 11.10.2 Namespaces
  9867. ------------------
  9868. The root of the entire intermediate representation is the variable
  9869. 'global_namespace'. This is the namespace specified with '::' in C++
  9870. source code. All other namespaces, types, variables, functions, and so
  9871. forth can be found starting with this namespace.
  9872. However, except for the fact that it is distinguished as the root of
  9873. the representation, the global namespace is no different from any other
  9874. namespace. Thus, in what follows, we describe namespaces generally,
  9875. rather than the global namespace in particular.
  9876. A namespace is represented by a 'NAMESPACE_DECL' node.
  9877. The following macros and functions can be used on a 'NAMESPACE_DECL':
  9878. 'DECL_NAME'
  9879. This macro is used to obtain the 'IDENTIFIER_NODE' corresponding to
  9880. the unqualified name of the name of the namespace (*note
  9881. Identifiers::). The name of the global namespace is '::', even
  9882. though in C++ the global namespace is unnamed. However, you should
  9883. use comparison with 'global_namespace', rather than 'DECL_NAME' to
  9884. determine whether or not a namespace is the global one. An unnamed
  9885. namespace will have a 'DECL_NAME' equal to
  9886. 'anonymous_namespace_name'. Within a single translation unit, all
  9887. unnamed namespaces will have the same name.
  9888. 'DECL_CONTEXT'
  9889. This macro returns the enclosing namespace. The 'DECL_CONTEXT' for
  9890. the 'global_namespace' is 'NULL_TREE'.
  9891. 'DECL_NAMESPACE_ALIAS'
  9892. If this declaration is for a namespace alias, then
  9893. 'DECL_NAMESPACE_ALIAS' is the namespace for which this one is an
  9894. alias.
  9895. Do not attempt to use 'cp_namespace_decls' for a namespace which is
  9896. an alias. Instead, follow 'DECL_NAMESPACE_ALIAS' links until you
  9897. reach an ordinary, non-alias, namespace, and call
  9898. 'cp_namespace_decls' there.
  9899. 'DECL_NAMESPACE_STD_P'
  9900. This predicate holds if the namespace is the special '::std'
  9901. namespace.
  9902. 'cp_namespace_decls'
  9903. This function will return the declarations contained in the
  9904. namespace, including types, overloaded functions, other namespaces,
  9905. and so forth. If there are no declarations, this function will
  9906. return 'NULL_TREE'. The declarations are connected through their
  9907. 'TREE_CHAIN' fields.
  9908. Although most entries on this list will be declarations,
  9909. 'TREE_LIST' nodes may also appear. In this case, the 'TREE_VALUE'
  9910. will be an 'OVERLOAD'. The value of the 'TREE_PURPOSE' is
  9911. unspecified; back ends should ignore this value. As with the other
  9912. kinds of declarations returned by 'cp_namespace_decls', the
  9913. 'TREE_CHAIN' will point to the next declaration in this list.
  9914. For more information on the kinds of declarations that can occur on
  9915. this list, *Note Declarations::. Some declarations will not appear
  9916. on this list. In particular, no 'FIELD_DECL', 'LABEL_DECL', or
  9917. 'PARM_DECL' nodes will appear here.
  9918. This function cannot be used with namespaces that have
  9919. 'DECL_NAMESPACE_ALIAS' set.
  9920. 
  9921. File: gccint.info, Node: Classes, Next: Functions for C++, Prev: Namespaces, Up: C and C++ Trees
  9922. 11.10.3 Classes
  9923. ---------------
  9924. Besides namespaces, the other high-level scoping construct in C++ is the
  9925. class. (Throughout this manual the term "class" is used to mean the
  9926. types referred to in the ANSI/ISO C++ Standard as classes; these include
  9927. types defined with the 'class', 'struct', and 'union' keywords.)
  9928. A class type is represented by either a 'RECORD_TYPE' or a
  9929. 'UNION_TYPE'. A class declared with the 'union' tag is represented by a
  9930. 'UNION_TYPE', while classes declared with either the 'struct' or the
  9931. 'class' tag are represented by 'RECORD_TYPE's. You can use the
  9932. 'CLASSTYPE_DECLARED_CLASS' macro to discern whether or not a particular
  9933. type is a 'class' as opposed to a 'struct'. This macro will be true
  9934. only for classes declared with the 'class' tag.
  9935. Almost all members are available on the 'TYPE_FIELDS' list. Given one
  9936. member, the next can be found by following the 'TREE_CHAIN'. You should
  9937. not depend in any way on the order in which fields appear on this list.
  9938. All nodes on this list will be 'DECL' nodes. A 'FIELD_DECL' is used to
  9939. represent a non-static data member, a 'VAR_DECL' is used to represent a
  9940. static data member, and a 'TYPE_DECL' is used to represent a type. Note
  9941. that the 'CONST_DECL' for an enumeration constant will appear on this
  9942. list, if the enumeration type was declared in the class. (Of course,
  9943. the 'TYPE_DECL' for the enumeration type will appear here as well.)
  9944. There are no entries for base classes on this list. In particular,
  9945. there is no 'FIELD_DECL' for the "base-class portion" of an object. If
  9946. a function member is overloaded, each of the overloaded functions
  9947. appears; no 'OVERLOAD' nodes appear on the 'TYPE_FIELDS' list.
  9948. Implicitly declared functions (including default constructors, copy
  9949. constructors, assignment operators, and destructors) will appear on this
  9950. list as well.
  9951. The 'TYPE_VFIELD' is a compiler-generated field used to point to
  9952. virtual function tables. It may or may not appear on the 'TYPE_FIELDS'
  9953. list. However, back ends should handle the 'TYPE_VFIELD' just like all
  9954. the entries on the 'TYPE_FIELDS' list.
  9955. Every class has an associated "binfo", which can be obtained with
  9956. 'TYPE_BINFO'. Binfos are used to represent base-classes. The binfo
  9957. given by 'TYPE_BINFO' is the degenerate case, whereby every class is
  9958. considered to be its own base-class. The base binfos for a particular
  9959. binfo are held in a vector, whose length is obtained with
  9960. 'BINFO_N_BASE_BINFOS'. The base binfos themselves are obtained with
  9961. 'BINFO_BASE_BINFO' and 'BINFO_BASE_ITERATE'. To add a new binfo, use
  9962. 'BINFO_BASE_APPEND'. The vector of base binfos can be obtained with
  9963. 'BINFO_BASE_BINFOS', but normally you do not need to use that. The
  9964. class type associated with a binfo is given by 'BINFO_TYPE'. It is not
  9965. always the case that 'BINFO_TYPE (TYPE_BINFO (x))', because of typedefs
  9966. and qualified types. Neither is it the case that 'TYPE_BINFO
  9967. (BINFO_TYPE (y))' is the same binfo as 'y'. The reason is that if 'y'
  9968. is a binfo representing a base-class 'B' of a derived class 'D', then
  9969. 'BINFO_TYPE (y)' will be 'B', and 'TYPE_BINFO (BINFO_TYPE (y))' will be
  9970. 'B' as its own base-class, rather than as a base-class of 'D'.
  9971. The access to a base type can be found with 'BINFO_BASE_ACCESS'. This
  9972. will produce 'access_public_node', 'access_private_node' or
  9973. 'access_protected_node'. If bases are always public,
  9974. 'BINFO_BASE_ACCESSES' may be 'NULL'.
  9975. 'BINFO_VIRTUAL_P' is used to specify whether the binfo is inherited
  9976. virtually or not. The other flags, 'BINFO_FLAG_0' to 'BINFO_FLAG_6',
  9977. can be used for language specific use.
  9978. The following macros can be used on a tree node representing a
  9979. class-type.
  9980. 'LOCAL_CLASS_P'
  9981. This predicate holds if the class is local class _i.e._ declared
  9982. inside a function body.
  9983. 'TYPE_POLYMORPHIC_P'
  9984. This predicate holds if the class has at least one virtual function
  9985. (declared or inherited).
  9986. 'TYPE_HAS_DEFAULT_CONSTRUCTOR'
  9987. This predicate holds whenever its argument represents a class-type
  9988. with default constructor.
  9989. 'CLASSTYPE_HAS_MUTABLE'
  9990. 'TYPE_HAS_MUTABLE_P'
  9991. These predicates hold for a class-type having a mutable data
  9992. member.
  9993. 'CLASSTYPE_NON_POD_P'
  9994. This predicate holds only for class-types that are not PODs.
  9995. 'TYPE_HAS_NEW_OPERATOR'
  9996. This predicate holds for a class-type that defines 'operator new'.
  9997. 'TYPE_HAS_ARRAY_NEW_OPERATOR'
  9998. This predicate holds for a class-type for which 'operator new[]' is
  9999. defined.
  10000. 'TYPE_OVERLOADS_CALL_EXPR'
  10001. This predicate holds for class-type for which the function call
  10002. 'operator()' is overloaded.
  10003. 'TYPE_OVERLOADS_ARRAY_REF'
  10004. This predicate holds for a class-type that overloads 'operator[]'
  10005. 'TYPE_OVERLOADS_ARROW'
  10006. This predicate holds for a class-type for which 'operator->' is
  10007. overloaded.
  10008. 
  10009. File: gccint.info, Node: Functions for C++, Next: Statements for C++, Prev: Classes, Up: C and C++ Trees
  10010. 11.10.4 Functions for C++
  10011. -------------------------
  10012. A function is represented by a 'FUNCTION_DECL' node. A set of
  10013. overloaded functions is sometimes represented by an 'OVERLOAD' node.
  10014. An 'OVERLOAD' node is not a declaration, so none of the 'DECL_' macros
  10015. should be used on an 'OVERLOAD'. An 'OVERLOAD' node is similar to a
  10016. 'TREE_LIST'. Use 'OVL_CURRENT' to get the function associated with an
  10017. 'OVERLOAD' node; use 'OVL_NEXT' to get the next 'OVERLOAD' node in the
  10018. list of overloaded functions. The macros 'OVL_CURRENT' and 'OVL_NEXT'
  10019. are actually polymorphic; you can use them to work with 'FUNCTION_DECL'
  10020. nodes as well as with overloads. In the case of a 'FUNCTION_DECL',
  10021. 'OVL_CURRENT' will always return the function itself, and 'OVL_NEXT'
  10022. will always be 'NULL_TREE'.
  10023. To determine the scope of a function, you can use the 'DECL_CONTEXT'
  10024. macro. This macro will return the class (either a 'RECORD_TYPE' or a
  10025. 'UNION_TYPE') or namespace (a 'NAMESPACE_DECL') of which the function is
  10026. a member. For a virtual function, this macro returns the class in which
  10027. the function was actually defined, not the base class in which the
  10028. virtual declaration occurred.
  10029. If a friend function is defined in a class scope, the
  10030. 'DECL_FRIEND_CONTEXT' macro can be used to determine the class in which
  10031. it was defined. For example, in
  10032. class C { friend void f() {} };
  10033. the 'DECL_CONTEXT' for 'f' will be the 'global_namespace', but the
  10034. 'DECL_FRIEND_CONTEXT' will be the 'RECORD_TYPE' for 'C'.
  10035. The following macros and functions can be used on a 'FUNCTION_DECL':
  10036. 'DECL_MAIN_P'
  10037. This predicate holds for a function that is the program entry point
  10038. '::code'.
  10039. 'DECL_LOCAL_FUNCTION_P'
  10040. This predicate holds if the function was declared at block scope,
  10041. even though it has a global scope.
  10042. 'DECL_ANTICIPATED'
  10043. This predicate holds if the function is a built-in function but its
  10044. prototype is not yet explicitly declared.
  10045. 'DECL_EXTERN_C_FUNCTION_P'
  10046. This predicate holds if the function is declared as an ''extern
  10047. "C"'' function.
  10048. 'DECL_LINKONCE_P'
  10049. This macro holds if multiple copies of this function may be emitted
  10050. in various translation units. It is the responsibility of the
  10051. linker to merge the various copies. Template instantiations are
  10052. the most common example of functions for which 'DECL_LINKONCE_P'
  10053. holds; G++ instantiates needed templates in all translation units
  10054. which require them, and then relies on the linker to remove
  10055. duplicate instantiations.
  10056. FIXME: This macro is not yet implemented.
  10057. 'DECL_FUNCTION_MEMBER_P'
  10058. This macro holds if the function is a member of a class, rather
  10059. than a member of a namespace.
  10060. 'DECL_STATIC_FUNCTION_P'
  10061. This predicate holds if the function a static member function.
  10062. 'DECL_NONSTATIC_MEMBER_FUNCTION_P'
  10063. This macro holds for a non-static member function.
  10064. 'DECL_CONST_MEMFUNC_P'
  10065. This predicate holds for a 'const'-member function.
  10066. 'DECL_VOLATILE_MEMFUNC_P'
  10067. This predicate holds for a 'volatile'-member function.
  10068. 'DECL_CONSTRUCTOR_P'
  10069. This macro holds if the function is a constructor.
  10070. 'DECL_NONCONVERTING_P'
  10071. This predicate holds if the constructor is a non-converting
  10072. constructor.
  10073. 'DECL_COMPLETE_CONSTRUCTOR_P'
  10074. This predicate holds for a function which is a constructor for an
  10075. object of a complete type.
  10076. 'DECL_BASE_CONSTRUCTOR_P'
  10077. This predicate holds for a function which is a constructor for a
  10078. base class sub-object.
  10079. 'DECL_COPY_CONSTRUCTOR_P'
  10080. This predicate holds for a function which is a copy-constructor.
  10081. 'DECL_DESTRUCTOR_P'
  10082. This macro holds if the function is a destructor.
  10083. 'DECL_COMPLETE_DESTRUCTOR_P'
  10084. This predicate holds if the function is the destructor for an
  10085. object a complete type.
  10086. 'DECL_OVERLOADED_OPERATOR_P'
  10087. This macro holds if the function is an overloaded operator.
  10088. 'DECL_CONV_FN_P'
  10089. This macro holds if the function is a type-conversion operator.
  10090. 'DECL_GLOBAL_CTOR_P'
  10091. This predicate holds if the function is a file-scope initialization
  10092. function.
  10093. 'DECL_GLOBAL_DTOR_P'
  10094. This predicate holds if the function is a file-scope finalization
  10095. function.
  10096. 'DECL_THUNK_P'
  10097. This predicate holds if the function is a thunk.
  10098. These functions represent stub code that adjusts the 'this' pointer
  10099. and then jumps to another function. When the jumped-to function
  10100. returns, control is transferred directly to the caller, without
  10101. returning to the thunk. The first parameter to the thunk is always
  10102. the 'this' pointer; the thunk should add 'THUNK_DELTA' to this
  10103. value. (The 'THUNK_DELTA' is an 'int', not an 'INTEGER_CST'.)
  10104. Then, if 'THUNK_VCALL_OFFSET' (an 'INTEGER_CST') is nonzero the
  10105. adjusted 'this' pointer must be adjusted again. The complete
  10106. calculation is given by the following pseudo-code:
  10107. this += THUNK_DELTA
  10108. if (THUNK_VCALL_OFFSET)
  10109. this += (*((ptrdiff_t **) this))[THUNK_VCALL_OFFSET]
  10110. Finally, the thunk should jump to the location given by
  10111. 'DECL_INITIAL'; this will always be an expression for the address
  10112. of a function.
  10113. 'DECL_NON_THUNK_FUNCTION_P'
  10114. This predicate holds if the function is _not_ a thunk function.
  10115. 'GLOBAL_INIT_PRIORITY'
  10116. If either 'DECL_GLOBAL_CTOR_P' or 'DECL_GLOBAL_DTOR_P' holds, then
  10117. this gives the initialization priority for the function. The
  10118. linker will arrange that all functions for which
  10119. 'DECL_GLOBAL_CTOR_P' holds are run in increasing order of priority
  10120. before 'main' is called. When the program exits, all functions for
  10121. which 'DECL_GLOBAL_DTOR_P' holds are run in the reverse order.
  10122. 'TYPE_RAISES_EXCEPTIONS'
  10123. This macro returns the list of exceptions that a (member-)function
  10124. can raise. The returned list, if non 'NULL', is comprised of nodes
  10125. whose 'TREE_VALUE' represents a type.
  10126. 'TYPE_NOTHROW_P'
  10127. This predicate holds when the exception-specification of its
  10128. arguments is of the form ''()''.
  10129. 'DECL_ARRAY_DELETE_OPERATOR_P'
  10130. This predicate holds if the function an overloaded 'operator
  10131. delete[]'.
  10132. 
  10133. File: gccint.info, Node: Statements for C++, Next: C++ Expressions, Prev: Functions for C++, Up: C and C++ Trees
  10134. 11.10.5 Statements for C++
  10135. --------------------------
  10136. A function that has a definition in the current translation unit will
  10137. have a non-'NULL' 'DECL_INITIAL'. However, back ends should not make
  10138. use of the particular value given by 'DECL_INITIAL'.
  10139. The 'DECL_SAVED_TREE' macro will give the complete body of the
  10140. function.
  10141. 11.10.5.1 Statements
  10142. ....................
  10143. There are tree nodes corresponding to all of the source-level statement
  10144. constructs, used within the C and C++ frontends. These are enumerated
  10145. here, together with a list of the various macros that can be used to
  10146. obtain information about them. There are a few macros that can be used
  10147. with all statements:
  10148. 'STMT_IS_FULL_EXPR_P'
  10149. In C++, statements normally constitute "full expressions";
  10150. temporaries created during a statement are destroyed when the
  10151. statement is complete. However, G++ sometimes represents
  10152. expressions by statements; these statements will not have
  10153. 'STMT_IS_FULL_EXPR_P' set. Temporaries created during such
  10154. statements should be destroyed when the innermost enclosing
  10155. statement with 'STMT_IS_FULL_EXPR_P' set is exited.
  10156. Here is the list of the various statement nodes, and the macros used to
  10157. access them. This documentation describes the use of these nodes in
  10158. non-template functions (including instantiations of template functions).
  10159. In template functions, the same nodes are used, but sometimes in
  10160. slightly different ways.
  10161. Many of the statements have substatements. For example, a 'while' loop
  10162. will have a body, which is itself a statement. If the substatement is
  10163. 'NULL_TREE', it is considered equivalent to a statement consisting of a
  10164. single ';', i.e., an expression statement in which the expression has
  10165. been omitted. A substatement may in fact be a list of statements,
  10166. connected via their 'TREE_CHAIN's. So, you should always process the
  10167. statement tree by looping over substatements, like this:
  10168. void process_stmt (stmt)
  10169. tree stmt;
  10170. {
  10171. while (stmt)
  10172. {
  10173. switch (TREE_CODE (stmt))
  10174. {
  10175. case IF_STMT:
  10176. process_stmt (THEN_CLAUSE (stmt));
  10177. /* More processing here. */
  10178. break;
  10179. ...
  10180. }
  10181. stmt = TREE_CHAIN (stmt);
  10182. }
  10183. }
  10184. In other words, while the 'then' clause of an 'if' statement in C++ can
  10185. be only one statement (although that one statement may be a compound
  10186. statement), the intermediate representation will sometimes use several
  10187. statements chained together.
  10188. 'BREAK_STMT'
  10189. Used to represent a 'break' statement. There are no additional
  10190. fields.
  10191. 'CLEANUP_STMT'
  10192. Used to represent an action that should take place upon exit from
  10193. the enclosing scope. Typically, these actions are calls to
  10194. destructors for local objects, but back ends cannot rely on this
  10195. fact. If these nodes are in fact representing such destructors,
  10196. 'CLEANUP_DECL' will be the 'VAR_DECL' destroyed. Otherwise,
  10197. 'CLEANUP_DECL' will be 'NULL_TREE'. In any case, the
  10198. 'CLEANUP_EXPR' is the expression to execute. The cleanups executed
  10199. on exit from a scope should be run in the reverse order of the
  10200. order in which the associated 'CLEANUP_STMT's were encountered.
  10201. 'CONTINUE_STMT'
  10202. Used to represent a 'continue' statement. There are no additional
  10203. fields.
  10204. 'CTOR_STMT'
  10205. Used to mark the beginning (if 'CTOR_BEGIN_P' holds) or end (if
  10206. 'CTOR_END_P' holds of the main body of a constructor. See also
  10207. 'SUBOBJECT' for more information on how to use these nodes.
  10208. 'DO_STMT'
  10209. Used to represent a 'do' loop. The body of the loop is given by
  10210. 'DO_BODY' while the termination condition for the loop is given by
  10211. 'DO_COND'. The condition for a 'do'-statement is always an
  10212. expression.
  10213. 'EMPTY_CLASS_EXPR'
  10214. Used to represent a temporary object of a class with no data whose
  10215. address is never taken. (All such objects are interchangeable.)
  10216. The 'TREE_TYPE' represents the type of the object.
  10217. 'EXPR_STMT'
  10218. Used to represent an expression statement. Use 'EXPR_STMT_EXPR' to
  10219. obtain the expression.
  10220. 'FOR_STMT'
  10221. Used to represent a 'for' statement. The 'FOR_INIT_STMT' is the
  10222. initialization statement for the loop. The 'FOR_COND' is the
  10223. termination condition. The 'FOR_EXPR' is the expression executed
  10224. right before the 'FOR_COND' on each loop iteration; often, this
  10225. expression increments a counter. The body of the loop is given by
  10226. 'FOR_BODY'. Note that 'FOR_INIT_STMT' and 'FOR_BODY' return
  10227. statements, while 'FOR_COND' and 'FOR_EXPR' return expressions.
  10228. 'HANDLER'
  10229. Used to represent a C++ 'catch' block. The 'HANDLER_TYPE' is the
  10230. type of exception that will be caught by this handler; it is equal
  10231. (by pointer equality) to 'NULL' if this handler is for all types.
  10232. 'HANDLER_PARMS' is the 'DECL_STMT' for the catch parameter, and
  10233. 'HANDLER_BODY' is the code for the block itself.
  10234. 'IF_STMT'
  10235. Used to represent an 'if' statement. The 'IF_COND' is the
  10236. expression.
  10237. If the condition is a 'TREE_LIST', then the 'TREE_PURPOSE' is a
  10238. statement (usually a 'DECL_STMT'). Each time the condition is
  10239. evaluated, the statement should be executed. Then, the
  10240. 'TREE_VALUE' should be used as the conditional expression itself.
  10241. This representation is used to handle C++ code like this:
  10242. C++ distinguishes between this and 'COND_EXPR' for handling
  10243. templates.
  10244. if (int i = 7) ...
  10245. where there is a new local variable (or variables) declared within
  10246. the condition.
  10247. The 'THEN_CLAUSE' represents the statement given by the 'then'
  10248. condition, while the 'ELSE_CLAUSE' represents the statement given
  10249. by the 'else' condition.
  10250. 'SUBOBJECT'
  10251. In a constructor, these nodes are used to mark the point at which a
  10252. subobject of 'this' is fully constructed. If, after this point, an
  10253. exception is thrown before a 'CTOR_STMT' with 'CTOR_END_P' set is
  10254. encountered, the 'SUBOBJECT_CLEANUP' must be executed. The
  10255. cleanups must be executed in the reverse order in which they
  10256. appear.
  10257. 'SWITCH_STMT'
  10258. Used to represent a 'switch' statement. The 'SWITCH_STMT_COND' is
  10259. the expression on which the switch is occurring. See the
  10260. documentation for an 'IF_STMT' for more information on the
  10261. representation used for the condition. The 'SWITCH_STMT_BODY' is
  10262. the body of the switch statement. The 'SWITCH_STMT_TYPE' is the
  10263. original type of switch expression as given in the source, before
  10264. any compiler conversions.
  10265. 'TRY_BLOCK'
  10266. Used to represent a 'try' block. The body of the try block is
  10267. given by 'TRY_STMTS'. Each of the catch blocks is a 'HANDLER'
  10268. node. The first handler is given by 'TRY_HANDLERS'. Subsequent
  10269. handlers are obtained by following the 'TREE_CHAIN' link from one
  10270. handler to the next. The body of the handler is given by
  10271. 'HANDLER_BODY'.
  10272. If 'CLEANUP_P' holds of the 'TRY_BLOCK', then the 'TRY_HANDLERS'
  10273. will not be a 'HANDLER' node. Instead, it will be an expression
  10274. that should be executed if an exception is thrown in the try block.
  10275. It must rethrow the exception after executing that code. And, if
  10276. an exception is thrown while the expression is executing,
  10277. 'terminate' must be called.
  10278. 'USING_STMT'
  10279. Used to represent a 'using' directive. The namespace is given by
  10280. 'USING_STMT_NAMESPACE', which will be a NAMESPACE_DECL. This node
  10281. is needed inside template functions, to implement using directives
  10282. during instantiation.
  10283. 'WHILE_STMT'
  10284. Used to represent a 'while' loop. The 'WHILE_COND' is the
  10285. termination condition for the loop. See the documentation for an
  10286. 'IF_STMT' for more information on the representation used for the
  10287. condition.
  10288. The 'WHILE_BODY' is the body of the loop.
  10289. 
  10290. File: gccint.info, Node: C++ Expressions, Prev: Statements for C++, Up: C and C++ Trees
  10291. 11.10.6 C++ Expressions
  10292. -----------------------
  10293. This section describes expressions specific to the C and C++ front ends.
  10294. 'TYPEID_EXPR'
  10295. Used to represent a 'typeid' expression.
  10296. 'NEW_EXPR'
  10297. 'VEC_NEW_EXPR'
  10298. Used to represent a call to 'new' and 'new[]' respectively.
  10299. 'DELETE_EXPR'
  10300. 'VEC_DELETE_EXPR'
  10301. Used to represent a call to 'delete' and 'delete[]' respectively.
  10302. 'MEMBER_REF'
  10303. Represents a reference to a member of a class.
  10304. 'THROW_EXPR'
  10305. Represents an instance of 'throw' in the program. Operand 0, which
  10306. is the expression to throw, may be 'NULL_TREE'.
  10307. 'AGGR_INIT_EXPR'
  10308. An 'AGGR_INIT_EXPR' represents the initialization as the return
  10309. value of a function call, or as the result of a constructor. An
  10310. 'AGGR_INIT_EXPR' will only appear as a full-expression, or as the
  10311. second operand of a 'TARGET_EXPR'. 'AGGR_INIT_EXPR's have a
  10312. representation similar to that of 'CALL_EXPR's. You can use the
  10313. 'AGGR_INIT_EXPR_FN' and 'AGGR_INIT_EXPR_ARG' macros to access the
  10314. function to call and the arguments to pass.
  10315. If 'AGGR_INIT_VIA_CTOR_P' holds of the 'AGGR_INIT_EXPR', then the
  10316. initialization is via a constructor call. The address of the
  10317. 'AGGR_INIT_EXPR_SLOT' operand, which is always a 'VAR_DECL', is
  10318. taken, and this value replaces the first argument in the argument
  10319. list.
  10320. In either case, the expression is void.
  10321. 
  10322. File: gccint.info, Node: GIMPLE, Next: Tree SSA, Prev: GENERIC, Up: Top
  10323. 12 GIMPLE
  10324. *********
  10325. GIMPLE is a three-address representation derived from GENERIC by
  10326. breaking down GENERIC expressions into tuples of no more than 3 operands
  10327. (with some exceptions like function calls). GIMPLE was heavily
  10328. influenced by the SIMPLE IL used by the McCAT compiler project at McGill
  10329. University, though we have made some different choices. For one thing,
  10330. SIMPLE doesn't support 'goto'.
  10331. Temporaries are introduced to hold intermediate values needed to
  10332. compute complex expressions. Additionally, all the control structures
  10333. used in GENERIC are lowered into conditional jumps, lexical scopes are
  10334. removed and exception regions are converted into an on the side
  10335. exception region tree.
  10336. The compiler pass which converts GENERIC into GIMPLE is referred to as
  10337. the 'gimplifier'. The gimplifier works recursively, generating GIMPLE
  10338. tuples out of the original GENERIC expressions.
  10339. One of the early implementation strategies used for the GIMPLE
  10340. representation was to use the same internal data structures used by
  10341. front ends to represent parse trees. This simplified implementation
  10342. because we could leverage existing functionality and interfaces.
  10343. However, GIMPLE is a much more restrictive representation than abstract
  10344. syntax trees (AST), therefore it does not require the full structural
  10345. complexity provided by the main tree data structure.
  10346. The GENERIC representation of a function is stored in the
  10347. 'DECL_SAVED_TREE' field of the associated 'FUNCTION_DECL' tree node. It
  10348. is converted to GIMPLE by a call to 'gimplify_function_tree'.
  10349. If a front end wants to include language-specific tree codes in the
  10350. tree representation which it provides to the back end, it must provide a
  10351. definition of 'LANG_HOOKS_GIMPLIFY_EXPR' which knows how to convert the
  10352. front end trees to GIMPLE. Usually such a hook will involve much of the
  10353. same code for expanding front end trees to RTL. This function can
  10354. return fully lowered GIMPLE, or it can return GENERIC trees and let the
  10355. main gimplifier lower them the rest of the way; this is often simpler.
  10356. GIMPLE that is not fully lowered is known as "High GIMPLE" and consists
  10357. of the IL before the pass 'pass_lower_cf'. High GIMPLE contains some
  10358. container statements like lexical scopes (represented by 'GIMPLE_BIND')
  10359. and nested expressions (e.g., 'GIMPLE_TRY'), while "Low GIMPLE" exposes
  10360. all of the implicit jumps for control and exception expressions directly
  10361. in the IL and EH region trees.
  10362. The C and C++ front ends currently convert directly from front end
  10363. trees to GIMPLE, and hand that off to the back end rather than first
  10364. converting to GENERIC. Their gimplifier hooks know about all the
  10365. '_STMT' nodes and how to convert them to GENERIC forms. There was some
  10366. work done on a genericization pass which would run first, but the
  10367. existence of 'STMT_EXPR' meant that in order to convert all of the C
  10368. statements into GENERIC equivalents would involve walking the entire
  10369. tree anyway, so it was simpler to lower all the way. This might change
  10370. in the future if someone writes an optimization pass which would work
  10371. better with higher-level trees, but currently the optimizers all expect
  10372. GIMPLE.
  10373. You can request to dump a C-like representation of the GIMPLE form with
  10374. the flag '-fdump-tree-gimple'.
  10375. * Menu:
  10376. * Tuple representation::
  10377. * Class hierarchy of GIMPLE statements::
  10378. * GIMPLE instruction set::
  10379. * GIMPLE Exception Handling::
  10380. * Temporaries::
  10381. * Operands::
  10382. * Manipulating GIMPLE statements::
  10383. * Tuple specific accessors::
  10384. * GIMPLE sequences::
  10385. * Sequence iterators::
  10386. * Adding a new GIMPLE statement code::
  10387. * Statement and operand traversals::
  10388. 
  10389. File: gccint.info, Node: Tuple representation, Next: Class hierarchy of GIMPLE statements, Up: GIMPLE
  10390. 12.1 Tuple representation
  10391. =========================
  10392. GIMPLE instructions are tuples of variable size divided in two groups: a
  10393. header describing the instruction and its locations, and a variable
  10394. length body with all the operands. Tuples are organized into a
  10395. hierarchy with 3 main classes of tuples.
  10396. 12.1.1 'gimple' (gsbase)
  10397. ------------------------
  10398. This is the root of the hierarchy, it holds basic information needed by
  10399. most GIMPLE statements. There are some fields that may not be relevant
  10400. to every GIMPLE statement, but those were moved into the base structure
  10401. to take advantage of holes left by other fields (thus making the
  10402. structure more compact). The structure takes 4 words (32 bytes) on 64
  10403. bit hosts:
  10404. Field Size (bits)
  10405. 'code' 8
  10406. 'subcode' 16
  10407. 'no_warning' 1
  10408. 'visited' 1
  10409. 'nontemporal_move' 1
  10410. 'plf' 2
  10411. 'modified' 1
  10412. 'has_volatile_ops' 1
  10413. 'references_memory_p' 1
  10414. 'uid' 32
  10415. 'location' 32
  10416. 'num_ops' 32
  10417. 'bb' 64
  10418. 'block' 63
  10419. Total size 32 bytes
  10420. * 'code' Main identifier for a GIMPLE instruction.
  10421. * 'subcode' Used to distinguish different variants of the same basic
  10422. instruction or provide flags applicable to a given code. The
  10423. 'subcode' flags field has different uses depending on the code of
  10424. the instruction, but mostly it distinguishes instructions of the
  10425. same family. The most prominent use of this field is in
  10426. assignments, where subcode indicates the operation done on the RHS
  10427. of the assignment. For example, a = b + c is encoded as
  10428. 'GIMPLE_ASSIGN <PLUS_EXPR, a, b, c>'.
  10429. * 'no_warning' Bitflag to indicate whether a warning has already been
  10430. issued on this statement.
  10431. * 'visited' General purpose "visited" marker. Set and cleared by
  10432. each pass when needed.
  10433. * 'nontemporal_move' Bitflag used in assignments that represent
  10434. non-temporal moves. Although this bitflag is only used in
  10435. assignments, it was moved into the base to take advantage of the
  10436. bit holes left by the previous fields.
  10437. * 'plf' Pass Local Flags. This 2-bit mask can be used as general
  10438. purpose markers by any pass. Passes are responsible for clearing
  10439. and setting these two flags accordingly.
  10440. * 'modified' Bitflag to indicate whether the statement has been
  10441. modified. Used mainly by the operand scanner to determine when to
  10442. re-scan a statement for operands.
  10443. * 'has_volatile_ops' Bitflag to indicate whether this statement
  10444. contains operands that have been marked volatile.
  10445. * 'references_memory_p' Bitflag to indicate whether this statement
  10446. contains memory references (i.e., its operands are either global
  10447. variables, or pointer dereferences or anything that must reside in
  10448. memory).
  10449. * 'uid' This is an unsigned integer used by passes that want to
  10450. assign IDs to every statement. These IDs must be assigned and used
  10451. by each pass.
  10452. * 'location' This is a 'location_t' identifier to specify source code
  10453. location for this statement. It is inherited from the front end.
  10454. * 'num_ops' Number of operands that this statement has. This
  10455. specifies the size of the operand vector embedded in the tuple.
  10456. Only used in some tuples, but it is declared in the base tuple to
  10457. take advantage of the 32-bit hole left by the previous fields.
  10458. * 'bb' Basic block holding the instruction.
  10459. * 'block' Lexical block holding this statement. Also used for debug
  10460. information generation.
  10461. 12.1.2 'gimple_statement_with_ops'
  10462. ----------------------------------
  10463. This tuple is actually split in two: 'gimple_statement_with_ops_base'
  10464. and 'gimple_statement_with_ops'. This is needed to accommodate the way
  10465. the operand vector is allocated. The operand vector is defined to be an
  10466. array of 1 element. So, to allocate a dynamic number of operands, the
  10467. memory allocator ('gimple_alloc') simply allocates enough memory to hold
  10468. the structure itself plus 'N - 1' operands which run "off the end" of
  10469. the structure. For example, to allocate space for a tuple with 3
  10470. operands, 'gimple_alloc' reserves 'sizeof (struct
  10471. gimple_statement_with_ops) + 2 * sizeof (tree)' bytes.
  10472. On the other hand, several fields in this tuple need to be shared with
  10473. the 'gimple_statement_with_memory_ops' tuple. So, these common fields
  10474. are placed in 'gimple_statement_with_ops_base' which is then inherited
  10475. from the other two tuples.
  10476. 'gsbase' 256
  10477. 'def_ops' 64
  10478. 'use_ops' 64
  10479. 'op' 'num_ops' * 64
  10480. Total 48 + 8 * 'num_ops' bytes
  10481. size
  10482. * 'gsbase' Inherited from 'struct gimple'.
  10483. * 'def_ops' Array of pointers into the operand array indicating all
  10484. the slots that contain a variable written-to by the statement.
  10485. This array is also used for immediate use chaining. Note that it
  10486. would be possible to not rely on this array, but the changes
  10487. required to implement this are pretty invasive.
  10488. * 'use_ops' Similar to 'def_ops' but for variables read by the
  10489. statement.
  10490. * 'op' Array of trees with 'num_ops' slots.
  10491. 12.1.3 'gimple_statement_with_memory_ops'
  10492. -----------------------------------------
  10493. This tuple is essentially identical to 'gimple_statement_with_ops',
  10494. except that it contains 4 additional fields to hold vectors related
  10495. memory stores and loads. Similar to the previous case, the structure is
  10496. split in two to accommodate for the operand vector
  10497. ('gimple_statement_with_memory_ops_base' and
  10498. 'gimple_statement_with_memory_ops').
  10499. Field Size (bits)
  10500. 'gsbase' 256
  10501. 'def_ops' 64
  10502. 'use_ops' 64
  10503. 'vdef_ops' 64
  10504. 'vuse_ops' 64
  10505. 'stores' 64
  10506. 'loads' 64
  10507. 'op' 'num_ops' * 64
  10508. Total size 80 + 8 * 'num_ops' bytes
  10509. * 'vdef_ops' Similar to 'def_ops' but for 'VDEF' operators. There is
  10510. one entry per memory symbol written by this statement. This is
  10511. used to maintain the memory SSA use-def and def-def chains.
  10512. * 'vuse_ops' Similar to 'use_ops' but for 'VUSE' operators. There is
  10513. one entry per memory symbol loaded by this statement. This is used
  10514. to maintain the memory SSA use-def chains.
  10515. * 'stores' Bitset with all the UIDs for the symbols written-to by the
  10516. statement. This is different than 'vdef_ops' in that all the
  10517. affected symbols are mentioned in this set. If memory partitioning
  10518. is enabled, the 'vdef_ops' vector will refer to memory partitions.
  10519. Furthermore, no SSA information is stored in this set.
  10520. * 'loads' Similar to 'stores', but for memory loads. (Note that
  10521. there is some amount of redundancy here, it should be possible to
  10522. reduce memory utilization further by removing these sets).
  10523. All the other tuples are defined in terms of these three basic ones.
  10524. Each tuple will add some fields.
  10525. 
  10526. File: gccint.info, Node: Class hierarchy of GIMPLE statements, Next: GIMPLE instruction set, Prev: Tuple representation, Up: GIMPLE
  10527. 12.2 Class hierarchy of GIMPLE statements
  10528. =========================================
  10529. The following diagram shows the C++ inheritance hierarchy of statement
  10530. kinds, along with their relationships to 'GSS_' values (layouts) and
  10531. 'GIMPLE_' values (codes):
  10532. gimple
  10533. | layout: GSS_BASE
  10534. | used for 4 codes: GIMPLE_ERROR_MARK
  10535. | GIMPLE_NOP
  10536. | GIMPLE_OMP_SECTIONS_SWITCH
  10537. | GIMPLE_PREDICT
  10538. |
  10539. + gimple_statement_with_ops_base
  10540. | | (no GSS layout)
  10541. | |
  10542. | + gimple_statement_with_ops
  10543. | | | layout: GSS_WITH_OPS
  10544. | | |
  10545. | | + gcond
  10546. | | | code: GIMPLE_COND
  10547. | | |
  10548. | | + gdebug
  10549. | | | code: GIMPLE_DEBUG
  10550. | | |
  10551. | | + ggoto
  10552. | | | code: GIMPLE_GOTO
  10553. | | |
  10554. | | + glabel
  10555. | | | code: GIMPLE_LABEL
  10556. | | |
  10557. | | + gswitch
  10558. | | code: GIMPLE_SWITCH
  10559. | |
  10560. | + gimple_statement_with_memory_ops_base
  10561. | | layout: GSS_WITH_MEM_OPS_BASE
  10562. | |
  10563. | + gimple_statement_with_memory_ops
  10564. | | | layout: GSS_WITH_MEM_OPS
  10565. | | |
  10566. | | + gassign
  10567. | | | code GIMPLE_ASSIGN
  10568. | | |
  10569. | | + greturn
  10570. | | code GIMPLE_RETURN
  10571. | |
  10572. | + gcall
  10573. | | layout: GSS_CALL, code: GIMPLE_CALL
  10574. | |
  10575. | + gasm
  10576. | | layout: GSS_ASM, code: GIMPLE_ASM
  10577. | |
  10578. | + gtransaction
  10579. | layout: GSS_TRANSACTION, code: GIMPLE_TRANSACTION
  10580. |
  10581. + gimple_statement_omp
  10582. | | layout: GSS_OMP. Used for code GIMPLE_OMP_SECTION
  10583. | |
  10584. | + gomp_critical
  10585. | | layout: GSS_OMP_CRITICAL, code: GIMPLE_OMP_CRITICAL
  10586. | |
  10587. | + gomp_for
  10588. | | layout: GSS_OMP_FOR, code: GIMPLE_OMP_FOR
  10589. | |
  10590. | + gomp_parallel_layout
  10591. | | | layout: GSS_OMP_PARALLEL_LAYOUT
  10592. | | |
  10593. | | + gimple_statement_omp_taskreg
  10594. | | | |
  10595. | | | + gomp_parallel
  10596. | | | | code: GIMPLE_OMP_PARALLEL
  10597. | | | |
  10598. | | | + gomp_task
  10599. | | | code: GIMPLE_OMP_TASK
  10600. | | |
  10601. | | + gimple_statement_omp_target
  10602. | | code: GIMPLE_OMP_TARGET
  10603. | |
  10604. | + gomp_sections
  10605. | | layout: GSS_OMP_SECTIONS, code: GIMPLE_OMP_SECTIONS
  10606. | |
  10607. | + gimple_statement_omp_single_layout
  10608. | | layout: GSS_OMP_SINGLE_LAYOUT
  10609. | |
  10610. | + gomp_single
  10611. | | code: GIMPLE_OMP_SINGLE
  10612. | |
  10613. | + gomp_teams
  10614. | code: GIMPLE_OMP_TEAMS
  10615. |
  10616. + gbind
  10617. | layout: GSS_BIND, code: GIMPLE_BIND
  10618. |
  10619. + gcatch
  10620. | layout: GSS_CATCH, code: GIMPLE_CATCH
  10621. |
  10622. + geh_filter
  10623. | layout: GSS_EH_FILTER, code: GIMPLE_EH_FILTER
  10624. |
  10625. + geh_else
  10626. | layout: GSS_EH_ELSE, code: GIMPLE_EH_ELSE
  10627. |
  10628. + geh_mnt
  10629. | layout: GSS_EH_MNT, code: GIMPLE_EH_MUST_NOT_THROW
  10630. |
  10631. + gphi
  10632. | layout: GSS_PHI, code: GIMPLE_PHI
  10633. |
  10634. + gimple_statement_eh_ctrl
  10635. | | layout: GSS_EH_CTRL
  10636. | |
  10637. | + gresx
  10638. | | code: GIMPLE_RESX
  10639. | |
  10640. | + geh_dispatch
  10641. | code: GIMPLE_EH_DISPATCH
  10642. |
  10643. + gtry
  10644. | layout: GSS_TRY, code: GIMPLE_TRY
  10645. |
  10646. + gimple_statement_wce
  10647. | layout: GSS_WCE, code: GIMPLE_WITH_CLEANUP_EXPR
  10648. |
  10649. + gomp_continue
  10650. | layout: GSS_OMP_CONTINUE, code: GIMPLE_OMP_CONTINUE
  10651. |
  10652. + gomp_atomic_load
  10653. | layout: GSS_OMP_ATOMIC_LOAD, code: GIMPLE_OMP_ATOMIC_LOAD
  10654. |
  10655. + gimple_statement_omp_atomic_store_layout
  10656. | layout: GSS_OMP_ATOMIC_STORE_LAYOUT,
  10657. | code: GIMPLE_OMP_ATOMIC_STORE
  10658. |
  10659. + gomp_atomic_store
  10660. | code: GIMPLE_OMP_ATOMIC_STORE
  10661. |
  10662. + gomp_return
  10663. code: GIMPLE_OMP_RETURN
  10664. 
  10665. File: gccint.info, Node: GIMPLE instruction set, Next: GIMPLE Exception Handling, Prev: Class hierarchy of GIMPLE statements, Up: GIMPLE
  10666. 12.3 GIMPLE instruction set
  10667. ===========================
  10668. The following table briefly describes the GIMPLE instruction set.
  10669. Instruction High GIMPLE Low GIMPLE
  10670. 'GIMPLE_ASM' x x
  10671. 'GIMPLE_ASSIGN' x x
  10672. 'GIMPLE_BIND' x
  10673. 'GIMPLE_CALL' x x
  10674. 'GIMPLE_CATCH' x
  10675. 'GIMPLE_COND' x x
  10676. 'GIMPLE_DEBUG' x x
  10677. 'GIMPLE_EH_FILTER' x
  10678. 'GIMPLE_GOTO' x x
  10679. 'GIMPLE_LABEL' x x
  10680. 'GIMPLE_NOP' x x
  10681. 'GIMPLE_OMP_ATOMIC_LOAD' x x
  10682. 'GIMPLE_OMP_ATOMIC_STORE' x x
  10683. 'GIMPLE_OMP_CONTINUE' x x
  10684. 'GIMPLE_OMP_CRITICAL' x x
  10685. 'GIMPLE_OMP_FOR' x x
  10686. 'GIMPLE_OMP_MASTER' x x
  10687. 'GIMPLE_OMP_ORDERED' x x
  10688. 'GIMPLE_OMP_PARALLEL' x x
  10689. 'GIMPLE_OMP_RETURN' x x
  10690. 'GIMPLE_OMP_SECTION' x x
  10691. 'GIMPLE_OMP_SECTIONS' x x
  10692. 'GIMPLE_OMP_SECTIONS_SWITCH' x x
  10693. 'GIMPLE_OMP_SINGLE' x x
  10694. 'GIMPLE_PHI' x
  10695. 'GIMPLE_RESX' x
  10696. 'GIMPLE_RETURN' x x
  10697. 'GIMPLE_SWITCH' x x
  10698. 'GIMPLE_TRY' x
  10699. 
  10700. File: gccint.info, Node: GIMPLE Exception Handling, Next: Temporaries, Prev: GIMPLE instruction set, Up: GIMPLE
  10701. 12.4 Exception Handling
  10702. =======================
  10703. Other exception handling constructs are represented using
  10704. 'GIMPLE_TRY_CATCH'. 'GIMPLE_TRY_CATCH' has two operands. The first
  10705. operand is a sequence of statements to execute. If executing these
  10706. statements does not throw an exception, then the second operand is
  10707. ignored. Otherwise, if an exception is thrown, then the second operand
  10708. of the 'GIMPLE_TRY_CATCH' is checked. The second operand may have the
  10709. following forms:
  10710. 1. A sequence of statements to execute. When an exception occurs,
  10711. these statements are executed, and then the exception is rethrown.
  10712. 2. A sequence of 'GIMPLE_CATCH' statements. Each 'GIMPLE_CATCH' has a
  10713. list of applicable exception types and handler code. If the thrown
  10714. exception matches one of the caught types, the associated handler
  10715. code is executed. If the handler code falls off the bottom,
  10716. execution continues after the original 'GIMPLE_TRY_CATCH'.
  10717. 3. A 'GIMPLE_EH_FILTER' statement. This has a list of permitted
  10718. exception types, and code to handle a match failure. If the thrown
  10719. exception does not match one of the allowed types, the associated
  10720. match failure code is executed. If the thrown exception does
  10721. match, it continues unwinding the stack looking for the next
  10722. handler.
  10723. Currently throwing an exception is not directly represented in GIMPLE,
  10724. since it is implemented by calling a function. At some point in the
  10725. future we will want to add some way to express that the call will throw
  10726. an exception of a known type.
  10727. Just before running the optimizers, the compiler lowers the high-level
  10728. EH constructs above into a set of 'goto's, magic labels, and EH regions.
  10729. Continuing to unwind at the end of a cleanup is represented with a
  10730. 'GIMPLE_RESX'.
  10731. 
  10732. File: gccint.info, Node: Temporaries, Next: Operands, Prev: GIMPLE Exception Handling, Up: GIMPLE
  10733. 12.5 Temporaries
  10734. ================
  10735. When gimplification encounters a subexpression that is too complex, it
  10736. creates a new temporary variable to hold the value of the subexpression,
  10737. and adds a new statement to initialize it before the current statement.
  10738. These special temporaries are known as 'expression temporaries', and are
  10739. allocated using 'get_formal_tmp_var'. The compiler tries to always
  10740. evaluate identical expressions into the same temporary, to simplify
  10741. elimination of redundant calculations.
  10742. We can only use expression temporaries when we know that it will not be
  10743. reevaluated before its value is used, and that it will not be otherwise
  10744. modified(1). Other temporaries can be allocated using
  10745. 'get_initialized_tmp_var' or 'create_tmp_var'.
  10746. Currently, an expression like 'a = b + 5' is not reduced any further.
  10747. We tried converting it to something like
  10748. T1 = b + 5;
  10749. a = T1;
  10750. but this bloated the representation for minimal benefit. However, a
  10751. variable which must live in memory cannot appear in an expression; its
  10752. value is explicitly loaded into a temporary first. Similarly, storing
  10753. the value of an expression to a memory variable goes through a
  10754. temporary.
  10755. ---------- Footnotes ----------
  10756. (1) These restrictions are derived from those in Morgan 4.8.
  10757. 
  10758. File: gccint.info, Node: Operands, Next: Manipulating GIMPLE statements, Prev: Temporaries, Up: GIMPLE
  10759. 12.6 Operands
  10760. =============
  10761. In general, expressions in GIMPLE consist of an operation and the
  10762. appropriate number of simple operands; these operands must either be a
  10763. GIMPLE rvalue ('is_gimple_val'), i.e. a constant or a register variable.
  10764. More complex operands are factored out into temporaries, so that
  10765. a = b + c + d
  10766. becomes
  10767. T1 = b + c;
  10768. a = T1 + d;
  10769. The same rule holds for arguments to a 'GIMPLE_CALL'.
  10770. The target of an assignment is usually a variable, but can also be a
  10771. 'MEM_REF' or a compound lvalue as described below.
  10772. * Menu:
  10773. * Compound Expressions::
  10774. * Compound Lvalues::
  10775. * Conditional Expressions::
  10776. * Logical Operators::
  10777. 
  10778. File: gccint.info, Node: Compound Expressions, Next: Compound Lvalues, Up: Operands
  10779. 12.6.1 Compound Expressions
  10780. ---------------------------
  10781. The left-hand side of a C comma expression is simply moved into a
  10782. separate statement.
  10783. 
  10784. File: gccint.info, Node: Compound Lvalues, Next: Conditional Expressions, Prev: Compound Expressions, Up: Operands
  10785. 12.6.2 Compound Lvalues
  10786. -----------------------
  10787. Currently compound lvalues involving array and structure field
  10788. references are not broken down; an expression like 'a.b[2] = 42' is not
  10789. reduced any further (though complex array subscripts are). This
  10790. restriction is a workaround for limitations in later optimizers; if we
  10791. were to convert this to
  10792. T1 = &a.b;
  10793. T1[2] = 42;
  10794. alias analysis would not remember that the reference to 'T1[2]' came by
  10795. way of 'a.b', so it would think that the assignment could alias another
  10796. member of 'a'; this broke 'struct-alias-1.c'. Future optimizer
  10797. improvements may make this limitation unnecessary.
  10798. 
  10799. File: gccint.info, Node: Conditional Expressions, Next: Logical Operators, Prev: Compound Lvalues, Up: Operands
  10800. 12.6.3 Conditional Expressions
  10801. ------------------------------
  10802. A C '?:' expression is converted into an 'if' statement with each branch
  10803. assigning to the same temporary. So,
  10804. a = b ? c : d;
  10805. becomes
  10806. if (b == 1)
  10807. T1 = c;
  10808. else
  10809. T1 = d;
  10810. a = T1;
  10811. The GIMPLE level if-conversion pass re-introduces '?:' expression, if
  10812. appropriate. It is used to vectorize loops with conditions using vector
  10813. conditional operations.
  10814. Note that in GIMPLE, 'if' statements are represented using
  10815. 'GIMPLE_COND', as described below.
  10816. 
  10817. File: gccint.info, Node: Logical Operators, Prev: Conditional Expressions, Up: Operands
  10818. 12.6.4 Logical Operators
  10819. ------------------------
  10820. Except when they appear in the condition operand of a 'GIMPLE_COND',
  10821. logical 'and' and 'or' operators are simplified as follows: 'a = b && c'
  10822. becomes
  10823. T1 = (bool)b;
  10824. if (T1 == true)
  10825. T1 = (bool)c;
  10826. a = T1;
  10827. Note that 'T1' in this example cannot be an expression temporary,
  10828. because it has two different assignments.
  10829. 12.6.5 Manipulating operands
  10830. ----------------------------
  10831. All gimple operands are of type 'tree'. But only certain types of trees
  10832. are allowed to be used as operand tuples. Basic validation is
  10833. controlled by the function 'get_gimple_rhs_class', which given a tree
  10834. code, returns an 'enum' with the following values of type 'enum
  10835. gimple_rhs_class'
  10836. * 'GIMPLE_INVALID_RHS' The tree cannot be used as a GIMPLE operand.
  10837. * 'GIMPLE_TERNARY_RHS' The tree is a valid GIMPLE ternary operation.
  10838. * 'GIMPLE_BINARY_RHS' The tree is a valid GIMPLE binary operation.
  10839. * 'GIMPLE_UNARY_RHS' The tree is a valid GIMPLE unary operation.
  10840. * 'GIMPLE_SINGLE_RHS' The tree is a single object, that cannot be
  10841. split into simpler operands (for instance, 'SSA_NAME', 'VAR_DECL',
  10842. 'COMPONENT_REF', etc).
  10843. This operand class also acts as an escape hatch for tree nodes that
  10844. may be flattened out into the operand vector, but would need more
  10845. than two slots on the RHS. For instance, a 'COND_EXPR' expression
  10846. of the form '(a op b) ? x : y' could be flattened out on the
  10847. operand vector using 4 slots, but it would also require additional
  10848. processing to distinguish 'c = a op b' from 'c = a op b ? x : y'.
  10849. Something similar occurs with 'ASSERT_EXPR'. In time, these
  10850. special case tree expressions should be flattened into the operand
  10851. vector.
  10852. For tree nodes in the categories 'GIMPLE_TERNARY_RHS',
  10853. 'GIMPLE_BINARY_RHS' and 'GIMPLE_UNARY_RHS', they cannot be stored inside
  10854. tuples directly. They first need to be flattened and separated into
  10855. individual components. For instance, given the GENERIC expression
  10856. a = b + c
  10857. its tree representation is:
  10858. MODIFY_EXPR <VAR_DECL <a>, PLUS_EXPR <VAR_DECL <b>, VAR_DECL <c>>>
  10859. In this case, the GIMPLE form for this statement is logically identical
  10860. to its GENERIC form but in GIMPLE, the 'PLUS_EXPR' on the RHS of the
  10861. assignment is not represented as a tree, instead the two operands are
  10862. taken out of the 'PLUS_EXPR' sub-tree and flattened into the GIMPLE
  10863. tuple as follows:
  10864. GIMPLE_ASSIGN <PLUS_EXPR, VAR_DECL <a>, VAR_DECL <b>, VAR_DECL <c>>
  10865. 12.6.6 Operand vector allocation
  10866. --------------------------------
  10867. The operand vector is stored at the bottom of the three tuple structures
  10868. that accept operands. This means, that depending on the code of a given
  10869. statement, its operand vector will be at different offsets from the base
  10870. of the structure. To access tuple operands use the following accessors
  10871. -- GIMPLE function: unsigned gimple_num_ops (gimple g)
  10872. Returns the number of operands in statement G.
  10873. -- GIMPLE function: tree gimple_op (gimple g, unsigned i)
  10874. Returns operand 'I' from statement 'G'.
  10875. -- GIMPLE function: tree * gimple_ops (gimple g)
  10876. Returns a pointer into the operand vector for statement 'G'. This
  10877. is computed using an internal table called 'gimple_ops_offset_'[].
  10878. This table is indexed by the gimple code of 'G'.
  10879. When the compiler is built, this table is filled-in using the sizes
  10880. of the structures used by each statement code defined in
  10881. gimple.def. Since the operand vector is at the bottom of the
  10882. structure, for a gimple code 'C' the offset is computed as sizeof
  10883. (struct-of 'C') - sizeof (tree).
  10884. This mechanism adds one memory indirection to every access when
  10885. using 'gimple_op'(), if this becomes a bottleneck, a pass can
  10886. choose to memoize the result from 'gimple_ops'() and use that to
  10887. access the operands.
  10888. 12.6.7 Operand validation
  10889. -------------------------
  10890. When adding a new operand to a gimple statement, the operand will be
  10891. validated according to what each tuple accepts in its operand vector.
  10892. These predicates are called by the 'gimple_NAME_set_...()'. Each tuple
  10893. will use one of the following predicates (Note, this list is not
  10894. exhaustive):
  10895. -- GIMPLE function: bool is_gimple_val (tree t)
  10896. Returns true if t is a "GIMPLE value", which are all the
  10897. non-addressable stack variables (variables for which
  10898. 'is_gimple_reg' returns true) and constants (expressions for which
  10899. 'is_gimple_min_invariant' returns true).
  10900. -- GIMPLE function: bool is_gimple_addressable (tree t)
  10901. Returns true if t is a symbol or memory reference whose address can
  10902. be taken.
  10903. -- GIMPLE function: bool is_gimple_asm_val (tree t)
  10904. Similar to 'is_gimple_val' but it also accepts hard registers.
  10905. -- GIMPLE function: bool is_gimple_call_addr (tree t)
  10906. Return true if t is a valid expression to use as the function
  10907. called by a 'GIMPLE_CALL'.
  10908. -- GIMPLE function: bool is_gimple_mem_ref_addr (tree t)
  10909. Return true if t is a valid expression to use as first operand of a
  10910. 'MEM_REF' expression.
  10911. -- GIMPLE function: bool is_gimple_constant (tree t)
  10912. Return true if t is a valid gimple constant.
  10913. -- GIMPLE function: bool is_gimple_min_invariant (tree t)
  10914. Return true if t is a valid minimal invariant. This is different
  10915. from constants, in that the specific value of t may not be known at
  10916. compile time, but it is known that it doesn't change (e.g., the
  10917. address of a function local variable).
  10918. -- GIMPLE function: bool is_gimple_ip_invariant (tree t)
  10919. Return true if t is an interprocedural invariant. This means that
  10920. t is a valid invariant in all functions (e.g. it can be an address
  10921. of a global variable but not of a local one).
  10922. -- GIMPLE function: bool is_gimple_ip_invariant_address (tree t)
  10923. Return true if t is an 'ADDR_EXPR' that does not change once the
  10924. program is running (and which is valid in all functions).
  10925. 12.6.8 Statement validation
  10926. ---------------------------
  10927. -- GIMPLE function: bool is_gimple_assign (gimple g)
  10928. Return true if the code of g is 'GIMPLE_ASSIGN'.
  10929. -- GIMPLE function: bool is_gimple_call (gimple g)
  10930. Return true if the code of g is 'GIMPLE_CALL'.
  10931. -- GIMPLE function: bool is_gimple_debug (gimple g)
  10932. Return true if the code of g is 'GIMPLE_DEBUG'.
  10933. -- GIMPLE function: bool gimple_assign_cast_p (const_gimple g)
  10934. Return true if g is a 'GIMPLE_ASSIGN' that performs a type cast
  10935. operation.
  10936. -- GIMPLE function: bool gimple_debug_bind_p (gimple g)
  10937. Return true if g is a 'GIMPLE_DEBUG' that binds the value of an
  10938. expression to a variable.
  10939. -- GIMPLE function: bool is_gimple_omp (gimple g)
  10940. Return true if g is any of the OpenMP codes.
  10941. -- GIMPLE function: gimple_debug_begin_stmt_p (gimple g)
  10942. Return true if g is a 'GIMPLE_DEBUG' that marks the beginning of a
  10943. source statement.
  10944. -- GIMPLE function: gimple_debug_inline_entry_p (gimple g)
  10945. Return true if g is a 'GIMPLE_DEBUG' that marks the entry point of
  10946. an inlined function.
  10947. -- GIMPLE function: gimple_debug_nonbind_marker_p (gimple g)
  10948. Return true if g is a 'GIMPLE_DEBUG' that marks a program location,
  10949. without any variable binding.
  10950. 
  10951. File: gccint.info, Node: Manipulating GIMPLE statements, Next: Tuple specific accessors, Prev: Operands, Up: GIMPLE
  10952. 12.7 Manipulating GIMPLE statements
  10953. ===================================
  10954. This section documents all the functions available to handle each of the
  10955. GIMPLE instructions.
  10956. 12.7.1 Common accessors
  10957. -----------------------
  10958. The following are common accessors for gimple statements.
  10959. -- GIMPLE function: enum gimple_code gimple_code (gimple g)
  10960. Return the code for statement 'G'.
  10961. -- GIMPLE function: basic_block gimple_bb (gimple g)
  10962. Return the basic block to which statement 'G' belongs to.
  10963. -- GIMPLE function: tree gimple_block (gimple g)
  10964. Return the lexical scope block holding statement 'G'.
  10965. -- GIMPLE function: tree gimple_expr_type (gimple stmt)
  10966. Return the type of the main expression computed by 'STMT'. Return
  10967. 'void_type_node' if 'STMT' computes nothing. This will only return
  10968. something meaningful for 'GIMPLE_ASSIGN', 'GIMPLE_COND' and
  10969. 'GIMPLE_CALL'. For all other tuple codes, it will return
  10970. 'void_type_node'.
  10971. -- GIMPLE function: enum tree_code gimple_expr_code (gimple stmt)
  10972. Return the tree code for the expression computed by 'STMT'. This
  10973. is only meaningful for 'GIMPLE_CALL', 'GIMPLE_ASSIGN' and
  10974. 'GIMPLE_COND'. If 'STMT' is 'GIMPLE_CALL', it will return
  10975. 'CALL_EXPR'. For 'GIMPLE_COND', it returns the code of the
  10976. comparison predicate. For 'GIMPLE_ASSIGN' it returns the code of
  10977. the operation performed by the 'RHS' of the assignment.
  10978. -- GIMPLE function: void gimple_set_block (gimple g, tree block)
  10979. Set the lexical scope block of 'G' to 'BLOCK'.
  10980. -- GIMPLE function: location_t gimple_locus (gimple g)
  10981. Return locus information for statement 'G'.
  10982. -- GIMPLE function: void gimple_set_locus (gimple g, location_t locus)
  10983. Set locus information for statement 'G'.
  10984. -- GIMPLE function: bool gimple_locus_empty_p (gimple g)
  10985. Return true if 'G' does not have locus information.
  10986. -- GIMPLE function: bool gimple_no_warning_p (gimple stmt)
  10987. Return true if no warnings should be emitted for statement 'STMT'.
  10988. -- GIMPLE function: void gimple_set_visited (gimple stmt, bool
  10989. visited_p)
  10990. Set the visited status on statement 'STMT' to 'VISITED_P'.
  10991. -- GIMPLE function: bool gimple_visited_p (gimple stmt)
  10992. Return the visited status on statement 'STMT'.
  10993. -- GIMPLE function: void gimple_set_plf (gimple stmt, enum plf_mask
  10994. plf, bool val_p)
  10995. Set pass local flag 'PLF' on statement 'STMT' to 'VAL_P'.
  10996. -- GIMPLE function: unsigned int gimple_plf (gimple stmt, enum plf_mask
  10997. plf)
  10998. Return the value of pass local flag 'PLF' on statement 'STMT'.
  10999. -- GIMPLE function: bool gimple_has_ops (gimple g)
  11000. Return true if statement 'G' has register or memory operands.
  11001. -- GIMPLE function: bool gimple_has_mem_ops (gimple g)
  11002. Return true if statement 'G' has memory operands.
  11003. -- GIMPLE function: unsigned gimple_num_ops (gimple g)
  11004. Return the number of operands for statement 'G'.
  11005. -- GIMPLE function: tree * gimple_ops (gimple g)
  11006. Return the array of operands for statement 'G'.
  11007. -- GIMPLE function: tree gimple_op (gimple g, unsigned i)
  11008. Return operand 'I' for statement 'G'.
  11009. -- GIMPLE function: tree * gimple_op_ptr (gimple g, unsigned i)
  11010. Return a pointer to operand 'I' for statement 'G'.
  11011. -- GIMPLE function: void gimple_set_op (gimple g, unsigned i, tree op)
  11012. Set operand 'I' of statement 'G' to 'OP'.
  11013. -- GIMPLE function: bitmap gimple_addresses_taken (gimple stmt)
  11014. Return the set of symbols that have had their address taken by
  11015. 'STMT'.
  11016. -- GIMPLE function: struct def_optype_d * gimple_def_ops (gimple g)
  11017. Return the set of 'DEF' operands for statement 'G'.
  11018. -- GIMPLE function: void gimple_set_def_ops (gimple g, struct
  11019. def_optype_d *def)
  11020. Set 'DEF' to be the set of 'DEF' operands for statement 'G'.
  11021. -- GIMPLE function: struct use_optype_d * gimple_use_ops (gimple g)
  11022. Return the set of 'USE' operands for statement 'G'.
  11023. -- GIMPLE function: void gimple_set_use_ops (gimple g, struct
  11024. use_optype_d *use)
  11025. Set 'USE' to be the set of 'USE' operands for statement 'G'.
  11026. -- GIMPLE function: struct voptype_d * gimple_vuse_ops (gimple g)
  11027. Return the set of 'VUSE' operands for statement 'G'.
  11028. -- GIMPLE function: void gimple_set_vuse_ops (gimple g, struct
  11029. voptype_d *ops)
  11030. Set 'OPS' to be the set of 'VUSE' operands for statement 'G'.
  11031. -- GIMPLE function: struct voptype_d * gimple_vdef_ops (gimple g)
  11032. Return the set of 'VDEF' operands for statement 'G'.
  11033. -- GIMPLE function: void gimple_set_vdef_ops (gimple g, struct
  11034. voptype_d *ops)
  11035. Set 'OPS' to be the set of 'VDEF' operands for statement 'G'.
  11036. -- GIMPLE function: bitmap gimple_loaded_syms (gimple g)
  11037. Return the set of symbols loaded by statement 'G'. Each element of
  11038. the set is the 'DECL_UID' of the corresponding symbol.
  11039. -- GIMPLE function: bitmap gimple_stored_syms (gimple g)
  11040. Return the set of symbols stored by statement 'G'. Each element of
  11041. the set is the 'DECL_UID' of the corresponding symbol.
  11042. -- GIMPLE function: bool gimple_modified_p (gimple g)
  11043. Return true if statement 'G' has operands and the modified field
  11044. has been set.
  11045. -- GIMPLE function: bool gimple_has_volatile_ops (gimple stmt)
  11046. Return true if statement 'STMT' contains volatile operands.
  11047. -- GIMPLE function: void gimple_set_has_volatile_ops (gimple stmt, bool
  11048. volatilep)
  11049. Return true if statement 'STMT' contains volatile operands.
  11050. -- GIMPLE function: void update_stmt (gimple s)
  11051. Mark statement 'S' as modified, and update it.
  11052. -- GIMPLE function: void update_stmt_if_modified (gimple s)
  11053. Update statement 'S' if it has been marked modified.
  11054. -- GIMPLE function: gimple gimple_copy (gimple stmt)
  11055. Return a deep copy of statement 'STMT'.
  11056. 
  11057. File: gccint.info, Node: Tuple specific accessors, Next: GIMPLE sequences, Prev: Manipulating GIMPLE statements, Up: GIMPLE
  11058. 12.8 Tuple specific accessors
  11059. =============================
  11060. * Menu:
  11061. * GIMPLE_ASM::
  11062. * GIMPLE_ASSIGN::
  11063. * GIMPLE_BIND::
  11064. * GIMPLE_CALL::
  11065. * GIMPLE_CATCH::
  11066. * GIMPLE_COND::
  11067. * GIMPLE_DEBUG::
  11068. * GIMPLE_EH_FILTER::
  11069. * GIMPLE_LABEL::
  11070. * GIMPLE_GOTO::
  11071. * GIMPLE_NOP::
  11072. * GIMPLE_OMP_ATOMIC_LOAD::
  11073. * GIMPLE_OMP_ATOMIC_STORE::
  11074. * GIMPLE_OMP_CONTINUE::
  11075. * GIMPLE_OMP_CRITICAL::
  11076. * GIMPLE_OMP_FOR::
  11077. * GIMPLE_OMP_MASTER::
  11078. * GIMPLE_OMP_ORDERED::
  11079. * GIMPLE_OMP_PARALLEL::
  11080. * GIMPLE_OMP_RETURN::
  11081. * GIMPLE_OMP_SECTION::
  11082. * GIMPLE_OMP_SECTIONS::
  11083. * GIMPLE_OMP_SINGLE::
  11084. * GIMPLE_PHI::
  11085. * GIMPLE_RESX::
  11086. * GIMPLE_RETURN::
  11087. * GIMPLE_SWITCH::
  11088. * GIMPLE_TRY::
  11089. * GIMPLE_WITH_CLEANUP_EXPR::
  11090. 
  11091. File: gccint.info, Node: GIMPLE_ASM, Next: GIMPLE_ASSIGN, Up: Tuple specific accessors
  11092. 12.8.1 'GIMPLE_ASM'
  11093. -------------------
  11094. -- GIMPLE function: gasm *gimple_build_asm_vec ( const char *string,
  11095. vec<tree, va_gc> *inputs, vec<tree, va_gc> *outputs, vec<tree,
  11096. va_gc> *clobbers, vec<tree, va_gc> *labels)
  11097. Build a 'GIMPLE_ASM' statement. This statement is used for
  11098. building in-line assembly constructs. 'STRING' is the assembly
  11099. code. 'INPUTS', 'OUTPUTS', 'CLOBBERS' and 'LABELS' are the inputs,
  11100. outputs, clobbered registers and labels.
  11101. -- GIMPLE function: unsigned gimple_asm_ninputs (const gasm *g)
  11102. Return the number of input operands for 'GIMPLE_ASM' 'G'.
  11103. -- GIMPLE function: unsigned gimple_asm_noutputs (const gasm *g)
  11104. Return the number of output operands for 'GIMPLE_ASM' 'G'.
  11105. -- GIMPLE function: unsigned gimple_asm_nclobbers (const gasm *g)
  11106. Return the number of clobber operands for 'GIMPLE_ASM' 'G'.
  11107. -- GIMPLE function: tree gimple_asm_input_op (const gasm *g, unsigned
  11108. index)
  11109. Return input operand 'INDEX' of 'GIMPLE_ASM' 'G'.
  11110. -- GIMPLE function: void gimple_asm_set_input_op (gasm *g, unsigned
  11111. index, tree in_op)
  11112. Set 'IN_OP' to be input operand 'INDEX' in 'GIMPLE_ASM' 'G'.
  11113. -- GIMPLE function: tree gimple_asm_output_op (const gasm *g, unsigned
  11114. index)
  11115. Return output operand 'INDEX' of 'GIMPLE_ASM' 'G'.
  11116. -- GIMPLE function: void gimple_asm_set_output_op (gasm *g, unsigned
  11117. index, tree out_op)
  11118. Set 'OUT_OP' to be output operand 'INDEX' in 'GIMPLE_ASM' 'G'.
  11119. -- GIMPLE function: tree gimple_asm_clobber_op (const gasm *g, unsigned
  11120. index)
  11121. Return clobber operand 'INDEX' of 'GIMPLE_ASM' 'G'.
  11122. -- GIMPLE function: void gimple_asm_set_clobber_op (gasm *g, unsigned
  11123. index, tree clobber_op)
  11124. Set 'CLOBBER_OP' to be clobber operand 'INDEX' in 'GIMPLE_ASM' 'G'.
  11125. -- GIMPLE function: const char * gimple_asm_string (const gasm *g)
  11126. Return the string representing the assembly instruction in
  11127. 'GIMPLE_ASM' 'G'.
  11128. -- GIMPLE function: bool gimple_asm_volatile_p (const gasm *g)
  11129. Return true if 'G' is an asm statement marked volatile.
  11130. -- GIMPLE function: void gimple_asm_set_volatile (gasm *g, bool
  11131. volatile_p)
  11132. Mark asm statement 'G' as volatile or non-volatile based on
  11133. 'VOLATILE_P'.
  11134. 
  11135. File: gccint.info, Node: GIMPLE_ASSIGN, Next: GIMPLE_BIND, Prev: GIMPLE_ASM, Up: Tuple specific accessors
  11136. 12.8.2 'GIMPLE_ASSIGN'
  11137. ----------------------
  11138. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, tree rhs)
  11139. Build a 'GIMPLE_ASSIGN' statement. The left-hand side is an lvalue
  11140. passed in lhs. The right-hand side can be either a unary or binary
  11141. tree expression. The expression tree rhs will be flattened and its
  11142. operands assigned to the corresponding operand slots in the new
  11143. statement. This function is useful when you already have a tree
  11144. expression that you want to convert into a tuple. However, try to
  11145. avoid building expression trees for the sole purpose of calling
  11146. this function. If you already have the operands in separate trees,
  11147. it is better to use 'gimple_build_assign' with 'enum tree_code'
  11148. argument and separate arguments for each operand.
  11149. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, enum
  11150. tree_code subcode, tree op1, tree op2, tree op3)
  11151. This function is similar to two operand 'gimple_build_assign', but
  11152. is used to build a 'GIMPLE_ASSIGN' statement when the operands of
  11153. the right-hand side of the assignment are already split into
  11154. different operands.
  11155. The left-hand side is an lvalue passed in lhs. Subcode is the
  11156. 'tree_code' for the right-hand side of the assignment. Op1, op2
  11157. and op3 are the operands.
  11158. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, enum
  11159. tree_code subcode, tree op1, tree op2)
  11160. Like the above 5 operand 'gimple_build_assign', but with the last
  11161. argument 'NULL' - this overload should not be used for
  11162. 'GIMPLE_TERNARY_RHS' assignments.
  11163. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, enum
  11164. tree_code subcode, tree op1)
  11165. Like the above 4 operand 'gimple_build_assign', but with the last
  11166. argument 'NULL' - this overload should be used only for
  11167. 'GIMPLE_UNARY_RHS' and 'GIMPLE_SINGLE_RHS' assignments.
  11168. -- GIMPLE function: gimple gimplify_assign (tree dst, tree src,
  11169. gimple_seq *seq_p)
  11170. Build a new 'GIMPLE_ASSIGN' tuple and append it to the end of
  11171. '*SEQ_P'.
  11172. 'DST'/'SRC' are the destination and source respectively. You can pass
  11173. ungimplified trees in 'DST' or 'SRC', in which case they will be
  11174. converted to a gimple operand if necessary.
  11175. This function returns the newly created 'GIMPLE_ASSIGN' tuple.
  11176. -- GIMPLE function: enum tree_code gimple_assign_rhs_code (gimple g)
  11177. Return the code of the expression computed on the 'RHS' of
  11178. assignment statement 'G'.
  11179. -- GIMPLE function: enum gimple_rhs_class gimple_assign_rhs_class
  11180. (gimple g)
  11181. Return the gimple rhs class of the code for the expression computed
  11182. on the rhs of assignment statement 'G'. This will never return
  11183. 'GIMPLE_INVALID_RHS'.
  11184. -- GIMPLE function: tree gimple_assign_lhs (gimple g)
  11185. Return the 'LHS' of assignment statement 'G'.
  11186. -- GIMPLE function: tree * gimple_assign_lhs_ptr (gimple g)
  11187. Return a pointer to the 'LHS' of assignment statement 'G'.
  11188. -- GIMPLE function: tree gimple_assign_rhs1 (gimple g)
  11189. Return the first operand on the 'RHS' of assignment statement 'G'.
  11190. -- GIMPLE function: tree * gimple_assign_rhs1_ptr (gimple g)
  11191. Return the address of the first operand on the 'RHS' of assignment
  11192. statement 'G'.
  11193. -- GIMPLE function: tree gimple_assign_rhs2 (gimple g)
  11194. Return the second operand on the 'RHS' of assignment statement 'G'.
  11195. -- GIMPLE function: tree * gimple_assign_rhs2_ptr (gimple g)
  11196. Return the address of the second operand on the 'RHS' of assignment
  11197. statement 'G'.
  11198. -- GIMPLE function: tree gimple_assign_rhs3 (gimple g)
  11199. Return the third operand on the 'RHS' of assignment statement 'G'.
  11200. -- GIMPLE function: tree * gimple_assign_rhs3_ptr (gimple g)
  11201. Return the address of the third operand on the 'RHS' of assignment
  11202. statement 'G'.
  11203. -- GIMPLE function: void gimple_assign_set_lhs (gimple g, tree lhs)
  11204. Set 'LHS' to be the 'LHS' operand of assignment statement 'G'.
  11205. -- GIMPLE function: void gimple_assign_set_rhs1 (gimple g, tree rhs)
  11206. Set 'RHS' to be the first operand on the 'RHS' of assignment
  11207. statement 'G'.
  11208. -- GIMPLE function: void gimple_assign_set_rhs2 (gimple g, tree rhs)
  11209. Set 'RHS' to be the second operand on the 'RHS' of assignment
  11210. statement 'G'.
  11211. -- GIMPLE function: void gimple_assign_set_rhs3 (gimple g, tree rhs)
  11212. Set 'RHS' to be the third operand on the 'RHS' of assignment
  11213. statement 'G'.
  11214. -- GIMPLE function: bool gimple_assign_cast_p (const_gimple s)
  11215. Return true if 'S' is a type-cast assignment.
  11216. 
  11217. File: gccint.info, Node: GIMPLE_BIND, Next: GIMPLE_CALL, Prev: GIMPLE_ASSIGN, Up: Tuple specific accessors
  11218. 12.8.3 'GIMPLE_BIND'
  11219. --------------------
  11220. -- GIMPLE function: gbind *gimple_build_bind (tree vars, gimple_seq
  11221. body)
  11222. Build a 'GIMPLE_BIND' statement with a list of variables in 'VARS'
  11223. and a body of statements in sequence 'BODY'.
  11224. -- GIMPLE function: tree gimple_bind_vars (const gbind *g)
  11225. Return the variables declared in the 'GIMPLE_BIND' statement 'G'.
  11226. -- GIMPLE function: void gimple_bind_set_vars (gbind *g, tree vars)
  11227. Set 'VARS' to be the set of variables declared in the 'GIMPLE_BIND'
  11228. statement 'G'.
  11229. -- GIMPLE function: void gimple_bind_append_vars (gbind *g, tree vars)
  11230. Append 'VARS' to the set of variables declared in the 'GIMPLE_BIND'
  11231. statement 'G'.
  11232. -- GIMPLE function: gimple_seq gimple_bind_body (gbind *g)
  11233. Return the GIMPLE sequence contained in the 'GIMPLE_BIND' statement
  11234. 'G'.
  11235. -- GIMPLE function: void gimple_bind_set_body (gbind *g, gimple_seq
  11236. seq)
  11237. Set 'SEQ' to be sequence contained in the 'GIMPLE_BIND' statement
  11238. 'G'.
  11239. -- GIMPLE function: void gimple_bind_add_stmt (gbind *gs, gimple stmt)
  11240. Append a statement to the end of a 'GIMPLE_BIND''s body.
  11241. -- GIMPLE function: void gimple_bind_add_seq (gbind *gs, gimple_seq
  11242. seq)
  11243. Append a sequence of statements to the end of a 'GIMPLE_BIND''s
  11244. body.
  11245. -- GIMPLE function: tree gimple_bind_block (const gbind *g)
  11246. Return the 'TREE_BLOCK' node associated with 'GIMPLE_BIND'
  11247. statement 'G'. This is analogous to the 'BIND_EXPR_BLOCK' field in
  11248. trees.
  11249. -- GIMPLE function: void gimple_bind_set_block (gbind *g, tree block)
  11250. Set 'BLOCK' to be the 'TREE_BLOCK' node associated with
  11251. 'GIMPLE_BIND' statement 'G'.
  11252. 
  11253. File: gccint.info, Node: GIMPLE_CALL, Next: GIMPLE_CATCH, Prev: GIMPLE_BIND, Up: Tuple specific accessors
  11254. 12.8.4 'GIMPLE_CALL'
  11255. --------------------
  11256. -- GIMPLE function: gcall *gimple_build_call (tree fn, unsigned nargs,
  11257. ...)
  11258. Build a 'GIMPLE_CALL' statement to function 'FN'. The argument
  11259. 'FN' must be either a 'FUNCTION_DECL' or a gimple call address as
  11260. determined by 'is_gimple_call_addr'. 'NARGS' are the number of
  11261. arguments. The rest of the arguments follow the argument 'NARGS',
  11262. and must be trees that are valid as rvalues in gimple (i.e., each
  11263. operand is validated with 'is_gimple_operand').
  11264. -- GIMPLE function: gcall *gimple_build_call_from_tree (tree call_expr,
  11265. tree fnptrtype)
  11266. Build a 'GIMPLE_CALL' from a 'CALL_EXPR' node. The arguments and
  11267. the function are taken from the expression directly. The type of
  11268. the 'GIMPLE_CALL' is set from the second parameter passed by a
  11269. caller. This routine assumes that 'call_expr' is already in GIMPLE
  11270. form. That is, its operands are GIMPLE values and the function
  11271. call needs no further simplification. All the call flags in
  11272. 'call_expr' are copied over to the new 'GIMPLE_CALL'.
  11273. -- GIMPLE function: gcall *gimple_build_call_vec (tree fn, 'vec<tree>'
  11274. args)
  11275. Identical to 'gimple_build_call' but the arguments are stored in a
  11276. 'vec<tree>'.
  11277. -- GIMPLE function: tree gimple_call_lhs (gimple g)
  11278. Return the 'LHS' of call statement 'G'.
  11279. -- GIMPLE function: tree * gimple_call_lhs_ptr (gimple g)
  11280. Return a pointer to the 'LHS' of call statement 'G'.
  11281. -- GIMPLE function: void gimple_call_set_lhs (gimple g, tree lhs)
  11282. Set 'LHS' to be the 'LHS' operand of call statement 'G'.
  11283. -- GIMPLE function: tree gimple_call_fn (gimple g)
  11284. Return the tree node representing the function called by call
  11285. statement 'G'.
  11286. -- GIMPLE function: void gimple_call_set_fn (gcall *g, tree fn)
  11287. Set 'FN' to be the function called by call statement 'G'. This has
  11288. to be a gimple value specifying the address of the called function.
  11289. -- GIMPLE function: tree gimple_call_fndecl (gimple g)
  11290. If a given 'GIMPLE_CALL''s callee is a 'FUNCTION_DECL', return it.
  11291. Otherwise return 'NULL'. This function is analogous to
  11292. 'get_callee_fndecl' in 'GENERIC'.
  11293. -- GIMPLE function: tree gimple_call_set_fndecl (gimple g, tree fndecl)
  11294. Set the called function to 'FNDECL'.
  11295. -- GIMPLE function: tree gimple_call_return_type (const gcall *g)
  11296. Return the type returned by call statement 'G'.
  11297. -- GIMPLE function: tree gimple_call_chain (gimple g)
  11298. Return the static chain for call statement 'G'.
  11299. -- GIMPLE function: void gimple_call_set_chain (gcall *g, tree chain)
  11300. Set 'CHAIN' to be the static chain for call statement 'G'.
  11301. -- GIMPLE function: unsigned gimple_call_num_args (gimple g)
  11302. Return the number of arguments used by call statement 'G'.
  11303. -- GIMPLE function: tree gimple_call_arg (gimple g, unsigned index)
  11304. Return the argument at position 'INDEX' for call statement 'G'.
  11305. The first argument is 0.
  11306. -- GIMPLE function: tree * gimple_call_arg_ptr (gimple g, unsigned
  11307. index)
  11308. Return a pointer to the argument at position 'INDEX' for call
  11309. statement 'G'.
  11310. -- GIMPLE function: void gimple_call_set_arg (gimple g, unsigned index,
  11311. tree arg)
  11312. Set 'ARG' to be the argument at position 'INDEX' for call statement
  11313. 'G'.
  11314. -- GIMPLE function: void gimple_call_set_tail (gcall *s)
  11315. Mark call statement 'S' as being a tail call (i.e., a call just
  11316. before the exit of a function). These calls are candidate for tail
  11317. call optimization.
  11318. -- GIMPLE function: bool gimple_call_tail_p (gcall *s)
  11319. Return true if 'GIMPLE_CALL' 'S' is marked as a tail call.
  11320. -- GIMPLE function: bool gimple_call_noreturn_p (gimple s)
  11321. Return true if 'S' is a noreturn call.
  11322. -- GIMPLE function: gimple gimple_call_copy_skip_args (gcall *stmt,
  11323. bitmap args_to_skip)
  11324. Build a 'GIMPLE_CALL' identical to 'STMT' but skipping the
  11325. arguments in the positions marked by the set 'ARGS_TO_SKIP'.
  11326. 
  11327. File: gccint.info, Node: GIMPLE_CATCH, Next: GIMPLE_COND, Prev: GIMPLE_CALL, Up: Tuple specific accessors
  11328. 12.8.5 'GIMPLE_CATCH'
  11329. ---------------------
  11330. -- GIMPLE function: gcatch *gimple_build_catch (tree types, gimple_seq
  11331. handler)
  11332. Build a 'GIMPLE_CATCH' statement. 'TYPES' are the tree types this
  11333. catch handles. 'HANDLER' is a sequence of statements with the code
  11334. for the handler.
  11335. -- GIMPLE function: tree gimple_catch_types (const gcatch *g)
  11336. Return the types handled by 'GIMPLE_CATCH' statement 'G'.
  11337. -- GIMPLE function: tree * gimple_catch_types_ptr (gcatch *g)
  11338. Return a pointer to the types handled by 'GIMPLE_CATCH' statement
  11339. 'G'.
  11340. -- GIMPLE function: gimple_seq gimple_catch_handler (gcatch *g)
  11341. Return the GIMPLE sequence representing the body of the handler of
  11342. 'GIMPLE_CATCH' statement 'G'.
  11343. -- GIMPLE function: void gimple_catch_set_types (gcatch *g, tree t)
  11344. Set 'T' to be the set of types handled by 'GIMPLE_CATCH' 'G'.
  11345. -- GIMPLE function: void gimple_catch_set_handler (gcatch *g,
  11346. gimple_seq handler)
  11347. Set 'HANDLER' to be the body of 'GIMPLE_CATCH' 'G'.
  11348. 
  11349. File: gccint.info, Node: GIMPLE_COND, Next: GIMPLE_DEBUG, Prev: GIMPLE_CATCH, Up: Tuple specific accessors
  11350. 12.8.6 'GIMPLE_COND'
  11351. --------------------
  11352. -- GIMPLE function: gcond *gimple_build_cond ( enum tree_code
  11353. pred_code, tree lhs, tree rhs, tree t_label, tree f_label)
  11354. Build a 'GIMPLE_COND' statement. 'A' 'GIMPLE_COND' statement
  11355. compares 'LHS' and 'RHS' and if the condition in 'PRED_CODE' is
  11356. true, jump to the label in 't_label', otherwise jump to the label
  11357. in 'f_label'. 'PRED_CODE' are relational operator tree codes like
  11358. 'EQ_EXPR', 'LT_EXPR', 'LE_EXPR', 'NE_EXPR', etc.
  11359. -- GIMPLE function: gcond *gimple_build_cond_from_tree (tree cond, tree
  11360. t_label, tree f_label)
  11361. Build a 'GIMPLE_COND' statement from the conditional expression
  11362. tree 'COND'. 'T_LABEL' and 'F_LABEL' are as in
  11363. 'gimple_build_cond'.
  11364. -- GIMPLE function: enum tree_code gimple_cond_code (gimple g)
  11365. Return the code of the predicate computed by conditional statement
  11366. 'G'.
  11367. -- GIMPLE function: void gimple_cond_set_code (gcond *g, enum tree_code
  11368. code)
  11369. Set 'CODE' to be the predicate code for the conditional statement
  11370. 'G'.
  11371. -- GIMPLE function: tree gimple_cond_lhs (gimple g)
  11372. Return the 'LHS' of the predicate computed by conditional statement
  11373. 'G'.
  11374. -- GIMPLE function: void gimple_cond_set_lhs (gcond *g, tree lhs)
  11375. Set 'LHS' to be the 'LHS' operand of the predicate computed by
  11376. conditional statement 'G'.
  11377. -- GIMPLE function: tree gimple_cond_rhs (gimple g)
  11378. Return the 'RHS' operand of the predicate computed by conditional
  11379. 'G'.
  11380. -- GIMPLE function: void gimple_cond_set_rhs (gcond *g, tree rhs)
  11381. Set 'RHS' to be the 'RHS' operand of the predicate computed by
  11382. conditional statement 'G'.
  11383. -- GIMPLE function: tree gimple_cond_true_label (const gcond *g)
  11384. Return the label used by conditional statement 'G' when its
  11385. predicate evaluates to true.
  11386. -- GIMPLE function: void gimple_cond_set_true_label (gcond *g, tree
  11387. label)
  11388. Set 'LABEL' to be the label used by conditional statement 'G' when
  11389. its predicate evaluates to true.
  11390. -- GIMPLE function: void gimple_cond_set_false_label (gcond *g, tree
  11391. label)
  11392. Set 'LABEL' to be the label used by conditional statement 'G' when
  11393. its predicate evaluates to false.
  11394. -- GIMPLE function: tree gimple_cond_false_label (const gcond *g)
  11395. Return the label used by conditional statement 'G' when its
  11396. predicate evaluates to false.
  11397. -- GIMPLE function: void gimple_cond_make_false (gcond *g)
  11398. Set the conditional 'COND_STMT' to be of the form 'if (1 == 0)'.
  11399. -- GIMPLE function: void gimple_cond_make_true (gcond *g)
  11400. Set the conditional 'COND_STMT' to be of the form 'if (1 == 1)'.
  11401. 
  11402. File: gccint.info, Node: GIMPLE_DEBUG, Next: GIMPLE_EH_FILTER, Prev: GIMPLE_COND, Up: Tuple specific accessors
  11403. 12.8.7 'GIMPLE_DEBUG'
  11404. ---------------------
  11405. -- GIMPLE function: gdebug *gimple_build_debug_bind (tree var, tree
  11406. value, gimple stmt)
  11407. Build a 'GIMPLE_DEBUG' statement with 'GIMPLE_DEBUG_BIND'
  11408. 'subcode'. The effect of this statement is to tell debug
  11409. information generation machinery that the value of user variable
  11410. 'var' is given by 'value' at that point, and to remain with that
  11411. value until 'var' runs out of scope, a dynamically-subsequent debug
  11412. bind statement overrides the binding, or conflicting values reach a
  11413. control flow merge point. Even if components of the 'value'
  11414. expression change afterwards, the variable is supposed to retain
  11415. the same value, though not necessarily the same location.
  11416. It is expected that 'var' be most often a tree for automatic user
  11417. variables ('VAR_DECL' or 'PARM_DECL') that satisfy the requirements
  11418. for gimple registers, but it may also be a tree for a scalarized
  11419. component of a user variable ('ARRAY_REF', 'COMPONENT_REF'), or a
  11420. debug temporary ('DEBUG_EXPR_DECL').
  11421. As for 'value', it can be an arbitrary tree expression, but it is
  11422. recommended that it be in a suitable form for a gimple assignment
  11423. 'RHS'. It is not expected that user variables that could appear as
  11424. 'var' ever appear in 'value', because in the latter we'd have their
  11425. 'SSA_NAME's instead, but even if they were not in SSA form, user
  11426. variables appearing in 'value' are to be regarded as part of the
  11427. executable code space, whereas those in 'var' are to be regarded as
  11428. part of the source code space. There is no way to refer to the
  11429. value bound to a user variable within a 'value' expression.
  11430. If 'value' is 'GIMPLE_DEBUG_BIND_NOVALUE', debug information
  11431. generation machinery is informed that the variable 'var' is
  11432. unbound, i.e., that its value is indeterminate, which sometimes
  11433. means it is really unavailable, and other times that the compiler
  11434. could not keep track of it.
  11435. Block and location information for the newly-created stmt are taken
  11436. from 'stmt', if given.
  11437. -- GIMPLE function: tree gimple_debug_bind_get_var (gimple stmt)
  11438. Return the user variable VAR that is bound at 'stmt'.
  11439. -- GIMPLE function: tree gimple_debug_bind_get_value (gimple stmt)
  11440. Return the value expression that is bound to a user variable at
  11441. 'stmt'.
  11442. -- GIMPLE function: tree * gimple_debug_bind_get_value_ptr (gimple
  11443. stmt)
  11444. Return a pointer to the value expression that is bound to a user
  11445. variable at 'stmt'.
  11446. -- GIMPLE function: void gimple_debug_bind_set_var (gimple stmt, tree
  11447. var)
  11448. Modify the user variable bound at 'stmt' to VAR.
  11449. -- GIMPLE function: void gimple_debug_bind_set_value (gimple stmt, tree
  11450. var)
  11451. Modify the value bound to the user variable bound at 'stmt' to
  11452. VALUE.
  11453. -- GIMPLE function: void gimple_debug_bind_reset_value (gimple stmt)
  11454. Modify the value bound to the user variable bound at 'stmt' so that
  11455. the variable becomes unbound.
  11456. -- GIMPLE function: bool gimple_debug_bind_has_value_p (gimple stmt)
  11457. Return 'TRUE' if 'stmt' binds a user variable to a value, and
  11458. 'FALSE' if it unbinds the variable.
  11459. -- GIMPLE function: gimple gimple_build_debug_begin_stmt (tree block,
  11460. location_t location)
  11461. Build a 'GIMPLE_DEBUG' statement with 'GIMPLE_DEBUG_BEGIN_STMT'
  11462. 'subcode'. The effect of this statement is to tell debug
  11463. information generation machinery that the user statement at the
  11464. given 'location' and 'block' starts at the point at which the
  11465. statement is inserted. The intent is that side effects (e.g.
  11466. variable bindings) of all prior user statements are observable, and
  11467. that none of the side effects of subsequent user statements are.
  11468. -- GIMPLE function: gimple gimple_build_debug_inline_entry (tree block,
  11469. location_t location)
  11470. Build a 'GIMPLE_DEBUG' statement with 'GIMPLE_DEBUG_INLINE_ENTRY'
  11471. 'subcode'. The effect of this statement is to tell debug
  11472. information generation machinery that a function call at 'location'
  11473. underwent inline substitution, that 'block' is the enclosing
  11474. lexical block created for the substitution, and that at the point
  11475. of the program in which the stmt is inserted, all parameters for
  11476. the inlined function are bound to the respective arguments, and
  11477. none of the side effects of its stmts are observable.
  11478. 
  11479. File: gccint.info, Node: GIMPLE_EH_FILTER, Next: GIMPLE_LABEL, Prev: GIMPLE_DEBUG, Up: Tuple specific accessors
  11480. 12.8.8 'GIMPLE_EH_FILTER'
  11481. -------------------------
  11482. -- GIMPLE function: geh_filter *gimple_build_eh_filter (tree types,
  11483. gimple_seq failure)
  11484. Build a 'GIMPLE_EH_FILTER' statement. 'TYPES' are the filter's
  11485. types. 'FAILURE' is a sequence with the filter's failure action.
  11486. -- GIMPLE function: tree gimple_eh_filter_types (gimple g)
  11487. Return the types handled by 'GIMPLE_EH_FILTER' statement 'G'.
  11488. -- GIMPLE function: tree * gimple_eh_filter_types_ptr (gimple g)
  11489. Return a pointer to the types handled by 'GIMPLE_EH_FILTER'
  11490. statement 'G'.
  11491. -- GIMPLE function: gimple_seq gimple_eh_filter_failure (gimple g)
  11492. Return the sequence of statement to execute when 'GIMPLE_EH_FILTER'
  11493. statement fails.
  11494. -- GIMPLE function: void gimple_eh_filter_set_types (geh_filter *g,
  11495. tree types)
  11496. Set 'TYPES' to be the set of types handled by 'GIMPLE_EH_FILTER'
  11497. 'G'.
  11498. -- GIMPLE function: void gimple_eh_filter_set_failure (geh_filter *g,
  11499. gimple_seq failure)
  11500. Set 'FAILURE' to be the sequence of statements to execute on
  11501. failure for 'GIMPLE_EH_FILTER' 'G'.
  11502. -- GIMPLE function: tree gimple_eh_must_not_throw_fndecl ( geh_mnt
  11503. *eh_mnt_stmt)
  11504. Get the function decl to be called by the MUST_NOT_THROW region.
  11505. -- GIMPLE function: void gimple_eh_must_not_throw_set_fndecl ( geh_mnt
  11506. *eh_mnt_stmt, tree decl)
  11507. Set the function decl to be called by GS to DECL.
  11508. 
  11509. File: gccint.info, Node: GIMPLE_LABEL, Next: GIMPLE_GOTO, Prev: GIMPLE_EH_FILTER, Up: Tuple specific accessors
  11510. 12.8.9 'GIMPLE_LABEL'
  11511. ---------------------
  11512. -- GIMPLE function: glabel *gimple_build_label (tree label)
  11513. Build a 'GIMPLE_LABEL' statement with corresponding to the tree
  11514. label, 'LABEL'.
  11515. -- GIMPLE function: tree gimple_label_label (const glabel *g)
  11516. Return the 'LABEL_DECL' node used by 'GIMPLE_LABEL' statement 'G'.
  11517. -- GIMPLE function: void gimple_label_set_label (glabel *g, tree label)
  11518. Set 'LABEL' to be the 'LABEL_DECL' node used by 'GIMPLE_LABEL'
  11519. statement 'G'.
  11520. 
  11521. File: gccint.info, Node: GIMPLE_GOTO, Next: GIMPLE_NOP, Prev: GIMPLE_LABEL, Up: Tuple specific accessors
  11522. 12.8.10 'GIMPLE_GOTO'
  11523. ---------------------
  11524. -- GIMPLE function: ggoto *gimple_build_goto (tree dest)
  11525. Build a 'GIMPLE_GOTO' statement to label 'DEST'.
  11526. -- GIMPLE function: tree gimple_goto_dest (gimple g)
  11527. Return the destination of the unconditional jump 'G'.
  11528. -- GIMPLE function: void gimple_goto_set_dest (ggoto *g, tree dest)
  11529. Set 'DEST' to be the destination of the unconditional jump 'G'.
  11530. 
  11531. File: gccint.info, Node: GIMPLE_NOP, Next: GIMPLE_OMP_ATOMIC_LOAD, Prev: GIMPLE_GOTO, Up: Tuple specific accessors
  11532. 12.8.11 'GIMPLE_NOP'
  11533. --------------------
  11534. -- GIMPLE function: gimple gimple_build_nop (void)
  11535. Build a 'GIMPLE_NOP' statement.
  11536. -- GIMPLE function: bool gimple_nop_p (gimple g)
  11537. Returns 'TRUE' if statement 'G' is a 'GIMPLE_NOP'.
  11538. 
  11539. File: gccint.info, Node: GIMPLE_OMP_ATOMIC_LOAD, Next: GIMPLE_OMP_ATOMIC_STORE, Prev: GIMPLE_NOP, Up: Tuple specific accessors
  11540. 12.8.12 'GIMPLE_OMP_ATOMIC_LOAD'
  11541. --------------------------------
  11542. -- GIMPLE function: gomp_atomic_load *gimple_build_omp_atomic_load (
  11543. tree lhs, tree rhs)
  11544. Build a 'GIMPLE_OMP_ATOMIC_LOAD' statement. 'LHS' is the left-hand
  11545. side of the assignment. 'RHS' is the right-hand side of the
  11546. assignment.
  11547. -- GIMPLE function: void gimple_omp_atomic_load_set_lhs (
  11548. gomp_atomic_load *g, tree lhs)
  11549. Set the 'LHS' of an atomic load.
  11550. -- GIMPLE function: tree gimple_omp_atomic_load_lhs ( const
  11551. gomp_atomic_load *g)
  11552. Get the 'LHS' of an atomic load.
  11553. -- GIMPLE function: void gimple_omp_atomic_load_set_rhs (
  11554. gomp_atomic_load *g, tree rhs)
  11555. Set the 'RHS' of an atomic set.
  11556. -- GIMPLE function: tree gimple_omp_atomic_load_rhs ( const
  11557. gomp_atomic_load *g)
  11558. Get the 'RHS' of an atomic set.
  11559. 
  11560. File: gccint.info, Node: GIMPLE_OMP_ATOMIC_STORE, Next: GIMPLE_OMP_CONTINUE, Prev: GIMPLE_OMP_ATOMIC_LOAD, Up: Tuple specific accessors
  11561. 12.8.13 'GIMPLE_OMP_ATOMIC_STORE'
  11562. ---------------------------------
  11563. -- GIMPLE function: gomp_atomic_store *gimple_build_omp_atomic_store (
  11564. tree val)
  11565. Build a 'GIMPLE_OMP_ATOMIC_STORE' statement. 'VAL' is the value to
  11566. be stored.
  11567. -- GIMPLE function: void gimple_omp_atomic_store_set_val (
  11568. gomp_atomic_store *g, tree val)
  11569. Set the value being stored in an atomic store.
  11570. -- GIMPLE function: tree gimple_omp_atomic_store_val ( const
  11571. gomp_atomic_store *g)
  11572. Return the value being stored in an atomic store.
  11573. 
  11574. File: gccint.info, Node: GIMPLE_OMP_CONTINUE, Next: GIMPLE_OMP_CRITICAL, Prev: GIMPLE_OMP_ATOMIC_STORE, Up: Tuple specific accessors
  11575. 12.8.14 'GIMPLE_OMP_CONTINUE'
  11576. -----------------------------
  11577. -- GIMPLE function: gomp_continue *gimple_build_omp_continue ( tree
  11578. control_def, tree control_use)
  11579. Build a 'GIMPLE_OMP_CONTINUE' statement. 'CONTROL_DEF' is the
  11580. definition of the control variable. 'CONTROL_USE' is the use of
  11581. the control variable.
  11582. -- GIMPLE function: tree gimple_omp_continue_control_def ( const
  11583. gomp_continue *s)
  11584. Return the definition of the control variable on a
  11585. 'GIMPLE_OMP_CONTINUE' in 'S'.
  11586. -- GIMPLE function: tree gimple_omp_continue_control_def_ptr (
  11587. gomp_continue *s)
  11588. Same as above, but return the pointer.
  11589. -- GIMPLE function: tree gimple_omp_continue_set_control_def (
  11590. gomp_continue *s)
  11591. Set the control variable definition for a 'GIMPLE_OMP_CONTINUE'
  11592. statement in 'S'.
  11593. -- GIMPLE function: tree gimple_omp_continue_control_use ( const
  11594. gomp_continue *s)
  11595. Return the use of the control variable on a 'GIMPLE_OMP_CONTINUE'
  11596. in 'S'.
  11597. -- GIMPLE function: tree gimple_omp_continue_control_use_ptr (
  11598. gomp_continue *s)
  11599. Same as above, but return the pointer.
  11600. -- GIMPLE function: tree gimple_omp_continue_set_control_use (
  11601. gomp_continue *s)
  11602. Set the control variable use for a 'GIMPLE_OMP_CONTINUE' statement
  11603. in 'S'.
  11604. 
  11605. File: gccint.info, Node: GIMPLE_OMP_CRITICAL, Next: GIMPLE_OMP_FOR, Prev: GIMPLE_OMP_CONTINUE, Up: Tuple specific accessors
  11606. 12.8.15 'GIMPLE_OMP_CRITICAL'
  11607. -----------------------------
  11608. -- GIMPLE function: gomp_critical *gimple_build_omp_critical (
  11609. gimple_seq body, tree name)
  11610. Build a 'GIMPLE_OMP_CRITICAL' statement. 'BODY' is the sequence of
  11611. statements for which only one thread can execute. 'NAME' is an
  11612. optional identifier for this critical block.
  11613. -- GIMPLE function: tree gimple_omp_critical_name ( const gomp_critical
  11614. *g)
  11615. Return the name associated with 'OMP_CRITICAL' statement 'G'.
  11616. -- GIMPLE function: tree * gimple_omp_critical_name_ptr ( gomp_critical
  11617. *g)
  11618. Return a pointer to the name associated with 'OMP' critical
  11619. statement 'G'.
  11620. -- GIMPLE function: void gimple_omp_critical_set_name ( gomp_critical
  11621. *g, tree name)
  11622. Set 'NAME' to be the name associated with 'OMP' critical statement
  11623. 'G'.
  11624. 
  11625. File: gccint.info, Node: GIMPLE_OMP_FOR, Next: GIMPLE_OMP_MASTER, Prev: GIMPLE_OMP_CRITICAL, Up: Tuple specific accessors
  11626. 12.8.16 'GIMPLE_OMP_FOR'
  11627. ------------------------
  11628. -- GIMPLE function: gomp_for *gimple_build_omp_for (gimple_seq body,
  11629. tree clauses, tree index, tree initial, tree final, tree incr,
  11630. gimple_seq pre_body, enum tree_code omp_for_cond)
  11631. Build a 'GIMPLE_OMP_FOR' statement. 'BODY' is sequence of
  11632. statements inside the for loop. 'CLAUSES', are any of the loop
  11633. construct's clauses. 'PRE_BODY' is the sequence of statements that
  11634. are loop invariant. 'INDEX' is the index variable. 'INITIAL' is
  11635. the initial value of 'INDEX'. 'FINAL' is final value of 'INDEX'.
  11636. OMP_FOR_COND is the predicate used to compare 'INDEX' and 'FINAL'.
  11637. 'INCR' is the increment expression.
  11638. -- GIMPLE function: tree gimple_omp_for_clauses (gimple g)
  11639. Return the clauses associated with 'OMP_FOR' 'G'.
  11640. -- GIMPLE function: tree * gimple_omp_for_clauses_ptr (gimple g)
  11641. Return a pointer to the 'OMP_FOR' 'G'.
  11642. -- GIMPLE function: void gimple_omp_for_set_clauses (gimple g, tree
  11643. clauses)
  11644. Set 'CLAUSES' to be the list of clauses associated with 'OMP_FOR'
  11645. 'G'.
  11646. -- GIMPLE function: tree gimple_omp_for_index (gimple g)
  11647. Return the index variable for 'OMP_FOR' 'G'.
  11648. -- GIMPLE function: tree * gimple_omp_for_index_ptr (gimple g)
  11649. Return a pointer to the index variable for 'OMP_FOR' 'G'.
  11650. -- GIMPLE function: void gimple_omp_for_set_index (gimple g, tree
  11651. index)
  11652. Set 'INDEX' to be the index variable for 'OMP_FOR' 'G'.
  11653. -- GIMPLE function: tree gimple_omp_for_initial (gimple g)
  11654. Return the initial value for 'OMP_FOR' 'G'.
  11655. -- GIMPLE function: tree * gimple_omp_for_initial_ptr (gimple g)
  11656. Return a pointer to the initial value for 'OMP_FOR' 'G'.
  11657. -- GIMPLE function: void gimple_omp_for_set_initial (gimple g, tree
  11658. initial)
  11659. Set 'INITIAL' to be the initial value for 'OMP_FOR' 'G'.
  11660. -- GIMPLE function: tree gimple_omp_for_final (gimple g)
  11661. Return the final value for 'OMP_FOR' 'G'.
  11662. -- GIMPLE function: tree * gimple_omp_for_final_ptr (gimple g)
  11663. turn a pointer to the final value for 'OMP_FOR' 'G'.
  11664. -- GIMPLE function: void gimple_omp_for_set_final (gimple g, tree
  11665. final)
  11666. Set 'FINAL' to be the final value for 'OMP_FOR' 'G'.
  11667. -- GIMPLE function: tree gimple_omp_for_incr (gimple g)
  11668. Return the increment value for 'OMP_FOR' 'G'.
  11669. -- GIMPLE function: tree * gimple_omp_for_incr_ptr (gimple g)
  11670. Return a pointer to the increment value for 'OMP_FOR' 'G'.
  11671. -- GIMPLE function: void gimple_omp_for_set_incr (gimple g, tree incr)
  11672. Set 'INCR' to be the increment value for 'OMP_FOR' 'G'.
  11673. -- GIMPLE function: gimple_seq gimple_omp_for_pre_body (gimple g)
  11674. Return the sequence of statements to execute before the 'OMP_FOR'
  11675. statement 'G' starts.
  11676. -- GIMPLE function: void gimple_omp_for_set_pre_body (gimple g,
  11677. gimple_seq pre_body)
  11678. Set 'PRE_BODY' to be the sequence of statements to execute before
  11679. the 'OMP_FOR' statement 'G' starts.
  11680. -- GIMPLE function: void gimple_omp_for_set_cond (gimple g, enum
  11681. tree_code cond)
  11682. Set 'COND' to be the condition code for 'OMP_FOR' 'G'.
  11683. -- GIMPLE function: enum tree_code gimple_omp_for_cond (gimple g)
  11684. Return the condition code associated with 'OMP_FOR' 'G'.
  11685. 
  11686. File: gccint.info, Node: GIMPLE_OMP_MASTER, Next: GIMPLE_OMP_ORDERED, Prev: GIMPLE_OMP_FOR, Up: Tuple specific accessors
  11687. 12.8.17 'GIMPLE_OMP_MASTER'
  11688. ---------------------------
  11689. -- GIMPLE function: gimple gimple_build_omp_master (gimple_seq body)
  11690. Build a 'GIMPLE_OMP_MASTER' statement. 'BODY' is the sequence of
  11691. statements to be executed by just the master.
  11692. 
  11693. File: gccint.info, Node: GIMPLE_OMP_ORDERED, Next: GIMPLE_OMP_PARALLEL, Prev: GIMPLE_OMP_MASTER, Up: Tuple specific accessors
  11694. 12.8.18 'GIMPLE_OMP_ORDERED'
  11695. ----------------------------
  11696. -- GIMPLE function: gimple gimple_build_omp_ordered (gimple_seq body)
  11697. Build a 'GIMPLE_OMP_ORDERED' statement.
  11698. 'BODY' is the sequence of statements inside a loop that will executed
  11699. in sequence.
  11700. 
  11701. File: gccint.info, Node: GIMPLE_OMP_PARALLEL, Next: GIMPLE_OMP_RETURN, Prev: GIMPLE_OMP_ORDERED, Up: Tuple specific accessors
  11702. 12.8.19 'GIMPLE_OMP_PARALLEL'
  11703. -----------------------------
  11704. -- GIMPLE function: gomp_parallel *gimple_build_omp_parallel
  11705. (gimple_seq body, tree clauses, tree child_fn, tree data_arg)
  11706. Build a 'GIMPLE_OMP_PARALLEL' statement.
  11707. 'BODY' is sequence of statements which are executed in parallel.
  11708. 'CLAUSES', are the 'OMP' parallel construct's clauses. 'CHILD_FN' is
  11709. the function created for the parallel threads to execute. 'DATA_ARG'
  11710. are the shared data argument(s).
  11711. -- GIMPLE function: bool gimple_omp_parallel_combined_p (gimple g)
  11712. Return true if 'OMP' parallel statement 'G' has the
  11713. 'GF_OMP_PARALLEL_COMBINED' flag set.
  11714. -- GIMPLE function: void gimple_omp_parallel_set_combined_p (gimple g)
  11715. Set the 'GF_OMP_PARALLEL_COMBINED' field in 'OMP' parallel
  11716. statement 'G'.
  11717. -- GIMPLE function: gimple_seq gimple_omp_body (gimple g)
  11718. Return the body for the 'OMP' statement 'G'.
  11719. -- GIMPLE function: void gimple_omp_set_body (gimple g, gimple_seq
  11720. body)
  11721. Set 'BODY' to be the body for the 'OMP' statement 'G'.
  11722. -- GIMPLE function: tree gimple_omp_parallel_clauses (gimple g)
  11723. Return the clauses associated with 'OMP_PARALLEL' 'G'.
  11724. -- GIMPLE function: tree * gimple_omp_parallel_clauses_ptr (
  11725. gomp_parallel *g)
  11726. Return a pointer to the clauses associated with 'OMP_PARALLEL' 'G'.
  11727. -- GIMPLE function: void gimple_omp_parallel_set_clauses (
  11728. gomp_parallel *g, tree clauses)
  11729. Set 'CLAUSES' to be the list of clauses associated with
  11730. 'OMP_PARALLEL' 'G'.
  11731. -- GIMPLE function: tree gimple_omp_parallel_child_fn ( const
  11732. gomp_parallel *g)
  11733. Return the child function used to hold the body of 'OMP_PARALLEL'
  11734. 'G'.
  11735. -- GIMPLE function: tree * gimple_omp_parallel_child_fn_ptr (
  11736. gomp_parallel *g)
  11737. Return a pointer to the child function used to hold the body of
  11738. 'OMP_PARALLEL' 'G'.
  11739. -- GIMPLE function: void gimple_omp_parallel_set_child_fn (
  11740. gomp_parallel *g, tree child_fn)
  11741. Set 'CHILD_FN' to be the child function for 'OMP_PARALLEL' 'G'.
  11742. -- GIMPLE function: tree gimple_omp_parallel_data_arg ( const
  11743. gomp_parallel *g)
  11744. Return the artificial argument used to send variables and values
  11745. from the parent to the children threads in 'OMP_PARALLEL' 'G'.
  11746. -- GIMPLE function: tree * gimple_omp_parallel_data_arg_ptr (
  11747. gomp_parallel *g)
  11748. Return a pointer to the data argument for 'OMP_PARALLEL' 'G'.
  11749. -- GIMPLE function: void gimple_omp_parallel_set_data_arg (
  11750. gomp_parallel *g, tree data_arg)
  11751. Set 'DATA_ARG' to be the data argument for 'OMP_PARALLEL' 'G'.
  11752. 
  11753. File: gccint.info, Node: GIMPLE_OMP_RETURN, Next: GIMPLE_OMP_SECTION, Prev: GIMPLE_OMP_PARALLEL, Up: Tuple specific accessors
  11754. 12.8.20 'GIMPLE_OMP_RETURN'
  11755. ---------------------------
  11756. -- GIMPLE function: gimple gimple_build_omp_return (bool wait_p)
  11757. Build a 'GIMPLE_OMP_RETURN' statement. 'WAIT_P' is true if this is
  11758. a non-waiting return.
  11759. -- GIMPLE function: void gimple_omp_return_set_nowait (gimple s)
  11760. Set the nowait flag on 'GIMPLE_OMP_RETURN' statement 'S'.
  11761. -- GIMPLE function: bool gimple_omp_return_nowait_p (gimple g)
  11762. Return true if 'OMP' return statement 'G' has the
  11763. 'GF_OMP_RETURN_NOWAIT' flag set.
  11764. 
  11765. File: gccint.info, Node: GIMPLE_OMP_SECTION, Next: GIMPLE_OMP_SECTIONS, Prev: GIMPLE_OMP_RETURN, Up: Tuple specific accessors
  11766. 12.8.21 'GIMPLE_OMP_SECTION'
  11767. ----------------------------
  11768. -- GIMPLE function: gimple gimple_build_omp_section (gimple_seq body)
  11769. Build a 'GIMPLE_OMP_SECTION' statement for a sections statement.
  11770. 'BODY' is the sequence of statements in the section.
  11771. -- GIMPLE function: bool gimple_omp_section_last_p (gimple g)
  11772. Return true if 'OMP' section statement 'G' has the
  11773. 'GF_OMP_SECTION_LAST' flag set.
  11774. -- GIMPLE function: void gimple_omp_section_set_last (gimple g)
  11775. Set the 'GF_OMP_SECTION_LAST' flag on 'G'.
  11776. 
  11777. File: gccint.info, Node: GIMPLE_OMP_SECTIONS, Next: GIMPLE_OMP_SINGLE, Prev: GIMPLE_OMP_SECTION, Up: Tuple specific accessors
  11778. 12.8.22 'GIMPLE_OMP_SECTIONS'
  11779. -----------------------------
  11780. -- GIMPLE function: gomp_sections *gimple_build_omp_sections (
  11781. gimple_seq body, tree clauses)
  11782. Build a 'GIMPLE_OMP_SECTIONS' statement. 'BODY' is a sequence of
  11783. section statements. 'CLAUSES' are any of the 'OMP' sections
  11784. construct's clauses: private, firstprivate, lastprivate, reduction,
  11785. and nowait.
  11786. -- GIMPLE function: gimple gimple_build_omp_sections_switch (void)
  11787. Build a 'GIMPLE_OMP_SECTIONS_SWITCH' statement.
  11788. -- GIMPLE function: tree gimple_omp_sections_control (gimple g)
  11789. Return the control variable associated with the
  11790. 'GIMPLE_OMP_SECTIONS' in 'G'.
  11791. -- GIMPLE function: tree * gimple_omp_sections_control_ptr (gimple g)
  11792. Return a pointer to the clauses associated with the
  11793. 'GIMPLE_OMP_SECTIONS' in 'G'.
  11794. -- GIMPLE function: void gimple_omp_sections_set_control (gimple g,
  11795. tree control)
  11796. Set 'CONTROL' to be the set of clauses associated with the
  11797. 'GIMPLE_OMP_SECTIONS' in 'G'.
  11798. -- GIMPLE function: tree gimple_omp_sections_clauses (gimple g)
  11799. Return the clauses associated with 'OMP_SECTIONS' 'G'.
  11800. -- GIMPLE function: tree * gimple_omp_sections_clauses_ptr (gimple g)
  11801. Return a pointer to the clauses associated with 'OMP_SECTIONS' 'G'.
  11802. -- GIMPLE function: void gimple_omp_sections_set_clauses (gimple g,
  11803. tree clauses)
  11804. Set 'CLAUSES' to be the set of clauses associated with
  11805. 'OMP_SECTIONS' 'G'.
  11806. 
  11807. File: gccint.info, Node: GIMPLE_OMP_SINGLE, Next: GIMPLE_PHI, Prev: GIMPLE_OMP_SECTIONS, Up: Tuple specific accessors
  11808. 12.8.23 'GIMPLE_OMP_SINGLE'
  11809. ---------------------------
  11810. -- GIMPLE function: gomp_single *gimple_build_omp_single ( gimple_seq
  11811. body, tree clauses)
  11812. Build a 'GIMPLE_OMP_SINGLE' statement. 'BODY' is the sequence of
  11813. statements that will be executed once. 'CLAUSES' are any of the
  11814. 'OMP' single construct's clauses: private, firstprivate,
  11815. copyprivate, nowait.
  11816. -- GIMPLE function: tree gimple_omp_single_clauses (gimple g)
  11817. Return the clauses associated with 'OMP_SINGLE' 'G'.
  11818. -- GIMPLE function: tree * gimple_omp_single_clauses_ptr (gimple g)
  11819. Return a pointer to the clauses associated with 'OMP_SINGLE' 'G'.
  11820. -- GIMPLE function: void gimple_omp_single_set_clauses ( gomp_single
  11821. *g, tree clauses)
  11822. Set 'CLAUSES' to be the clauses associated with 'OMP_SINGLE' 'G'.
  11823. 
  11824. File: gccint.info, Node: GIMPLE_PHI, Next: GIMPLE_RESX, Prev: GIMPLE_OMP_SINGLE, Up: Tuple specific accessors
  11825. 12.8.24 'GIMPLE_PHI'
  11826. --------------------
  11827. -- GIMPLE function: unsigned gimple_phi_capacity (gimple g)
  11828. Return the maximum number of arguments supported by 'GIMPLE_PHI'
  11829. 'G'.
  11830. -- GIMPLE function: unsigned gimple_phi_num_args (gimple g)
  11831. Return the number of arguments in 'GIMPLE_PHI' 'G'. This must
  11832. always be exactly the number of incoming edges for the basic block
  11833. holding 'G'.
  11834. -- GIMPLE function: tree gimple_phi_result (gimple g)
  11835. Return the 'SSA' name created by 'GIMPLE_PHI' 'G'.
  11836. -- GIMPLE function: tree * gimple_phi_result_ptr (gimple g)
  11837. Return a pointer to the 'SSA' name created by 'GIMPLE_PHI' 'G'.
  11838. -- GIMPLE function: void gimple_phi_set_result (gphi *g, tree result)
  11839. Set 'RESULT' to be the 'SSA' name created by 'GIMPLE_PHI' 'G'.
  11840. -- GIMPLE function: struct phi_arg_d * gimple_phi_arg (gimple g, index)
  11841. Return the 'PHI' argument corresponding to incoming edge 'INDEX'
  11842. for 'GIMPLE_PHI' 'G'.
  11843. -- GIMPLE function: void gimple_phi_set_arg (gphi *g, index, struct
  11844. phi_arg_d * phiarg)
  11845. Set 'PHIARG' to be the argument corresponding to incoming edge
  11846. 'INDEX' for 'GIMPLE_PHI' 'G'.
  11847. 
  11848. File: gccint.info, Node: GIMPLE_RESX, Next: GIMPLE_RETURN, Prev: GIMPLE_PHI, Up: Tuple specific accessors
  11849. 12.8.25 'GIMPLE_RESX'
  11850. ---------------------
  11851. -- GIMPLE function: gresx *gimple_build_resx (int region)
  11852. Build a 'GIMPLE_RESX' statement which is a statement. This
  11853. statement is a placeholder for _Unwind_Resume before we know if a
  11854. function call or a branch is needed. 'REGION' is the exception
  11855. region from which control is flowing.
  11856. -- GIMPLE function: int gimple_resx_region (const gresx *g)
  11857. Return the region number for 'GIMPLE_RESX' 'G'.
  11858. -- GIMPLE function: void gimple_resx_set_region (gresx *g, int region)
  11859. Set 'REGION' to be the region number for 'GIMPLE_RESX' 'G'.
  11860. 
  11861. File: gccint.info, Node: GIMPLE_RETURN, Next: GIMPLE_SWITCH, Prev: GIMPLE_RESX, Up: Tuple specific accessors
  11862. 12.8.26 'GIMPLE_RETURN'
  11863. -----------------------
  11864. -- GIMPLE function: greturn *gimple_build_return (tree retval)
  11865. Build a 'GIMPLE_RETURN' statement whose return value is retval.
  11866. -- GIMPLE function: tree gimple_return_retval (const greturn *g)
  11867. Return the return value for 'GIMPLE_RETURN' 'G'.
  11868. -- GIMPLE function: void gimple_return_set_retval (greturn *g, tree
  11869. retval)
  11870. Set 'RETVAL' to be the return value for 'GIMPLE_RETURN' 'G'.
  11871. 
  11872. File: gccint.info, Node: GIMPLE_SWITCH, Next: GIMPLE_TRY, Prev: GIMPLE_RETURN, Up: Tuple specific accessors
  11873. 12.8.27 'GIMPLE_SWITCH'
  11874. -----------------------
  11875. -- GIMPLE function: gswitch *gimple_build_switch (tree index, tree
  11876. default_label, 'vec'<tree> *args)
  11877. Build a 'GIMPLE_SWITCH' statement. 'INDEX' is the index variable
  11878. to switch on, and 'DEFAULT_LABEL' represents the default label.
  11879. 'ARGS' is a vector of 'CASE_LABEL_EXPR' trees that contain the
  11880. non-default case labels. Each label is a tree of code
  11881. 'CASE_LABEL_EXPR'.
  11882. -- GIMPLE function: unsigned gimple_switch_num_labels ( const gswitch
  11883. *g)
  11884. Return the number of labels associated with the switch statement
  11885. 'G'.
  11886. -- GIMPLE function: void gimple_switch_set_num_labels (gswitch *g,
  11887. unsigned nlabels)
  11888. Set 'NLABELS' to be the number of labels for the switch statement
  11889. 'G'.
  11890. -- GIMPLE function: tree gimple_switch_index (const gswitch *g)
  11891. Return the index variable used by the switch statement 'G'.
  11892. -- GIMPLE function: void gimple_switch_set_index (gswitch *g, tree
  11893. index)
  11894. Set 'INDEX' to be the index variable for switch statement 'G'.
  11895. -- GIMPLE function: tree gimple_switch_label (const gswitch *g,
  11896. unsigned index)
  11897. Return the label numbered 'INDEX'. The default label is 0,
  11898. followed by any labels in a switch statement.
  11899. -- GIMPLE function: void gimple_switch_set_label (gswitch *g, unsigned
  11900. index, tree label)
  11901. Set the label number 'INDEX' to 'LABEL'. 0 is always the default
  11902. label.
  11903. -- GIMPLE function: tree gimple_switch_default_label ( const gswitch
  11904. *g)
  11905. Return the default label for a switch statement.
  11906. -- GIMPLE function: void gimple_switch_set_default_label (gswitch *g,
  11907. tree label)
  11908. Set the default label for a switch statement.
  11909. 
  11910. File: gccint.info, Node: GIMPLE_TRY, Next: GIMPLE_WITH_CLEANUP_EXPR, Prev: GIMPLE_SWITCH, Up: Tuple specific accessors
  11911. 12.8.28 'GIMPLE_TRY'
  11912. --------------------
  11913. -- GIMPLE function: gtry *gimple_build_try (gimple_seq eval, gimple_seq
  11914. cleanup, unsigned int kind)
  11915. Build a 'GIMPLE_TRY' statement. 'EVAL' is a sequence with the
  11916. expression to evaluate. 'CLEANUP' is a sequence of statements to
  11917. run at clean-up time. 'KIND' is the enumeration value
  11918. 'GIMPLE_TRY_CATCH' if this statement denotes a try/catch construct
  11919. or 'GIMPLE_TRY_FINALLY' if this statement denotes a try/finally
  11920. construct.
  11921. -- GIMPLE function: enum gimple_try_flags gimple_try_kind (gimple g)
  11922. Return the kind of try block represented by 'GIMPLE_TRY' 'G'. This
  11923. is either 'GIMPLE_TRY_CATCH' or 'GIMPLE_TRY_FINALLY'.
  11924. -- GIMPLE function: bool gimple_try_catch_is_cleanup (gimple g)
  11925. Return the 'GIMPLE_TRY_CATCH_IS_CLEANUP' flag.
  11926. -- GIMPLE function: gimple_seq gimple_try_eval (gimple g)
  11927. Return the sequence of statements used as the body for 'GIMPLE_TRY'
  11928. 'G'.
  11929. -- GIMPLE function: gimple_seq gimple_try_cleanup (gimple g)
  11930. Return the sequence of statements used as the cleanup body for
  11931. 'GIMPLE_TRY' 'G'.
  11932. -- GIMPLE function: void gimple_try_set_catch_is_cleanup (gimple g,
  11933. bool catch_is_cleanup)
  11934. Set the 'GIMPLE_TRY_CATCH_IS_CLEANUP' flag.
  11935. -- GIMPLE function: void gimple_try_set_eval (gtry *g, gimple_seq eval)
  11936. Set 'EVAL' to be the sequence of statements to use as the body for
  11937. 'GIMPLE_TRY' 'G'.
  11938. -- GIMPLE function: void gimple_try_set_cleanup (gtry *g, gimple_seq
  11939. cleanup)
  11940. Set 'CLEANUP' to be the sequence of statements to use as the
  11941. cleanup body for 'GIMPLE_TRY' 'G'.
  11942. 
  11943. File: gccint.info, Node: GIMPLE_WITH_CLEANUP_EXPR, Prev: GIMPLE_TRY, Up: Tuple specific accessors
  11944. 12.8.29 'GIMPLE_WITH_CLEANUP_EXPR'
  11945. ----------------------------------
  11946. -- GIMPLE function: gimple gimple_build_wce (gimple_seq cleanup)
  11947. Build a 'GIMPLE_WITH_CLEANUP_EXPR' statement. 'CLEANUP' is the
  11948. clean-up expression.
  11949. -- GIMPLE function: gimple_seq gimple_wce_cleanup (gimple g)
  11950. Return the cleanup sequence for cleanup statement 'G'.
  11951. -- GIMPLE function: void gimple_wce_set_cleanup (gimple g, gimple_seq
  11952. cleanup)
  11953. Set 'CLEANUP' to be the cleanup sequence for 'G'.
  11954. -- GIMPLE function: bool gimple_wce_cleanup_eh_only (gimple g)
  11955. Return the 'CLEANUP_EH_ONLY' flag for a 'WCE' tuple.
  11956. -- GIMPLE function: void gimple_wce_set_cleanup_eh_only (gimple g, bool
  11957. eh_only_p)
  11958. Set the 'CLEANUP_EH_ONLY' flag for a 'WCE' tuple.
  11959. 
  11960. File: gccint.info, Node: GIMPLE sequences, Next: Sequence iterators, Prev: Tuple specific accessors, Up: GIMPLE
  11961. 12.9 GIMPLE sequences
  11962. =====================
  11963. GIMPLE sequences are the tuple equivalent of 'STATEMENT_LIST''s used in
  11964. 'GENERIC'. They are used to chain statements together, and when used in
  11965. conjunction with sequence iterators, provide a framework for iterating
  11966. through statements.
  11967. GIMPLE sequences are of type struct 'gimple_sequence', but are more
  11968. commonly passed by reference to functions dealing with sequences. The
  11969. type for a sequence pointer is 'gimple_seq' which is the same as struct
  11970. 'gimple_sequence' *. When declaring a local sequence, you can define a
  11971. local variable of type struct 'gimple_sequence'. When declaring a
  11972. sequence allocated on the garbage collected heap, use the function
  11973. 'gimple_seq_alloc' documented below.
  11974. There are convenience functions for iterating through sequences in the
  11975. section entitled Sequence Iterators.
  11976. Below is a list of functions to manipulate and query sequences.
  11977. -- GIMPLE function: void gimple_seq_add_stmt (gimple_seq *seq, gimple
  11978. g)
  11979. Link a gimple statement to the end of the sequence *'SEQ' if 'G' is
  11980. not 'NULL'. If *'SEQ' is 'NULL', allocate a sequence before
  11981. linking.
  11982. -- GIMPLE function: void gimple_seq_add_seq (gimple_seq *dest,
  11983. gimple_seq src)
  11984. Append sequence 'SRC' to the end of sequence *'DEST' if 'SRC' is
  11985. not 'NULL'. If *'DEST' is 'NULL', allocate a new sequence before
  11986. appending.
  11987. -- GIMPLE function: gimple_seq gimple_seq_deep_copy (gimple_seq src)
  11988. Perform a deep copy of sequence 'SRC' and return the result.
  11989. -- GIMPLE function: gimple_seq gimple_seq_reverse (gimple_seq seq)
  11990. Reverse the order of the statements in the sequence 'SEQ'. Return
  11991. 'SEQ'.
  11992. -- GIMPLE function: gimple gimple_seq_first (gimple_seq s)
  11993. Return the first statement in sequence 'S'.
  11994. -- GIMPLE function: gimple gimple_seq_last (gimple_seq s)
  11995. Return the last statement in sequence 'S'.
  11996. -- GIMPLE function: void gimple_seq_set_last (gimple_seq s, gimple
  11997. last)
  11998. Set the last statement in sequence 'S' to the statement in 'LAST'.
  11999. -- GIMPLE function: void gimple_seq_set_first (gimple_seq s, gimple
  12000. first)
  12001. Set the first statement in sequence 'S' to the statement in
  12002. 'FIRST'.
  12003. -- GIMPLE function: void gimple_seq_init (gimple_seq s)
  12004. Initialize sequence 'S' to an empty sequence.
  12005. -- GIMPLE function: gimple_seq gimple_seq_alloc (void)
  12006. Allocate a new sequence in the garbage collected store and return
  12007. it.
  12008. -- GIMPLE function: void gimple_seq_copy (gimple_seq dest, gimple_seq
  12009. src)
  12010. Copy the sequence 'SRC' into the sequence 'DEST'.
  12011. -- GIMPLE function: bool gimple_seq_empty_p (gimple_seq s)
  12012. Return true if the sequence 'S' is empty.
  12013. -- GIMPLE function: gimple_seq bb_seq (basic_block bb)
  12014. Returns the sequence of statements in 'BB'.
  12015. -- GIMPLE function: void set_bb_seq (basic_block bb, gimple_seq seq)
  12016. Sets the sequence of statements in 'BB' to 'SEQ'.
  12017. -- GIMPLE function: bool gimple_seq_singleton_p (gimple_seq seq)
  12018. Determine whether 'SEQ' contains exactly one statement.
  12019. 
  12020. File: gccint.info, Node: Sequence iterators, Next: Adding a new GIMPLE statement code, Prev: GIMPLE sequences, Up: GIMPLE
  12021. 12.10 Sequence iterators
  12022. ========================
  12023. Sequence iterators are convenience constructs for iterating through
  12024. statements in a sequence. Given a sequence 'SEQ', here is a typical use
  12025. of gimple sequence iterators:
  12026. gimple_stmt_iterator gsi;
  12027. for (gsi = gsi_start (seq); !gsi_end_p (gsi); gsi_next (&gsi))
  12028. {
  12029. gimple g = gsi_stmt (gsi);
  12030. /* Do something with gimple statement G. */
  12031. }
  12032. Backward iterations are possible:
  12033. for (gsi = gsi_last (seq); !gsi_end_p (gsi); gsi_prev (&gsi))
  12034. Forward and backward iterations on basic blocks are possible with
  12035. 'gsi_start_bb' and 'gsi_last_bb'.
  12036. In the documentation below we sometimes refer to enum
  12037. 'gsi_iterator_update'. The valid options for this enumeration are:
  12038. * 'GSI_NEW_STMT' Only valid when a single statement is added. Move
  12039. the iterator to it.
  12040. * 'GSI_SAME_STMT' Leave the iterator at the same statement.
  12041. * 'GSI_CONTINUE_LINKING' Move iterator to whatever position is
  12042. suitable for linking other statements in the same direction.
  12043. Below is a list of the functions used to manipulate and use statement
  12044. iterators.
  12045. -- GIMPLE function: gimple_stmt_iterator gsi_start (gimple_seq seq)
  12046. Return a new iterator pointing to the sequence 'SEQ''s first
  12047. statement. If 'SEQ' is empty, the iterator's basic block is
  12048. 'NULL'. Use 'gsi_start_bb' instead when the iterator needs to
  12049. always have the correct basic block set.
  12050. -- GIMPLE function: gimple_stmt_iterator gsi_start_bb (basic_block bb)
  12051. Return a new iterator pointing to the first statement in basic
  12052. block 'BB'.
  12053. -- GIMPLE function: gimple_stmt_iterator gsi_last (gimple_seq seq)
  12054. Return a new iterator initially pointing to the last statement of
  12055. sequence 'SEQ'. If 'SEQ' is empty, the iterator's basic block is
  12056. 'NULL'. Use 'gsi_last_bb' instead when the iterator needs to
  12057. always have the correct basic block set.
  12058. -- GIMPLE function: gimple_stmt_iterator gsi_last_bb (basic_block bb)
  12059. Return a new iterator pointing to the last statement in basic block
  12060. 'BB'.
  12061. -- GIMPLE function: bool gsi_end_p (gimple_stmt_iterator i)
  12062. Return 'TRUE' if at the end of 'I'.
  12063. -- GIMPLE function: bool gsi_one_before_end_p (gimple_stmt_iterator i)
  12064. Return 'TRUE' if we're one statement before the end of 'I'.
  12065. -- GIMPLE function: void gsi_next (gimple_stmt_iterator *i)
  12066. Advance the iterator to the next gimple statement.
  12067. -- GIMPLE function: void gsi_prev (gimple_stmt_iterator *i)
  12068. Advance the iterator to the previous gimple statement.
  12069. -- GIMPLE function: gimple gsi_stmt (gimple_stmt_iterator i)
  12070. Return the current stmt.
  12071. -- GIMPLE function: gimple_stmt_iterator gsi_after_labels (basic_block
  12072. bb)
  12073. Return a block statement iterator that points to the first
  12074. non-label statement in block 'BB'.
  12075. -- GIMPLE function: gimple * gsi_stmt_ptr (gimple_stmt_iterator *i)
  12076. Return a pointer to the current stmt.
  12077. -- GIMPLE function: basic_block gsi_bb (gimple_stmt_iterator i)
  12078. Return the basic block associated with this iterator.
  12079. -- GIMPLE function: gimple_seq gsi_seq (gimple_stmt_iterator i)
  12080. Return the sequence associated with this iterator.
  12081. -- GIMPLE function: void gsi_remove (gimple_stmt_iterator *i, bool
  12082. remove_eh_info)
  12083. Remove the current stmt from the sequence. The iterator is updated
  12084. to point to the next statement. When 'REMOVE_EH_INFO' is true we
  12085. remove the statement pointed to by iterator 'I' from the 'EH'
  12086. tables. Otherwise we do not modify the 'EH' tables. Generally,
  12087. 'REMOVE_EH_INFO' should be true when the statement is going to be
  12088. removed from the 'IL' and not reinserted elsewhere.
  12089. -- GIMPLE function: void gsi_link_seq_before (gimple_stmt_iterator *i,
  12090. gimple_seq seq, enum gsi_iterator_update mode)
  12091. Links the sequence of statements 'SEQ' before the statement pointed
  12092. by iterator 'I'. 'MODE' indicates what to do with the iterator
  12093. after insertion (see 'enum gsi_iterator_update' above).
  12094. -- GIMPLE function: void gsi_link_before (gimple_stmt_iterator *i,
  12095. gimple g, enum gsi_iterator_update mode)
  12096. Links statement 'G' before the statement pointed-to by iterator
  12097. 'I'. Updates iterator 'I' according to 'MODE'.
  12098. -- GIMPLE function: void gsi_link_seq_after (gimple_stmt_iterator *i,
  12099. gimple_seq seq, enum gsi_iterator_update mode)
  12100. Links sequence 'SEQ' after the statement pointed-to by iterator
  12101. 'I'. 'MODE' is as in 'gsi_insert_after'.
  12102. -- GIMPLE function: void gsi_link_after (gimple_stmt_iterator *i,
  12103. gimple g, enum gsi_iterator_update mode)
  12104. Links statement 'G' after the statement pointed-to by iterator 'I'.
  12105. 'MODE' is as in 'gsi_insert_after'.
  12106. -- GIMPLE function: gimple_seq gsi_split_seq_after
  12107. (gimple_stmt_iterator i)
  12108. Move all statements in the sequence after 'I' to a new sequence.
  12109. Return this new sequence.
  12110. -- GIMPLE function: gimple_seq gsi_split_seq_before
  12111. (gimple_stmt_iterator *i)
  12112. Move all statements in the sequence before 'I' to a new sequence.
  12113. Return this new sequence.
  12114. -- GIMPLE function: void gsi_replace (gimple_stmt_iterator *i, gimple
  12115. stmt, bool update_eh_info)
  12116. Replace the statement pointed-to by 'I' to 'STMT'. If
  12117. 'UPDATE_EH_INFO' is true, the exception handling information of the
  12118. original statement is moved to the new statement.
  12119. -- GIMPLE function: void gsi_insert_before (gimple_stmt_iterator *i,
  12120. gimple stmt, enum gsi_iterator_update mode)
  12121. Insert statement 'STMT' before the statement pointed-to by iterator
  12122. 'I', update 'STMT''s basic block and scan it for new operands.
  12123. 'MODE' specifies how to update iterator 'I' after insertion (see
  12124. enum 'gsi_iterator_update').
  12125. -- GIMPLE function: void gsi_insert_seq_before (gimple_stmt_iterator
  12126. *i, gimple_seq seq, enum gsi_iterator_update mode)
  12127. Like 'gsi_insert_before', but for all the statements in 'SEQ'.
  12128. -- GIMPLE function: void gsi_insert_after (gimple_stmt_iterator *i,
  12129. gimple stmt, enum gsi_iterator_update mode)
  12130. Insert statement 'STMT' after the statement pointed-to by iterator
  12131. 'I', update 'STMT''s basic block and scan it for new operands.
  12132. 'MODE' specifies how to update iterator 'I' after insertion (see
  12133. enum 'gsi_iterator_update').
  12134. -- GIMPLE function: void gsi_insert_seq_after (gimple_stmt_iterator *i,
  12135. gimple_seq seq, enum gsi_iterator_update mode)
  12136. Like 'gsi_insert_after', but for all the statements in 'SEQ'.
  12137. -- GIMPLE function: gimple_stmt_iterator gsi_for_stmt (gimple stmt)
  12138. Finds iterator for 'STMT'.
  12139. -- GIMPLE function: void gsi_move_after (gimple_stmt_iterator *from,
  12140. gimple_stmt_iterator *to)
  12141. Move the statement at 'FROM' so it comes right after the statement
  12142. at 'TO'.
  12143. -- GIMPLE function: void gsi_move_before (gimple_stmt_iterator *from,
  12144. gimple_stmt_iterator *to)
  12145. Move the statement at 'FROM' so it comes right before the statement
  12146. at 'TO'.
  12147. -- GIMPLE function: void gsi_move_to_bb_end (gimple_stmt_iterator
  12148. *from, basic_block bb)
  12149. Move the statement at 'FROM' to the end of basic block 'BB'.
  12150. -- GIMPLE function: void gsi_insert_on_edge (edge e, gimple stmt)
  12151. Add 'STMT' to the pending list of edge 'E'. No actual insertion is
  12152. made until a call to 'gsi_commit_edge_inserts'() is made.
  12153. -- GIMPLE function: void gsi_insert_seq_on_edge (edge e, gimple_seq
  12154. seq)
  12155. Add the sequence of statements in 'SEQ' to the pending list of edge
  12156. 'E'. No actual insertion is made until a call to
  12157. 'gsi_commit_edge_inserts'() is made.
  12158. -- GIMPLE function: basic_block gsi_insert_on_edge_immediate (edge e,
  12159. gimple stmt)
  12160. Similar to 'gsi_insert_on_edge'+'gsi_commit_edge_inserts'. If a
  12161. new block has to be created, it is returned.
  12162. -- GIMPLE function: void gsi_commit_one_edge_insert (edge e,
  12163. basic_block *new_bb)
  12164. Commit insertions pending at edge 'E'. If a new block is created,
  12165. set 'NEW_BB' to this block, otherwise set it to 'NULL'.
  12166. -- GIMPLE function: void gsi_commit_edge_inserts (void)
  12167. This routine will commit all pending edge insertions, creating any
  12168. new basic blocks which are necessary.
  12169. 
  12170. File: gccint.info, Node: Adding a new GIMPLE statement code, Next: Statement and operand traversals, Prev: Sequence iterators, Up: GIMPLE
  12171. 12.11 Adding a new GIMPLE statement code
  12172. ========================================
  12173. The first step in adding a new GIMPLE statement code, is modifying the
  12174. file 'gimple.def', which contains all the GIMPLE codes. Then you must
  12175. add a corresponding gimple subclass located in 'gimple.h'. This in
  12176. turn, will require you to add a corresponding 'GTY' tag in
  12177. 'gsstruct.def', and code to handle this tag in 'gss_for_code' which is
  12178. located in 'gimple.c'.
  12179. In order for the garbage collector to know the size of the structure
  12180. you created in 'gimple.h', you need to add a case to handle your new
  12181. GIMPLE statement in 'gimple_size' which is located in 'gimple.c'.
  12182. You will probably want to create a function to build the new gimple
  12183. statement in 'gimple.c'. The function should be called
  12184. 'gimple_build_NEW-TUPLE-NAME', and should return the new tuple as a
  12185. pointer to the appropriate gimple subclass.
  12186. If your new statement requires accessors for any members or operands it
  12187. may have, put simple inline accessors in 'gimple.h' and any non-trivial
  12188. accessors in 'gimple.c' with a corresponding prototype in 'gimple.h'.
  12189. You should add the new statement subclass to the class hierarchy
  12190. diagram in 'gimple.texi'.
  12191. 
  12192. File: gccint.info, Node: Statement and operand traversals, Prev: Adding a new GIMPLE statement code, Up: GIMPLE
  12193. 12.12 Statement and operand traversals
  12194. ======================================
  12195. There are two functions available for walking statements and sequences:
  12196. 'walk_gimple_stmt' and 'walk_gimple_seq', accordingly, and a third
  12197. function for walking the operands in a statement: 'walk_gimple_op'.
  12198. -- GIMPLE function: tree walk_gimple_stmt (gimple_stmt_iterator *gsi,
  12199. walk_stmt_fn callback_stmt, walk_tree_fn callback_op, struct
  12200. walk_stmt_info *wi)
  12201. This function is used to walk the current statement in 'GSI',
  12202. optionally using traversal state stored in 'WI'. If 'WI' is
  12203. 'NULL', no state is kept during the traversal.
  12204. The callback 'CALLBACK_STMT' is called. If 'CALLBACK_STMT' returns
  12205. true, it means that the callback function has handled all the
  12206. operands of the statement and it is not necessary to walk its
  12207. operands.
  12208. If 'CALLBACK_STMT' is 'NULL' or it returns false, 'CALLBACK_OP' is
  12209. called on each operand of the statement via 'walk_gimple_op'. If
  12210. 'walk_gimple_op' returns non-'NULL' for any operand, the remaining
  12211. operands are not scanned.
  12212. The return value is that returned by the last call to
  12213. 'walk_gimple_op', or 'NULL_TREE' if no 'CALLBACK_OP' is specified.
  12214. -- GIMPLE function: tree walk_gimple_op (gimple stmt, walk_tree_fn
  12215. callback_op, struct walk_stmt_info *wi)
  12216. Use this function to walk the operands of statement 'STMT'. Every
  12217. operand is walked via 'walk_tree' with optional state information
  12218. in 'WI'.
  12219. 'CALLBACK_OP' is called on each operand of 'STMT' via 'walk_tree'.
  12220. Additional parameters to 'walk_tree' must be stored in 'WI'. For
  12221. each operand 'OP', 'walk_tree' is called as:
  12222. walk_tree (&OP, CALLBACK_OP, WI, PSET)
  12223. If 'CALLBACK_OP' returns non-'NULL' for an operand, the remaining
  12224. operands are not scanned. The return value is that returned by the
  12225. last call to 'walk_tree', or 'NULL_TREE' if no 'CALLBACK_OP' is
  12226. specified.
  12227. -- GIMPLE function: tree walk_gimple_seq (gimple_seq seq, walk_stmt_fn
  12228. callback_stmt, walk_tree_fn callback_op, struct walk_stmt_info
  12229. *wi)
  12230. This function walks all the statements in the sequence 'SEQ'
  12231. calling 'walk_gimple_stmt' on each one. 'WI' is as in
  12232. 'walk_gimple_stmt'. If 'walk_gimple_stmt' returns non-'NULL', the
  12233. walk is stopped and the value returned. Otherwise, all the
  12234. statements are walked and 'NULL_TREE' returned.
  12235. 
  12236. File: gccint.info, Node: Tree SSA, Next: RTL, Prev: GIMPLE, Up: Top
  12237. 13 Analysis and Optimization of GIMPLE tuples
  12238. *********************************************
  12239. GCC uses three main intermediate languages to represent the program
  12240. during compilation: GENERIC, GIMPLE and RTL. GENERIC is a
  12241. language-independent representation generated by each front end. It is
  12242. used to serve as an interface between the parser and optimizer. GENERIC
  12243. is a common representation that is able to represent programs written in
  12244. all the languages supported by GCC.
  12245. GIMPLE and RTL are used to optimize the program. GIMPLE is used for
  12246. target and language independent optimizations (e.g., inlining, constant
  12247. propagation, tail call elimination, redundancy elimination, etc). Much
  12248. like GENERIC, GIMPLE is a language independent, tree based
  12249. representation. However, it differs from GENERIC in that the GIMPLE
  12250. grammar is more restrictive: expressions contain no more than 3 operands
  12251. (except function calls), it has no control flow structures and
  12252. expressions with side effects are only allowed on the right hand side of
  12253. assignments. See the chapter describing GENERIC and GIMPLE for more
  12254. details.
  12255. This chapter describes the data structures and functions used in the
  12256. GIMPLE optimizers (also known as "tree optimizers" or "middle end"). In
  12257. particular, it focuses on all the macros, data structures, functions and
  12258. programming constructs needed to implement optimization passes for
  12259. GIMPLE.
  12260. * Menu:
  12261. * Annotations:: Attributes for variables.
  12262. * SSA Operands:: SSA names referenced by GIMPLE statements.
  12263. * SSA:: Static Single Assignment representation.
  12264. * Alias analysis:: Representing aliased loads and stores.
  12265. * Memory model:: Memory model used by the middle-end.
  12266. 
  12267. File: gccint.info, Node: Annotations, Next: SSA Operands, Up: Tree SSA
  12268. 13.1 Annotations
  12269. ================
  12270. The optimizers need to associate attributes with variables during the
  12271. optimization process. For instance, we need to know whether a variable
  12272. has aliases. All these attributes are stored in data structures called
  12273. annotations which are then linked to the field 'ann' in 'struct
  12274. tree_common'.
  12275. 
  12276. File: gccint.info, Node: SSA Operands, Next: SSA, Prev: Annotations, Up: Tree SSA
  12277. 13.2 SSA Operands
  12278. =================
  12279. Almost every GIMPLE statement will contain a reference to a variable or
  12280. memory location. Since statements come in different shapes and sizes,
  12281. their operands are going to be located at various spots inside the
  12282. statement's tree. To facilitate access to the statement's operands,
  12283. they are organized into lists associated inside each statement's
  12284. annotation. Each element in an operand list is a pointer to a
  12285. 'VAR_DECL', 'PARM_DECL' or 'SSA_NAME' tree node. This provides a very
  12286. convenient way of examining and replacing operands.
  12287. Data flow analysis and optimization is done on all tree nodes
  12288. representing variables. Any node for which 'SSA_VAR_P' returns nonzero
  12289. is considered when scanning statement operands. However, not all
  12290. 'SSA_VAR_P' variables are processed in the same way. For the purposes
  12291. of optimization, we need to distinguish between references to local
  12292. scalar variables and references to globals, statics, structures, arrays,
  12293. aliased variables, etc. The reason is simple, the compiler can gather
  12294. complete data flow information for a local scalar. On the other hand, a
  12295. global variable may be modified by a function call, it may not be
  12296. possible to keep track of all the elements of an array or the fields of
  12297. a structure, etc.
  12298. The operand scanner gathers two kinds of operands: "real" and
  12299. "virtual". An operand for which 'is_gimple_reg' returns true is
  12300. considered real, otherwise it is a virtual operand. We also distinguish
  12301. between uses and definitions. An operand is used if its value is loaded
  12302. by the statement (e.g., the operand at the RHS of an assignment). If
  12303. the statement assigns a new value to the operand, the operand is
  12304. considered a definition (e.g., the operand at the LHS of an assignment).
  12305. Virtual and real operands also have very different data flow
  12306. properties. Real operands are unambiguous references to the full object
  12307. that they represent. For instance, given
  12308. {
  12309. int a, b;
  12310. a = b
  12311. }
  12312. Since 'a' and 'b' are non-aliased locals, the statement 'a = b' will
  12313. have one real definition and one real use because variable 'a' is
  12314. completely modified with the contents of variable 'b'. Real definition
  12315. are also known as "killing definitions". Similarly, the use of 'b'
  12316. reads all its bits.
  12317. In contrast, virtual operands are used with variables that can have a
  12318. partial or ambiguous reference. This includes structures, arrays,
  12319. globals, and aliased variables. In these cases, we have two types of
  12320. definitions. For globals, structures, and arrays, we can determine from
  12321. a statement whether a variable of these types has a killing definition.
  12322. If the variable does, then the statement is marked as having a "must
  12323. definition" of that variable. However, if a statement is only defining
  12324. a part of the variable (i.e. a field in a structure), or if we know that
  12325. a statement might define the variable but we cannot say for sure, then
  12326. we mark that statement as having a "may definition". For instance,
  12327. given
  12328. {
  12329. int a, b, *p;
  12330. if (...)
  12331. p = &a;
  12332. else
  12333. p = &b;
  12334. *p = 5;
  12335. return *p;
  12336. }
  12337. The assignment '*p = 5' may be a definition of 'a' or 'b'. If we
  12338. cannot determine statically where 'p' is pointing to at the time of the
  12339. store operation, we create virtual definitions to mark that statement as
  12340. a potential definition site for 'a' and 'b'. Memory loads are similarly
  12341. marked with virtual use operands. Virtual operands are shown in tree
  12342. dumps right before the statement that contains them. To request a tree
  12343. dump with virtual operands, use the '-vops' option to '-fdump-tree':
  12344. {
  12345. int a, b, *p;
  12346. if (...)
  12347. p = &a;
  12348. else
  12349. p = &b;
  12350. # a = VDEF <a>
  12351. # b = VDEF <b>
  12352. *p = 5;
  12353. # VUSE <a>
  12354. # VUSE <b>
  12355. return *p;
  12356. }
  12357. Notice that 'VDEF' operands have two copies of the referenced variable.
  12358. This indicates that this is not a killing definition of that variable.
  12359. In this case we refer to it as a "may definition" or "aliased store".
  12360. The presence of the second copy of the variable in the 'VDEF' operand
  12361. will become important when the function is converted into SSA form.
  12362. This will be used to link all the non-killing definitions to prevent
  12363. optimizations from making incorrect assumptions about them.
  12364. Operands are updated as soon as the statement is finished via a call to
  12365. 'update_stmt'. If statement elements are changed via 'SET_USE' or
  12366. 'SET_DEF', then no further action is required (i.e., those macros take
  12367. care of updating the statement). If changes are made by manipulating
  12368. the statement's tree directly, then a call must be made to 'update_stmt'
  12369. when complete. Calling one of the 'bsi_insert' routines or
  12370. 'bsi_replace' performs an implicit call to 'update_stmt'.
  12371. 13.2.1 Operand Iterators And Access Routines
  12372. --------------------------------------------
  12373. Operands are collected by 'tree-ssa-operands.c'. They are stored inside
  12374. each statement's annotation and can be accessed through either the
  12375. operand iterators or an access routine.
  12376. The following access routines are available for examining operands:
  12377. 1. 'SINGLE_SSA_{USE,DEF,TREE}_OPERAND': These accessors will return
  12378. NULL unless there is exactly one operand matching the specified
  12379. flags. If there is exactly one operand, the operand is returned as
  12380. either a 'tree', 'def_operand_p', or 'use_operand_p'.
  12381. tree t = SINGLE_SSA_TREE_OPERAND (stmt, flags);
  12382. use_operand_p u = SINGLE_SSA_USE_OPERAND (stmt, SSA_ALL_VIRTUAL_USES);
  12383. def_operand_p d = SINGLE_SSA_DEF_OPERAND (stmt, SSA_OP_ALL_DEFS);
  12384. 2. 'ZERO_SSA_OPERANDS': This macro returns true if there are no
  12385. operands matching the specified flags.
  12386. if (ZERO_SSA_OPERANDS (stmt, SSA_OP_ALL_VIRTUALS))
  12387. return;
  12388. 3. 'NUM_SSA_OPERANDS': This macro Returns the number of operands
  12389. matching 'flags'. This actually executes a loop to perform the
  12390. count, so only use this if it is really needed.
  12391. int count = NUM_SSA_OPERANDS (stmt, flags)
  12392. If you wish to iterate over some or all operands, use the
  12393. 'FOR_EACH_SSA_{USE,DEF,TREE}_OPERAND' iterator. For example, to print
  12394. all the operands for a statement:
  12395. void
  12396. print_ops (tree stmt)
  12397. {
  12398. ssa_op_iter;
  12399. tree var;
  12400. FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_ALL_OPERANDS)
  12401. print_generic_expr (stderr, var, TDF_SLIM);
  12402. }
  12403. How to choose the appropriate iterator:
  12404. 1. Determine whether you are need to see the operand pointers, or just
  12405. the trees, and choose the appropriate macro:
  12406. Need Macro:
  12407. ---- -------
  12408. use_operand_p FOR_EACH_SSA_USE_OPERAND
  12409. def_operand_p FOR_EACH_SSA_DEF_OPERAND
  12410. tree FOR_EACH_SSA_TREE_OPERAND
  12411. 2. You need to declare a variable of the type you are interested in,
  12412. and an ssa_op_iter structure which serves as the loop controlling
  12413. variable.
  12414. 3. Determine which operands you wish to use, and specify the flags of
  12415. those you are interested in. They are documented in
  12416. 'tree-ssa-operands.h':
  12417. #define SSA_OP_USE 0x01 /* Real USE operands. */
  12418. #define SSA_OP_DEF 0x02 /* Real DEF operands. */
  12419. #define SSA_OP_VUSE 0x04 /* VUSE operands. */
  12420. #define SSA_OP_VDEF 0x08 /* VDEF operands. */
  12421. /* These are commonly grouped operand flags. */
  12422. #define SSA_OP_VIRTUAL_USES (SSA_OP_VUSE)
  12423. #define SSA_OP_VIRTUAL_DEFS (SSA_OP_VDEF)
  12424. #define SSA_OP_ALL_VIRTUALS (SSA_OP_VIRTUAL_USES | SSA_OP_VIRTUAL_DEFS)
  12425. #define SSA_OP_ALL_USES (SSA_OP_VIRTUAL_USES | SSA_OP_USE)
  12426. #define SSA_OP_ALL_DEFS (SSA_OP_VIRTUAL_DEFS | SSA_OP_DEF)
  12427. #define SSA_OP_ALL_OPERANDS (SSA_OP_ALL_USES | SSA_OP_ALL_DEFS)
  12428. So if you want to look at the use pointers for all the 'USE' and 'VUSE'
  12429. operands, you would do something like:
  12430. use_operand_p use_p;
  12431. ssa_op_iter iter;
  12432. FOR_EACH_SSA_USE_OPERAND (use_p, stmt, iter, (SSA_OP_USE | SSA_OP_VUSE))
  12433. {
  12434. process_use_ptr (use_p);
  12435. }
  12436. The 'TREE' macro is basically the same as the 'USE' and 'DEF' macros,
  12437. only with the use or def dereferenced via 'USE_FROM_PTR (use_p)' and
  12438. 'DEF_FROM_PTR (def_p)'. Since we aren't using operand pointers, use and
  12439. defs flags can be mixed.
  12440. tree var;
  12441. ssa_op_iter iter;
  12442. FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_VUSE)
  12443. {
  12444. print_generic_expr (stderr, var, TDF_SLIM);
  12445. }
  12446. 'VDEF's are broken into two flags, one for the 'DEF' portion
  12447. ('SSA_OP_VDEF') and one for the USE portion ('SSA_OP_VUSE').
  12448. There are many examples in the code, in addition to the documentation
  12449. in 'tree-ssa-operands.h' and 'ssa-iterators.h'.
  12450. There are also a couple of variants on the stmt iterators regarding PHI
  12451. nodes.
  12452. 'FOR_EACH_PHI_ARG' Works exactly like 'FOR_EACH_SSA_USE_OPERAND',
  12453. except it works over 'PHI' arguments instead of statement operands.
  12454. /* Look at every virtual PHI use. */
  12455. FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_VIRTUAL_USES)
  12456. {
  12457. my_code;
  12458. }
  12459. /* Look at every real PHI use. */
  12460. FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_USES)
  12461. my_code;
  12462. /* Look at every PHI use. */
  12463. FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_ALL_USES)
  12464. my_code;
  12465. 'FOR_EACH_PHI_OR_STMT_{USE,DEF}' works exactly like
  12466. 'FOR_EACH_SSA_{USE,DEF}_OPERAND', except it will function on either a
  12467. statement or a 'PHI' node. These should be used when it is appropriate
  12468. but they are not quite as efficient as the individual 'FOR_EACH_PHI' and
  12469. 'FOR_EACH_SSA' routines.
  12470. FOR_EACH_PHI_OR_STMT_USE (use_operand_p, stmt, iter, flags)
  12471. {
  12472. my_code;
  12473. }
  12474. FOR_EACH_PHI_OR_STMT_DEF (def_operand_p, phi, iter, flags)
  12475. {
  12476. my_code;
  12477. }
  12478. 13.2.2 Immediate Uses
  12479. ---------------------
  12480. Immediate use information is now always available. Using the immediate
  12481. use iterators, you may examine every use of any 'SSA_NAME'. For
  12482. instance, to change each use of 'ssa_var' to 'ssa_var2' and call
  12483. fold_stmt on each stmt after that is done:
  12484. use_operand_p imm_use_p;
  12485. imm_use_iterator iterator;
  12486. tree ssa_var, stmt;
  12487. FOR_EACH_IMM_USE_STMT (stmt, iterator, ssa_var)
  12488. {
  12489. FOR_EACH_IMM_USE_ON_STMT (imm_use_p, iterator)
  12490. SET_USE (imm_use_p, ssa_var_2);
  12491. fold_stmt (stmt);
  12492. }
  12493. There are 2 iterators which can be used. 'FOR_EACH_IMM_USE_FAST' is
  12494. used when the immediate uses are not changed, i.e., you are looking at
  12495. the uses, but not setting them.
  12496. If they do get changed, then care must be taken that things are not
  12497. changed under the iterators, so use the 'FOR_EACH_IMM_USE_STMT' and
  12498. 'FOR_EACH_IMM_USE_ON_STMT' iterators. They attempt to preserve the
  12499. sanity of the use list by moving all the uses for a statement into a
  12500. controlled position, and then iterating over those uses. Then the
  12501. optimization can manipulate the stmt when all the uses have been
  12502. processed. This is a little slower than the FAST version since it adds
  12503. a placeholder element and must sort through the list a bit for each
  12504. statement. This placeholder element must be also be removed if the loop
  12505. is terminated early. The macro 'BREAK_FROM_IMM_USE_STMT' is provided to
  12506. do this :
  12507. FOR_EACH_IMM_USE_STMT (stmt, iterator, ssa_var)
  12508. {
  12509. if (stmt == last_stmt)
  12510. BREAK_FROM_IMM_USE_STMT (iterator);
  12511. FOR_EACH_IMM_USE_ON_STMT (imm_use_p, iterator)
  12512. SET_USE (imm_use_p, ssa_var_2);
  12513. fold_stmt (stmt);
  12514. }
  12515. There are checks in 'verify_ssa' which verify that the immediate use
  12516. list is up to date, as well as checking that an optimization didn't
  12517. break from the loop without using this macro. It is safe to simply
  12518. 'break'; from a 'FOR_EACH_IMM_USE_FAST' traverse.
  12519. Some useful functions and macros:
  12520. 1. 'has_zero_uses (ssa_var)' : Returns true if there are no uses of
  12521. 'ssa_var'.
  12522. 2. 'has_single_use (ssa_var)' : Returns true if there is only a single
  12523. use of 'ssa_var'.
  12524. 3. 'single_imm_use (ssa_var, use_operand_p *ptr, tree *stmt)' :
  12525. Returns true if there is only a single use of 'ssa_var', and also
  12526. returns the use pointer and statement it occurs in, in the second
  12527. and third parameters.
  12528. 4. 'num_imm_uses (ssa_var)' : Returns the number of immediate uses of
  12529. 'ssa_var'. It is better not to use this if possible since it
  12530. simply utilizes a loop to count the uses.
  12531. 5. 'PHI_ARG_INDEX_FROM_USE (use_p)' : Given a use within a 'PHI' node,
  12532. return the index number for the use. An assert is triggered if the
  12533. use isn't located in a 'PHI' node.
  12534. 6. 'USE_STMT (use_p)' : Return the statement a use occurs in.
  12535. Note that uses are not put into an immediate use list until their
  12536. statement is actually inserted into the instruction stream via a 'bsi_*'
  12537. routine.
  12538. It is also still possible to utilize lazy updating of statements, but
  12539. this should be used only when absolutely required. Both alias analysis
  12540. and the dominator optimizations currently do this.
  12541. When lazy updating is being used, the immediate use information is out
  12542. of date and cannot be used reliably. Lazy updating is achieved by
  12543. simply marking statements modified via calls to 'gimple_set_modified'
  12544. instead of 'update_stmt'. When lazy updating is no longer required, all
  12545. the modified statements must have 'update_stmt' called in order to bring
  12546. them up to date. This must be done before the optimization is finished,
  12547. or 'verify_ssa' will trigger an abort.
  12548. This is done with a simple loop over the instruction stream:
  12549. block_stmt_iterator bsi;
  12550. basic_block bb;
  12551. FOR_EACH_BB (bb)
  12552. {
  12553. for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi))
  12554. update_stmt_if_modified (bsi_stmt (bsi));
  12555. }
  12556. 
  12557. File: gccint.info, Node: SSA, Next: Alias analysis, Prev: SSA Operands, Up: Tree SSA
  12558. 13.3 Static Single Assignment
  12559. =============================
  12560. Most of the tree optimizers rely on the data flow information provided
  12561. by the Static Single Assignment (SSA) form. We implement the SSA form
  12562. as described in 'R. Cytron, J. Ferrante, B. Rosen, M. Wegman, and K.
  12563. Zadeck. Efficiently Computing Static Single Assignment Form and the
  12564. Control Dependence Graph. ACM Transactions on Programming Languages and
  12565. Systems, 13(4):451-490, October 1991'.
  12566. The SSA form is based on the premise that program variables are
  12567. assigned in exactly one location in the program. Multiple assignments
  12568. to the same variable create new versions of that variable. Naturally,
  12569. actual programs are seldom in SSA form initially because variables tend
  12570. to be assigned multiple times. The compiler modifies the program
  12571. representation so that every time a variable is assigned in the code, a
  12572. new version of the variable is created. Different versions of the same
  12573. variable are distinguished by subscripting the variable name with its
  12574. version number. Variables used in the right-hand side of expressions
  12575. are renamed so that their version number matches that of the most recent
  12576. assignment.
  12577. We represent variable versions using 'SSA_NAME' nodes. The renaming
  12578. process in 'tree-ssa.c' wraps every real and virtual operand with an
  12579. 'SSA_NAME' node which contains the version number and the statement that
  12580. created the 'SSA_NAME'. Only definitions and virtual definitions may
  12581. create new 'SSA_NAME' nodes.
  12582. Sometimes, flow of control makes it impossible to determine the most
  12583. recent version of a variable. In these cases, the compiler inserts an
  12584. artificial definition for that variable called "PHI function" or "PHI
  12585. node". This new definition merges all the incoming versions of the
  12586. variable to create a new name for it. For instance,
  12587. if (...)
  12588. a_1 = 5;
  12589. else if (...)
  12590. a_2 = 2;
  12591. else
  12592. a_3 = 13;
  12593. # a_4 = PHI <a_1, a_2, a_3>
  12594. return a_4;
  12595. Since it is not possible to determine which of the three branches will
  12596. be taken at runtime, we don't know which of 'a_1', 'a_2' or 'a_3' to use
  12597. at the return statement. So, the SSA renamer creates a new version
  12598. 'a_4' which is assigned the result of "merging" 'a_1', 'a_2' and 'a_3'.
  12599. Hence, PHI nodes mean "one of these operands. I don't know which".
  12600. The following functions can be used to examine PHI nodes
  12601. -- Function: gimple_phi_result (PHI)
  12602. Returns the 'SSA_NAME' created by PHI node PHI (i.e., PHI's LHS).
  12603. -- Function: gimple_phi_num_args (PHI)
  12604. Returns the number of arguments in PHI. This number is exactly the
  12605. number of incoming edges to the basic block holding PHI.
  12606. -- Function: gimple_phi_arg (PHI, I)
  12607. Returns Ith argument of PHI.
  12608. -- Function: gimple_phi_arg_edge (PHI, I)
  12609. Returns the incoming edge for the Ith argument of PHI.
  12610. -- Function: gimple_phi_arg_def (PHI, I)
  12611. Returns the 'SSA_NAME' for the Ith argument of PHI.
  12612. 13.3.1 Preserving the SSA form
  12613. ------------------------------
  12614. Some optimization passes make changes to the function that invalidate
  12615. the SSA property. This can happen when a pass has added new symbols or
  12616. changed the program so that variables that were previously aliased
  12617. aren't anymore. Whenever something like this happens, the affected
  12618. symbols must be renamed into SSA form again. Transformations that emit
  12619. new code or replicate existing statements will also need to update the
  12620. SSA form.
  12621. Since GCC implements two different SSA forms for register and virtual
  12622. variables, keeping the SSA form up to date depends on whether you are
  12623. updating register or virtual names. In both cases, the general idea
  12624. behind incremental SSA updates is similar: when new SSA names are
  12625. created, they typically are meant to replace other existing names in the
  12626. program.
  12627. For instance, given the following code:
  12628. 1 L0:
  12629. 2 x_1 = PHI (0, x_5)
  12630. 3 if (x_1 < 10)
  12631. 4 if (x_1 > 7)
  12632. 5 y_2 = 0
  12633. 6 else
  12634. 7 y_3 = x_1 + x_7
  12635. 8 endif
  12636. 9 x_5 = x_1 + 1
  12637. 10 goto L0;
  12638. 11 endif
  12639. Suppose that we insert new names 'x_10' and 'x_11' (lines '4' and '8').
  12640. 1 L0:
  12641. 2 x_1 = PHI (0, x_5)
  12642. 3 if (x_1 < 10)
  12643. 4 x_10 = ...
  12644. 5 if (x_1 > 7)
  12645. 6 y_2 = 0
  12646. 7 else
  12647. 8 x_11 = ...
  12648. 9 y_3 = x_1 + x_7
  12649. 10 endif
  12650. 11 x_5 = x_1 + 1
  12651. 12 goto L0;
  12652. 13 endif
  12653. We want to replace all the uses of 'x_1' with the new definitions of
  12654. 'x_10' and 'x_11'. Note that the only uses that should be replaced are
  12655. those at lines '5', '9' and '11'. Also, the use of 'x_7' at line '9'
  12656. should _not_ be replaced (this is why we cannot just mark symbol 'x' for
  12657. renaming).
  12658. Additionally, we may need to insert a PHI node at line '11' because
  12659. that is a merge point for 'x_10' and 'x_11'. So the use of 'x_1' at
  12660. line '11' will be replaced with the new PHI node. The insertion of PHI
  12661. nodes is optional. They are not strictly necessary to preserve the SSA
  12662. form, and depending on what the caller inserted, they may not even be
  12663. useful for the optimizers.
  12664. Updating the SSA form is a two step process. First, the pass has to
  12665. identify which names need to be updated and/or which symbols need to be
  12666. renamed into SSA form for the first time. When new names are introduced
  12667. to replace existing names in the program, the mapping between the old
  12668. and the new names are registered by calling 'register_new_name_mapping'
  12669. (note that if your pass creates new code by duplicating basic blocks,
  12670. the call to 'tree_duplicate_bb' will set up the necessary mappings
  12671. automatically).
  12672. After the replacement mappings have been registered and new symbols
  12673. marked for renaming, a call to 'update_ssa' makes the registered
  12674. changes. This can be done with an explicit call or by creating 'TODO'
  12675. flags in the 'tree_opt_pass' structure for your pass. There are several
  12676. 'TODO' flags that control the behavior of 'update_ssa':
  12677. * 'TODO_update_ssa'. Update the SSA form inserting PHI nodes for
  12678. newly exposed symbols and virtual names marked for updating. When
  12679. updating real names, only insert PHI nodes for a real name 'O_j' in
  12680. blocks reached by all the new and old definitions for 'O_j'. If
  12681. the iterated dominance frontier for 'O_j' is not pruned, we may end
  12682. up inserting PHI nodes in blocks that have one or more edges with
  12683. no incoming definition for 'O_j'. This would lead to uninitialized
  12684. warnings for 'O_j''s symbol.
  12685. * 'TODO_update_ssa_no_phi'. Update the SSA form without inserting
  12686. any new PHI nodes at all. This is used by passes that have either
  12687. inserted all the PHI nodes themselves or passes that need only to
  12688. patch use-def and def-def chains for virtuals (e.g., DCE).
  12689. * 'TODO_update_ssa_full_phi'. Insert PHI nodes everywhere they are
  12690. needed. No pruning of the IDF is done. This is used by passes
  12691. that need the PHI nodes for 'O_j' even if it means that some
  12692. arguments will come from the default definition of 'O_j''s symbol
  12693. (e.g., 'pass_linear_transform').
  12694. WARNING: If you need to use this flag, chances are that your pass
  12695. may be doing something wrong. Inserting PHI nodes for an old name
  12696. where not all edges carry a new replacement may lead to silent
  12697. codegen errors or spurious uninitialized warnings.
  12698. * 'TODO_update_ssa_only_virtuals'. Passes that update the SSA form
  12699. on their own may want to delegate the updating of virtual names to
  12700. the generic updater. Since FUD chains are easier to maintain, this
  12701. simplifies the work they need to do. NOTE: If this flag is used,
  12702. any OLD->NEW mappings for real names are explicitly destroyed and
  12703. only the symbols marked for renaming are processed.
  12704. 13.3.2 Examining 'SSA_NAME' nodes
  12705. ---------------------------------
  12706. The following macros can be used to examine 'SSA_NAME' nodes
  12707. -- Macro: SSA_NAME_DEF_STMT (VAR)
  12708. Returns the statement S that creates the 'SSA_NAME' VAR. If S is
  12709. an empty statement (i.e., 'IS_EMPTY_STMT (S)' returns 'true'), it
  12710. means that the first reference to this variable is a USE or a VUSE.
  12711. -- Macro: SSA_NAME_VERSION (VAR)
  12712. Returns the version number of the 'SSA_NAME' object VAR.
  12713. 13.3.3 Walking the dominator tree
  12714. ---------------------------------
  12715. -- Tree SSA function: void walk_dominator_tree (WALK_DATA, BB)
  12716. This function walks the dominator tree for the current CFG calling
  12717. a set of callback functions defined in STRUCT DOM_WALK_DATA in
  12718. 'domwalk.h'. The call back functions you need to define give you
  12719. hooks to execute custom code at various points during traversal:
  12720. 1. Once to initialize any local data needed while processing BB
  12721. and its children. This local data is pushed into an internal
  12722. stack which is automatically pushed and popped as the walker
  12723. traverses the dominator tree.
  12724. 2. Once before traversing all the statements in the BB.
  12725. 3. Once for every statement inside BB.
  12726. 4. Once after traversing all the statements and before recursing
  12727. into BB's dominator children.
  12728. 5. It then recurses into all the dominator children of BB.
  12729. 6. After recursing into all the dominator children of BB it can,
  12730. optionally, traverse every statement in BB again (i.e.,
  12731. repeating steps 2 and 3).
  12732. 7. Once after walking the statements in BB and BB's dominator
  12733. children. At this stage, the block local data stack is
  12734. popped.
  12735. 
  12736. File: gccint.info, Node: Alias analysis, Next: Memory model, Prev: SSA, Up: Tree SSA
  12737. 13.4 Alias analysis
  12738. ===================
  12739. Alias analysis in GIMPLE SSA form consists of two pieces. First the
  12740. virtual SSA web ties conflicting memory accesses and provides a SSA
  12741. use-def chain and SSA immediate-use chains for walking possibly
  12742. dependent memory accesses. Second an alias-oracle can be queried to
  12743. disambiguate explicit and implicit memory references.
  12744. 1. Memory SSA form.
  12745. All statements that may use memory have exactly one accompanied use
  12746. of a virtual SSA name that represents the state of memory at the
  12747. given point in the IL.
  12748. All statements that may define memory have exactly one accompanied
  12749. definition of a virtual SSA name using the previous state of memory
  12750. and defining the new state of memory after the given point in the
  12751. IL.
  12752. int i;
  12753. int foo (void)
  12754. {
  12755. # .MEM_3 = VDEF <.MEM_2(D)>
  12756. i = 1;
  12757. # VUSE <.MEM_3>
  12758. return i;
  12759. }
  12760. The virtual SSA names in this case are '.MEM_2(D)' and '.MEM_3'.
  12761. The store to the global variable 'i' defines '.MEM_3' invalidating
  12762. '.MEM_2(D)'. The load from 'i' uses that new state '.MEM_3'.
  12763. The virtual SSA web serves as constraints to SSA optimizers
  12764. preventing illegitimate code-motion and optimization. It also
  12765. provides a way to walk related memory statements.
  12766. 2. Points-to and escape analysis.
  12767. Points-to analysis builds a set of constraints from the GIMPLE SSA
  12768. IL representing all pointer operations and facts we do or do not
  12769. know about pointers. Solving this set of constraints yields a
  12770. conservatively correct solution for each pointer variable in the
  12771. program (though we are only interested in SSA name pointers) as to
  12772. what it may possibly point to.
  12773. This points-to solution for a given SSA name pointer is stored in
  12774. the 'pt_solution' sub-structure of the 'SSA_NAME_PTR_INFO' record.
  12775. The following accessor functions are available:
  12776. * 'pt_solution_includes'
  12777. * 'pt_solutions_intersect'
  12778. Points-to analysis also computes the solution for two special set
  12779. of pointers, 'ESCAPED' and 'CALLUSED'. Those represent all memory
  12780. that has escaped the scope of analysis or that is used by pure or
  12781. nested const calls.
  12782. 3. Type-based alias analysis
  12783. Type-based alias analysis is frontend dependent though generic
  12784. support is provided by the middle-end in 'alias.c'. TBAA code is
  12785. used by both tree optimizers and RTL optimizers.
  12786. Every language that wishes to perform language-specific alias
  12787. analysis should define a function that computes, given a 'tree'
  12788. node, an alias set for the node. Nodes in different alias sets are
  12789. not allowed to alias. For an example, see the C front-end function
  12790. 'c_get_alias_set'.
  12791. 4. Tree alias-oracle
  12792. The tree alias-oracle provides means to disambiguate two memory
  12793. references and memory references against statements. The following
  12794. queries are available:
  12795. * 'refs_may_alias_p'
  12796. * 'ref_maybe_used_by_stmt_p'
  12797. * 'stmt_may_clobber_ref_p'
  12798. In addition to those two kind of statement walkers are available
  12799. walking statements related to a reference ref.
  12800. 'walk_non_aliased_vuses' walks over dominating memory defining
  12801. statements and calls back if the statement does not clobber ref
  12802. providing the non-aliased VUSE. The walk stops at the first
  12803. clobbering statement or if asked to. 'walk_aliased_vdefs' walks
  12804. over dominating memory defining statements and calls back on each
  12805. statement clobbering ref providing its aliasing VDEF. The walk
  12806. stops if asked to.
  12807. 
  12808. File: gccint.info, Node: Memory model, Prev: Alias analysis, Up: Tree SSA
  12809. 13.5 Memory model
  12810. =================
  12811. The memory model used by the middle-end models that of the C/C++
  12812. languages. The middle-end has the notion of an effective type of a
  12813. memory region which is used for type-based alias analysis.
  12814. The following is a refinement of ISO C99 6.5/6, clarifying the block
  12815. copy case to follow common sense and extending the concept of a dynamic
  12816. effective type to objects with a declared type as required for C++.
  12817. The effective type of an object for an access to its stored value is
  12818. the declared type of the object or the effective type determined by
  12819. a previous store to it. If a value is stored into an object through
  12820. an lvalue having a type that is not a character type, then the
  12821. type of the lvalue becomes the effective type of the object for that
  12822. access and for subsequent accesses that do not modify the stored value.
  12823. If a value is copied into an object using memcpy or memmove,
  12824. or is copied as an array of character type, then the effective type
  12825. of the modified object for that access and for subsequent accesses that
  12826. do not modify the value is undetermined. For all other accesses to an
  12827. object, the effective type of the object is simply the type of the
  12828. lvalue used for the access.
  12829. 
  12830. File: gccint.info, Node: RTL, Next: Control Flow, Prev: Tree SSA, Up: Top
  12831. 14 RTL Representation
  12832. *********************
  12833. The last part of the compiler work is done on a low-level intermediate
  12834. representation called Register Transfer Language. In this language, the
  12835. instructions to be output are described, pretty much one by one, in an
  12836. algebraic form that describes what the instruction does.
  12837. RTL is inspired by Lisp lists. It has both an internal form, made up
  12838. of structures that point at other structures, and a textual form that is
  12839. used in the machine description and in printed debugging dumps. The
  12840. textual form uses nested parentheses to indicate the pointers in the
  12841. internal form.
  12842. * Menu:
  12843. * RTL Objects:: Expressions vs vectors vs strings vs integers.
  12844. * RTL Classes:: Categories of RTL expression objects, and their structure.
  12845. * Accessors:: Macros to access expression operands or vector elts.
  12846. * Special Accessors:: Macros to access specific annotations on RTL.
  12847. * Flags:: Other flags in an RTL expression.
  12848. * Machine Modes:: Describing the size and format of a datum.
  12849. * Constants:: Expressions with constant values.
  12850. * Regs and Memory:: Expressions representing register contents or memory.
  12851. * Arithmetic:: Expressions representing arithmetic on other expressions.
  12852. * Comparisons:: Expressions representing comparison of expressions.
  12853. * Bit-Fields:: Expressions representing bit-fields in memory or reg.
  12854. * Vector Operations:: Expressions involving vector datatypes.
  12855. * Conversions:: Extending, truncating, floating or fixing.
  12856. * RTL Declarations:: Declaring volatility, constancy, etc.
  12857. * Side Effects:: Expressions for storing in registers, etc.
  12858. * Incdec:: Embedded side-effects for autoincrement addressing.
  12859. * Assembler:: Representing 'asm' with operands.
  12860. * Debug Information:: Expressions representing debugging information.
  12861. * Insns:: Expression types for entire insns.
  12862. * Calls:: RTL representation of function call insns.
  12863. * Sharing:: Some expressions are unique; others *must* be copied.
  12864. * Reading RTL:: Reading textual RTL from a file.
  12865. 
  12866. File: gccint.info, Node: RTL Objects, Next: RTL Classes, Up: RTL
  12867. 14.1 RTL Object Types
  12868. =====================
  12869. RTL uses five kinds of objects: expressions, integers, wide integers,
  12870. strings and vectors. Expressions are the most important ones. An RTL
  12871. expression ("RTX", for short) is a C structure, but it is usually
  12872. referred to with a pointer; a type that is given the typedef name 'rtx'.
  12873. An integer is simply an 'int'; their written form uses decimal digits.
  12874. A wide integer is an integral object whose type is 'HOST_WIDE_INT';
  12875. their written form uses decimal digits.
  12876. A string is a sequence of characters. In core it is represented as a
  12877. 'char *' in usual C fashion, and it is written in C syntax as well.
  12878. However, strings in RTL may never be null. If you write an empty string
  12879. in a machine description, it is represented in core as a null pointer
  12880. rather than as a pointer to a null character. In certain contexts,
  12881. these null pointers instead of strings are valid. Within RTL code,
  12882. strings are most commonly found inside 'symbol_ref' expressions, but
  12883. they appear in other contexts in the RTL expressions that make up
  12884. machine descriptions.
  12885. In a machine description, strings are normally written with double
  12886. quotes, as you would in C. However, strings in machine descriptions may
  12887. extend over many lines, which is invalid C, and adjacent string
  12888. constants are not concatenated as they are in C. Any string constant
  12889. may be surrounded with a single set of parentheses. Sometimes this
  12890. makes the machine description easier to read.
  12891. There is also a special syntax for strings, which can be useful when C
  12892. code is embedded in a machine description. Wherever a string can
  12893. appear, it is also valid to write a C-style brace block. The entire
  12894. brace block, including the outermost pair of braces, is considered to be
  12895. the string constant. Double quote characters inside the braces are not
  12896. special. Therefore, if you write string constants in the C code, you
  12897. need not escape each quote character with a backslash.
  12898. A vector contains an arbitrary number of pointers to expressions. The
  12899. number of elements in the vector is explicitly present in the vector.
  12900. The written form of a vector consists of square brackets ('[...]')
  12901. surrounding the elements, in sequence and with whitespace separating
  12902. them. Vectors of length zero are not created; null pointers are used
  12903. instead.
  12904. Expressions are classified by "expression codes" (also called RTX
  12905. codes). The expression code is a name defined in 'rtl.def', which is
  12906. also (in uppercase) a C enumeration constant. The possible expression
  12907. codes and their meanings are machine-independent. The code of an RTX
  12908. can be extracted with the macro 'GET_CODE (X)' and altered with
  12909. 'PUT_CODE (X, NEWCODE)'.
  12910. The expression code determines how many operands the expression
  12911. contains, and what kinds of objects they are. In RTL, unlike Lisp, you
  12912. cannot tell by looking at an operand what kind of object it is.
  12913. Instead, you must know from its context--from the expression code of the
  12914. containing expression. For example, in an expression of code 'subreg',
  12915. the first operand is to be regarded as an expression and the second
  12916. operand as a polynomial integer. In an expression of code 'plus', there
  12917. are two operands, both of which are to be regarded as expressions. In a
  12918. 'symbol_ref' expression, there is one operand, which is to be regarded
  12919. as a string.
  12920. Expressions are written as parentheses containing the name of the
  12921. expression type, its flags and machine mode if any, and then the
  12922. operands of the expression (separated by spaces).
  12923. Expression code names in the 'md' file are written in lowercase, but
  12924. when they appear in C code they are written in uppercase. In this
  12925. manual, they are shown as follows: 'const_int'.
  12926. In a few contexts a null pointer is valid where an expression is
  12927. normally wanted. The written form of this is '(nil)'.
  12928. 
  12929. File: gccint.info, Node: RTL Classes, Next: Accessors, Prev: RTL Objects, Up: RTL
  12930. 14.2 RTL Classes and Formats
  12931. ============================
  12932. The various expression codes are divided into several "classes", which
  12933. are represented by single characters. You can determine the class of an
  12934. RTX code with the macro 'GET_RTX_CLASS (CODE)'. Currently, 'rtl.def'
  12935. defines these classes:
  12936. 'RTX_OBJ'
  12937. An RTX code that represents an actual object, such as a register
  12938. ('REG') or a memory location ('MEM', 'SYMBOL_REF'). 'LO_SUM') is
  12939. also included; instead, 'SUBREG' and 'STRICT_LOW_PART' are not in
  12940. this class, but in class 'RTX_EXTRA'.
  12941. 'RTX_CONST_OBJ'
  12942. An RTX code that represents a constant object. 'HIGH' is also
  12943. included in this class.
  12944. 'RTX_COMPARE'
  12945. An RTX code for a non-symmetric comparison, such as 'GEU' or 'LT'.
  12946. 'RTX_COMM_COMPARE'
  12947. An RTX code for a symmetric (commutative) comparison, such as 'EQ'
  12948. or 'ORDERED'.
  12949. 'RTX_UNARY'
  12950. An RTX code for a unary arithmetic operation, such as 'NEG', 'NOT',
  12951. or 'ABS'. This category also includes value extension (sign or
  12952. zero) and conversions between integer and floating point.
  12953. 'RTX_COMM_ARITH'
  12954. An RTX code for a commutative binary operation, such as 'PLUS' or
  12955. 'AND'. 'NE' and 'EQ' are comparisons, so they have class
  12956. 'RTX_COMM_COMPARE'.
  12957. 'RTX_BIN_ARITH'
  12958. An RTX code for a non-commutative binary operation, such as
  12959. 'MINUS', 'DIV', or 'ASHIFTRT'.
  12960. 'RTX_BITFIELD_OPS'
  12961. An RTX code for a bit-field operation. Currently only
  12962. 'ZERO_EXTRACT' and 'SIGN_EXTRACT'. These have three inputs and are
  12963. lvalues (so they can be used for insertion as well). *Note
  12964. Bit-Fields::.
  12965. 'RTX_TERNARY'
  12966. An RTX code for other three input operations. Currently only
  12967. 'IF_THEN_ELSE', 'VEC_MERGE', 'SIGN_EXTRACT', 'ZERO_EXTRACT', and
  12968. 'FMA'.
  12969. 'RTX_INSN'
  12970. An RTX code for an entire instruction: 'INSN', 'JUMP_INSN', and
  12971. 'CALL_INSN'. *Note Insns::.
  12972. 'RTX_MATCH'
  12973. An RTX code for something that matches in insns, such as
  12974. 'MATCH_DUP'. These only occur in machine descriptions.
  12975. 'RTX_AUTOINC'
  12976. An RTX code for an auto-increment addressing mode, such as
  12977. 'POST_INC'. 'XEXP (X, 0)' gives the auto-modified register.
  12978. 'RTX_EXTRA'
  12979. All other RTX codes. This category includes the remaining codes
  12980. used only in machine descriptions ('DEFINE_*', etc.). It also
  12981. includes all the codes describing side effects ('SET', 'USE',
  12982. 'CLOBBER', etc.) and the non-insns that may appear on an insn
  12983. chain, such as 'NOTE', 'BARRIER', and 'CODE_LABEL'. 'SUBREG' is
  12984. also part of this class.
  12985. For each expression code, 'rtl.def' specifies the number of contained
  12986. objects and their kinds using a sequence of characters called the
  12987. "format" of the expression code. For example, the format of 'subreg' is
  12988. 'ep'.
  12989. These are the most commonly used format characters:
  12990. 'e'
  12991. An expression (actually a pointer to an expression).
  12992. 'i'
  12993. An integer.
  12994. 'w'
  12995. A wide integer.
  12996. 's'
  12997. A string.
  12998. 'E'
  12999. A vector of expressions.
  13000. A few other format characters are used occasionally:
  13001. 'u'
  13002. 'u' is equivalent to 'e' except that it is printed differently in
  13003. debugging dumps. It is used for pointers to insns.
  13004. 'n'
  13005. 'n' is equivalent to 'i' except that it is printed differently in
  13006. debugging dumps. It is used for the line number or code number of
  13007. a 'note' insn.
  13008. 'S'
  13009. 'S' indicates a string which is optional. In the RTL objects in
  13010. core, 'S' is equivalent to 's', but when the object is read, from
  13011. an 'md' file, the string value of this operand may be omitted. An
  13012. omitted string is taken to be the null string.
  13013. 'V'
  13014. 'V' indicates a vector which is optional. In the RTL objects in
  13015. core, 'V' is equivalent to 'E', but when the object is read from an
  13016. 'md' file, the vector value of this operand may be omitted. An
  13017. omitted vector is effectively the same as a vector of no elements.
  13018. 'B'
  13019. 'B' indicates a pointer to basic block structure.
  13020. 'p'
  13021. A polynomial integer. At present this is used only for
  13022. 'SUBREG_BYTE'.
  13023. '0'
  13024. '0' means a slot whose contents do not fit any normal category.
  13025. '0' slots are not printed at all in dumps, and are often used in
  13026. special ways by small parts of the compiler.
  13027. There are macros to get the number of operands and the format of an
  13028. expression code:
  13029. 'GET_RTX_LENGTH (CODE)'
  13030. Number of operands of an RTX of code CODE.
  13031. 'GET_RTX_FORMAT (CODE)'
  13032. The format of an RTX of code CODE, as a C string.
  13033. Some classes of RTX codes always have the same format. For example, it
  13034. is safe to assume that all comparison operations have format 'ee'.
  13035. 'RTX_UNARY'
  13036. All codes of this class have format 'e'.
  13037. 'RTX_BIN_ARITH'
  13038. 'RTX_COMM_ARITH'
  13039. 'RTX_COMM_COMPARE'
  13040. 'RTX_COMPARE'
  13041. All codes of these classes have format 'ee'.
  13042. 'RTX_BITFIELD_OPS'
  13043. 'RTX_TERNARY'
  13044. All codes of these classes have format 'eee'.
  13045. 'RTX_INSN'
  13046. All codes of this class have formats that begin with 'iuueiee'.
  13047. *Note Insns::. Note that not all RTL objects linked onto an insn
  13048. chain are of class 'RTX_INSN'.
  13049. 'RTX_CONST_OBJ'
  13050. 'RTX_OBJ'
  13051. 'RTX_MATCH'
  13052. 'RTX_EXTRA'
  13053. You can make no assumptions about the format of these codes.
  13054. 
  13055. File: gccint.info, Node: Accessors, Next: Special Accessors, Prev: RTL Classes, Up: RTL
  13056. 14.3 Access to Operands
  13057. =======================
  13058. Operands of expressions are accessed using the macros 'XEXP', 'XINT',
  13059. 'XWINT' and 'XSTR'. Each of these macros takes two arguments: an
  13060. expression-pointer (RTX) and an operand number (counting from zero).
  13061. Thus,
  13062. XEXP (X, 2)
  13063. accesses operand 2 of expression X, as an expression.
  13064. XINT (X, 2)
  13065. accesses the same operand as an integer. 'XSTR', used in the same
  13066. fashion, would access it as a string.
  13067. Any operand can be accessed as an integer, as an expression or as a
  13068. string. You must choose the correct method of access for the kind of
  13069. value actually stored in the operand. You would do this based on the
  13070. expression code of the containing expression. That is also how you
  13071. would know how many operands there are.
  13072. For example, if X is an 'int_list' expression, you know that it has two
  13073. operands which can be correctly accessed as 'XINT (X, 0)' and 'XEXP (X,
  13074. 1)'. Incorrect accesses like 'XEXP (X, 0)' and 'XINT (X, 1)' would
  13075. compile, but would trigger an internal compiler error when rtl checking
  13076. is enabled. Nothing stops you from writing 'XEXP (X, 28)' either, but
  13077. this will access memory past the end of the expression with
  13078. unpredictable results.
  13079. Access to operands which are vectors is more complicated. You can use
  13080. the macro 'XVEC' to get the vector-pointer itself, or the macros
  13081. 'XVECEXP' and 'XVECLEN' to access the elements and length of a vector.
  13082. 'XVEC (EXP, IDX)'
  13083. Access the vector-pointer which is operand number IDX in EXP.
  13084. 'XVECLEN (EXP, IDX)'
  13085. Access the length (number of elements) in the vector which is in
  13086. operand number IDX in EXP. This value is an 'int'.
  13087. 'XVECEXP (EXP, IDX, ELTNUM)'
  13088. Access element number ELTNUM in the vector which is in operand
  13089. number IDX in EXP. This value is an RTX.
  13090. It is up to you to make sure that ELTNUM is not negative and is
  13091. less than 'XVECLEN (EXP, IDX)'.
  13092. All the macros defined in this section expand into lvalues and
  13093. therefore can be used to assign the operands, lengths and vector
  13094. elements as well as to access them.
  13095. 
  13096. File: gccint.info, Node: Special Accessors, Next: Flags, Prev: Accessors, Up: RTL
  13097. 14.4 Access to Special Operands
  13098. ===============================
  13099. Some RTL nodes have special annotations associated with them.
  13100. 'MEM'
  13101. 'MEM_ALIAS_SET (X)'
  13102. If 0, X is not in any alias set, and may alias anything.
  13103. Otherwise, X can only alias 'MEM's in a conflicting alias set.
  13104. This value is set in a language-dependent manner in the
  13105. front-end, and should not be altered in the back-end. In some
  13106. front-ends, these numbers may correspond in some way to types,
  13107. or other language-level entities, but they need not, and the
  13108. back-end makes no such assumptions. These set numbers are
  13109. tested with 'alias_sets_conflict_p'.
  13110. 'MEM_EXPR (X)'
  13111. If this register is known to hold the value of some user-level
  13112. declaration, this is that tree node. It may also be a
  13113. 'COMPONENT_REF', in which case this is some field reference,
  13114. and 'TREE_OPERAND (X, 0)' contains the declaration, or another
  13115. 'COMPONENT_REF', or null if there is no compile-time object
  13116. associated with the reference.
  13117. 'MEM_OFFSET_KNOWN_P (X)'
  13118. True if the offset of the memory reference from 'MEM_EXPR' is
  13119. known. 'MEM_OFFSET (X)' provides the offset if so.
  13120. 'MEM_OFFSET (X)'
  13121. The offset from the start of 'MEM_EXPR'. The value is only
  13122. valid if 'MEM_OFFSET_KNOWN_P (X)' is true.
  13123. 'MEM_SIZE_KNOWN_P (X)'
  13124. True if the size of the memory reference is known. 'MEM_SIZE
  13125. (X)' provides its size if so.
  13126. 'MEM_SIZE (X)'
  13127. The size in bytes of the memory reference. This is mostly
  13128. relevant for 'BLKmode' references as otherwise the size is
  13129. implied by the mode. The value is only valid if
  13130. 'MEM_SIZE_KNOWN_P (X)' is true.
  13131. 'MEM_ALIGN (X)'
  13132. The known alignment in bits of the memory reference.
  13133. 'MEM_ADDR_SPACE (X)'
  13134. The address space of the memory reference. This will commonly
  13135. be zero for the generic address space.
  13136. 'REG'
  13137. 'ORIGINAL_REGNO (X)'
  13138. This field holds the number the register "originally" had; for
  13139. a pseudo register turned into a hard reg this will hold the
  13140. old pseudo register number.
  13141. 'REG_EXPR (X)'
  13142. If this register is known to hold the value of some user-level
  13143. declaration, this is that tree node.
  13144. 'REG_OFFSET (X)'
  13145. If this register is known to hold the value of some user-level
  13146. declaration, this is the offset into that logical storage.
  13147. 'SYMBOL_REF'
  13148. 'SYMBOL_REF_DECL (X)'
  13149. If the 'symbol_ref' X was created for a 'VAR_DECL' or a
  13150. 'FUNCTION_DECL', that tree is recorded here. If this value is
  13151. null, then X was created by back end code generation routines,
  13152. and there is no associated front end symbol table entry.
  13153. 'SYMBOL_REF_DECL' may also point to a tree of class ''c'',
  13154. that is, some sort of constant. In this case, the
  13155. 'symbol_ref' is an entry in the per-file constant pool; again,
  13156. there is no associated front end symbol table entry.
  13157. 'SYMBOL_REF_CONSTANT (X)'
  13158. If 'CONSTANT_POOL_ADDRESS_P (X)' is true, this is the constant
  13159. pool entry for X. It is null otherwise.
  13160. 'SYMBOL_REF_DATA (X)'
  13161. A field of opaque type used to store 'SYMBOL_REF_DECL' or
  13162. 'SYMBOL_REF_CONSTANT'.
  13163. 'SYMBOL_REF_FLAGS (X)'
  13164. In a 'symbol_ref', this is used to communicate various
  13165. predicates about the symbol. Some of these are common enough
  13166. to be computed by common code, some are specific to the
  13167. target. The common bits are:
  13168. 'SYMBOL_FLAG_FUNCTION'
  13169. Set if the symbol refers to a function.
  13170. 'SYMBOL_FLAG_LOCAL'
  13171. Set if the symbol is local to this "module". See
  13172. 'TARGET_BINDS_LOCAL_P'.
  13173. 'SYMBOL_FLAG_EXTERNAL'
  13174. Set if this symbol is not defined in this translation
  13175. unit. Note that this is not the inverse of
  13176. 'SYMBOL_FLAG_LOCAL'.
  13177. 'SYMBOL_FLAG_SMALL'
  13178. Set if the symbol is located in the small data section.
  13179. See 'TARGET_IN_SMALL_DATA_P'.
  13180. 'SYMBOL_REF_TLS_MODEL (X)'
  13181. This is a multi-bit field accessor that returns the
  13182. 'tls_model' to be used for a thread-local storage symbol.
  13183. It returns zero for non-thread-local symbols.
  13184. 'SYMBOL_FLAG_HAS_BLOCK_INFO'
  13185. Set if the symbol has 'SYMBOL_REF_BLOCK' and
  13186. 'SYMBOL_REF_BLOCK_OFFSET' fields.
  13187. 'SYMBOL_FLAG_ANCHOR'
  13188. Set if the symbol is used as a section anchor. "Section
  13189. anchors" are symbols that have a known position within an
  13190. 'object_block' and that can be used to access nearby
  13191. members of that block. They are used to implement
  13192. '-fsection-anchors'.
  13193. If this flag is set, then 'SYMBOL_FLAG_HAS_BLOCK_INFO'
  13194. will be too.
  13195. Bits beginning with 'SYMBOL_FLAG_MACH_DEP' are available for
  13196. the target's use.
  13197. 'SYMBOL_REF_BLOCK (X)'
  13198. If 'SYMBOL_REF_HAS_BLOCK_INFO_P (X)', this is the 'object_block'
  13199. structure to which the symbol belongs, or 'NULL' if it has not been
  13200. assigned a block.
  13201. 'SYMBOL_REF_BLOCK_OFFSET (X)'
  13202. If 'SYMBOL_REF_HAS_BLOCK_INFO_P (X)', this is the offset of X from
  13203. the first object in 'SYMBOL_REF_BLOCK (X)'. The value is negative
  13204. if X has not yet been assigned to a block, or it has not been given
  13205. an offset within that block.
  13206. 
  13207. File: gccint.info, Node: Flags, Next: Machine Modes, Prev: Special Accessors, Up: RTL
  13208. 14.5 Flags in an RTL Expression
  13209. ===============================
  13210. RTL expressions contain several flags (one-bit bit-fields) that are used
  13211. in certain types of expression. Most often they are accessed with the
  13212. following macros, which expand into lvalues.
  13213. 'CROSSING_JUMP_P (X)'
  13214. Nonzero in a 'jump_insn' if it crosses between hot and cold
  13215. sections, which could potentially be very far apart in the
  13216. executable. The presence of this flag indicates to other
  13217. optimizations that this branching instruction should not be
  13218. "collapsed" into a simpler branching construct. It is used when
  13219. the optimization to partition basic blocks into hot and cold
  13220. sections is turned on.
  13221. 'CONSTANT_POOL_ADDRESS_P (X)'
  13222. Nonzero in a 'symbol_ref' if it refers to part of the current
  13223. function's constant pool. For most targets these addresses are in
  13224. a '.rodata' section entirely separate from the function, but for
  13225. some targets the addresses are close to the beginning of the
  13226. function. In either case GCC assumes these addresses can be
  13227. addressed directly, perhaps with the help of base registers.
  13228. Stored in the 'unchanging' field and printed as '/u'.
  13229. 'INSN_ANNULLED_BRANCH_P (X)'
  13230. In a 'jump_insn', 'call_insn', or 'insn' indicates that the branch
  13231. is an annulling one. See the discussion under 'sequence' below.
  13232. Stored in the 'unchanging' field and printed as '/u'.
  13233. 'INSN_DELETED_P (X)'
  13234. In an 'insn', 'call_insn', 'jump_insn', 'code_label',
  13235. 'jump_table_data', 'barrier', or 'note', nonzero if the insn has
  13236. been deleted. Stored in the 'volatil' field and printed as '/v'.
  13237. 'INSN_FROM_TARGET_P (X)'
  13238. In an 'insn' or 'jump_insn' or 'call_insn' in a delay slot of a
  13239. branch, indicates that the insn is from the target of the branch.
  13240. If the branch insn has 'INSN_ANNULLED_BRANCH_P' set, this insn will
  13241. only be executed if the branch is taken. For annulled branches
  13242. with 'INSN_FROM_TARGET_P' clear, the insn will be executed only if
  13243. the branch is not taken. When 'INSN_ANNULLED_BRANCH_P' is not set,
  13244. this insn will always be executed. Stored in the 'in_struct' field
  13245. and printed as '/s'.
  13246. 'LABEL_PRESERVE_P (X)'
  13247. In a 'code_label' or 'note', indicates that the label is referenced
  13248. by code or data not visible to the RTL of a given function. Labels
  13249. referenced by a non-local goto will have this bit set. Stored in
  13250. the 'in_struct' field and printed as '/s'.
  13251. 'LABEL_REF_NONLOCAL_P (X)'
  13252. In 'label_ref' and 'reg_label' expressions, nonzero if this is a
  13253. reference to a non-local label. Stored in the 'volatil' field and
  13254. printed as '/v'.
  13255. 'MEM_KEEP_ALIAS_SET_P (X)'
  13256. In 'mem' expressions, 1 if we should keep the alias set for this
  13257. mem unchanged when we access a component. Set to 1, for example,
  13258. when we are already in a non-addressable component of an aggregate.
  13259. Stored in the 'jump' field and printed as '/j'.
  13260. 'MEM_VOLATILE_P (X)'
  13261. In 'mem', 'asm_operands', and 'asm_input' expressions, nonzero for
  13262. volatile memory references. Stored in the 'volatil' field and
  13263. printed as '/v'.
  13264. 'MEM_NOTRAP_P (X)'
  13265. In 'mem', nonzero for memory references that will not trap. Stored
  13266. in the 'call' field and printed as '/c'.
  13267. 'MEM_POINTER (X)'
  13268. Nonzero in a 'mem' if the memory reference holds a pointer. Stored
  13269. in the 'frame_related' field and printed as '/f'.
  13270. 'MEM_READONLY_P (X)'
  13271. Nonzero in a 'mem', if the memory is statically allocated and
  13272. read-only.
  13273. Read-only in this context means never modified during the lifetime
  13274. of the program, not necessarily in ROM or in write-disabled pages.
  13275. A common example of the later is a shared library's global offset
  13276. table. This table is initialized by the runtime loader, so the
  13277. memory is technically writable, but after control is transferred
  13278. from the runtime loader to the application, this memory will never
  13279. be subsequently modified.
  13280. Stored in the 'unchanging' field and printed as '/u'.
  13281. 'PREFETCH_SCHEDULE_BARRIER_P (X)'
  13282. In a 'prefetch', indicates that the prefetch is a scheduling
  13283. barrier. No other INSNs will be moved over it. Stored in the
  13284. 'volatil' field and printed as '/v'.
  13285. 'REG_FUNCTION_VALUE_P (X)'
  13286. Nonzero in a 'reg' if it is the place in which this function's
  13287. value is going to be returned. (This happens only in a hard
  13288. register.) Stored in the 'return_val' field and printed as '/i'.
  13289. 'REG_POINTER (X)'
  13290. Nonzero in a 'reg' if the register holds a pointer. Stored in the
  13291. 'frame_related' field and printed as '/f'.
  13292. 'REG_USERVAR_P (X)'
  13293. In a 'reg', nonzero if it corresponds to a variable present in the
  13294. user's source code. Zero for temporaries generated internally by
  13295. the compiler. Stored in the 'volatil' field and printed as '/v'.
  13296. The same hard register may be used also for collecting the values
  13297. of functions called by this one, but 'REG_FUNCTION_VALUE_P' is zero
  13298. in this kind of use.
  13299. 'RTL_CONST_CALL_P (X)'
  13300. In a 'call_insn' indicates that the insn represents a call to a
  13301. const function. Stored in the 'unchanging' field and printed as
  13302. '/u'.
  13303. 'RTL_PURE_CALL_P (X)'
  13304. In a 'call_insn' indicates that the insn represents a call to a
  13305. pure function. Stored in the 'return_val' field and printed as
  13306. '/i'.
  13307. 'RTL_CONST_OR_PURE_CALL_P (X)'
  13308. In a 'call_insn', true if 'RTL_CONST_CALL_P' or 'RTL_PURE_CALL_P'
  13309. is true.
  13310. 'RTL_LOOPING_CONST_OR_PURE_CALL_P (X)'
  13311. In a 'call_insn' indicates that the insn represents a possibly
  13312. infinite looping call to a const or pure function. Stored in the
  13313. 'call' field and printed as '/c'. Only true if one of
  13314. 'RTL_CONST_CALL_P' or 'RTL_PURE_CALL_P' is true.
  13315. 'RTX_FRAME_RELATED_P (X)'
  13316. Nonzero in an 'insn', 'call_insn', 'jump_insn', 'barrier', or 'set'
  13317. which is part of a function prologue and sets the stack pointer,
  13318. sets the frame pointer, or saves a register. This flag should also
  13319. be set on an instruction that sets up a temporary register to use
  13320. in place of the frame pointer. Stored in the 'frame_related' field
  13321. and printed as '/f'.
  13322. In particular, on RISC targets where there are limits on the sizes
  13323. of immediate constants, it is sometimes impossible to reach the
  13324. register save area directly from the stack pointer. In that case,
  13325. a temporary register is used that is near enough to the register
  13326. save area, and the Canonical Frame Address, i.e., DWARF2's logical
  13327. frame pointer, register must (temporarily) be changed to be this
  13328. temporary register. So, the instruction that sets this temporary
  13329. register must be marked as 'RTX_FRAME_RELATED_P'.
  13330. If the marked instruction is overly complex (defined in terms of
  13331. what 'dwarf2out_frame_debug_expr' can handle), you will also have
  13332. to create a 'REG_FRAME_RELATED_EXPR' note and attach it to the
  13333. instruction. This note should contain a simple expression of the
  13334. computation performed by this instruction, i.e., one that
  13335. 'dwarf2out_frame_debug_expr' can handle.
  13336. This flag is required for exception handling support on targets
  13337. with RTL prologues.
  13338. 'SCHED_GROUP_P (X)'
  13339. During instruction scheduling, in an 'insn', 'call_insn',
  13340. 'jump_insn' or 'jump_table_data', indicates that the previous insn
  13341. must be scheduled together with this insn. This is used to ensure
  13342. that certain groups of instructions will not be split up by the
  13343. instruction scheduling pass, for example, 'use' insns before a
  13344. 'call_insn' may not be separated from the 'call_insn'. Stored in
  13345. the 'in_struct' field and printed as '/s'.
  13346. 'SET_IS_RETURN_P (X)'
  13347. For a 'set', nonzero if it is for a return. Stored in the 'jump'
  13348. field and printed as '/j'.
  13349. 'SIBLING_CALL_P (X)'
  13350. For a 'call_insn', nonzero if the insn is a sibling call. Stored
  13351. in the 'jump' field and printed as '/j'.
  13352. 'STRING_POOL_ADDRESS_P (X)'
  13353. For a 'symbol_ref' expression, nonzero if it addresses this
  13354. function's string constant pool. Stored in the 'frame_related'
  13355. field and printed as '/f'.
  13356. 'SUBREG_PROMOTED_UNSIGNED_P (X)'
  13357. Returns a value greater then zero for a 'subreg' that has
  13358. 'SUBREG_PROMOTED_VAR_P' nonzero if the object being referenced is
  13359. kept zero-extended, zero if it is kept sign-extended, and less then
  13360. zero if it is extended some other way via the 'ptr_extend'
  13361. instruction. Stored in the 'unchanging' field and 'volatil' field,
  13362. printed as '/u' and '/v'. This macro may only be used to get the
  13363. value it may not be used to change the value. Use
  13364. 'SUBREG_PROMOTED_UNSIGNED_SET' to change the value.
  13365. 'SUBREG_PROMOTED_UNSIGNED_SET (X)'
  13366. Set the 'unchanging' and 'volatil' fields in a 'subreg' to reflect
  13367. zero, sign, or other extension. If 'volatil' is zero, then
  13368. 'unchanging' as nonzero means zero extension and as zero means sign
  13369. extension. If 'volatil' is nonzero then some other type of
  13370. extension was done via the 'ptr_extend' instruction.
  13371. 'SUBREG_PROMOTED_VAR_P (X)'
  13372. Nonzero in a 'subreg' if it was made when accessing an object that
  13373. was promoted to a wider mode in accord with the 'PROMOTED_MODE'
  13374. machine description macro (*note Storage Layout::). In this case,
  13375. the mode of the 'subreg' is the declared mode of the object and the
  13376. mode of 'SUBREG_REG' is the mode of the register that holds the
  13377. object. Promoted variables are always either sign- or
  13378. zero-extended to the wider mode on every assignment. Stored in the
  13379. 'in_struct' field and printed as '/s'.
  13380. 'SYMBOL_REF_USED (X)'
  13381. In a 'symbol_ref', indicates that X has been used. This is
  13382. normally only used to ensure that X is only declared external once.
  13383. Stored in the 'used' field.
  13384. 'SYMBOL_REF_WEAK (X)'
  13385. In a 'symbol_ref', indicates that X has been declared weak. Stored
  13386. in the 'return_val' field and printed as '/i'.
  13387. 'SYMBOL_REF_FLAG (X)'
  13388. In a 'symbol_ref', this is used as a flag for machine-specific
  13389. purposes. Stored in the 'volatil' field and printed as '/v'.
  13390. Most uses of 'SYMBOL_REF_FLAG' are historic and may be subsumed by
  13391. 'SYMBOL_REF_FLAGS'. Certainly use of 'SYMBOL_REF_FLAGS' is
  13392. mandatory if the target requires more than one bit of storage.
  13393. These are the fields to which the above macros refer:
  13394. 'call'
  13395. In a 'mem', 1 means that the memory reference will not trap.
  13396. In a 'call', 1 means that this pure or const call may possibly
  13397. infinite loop.
  13398. In an RTL dump, this flag is represented as '/c'.
  13399. 'frame_related'
  13400. In an 'insn' or 'set' expression, 1 means that it is part of a
  13401. function prologue and sets the stack pointer, sets the frame
  13402. pointer, saves a register, or sets up a temporary register to use
  13403. in place of the frame pointer.
  13404. In 'reg' expressions, 1 means that the register holds a pointer.
  13405. In 'mem' expressions, 1 means that the memory reference holds a
  13406. pointer.
  13407. In 'symbol_ref' expressions, 1 means that the reference addresses
  13408. this function's string constant pool.
  13409. In an RTL dump, this flag is represented as '/f'.
  13410. 'in_struct'
  13411. In 'reg' expressions, it is 1 if the register has its entire life
  13412. contained within the test expression of some loop.
  13413. In 'subreg' expressions, 1 means that the 'subreg' is accessing an
  13414. object that has had its mode promoted from a wider mode.
  13415. In 'label_ref' expressions, 1 means that the referenced label is
  13416. outside the innermost loop containing the insn in which the
  13417. 'label_ref' was found.
  13418. In 'code_label' expressions, it is 1 if the label may never be
  13419. deleted. This is used for labels which are the target of non-local
  13420. gotos. Such a label that would have been deleted is replaced with
  13421. a 'note' of type 'NOTE_INSN_DELETED_LABEL'.
  13422. In an 'insn' during dead-code elimination, 1 means that the insn is
  13423. dead code.
  13424. In an 'insn' or 'jump_insn' during reorg for an insn in the delay
  13425. slot of a branch, 1 means that this insn is from the target of the
  13426. branch.
  13427. In an 'insn' during instruction scheduling, 1 means that this insn
  13428. must be scheduled as part of a group together with the previous
  13429. insn.
  13430. In an RTL dump, this flag is represented as '/s'.
  13431. 'return_val'
  13432. In 'reg' expressions, 1 means the register contains the value to be
  13433. returned by the current function. On machines that pass parameters
  13434. in registers, the same register number may be used for parameters
  13435. as well, but this flag is not set on such uses.
  13436. In 'symbol_ref' expressions, 1 means the referenced symbol is weak.
  13437. In 'call' expressions, 1 means the call is pure.
  13438. In an RTL dump, this flag is represented as '/i'.
  13439. 'jump'
  13440. In a 'mem' expression, 1 means we should keep the alias set for
  13441. this mem unchanged when we access a component.
  13442. In a 'set', 1 means it is for a return.
  13443. In a 'call_insn', 1 means it is a sibling call.
  13444. In a 'jump_insn', 1 means it is a crossing jump.
  13445. In an RTL dump, this flag is represented as '/j'.
  13446. 'unchanging'
  13447. In 'reg' and 'mem' expressions, 1 means that the value of the
  13448. expression never changes.
  13449. In 'subreg' expressions, it is 1 if the 'subreg' references an
  13450. unsigned object whose mode has been promoted to a wider mode.
  13451. In an 'insn' or 'jump_insn' in the delay slot of a branch
  13452. instruction, 1 means an annulling branch should be used.
  13453. In a 'symbol_ref' expression, 1 means that this symbol addresses
  13454. something in the per-function constant pool.
  13455. In a 'call_insn' 1 means that this instruction is a call to a const
  13456. function.
  13457. In an RTL dump, this flag is represented as '/u'.
  13458. 'used'
  13459. This flag is used directly (without an access macro) at the end of
  13460. RTL generation for a function, to count the number of times an
  13461. expression appears in insns. Expressions that appear more than
  13462. once are copied, according to the rules for shared structure (*note
  13463. Sharing::).
  13464. For a 'reg', it is used directly (without an access macro) by the
  13465. leaf register renumbering code to ensure that each register is only
  13466. renumbered once.
  13467. In a 'symbol_ref', it indicates that an external declaration for
  13468. the symbol has already been written.
  13469. 'volatil'
  13470. In a 'mem', 'asm_operands', or 'asm_input' expression, it is 1 if
  13471. the memory reference is volatile. Volatile memory references may
  13472. not be deleted, reordered or combined.
  13473. In a 'symbol_ref' expression, it is used for machine-specific
  13474. purposes.
  13475. In a 'reg' expression, it is 1 if the value is a user-level
  13476. variable. 0 indicates an internal compiler temporary.
  13477. In an 'insn', 1 means the insn has been deleted.
  13478. In 'label_ref' and 'reg_label' expressions, 1 means a reference to
  13479. a non-local label.
  13480. In 'prefetch' expressions, 1 means that the containing insn is a
  13481. scheduling barrier.
  13482. In an RTL dump, this flag is represented as '/v'.
  13483. 
  13484. File: gccint.info, Node: Machine Modes, Next: Constants, Prev: Flags, Up: RTL
  13485. 14.6 Machine Modes
  13486. ==================
  13487. A machine mode describes a size of data object and the representation
  13488. used for it. In the C code, machine modes are represented by an
  13489. enumeration type, 'machine_mode', defined in 'machmode.def'. Each RTL
  13490. expression has room for a machine mode and so do certain kinds of tree
  13491. expressions (declarations and types, to be precise).
  13492. In debugging dumps and machine descriptions, the machine mode of an RTL
  13493. expression is written after the expression code with a colon to separate
  13494. them. The letters 'mode' which appear at the end of each machine mode
  13495. name are omitted. For example, '(reg:SI 38)' is a 'reg' expression with
  13496. machine mode 'SImode'. If the mode is 'VOIDmode', it is not written at
  13497. all.
  13498. Here is a table of machine modes. The term "byte" below refers to an
  13499. object of 'BITS_PER_UNIT' bits (*note Storage Layout::).
  13500. 'BImode'
  13501. "Bit" mode represents a single bit, for predicate registers.
  13502. 'QImode'
  13503. "Quarter-Integer" mode represents a single byte treated as an
  13504. integer.
  13505. 'HImode'
  13506. "Half-Integer" mode represents a two-byte integer.
  13507. 'PSImode'
  13508. "Partial Single Integer" mode represents an integer which occupies
  13509. four bytes but which doesn't really use all four. On some
  13510. machines, this is the right mode to use for pointers.
  13511. 'SImode'
  13512. "Single Integer" mode represents a four-byte integer.
  13513. 'PDImode'
  13514. "Partial Double Integer" mode represents an integer which occupies
  13515. eight bytes but which doesn't really use all eight. On some
  13516. machines, this is the right mode to use for certain pointers.
  13517. 'DImode'
  13518. "Double Integer" mode represents an eight-byte integer.
  13519. 'TImode'
  13520. "Tetra Integer" (?) mode represents a sixteen-byte integer.
  13521. 'OImode'
  13522. "Octa Integer" (?) mode represents a thirty-two-byte integer.
  13523. 'XImode'
  13524. "Hexadeca Integer" (?) mode represents a sixty-four-byte integer.
  13525. 'QFmode'
  13526. "Quarter-Floating" mode represents a quarter-precision (single
  13527. byte) floating point number.
  13528. 'HFmode'
  13529. "Half-Floating" mode represents a half-precision (two byte)
  13530. floating point number.
  13531. 'TQFmode'
  13532. "Three-Quarter-Floating" (?) mode represents a
  13533. three-quarter-precision (three byte) floating point number.
  13534. 'SFmode'
  13535. "Single Floating" mode represents a four byte floating point
  13536. number. In the common case, of a processor with IEEE arithmetic
  13537. and 8-bit bytes, this is a single-precision IEEE floating point
  13538. number; it can also be used for double-precision (on processors
  13539. with 16-bit bytes) and single-precision VAX and IBM types.
  13540. 'DFmode'
  13541. "Double Floating" mode represents an eight byte floating point
  13542. number. In the common case, of a processor with IEEE arithmetic
  13543. and 8-bit bytes, this is a double-precision IEEE floating point
  13544. number.
  13545. 'XFmode'
  13546. "Extended Floating" mode represents an IEEE extended floating point
  13547. number. This mode only has 80 meaningful bits (ten bytes). Some
  13548. processors require such numbers to be padded to twelve bytes,
  13549. others to sixteen; this mode is used for either.
  13550. 'SDmode'
  13551. "Single Decimal Floating" mode represents a four byte decimal
  13552. floating point number (as distinct from conventional binary
  13553. floating point).
  13554. 'DDmode'
  13555. "Double Decimal Floating" mode represents an eight byte decimal
  13556. floating point number.
  13557. 'TDmode'
  13558. "Tetra Decimal Floating" mode represents a sixteen byte decimal
  13559. floating point number all 128 of whose bits are meaningful.
  13560. 'TFmode'
  13561. "Tetra Floating" mode represents a sixteen byte floating point
  13562. number all 128 of whose bits are meaningful. One common use is the
  13563. IEEE quad-precision format.
  13564. 'QQmode'
  13565. "Quarter-Fractional" mode represents a single byte treated as a
  13566. signed fractional number. The default format is "s.7".
  13567. 'HQmode'
  13568. "Half-Fractional" mode represents a two-byte signed fractional
  13569. number. The default format is "s.15".
  13570. 'SQmode'
  13571. "Single Fractional" mode represents a four-byte signed fractional
  13572. number. The default format is "s.31".
  13573. 'DQmode'
  13574. "Double Fractional" mode represents an eight-byte signed fractional
  13575. number. The default format is "s.63".
  13576. 'TQmode'
  13577. "Tetra Fractional" mode represents a sixteen-byte signed fractional
  13578. number. The default format is "s.127".
  13579. 'UQQmode'
  13580. "Unsigned Quarter-Fractional" mode represents a single byte treated
  13581. as an unsigned fractional number. The default format is ".8".
  13582. 'UHQmode'
  13583. "Unsigned Half-Fractional" mode represents a two-byte unsigned
  13584. fractional number. The default format is ".16".
  13585. 'USQmode'
  13586. "Unsigned Single Fractional" mode represents a four-byte unsigned
  13587. fractional number. The default format is ".32".
  13588. 'UDQmode'
  13589. "Unsigned Double Fractional" mode represents an eight-byte unsigned
  13590. fractional number. The default format is ".64".
  13591. 'UTQmode'
  13592. "Unsigned Tetra Fractional" mode represents a sixteen-byte unsigned
  13593. fractional number. The default format is ".128".
  13594. 'HAmode'
  13595. "Half-Accumulator" mode represents a two-byte signed accumulator.
  13596. The default format is "s8.7".
  13597. 'SAmode'
  13598. "Single Accumulator" mode represents a four-byte signed
  13599. accumulator. The default format is "s16.15".
  13600. 'DAmode'
  13601. "Double Accumulator" mode represents an eight-byte signed
  13602. accumulator. The default format is "s32.31".
  13603. 'TAmode'
  13604. "Tetra Accumulator" mode represents a sixteen-byte signed
  13605. accumulator. The default format is "s64.63".
  13606. 'UHAmode'
  13607. "Unsigned Half-Accumulator" mode represents a two-byte unsigned
  13608. accumulator. The default format is "8.8".
  13609. 'USAmode'
  13610. "Unsigned Single Accumulator" mode represents a four-byte unsigned
  13611. accumulator. The default format is "16.16".
  13612. 'UDAmode'
  13613. "Unsigned Double Accumulator" mode represents an eight-byte
  13614. unsigned accumulator. The default format is "32.32".
  13615. 'UTAmode'
  13616. "Unsigned Tetra Accumulator" mode represents a sixteen-byte
  13617. unsigned accumulator. The default format is "64.64".
  13618. 'CCmode'
  13619. "Condition Code" mode represents the value of a condition code,
  13620. which is a machine-specific set of bits used to represent the
  13621. result of a comparison operation. Other machine-specific modes may
  13622. also be used for the condition code. These modes are not used on
  13623. machines that use 'cc0' (*note Condition Code::).
  13624. 'BLKmode'
  13625. "Block" mode represents values that are aggregates to which none of
  13626. the other modes apply. In RTL, only memory references can have
  13627. this mode, and only if they appear in string-move or vector
  13628. instructions. On machines which have no such instructions,
  13629. 'BLKmode' will not appear in RTL.
  13630. 'VOIDmode'
  13631. Void mode means the absence of a mode or an unspecified mode. For
  13632. example, RTL expressions of code 'const_int' have mode 'VOIDmode'
  13633. because they can be taken to have whatever mode the context
  13634. requires. In debugging dumps of RTL, 'VOIDmode' is expressed by
  13635. the absence of any mode.
  13636. 'QCmode, HCmode, SCmode, DCmode, XCmode, TCmode'
  13637. These modes stand for a complex number represented as a pair of
  13638. floating point values. The floating point values are in 'QFmode',
  13639. 'HFmode', 'SFmode', 'DFmode', 'XFmode', and 'TFmode', respectively.
  13640. 'CQImode, CHImode, CSImode, CDImode, CTImode, COImode, CPSImode'
  13641. These modes stand for a complex number represented as a pair of
  13642. integer values. The integer values are in 'QImode', 'HImode',
  13643. 'SImode', 'DImode', 'TImode', 'OImode', and 'PSImode',
  13644. respectively.
  13645. 'BND32mode BND64mode'
  13646. These modes stand for bounds for pointer of 32 and 64 bit size
  13647. respectively. Mode size is double pointer mode size.
  13648. The machine description defines 'Pmode' as a C macro which expands into
  13649. the machine mode used for addresses. Normally this is the mode whose
  13650. size is 'BITS_PER_WORD', 'SImode' on 32-bit machines.
  13651. The only modes which a machine description must support are 'QImode',
  13652. and the modes corresponding to 'BITS_PER_WORD', 'FLOAT_TYPE_SIZE' and
  13653. 'DOUBLE_TYPE_SIZE'. The compiler will attempt to use 'DImode' for
  13654. 8-byte structures and unions, but this can be prevented by overriding
  13655. the definition of 'MAX_FIXED_MODE_SIZE'. Alternatively, you can have
  13656. the compiler use 'TImode' for 16-byte structures and unions. Likewise,
  13657. you can arrange for the C type 'short int' to avoid using 'HImode'.
  13658. Very few explicit references to machine modes remain in the compiler
  13659. and these few references will soon be removed. Instead, the machine
  13660. modes are divided into mode classes. These are represented by the
  13661. enumeration type 'enum mode_class' defined in 'machmode.h'. The
  13662. possible mode classes are:
  13663. 'MODE_INT'
  13664. Integer modes. By default these are 'BImode', 'QImode', 'HImode',
  13665. 'SImode', 'DImode', 'TImode', and 'OImode'.
  13666. 'MODE_PARTIAL_INT'
  13667. The "partial integer" modes, 'PQImode', 'PHImode', 'PSImode' and
  13668. 'PDImode'.
  13669. 'MODE_FLOAT'
  13670. Floating point modes. By default these are 'QFmode', 'HFmode',
  13671. 'TQFmode', 'SFmode', 'DFmode', 'XFmode' and 'TFmode'.
  13672. 'MODE_DECIMAL_FLOAT'
  13673. Decimal floating point modes. By default these are 'SDmode',
  13674. 'DDmode' and 'TDmode'.
  13675. 'MODE_FRACT'
  13676. Signed fractional modes. By default these are 'QQmode', 'HQmode',
  13677. 'SQmode', 'DQmode' and 'TQmode'.
  13678. 'MODE_UFRACT'
  13679. Unsigned fractional modes. By default these are 'UQQmode',
  13680. 'UHQmode', 'USQmode', 'UDQmode' and 'UTQmode'.
  13681. 'MODE_ACCUM'
  13682. Signed accumulator modes. By default these are 'HAmode', 'SAmode',
  13683. 'DAmode' and 'TAmode'.
  13684. 'MODE_UACCUM'
  13685. Unsigned accumulator modes. By default these are 'UHAmode',
  13686. 'USAmode', 'UDAmode' and 'UTAmode'.
  13687. 'MODE_COMPLEX_INT'
  13688. Complex integer modes. (These are not currently implemented).
  13689. 'MODE_COMPLEX_FLOAT'
  13690. Complex floating point modes. By default these are 'QCmode',
  13691. 'HCmode', 'SCmode', 'DCmode', 'XCmode', and 'TCmode'.
  13692. 'MODE_CC'
  13693. Modes representing condition code values. These are 'CCmode' plus
  13694. any 'CC_MODE' modes listed in the 'MACHINE-modes.def'. *Note Jump
  13695. Patterns::, also see *note Condition Code::.
  13696. 'MODE_POINTER_BOUNDS'
  13697. Pointer bounds modes. Used to represent values of pointer bounds
  13698. type. Operations in these modes may be executed as NOPs depending
  13699. on hardware features and environment setup.
  13700. 'MODE_RANDOM'
  13701. This is a catchall mode class for modes which don't fit into the
  13702. above classes. Currently 'VOIDmode' and 'BLKmode' are in
  13703. 'MODE_RANDOM'.
  13704. 'machmode.h' also defines various wrapper classes that combine a
  13705. 'machine_mode' with a static assertion that a particular condition
  13706. holds. The classes are:
  13707. 'scalar_int_mode'
  13708. A mode that has class 'MODE_INT' or 'MODE_PARTIAL_INT'.
  13709. 'scalar_float_mode'
  13710. A mode that has class 'MODE_FLOAT' or 'MODE_DECIMAL_FLOAT'.
  13711. 'scalar_mode'
  13712. A mode that holds a single numerical value. In practice this means
  13713. that the mode is a 'scalar_int_mode', is a 'scalar_float_mode', or
  13714. has class 'MODE_FRACT', 'MODE_UFRACT', 'MODE_ACCUM', 'MODE_UACCUM'
  13715. or 'MODE_POINTER_BOUNDS'.
  13716. 'complex_mode'
  13717. A mode that has class 'MODE_COMPLEX_INT' or 'MODE_COMPLEX_FLOAT'.
  13718. 'fixed_size_mode'
  13719. A mode whose size is known at compile time.
  13720. Named modes use the most constrained of the available wrapper classes,
  13721. if one exists, otherwise they use 'machine_mode'. For example, 'QImode'
  13722. is a 'scalar_int_mode', 'SFmode' is a 'scalar_float_mode' and 'BLKmode'
  13723. is a plain 'machine_mode'. It is possible to refer to any mode as a raw
  13724. 'machine_mode' by adding the 'E_' prefix, where 'E' stands for
  13725. "enumeration". For example, the raw 'machine_mode' names of the modes
  13726. just mentioned are 'E_QImode', 'E_SFmode' and 'E_BLKmode' respectively.
  13727. The wrapper classes implicitly convert to 'machine_mode' and to any
  13728. wrapper class that represents a more general condition; for example
  13729. 'scalar_int_mode' and 'scalar_float_mode' both convert to 'scalar_mode'
  13730. and all three convert to 'fixed_size_mode'. The classes act like
  13731. 'machine_mode's that accept only certain named modes.
  13732. 'machmode.h' also defines a template class 'opt_mode<T>' that holds a
  13733. 'T' or nothing, where 'T' can be either 'machine_mode' or one of the
  13734. wrapper classes above. The main operations on an 'opt_mode<T>' X are as
  13735. follows:
  13736. 'X.exists ()'
  13737. Return true if X holds a mode rather than nothing.
  13738. 'X.exists (&Y)'
  13739. Return true if X holds a mode rather than nothing, storing the mode
  13740. in Y if so. Y must be assignment-compatible with T.
  13741. 'X.require ()'
  13742. Assert that X holds a mode rather than nothing and return that
  13743. mode.
  13744. 'X = Y'
  13745. Set X to Y, where Y is a T or implicitly converts to a T.
  13746. The default constructor sets an 'opt_mode<T>' to nothing. There is
  13747. also a constructor that takes an initial value of type T.
  13748. It is possible to use the 'is-a.h' accessors on a 'machine_mode' or
  13749. machine mode wrapper X:
  13750. 'is_a <T> (X)'
  13751. Return true if X meets the conditions for wrapper class T.
  13752. 'is_a <T> (X, &Y)'
  13753. Return true if X meets the conditions for wrapper class T, storing
  13754. it in Y if so. Y must be assignment-compatible with T.
  13755. 'as_a <T> (X)'
  13756. Assert that X meets the conditions for wrapper class T and return
  13757. it as a T.
  13758. 'dyn_cast <T> (X)'
  13759. Return an 'opt_mode<T>' that holds X if X meets the conditions for
  13760. wrapper class T and that holds nothing otherwise.
  13761. The purpose of these wrapper classes is to give stronger static type
  13762. checking. For example, if a function takes a 'scalar_int_mode', a
  13763. caller that has a general 'machine_mode' must either check or assert
  13764. that the code is indeed a scalar integer first, using one of the
  13765. functions above.
  13766. The wrapper classes are normal C++ classes, with user-defined
  13767. constructors. Sometimes it is useful to have a POD version of the same
  13768. type, particularly if the type appears in a 'union'. The template class
  13769. 'pod_mode<T>' provides a POD version of wrapper class T. It is
  13770. assignment-compatible with T and implicitly converts to both
  13771. 'machine_mode' and T.
  13772. Here are some C macros that relate to machine modes:
  13773. 'GET_MODE (X)'
  13774. Returns the machine mode of the RTX X.
  13775. 'PUT_MODE (X, NEWMODE)'
  13776. Alters the machine mode of the RTX X to be NEWMODE.
  13777. 'NUM_MACHINE_MODES'
  13778. Stands for the number of machine modes available on the target
  13779. machine. This is one greater than the largest numeric value of any
  13780. machine mode.
  13781. 'GET_MODE_NAME (M)'
  13782. Returns the name of mode M as a string.
  13783. 'GET_MODE_CLASS (M)'
  13784. Returns the mode class of mode M.
  13785. 'GET_MODE_WIDER_MODE (M)'
  13786. Returns the next wider natural mode. For example, the expression
  13787. 'GET_MODE_WIDER_MODE (QImode)' returns 'HImode'.
  13788. 'GET_MODE_SIZE (M)'
  13789. Returns the size in bytes of a datum of mode M.
  13790. 'GET_MODE_BITSIZE (M)'
  13791. Returns the size in bits of a datum of mode M.
  13792. 'GET_MODE_IBIT (M)'
  13793. Returns the number of integral bits of a datum of fixed-point mode
  13794. M.
  13795. 'GET_MODE_FBIT (M)'
  13796. Returns the number of fractional bits of a datum of fixed-point
  13797. mode M.
  13798. 'GET_MODE_MASK (M)'
  13799. Returns a bitmask containing 1 for all bits in a word that fit
  13800. within mode M. This macro can only be used for modes whose bitsize
  13801. is less than or equal to 'HOST_BITS_PER_INT'.
  13802. 'GET_MODE_ALIGNMENT (M)'
  13803. Return the required alignment, in bits, for an object of mode M.
  13804. 'GET_MODE_UNIT_SIZE (M)'
  13805. Returns the size in bytes of the subunits of a datum of mode M.
  13806. This is the same as 'GET_MODE_SIZE' except in the case of complex
  13807. modes. For them, the unit size is the size of the real or
  13808. imaginary part.
  13809. 'GET_MODE_NUNITS (M)'
  13810. Returns the number of units contained in a mode, i.e.,
  13811. 'GET_MODE_SIZE' divided by 'GET_MODE_UNIT_SIZE'.
  13812. 'GET_CLASS_NARROWEST_MODE (C)'
  13813. Returns the narrowest mode in mode class C.
  13814. The following 3 variables are defined on every target. They can be
  13815. used to allocate buffers that are guaranteed to be large enough to hold
  13816. any value that can be represented on the target. The first two can be
  13817. overridden by defining them in the target's mode.def file, however, the
  13818. value must be a constant that can determined very early in the
  13819. compilation process. The third symbol cannot be overridden.
  13820. 'BITS_PER_UNIT'
  13821. The number of bits in an addressable storage unit (byte). If you
  13822. do not define this, the default is 8.
  13823. 'MAX_BITSIZE_MODE_ANY_INT'
  13824. The maximum bitsize of any mode that is used in integer math. This
  13825. should be overridden by the target if it uses large integers as
  13826. containers for larger vectors but otherwise never uses the contents
  13827. to compute integer values.
  13828. 'MAX_BITSIZE_MODE_ANY_MODE'
  13829. The bitsize of the largest mode on the target. The default value
  13830. is the largest mode size given in the mode definition file, which
  13831. is always correct for targets whose modes have a fixed size.
  13832. Targets that might increase the size of a mode beyond this default
  13833. should define 'MAX_BITSIZE_MODE_ANY_MODE' to the actual upper limit
  13834. in 'MACHINE-modes.def'.
  13835. The global variables 'byte_mode' and 'word_mode' contain modes whose
  13836. classes are 'MODE_INT' and whose bitsizes are either 'BITS_PER_UNIT' or
  13837. 'BITS_PER_WORD', respectively. On 32-bit machines, these are 'QImode'
  13838. and 'SImode', respectively.
  13839. 
  13840. File: gccint.info, Node: Constants, Next: Regs and Memory, Prev: Machine Modes, Up: RTL
  13841. 14.7 Constant Expression Types
  13842. ==============================
  13843. The simplest RTL expressions are those that represent constant values.
  13844. '(const_int I)'
  13845. This type of expression represents the integer value I. I is
  13846. customarily accessed with the macro 'INTVAL' as in 'INTVAL (EXP)',
  13847. which is equivalent to 'XWINT (EXP, 0)'.
  13848. Constants generated for modes with fewer bits than in
  13849. 'HOST_WIDE_INT' must be sign extended to full width (e.g., with
  13850. 'gen_int_mode'). For constants for modes with more bits than in
  13851. 'HOST_WIDE_INT' the implied high order bits of that constant are
  13852. copies of the top bit. Note however that values are neither
  13853. inherently signed nor inherently unsigned; where necessary,
  13854. signedness is determined by the rtl operation instead.
  13855. There is only one expression object for the integer value zero; it
  13856. is the value of the variable 'const0_rtx'. Likewise, the only
  13857. expression for integer value one is found in 'const1_rtx', the only
  13858. expression for integer value two is found in 'const2_rtx', and the
  13859. only expression for integer value negative one is found in
  13860. 'constm1_rtx'. Any attempt to create an expression of code
  13861. 'const_int' and value zero, one, two or negative one will return
  13862. 'const0_rtx', 'const1_rtx', 'const2_rtx' or 'constm1_rtx' as
  13863. appropriate.
  13864. Similarly, there is only one object for the integer whose value is
  13865. 'STORE_FLAG_VALUE'. It is found in 'const_true_rtx'. If
  13866. 'STORE_FLAG_VALUE' is one, 'const_true_rtx' and 'const1_rtx' will
  13867. point to the same object. If 'STORE_FLAG_VALUE' is -1,
  13868. 'const_true_rtx' and 'constm1_rtx' will point to the same object.
  13869. '(const_double:M I0 I1 ...)'
  13870. This represents either a floating-point constant of mode M or (on
  13871. older ports that do not define 'TARGET_SUPPORTS_WIDE_INT') an
  13872. integer constant too large to fit into 'HOST_BITS_PER_WIDE_INT'
  13873. bits but small enough to fit within twice that number of bits. In
  13874. the latter case, M will be 'VOIDmode'. For integral values
  13875. constants for modes with more bits than twice the number in
  13876. 'HOST_WIDE_INT' the implied high order bits of that constant are
  13877. copies of the top bit of 'CONST_DOUBLE_HIGH'. Note however that
  13878. integral values are neither inherently signed nor inherently
  13879. unsigned; where necessary, signedness is determined by the rtl
  13880. operation instead.
  13881. On more modern ports, 'CONST_DOUBLE' only represents floating point
  13882. values. New ports define 'TARGET_SUPPORTS_WIDE_INT' to make this
  13883. designation.
  13884. If M is 'VOIDmode', the bits of the value are stored in I0 and I1.
  13885. I0 is customarily accessed with the macro 'CONST_DOUBLE_LOW' and I1
  13886. with 'CONST_DOUBLE_HIGH'.
  13887. If the constant is floating point (regardless of its precision),
  13888. then the number of integers used to store the value depends on the
  13889. size of 'REAL_VALUE_TYPE' (*note Floating Point::). The integers
  13890. represent a floating point number, but not precisely in the target
  13891. machine's or host machine's floating point format. To convert them
  13892. to the precise bit pattern used by the target machine, use the
  13893. macro 'REAL_VALUE_TO_TARGET_DOUBLE' and friends (*note Data
  13894. Output::).
  13895. '(const_wide_int:M NUNITS ELT0 ...)'
  13896. This contains an array of 'HOST_WIDE_INT's that is large enough to
  13897. hold any constant that can be represented on the target. This form
  13898. of rtl is only used on targets that define
  13899. 'TARGET_SUPPORTS_WIDE_INT' to be nonzero and then 'CONST_DOUBLE's
  13900. are only used to hold floating-point values. If the target leaves
  13901. 'TARGET_SUPPORTS_WIDE_INT' defined as 0, 'CONST_WIDE_INT's are not
  13902. used and 'CONST_DOUBLE's are as they were before.
  13903. The values are stored in a compressed format. The higher-order 0s
  13904. or -1s are not represented if they are just the logical sign
  13905. extension of the number that is represented.
  13906. 'CONST_WIDE_INT_VEC (CODE)'
  13907. Returns the entire array of 'HOST_WIDE_INT's that are used to store
  13908. the value. This macro should be rarely used.
  13909. 'CONST_WIDE_INT_NUNITS (CODE)'
  13910. The number of 'HOST_WIDE_INT's used to represent the number. Note
  13911. that this generally is smaller than the number of 'HOST_WIDE_INT's
  13912. implied by the mode size.
  13913. 'CONST_WIDE_INT_ELT (CODE,I)'
  13914. Returns the 'i'th element of the array. Element 0 is contains the
  13915. low order bits of the constant.
  13916. '(const_fixed:M ...)'
  13917. Represents a fixed-point constant of mode M. The operand is a data
  13918. structure of type 'struct fixed_value' and is accessed with the
  13919. macro 'CONST_FIXED_VALUE'. The high part of data is accessed with
  13920. 'CONST_FIXED_VALUE_HIGH'; the low part is accessed with
  13921. 'CONST_FIXED_VALUE_LOW'.
  13922. '(const_poly_int:M [C0 C1 ...])'
  13923. Represents a 'poly_int'-style polynomial integer with coefficients
  13924. C0, C1, .... The coefficients are 'wide_int'-based integers rather
  13925. than rtxes. 'CONST_POLY_INT_COEFFS' gives the values of individual
  13926. coefficients (which is mostly only useful in low-level routines)
  13927. and 'const_poly_int_value' gives the full 'poly_int' value.
  13928. '(const_vector:M [X0 X1 ...])'
  13929. Represents a vector constant. The values in square brackets are
  13930. elements of the vector, which are always 'const_int',
  13931. 'const_wide_int', 'const_double' or 'const_fixed' expressions.
  13932. Each vector constant V is treated as a specific instance of an
  13933. arbitrary-length sequence that itself contains
  13934. 'CONST_VECTOR_NPATTERNS (V)' interleaved patterns. Each pattern
  13935. has the form:
  13936. { BASE0, BASE1, BASE1 + STEP, BASE1 + STEP * 2, ... }
  13937. The first three elements in each pattern are enough to determine
  13938. the values of the other elements. However, if all STEPs are zero,
  13939. only the first two elements are needed. If in addition each BASE1
  13940. is equal to the corresponding BASE0, only the first element in each
  13941. pattern is needed. The number of determining elements per pattern
  13942. is given by 'CONST_VECTOR_NELTS_PER_PATTERN (V)'.
  13943. For example, the constant:
  13944. { 0, 1, 2, 6, 3, 8, 4, 10, 5, 12, 6, 14, 7, 16, 8, 18 }
  13945. is interpreted as an interleaving of the sequences:
  13946. { 0, 2, 3, 4, 5, 6, 7, 8 }
  13947. { 1, 6, 8, 10, 12, 14, 16, 18 }
  13948. where the sequences are represented by the following patterns:
  13949. BASE0 == 0, BASE1 == 2, STEP == 1
  13950. BASE0 == 1, BASE1 == 6, STEP == 2
  13951. In this case:
  13952. CONST_VECTOR_NPATTERNS (V) == 2
  13953. CONST_VECTOR_NELTS_PER_PATTERN (V) == 3
  13954. Thus the first 6 elements ('{ 0, 1, 2, 6, 3, 8 }') are enough to
  13955. determine the whole sequence; we refer to them as the "encoded"
  13956. elements. They are the only elements present in the square
  13957. brackets for variable-length 'const_vector's (i.e. for
  13958. 'const_vector's whose mode M has a variable number of elements).
  13959. However, as a convenience to code that needs to handle both
  13960. 'const_vector's and 'parallel's, all elements are present in the
  13961. square brackets for fixed-length 'const_vector's; the encoding
  13962. scheme simply reduces the amount of work involved in processing
  13963. constants that follow a regular pattern.
  13964. Sometimes this scheme can create two possible encodings of the same
  13965. vector. For example { 0, 1 } could be seen as two patterns with
  13966. one element each or one pattern with two elements (BASE0 and
  13967. BASE1). The canonical encoding is always the one with the fewest
  13968. patterns or (if both encodings have the same number of petterns)
  13969. the one with the fewest encoded elements.
  13970. 'const_vector_encoding_nelts (V)' gives the total number of encoded
  13971. elements in V, which is 6 in the example above.
  13972. 'CONST_VECTOR_ENCODED_ELT (V, I)' accesses the value of encoded
  13973. element I.
  13974. 'CONST_VECTOR_DUPLICATE_P (V)' is true if V simply contains
  13975. repeated instances of 'CONST_VECTOR_NPATTERNS (V)' values. This is
  13976. a shorthand for testing 'CONST_VECTOR_NELTS_PER_PATTERN (V) == 1'.
  13977. 'CONST_VECTOR_STEPPED_P (V)' is true if at least one pattern in V
  13978. has a nonzero step. This is a shorthand for testing
  13979. 'CONST_VECTOR_NELTS_PER_PATTERN (V) == 3'.
  13980. 'CONST_VECTOR_NUNITS (V)' gives the total number of elements in V;
  13981. it is a shorthand for getting the number of units in 'GET_MODE
  13982. (V)'.
  13983. The utility function 'const_vector_elt' gives the value of an
  13984. arbitrary element as an 'rtx'. 'const_vector_int_elt' gives the
  13985. same value as a 'wide_int'.
  13986. '(const_string STR)'
  13987. Represents a constant string with value STR. Currently this is
  13988. used only for insn attributes (*note Insn Attributes::) since
  13989. constant strings in C are placed in memory.
  13990. '(symbol_ref:MODE SYMBOL)'
  13991. Represents the value of an assembler label for data. SYMBOL is a
  13992. string that describes the name of the assembler label. If it
  13993. starts with a '*', the label is the rest of SYMBOL not including
  13994. the '*'. Otherwise, the label is SYMBOL, usually prefixed with
  13995. '_'.
  13996. The 'symbol_ref' contains a mode, which is usually 'Pmode'.
  13997. Usually that is the only mode for which a symbol is directly valid.
  13998. '(label_ref:MODE LABEL)'
  13999. Represents the value of an assembler label for code. It contains
  14000. one operand, an expression, which must be a 'code_label' or a
  14001. 'note' of type 'NOTE_INSN_DELETED_LABEL' that appears in the
  14002. instruction sequence to identify the place where the label should
  14003. go.
  14004. The reason for using a distinct expression type for code label
  14005. references is so that jump optimization can distinguish them.
  14006. The 'label_ref' contains a mode, which is usually 'Pmode'. Usually
  14007. that is the only mode for which a label is directly valid.
  14008. '(const:M EXP)'
  14009. Represents a constant that is the result of an assembly-time
  14010. arithmetic computation. The operand, EXP, contains only
  14011. 'const_int', 'symbol_ref', 'label_ref' or 'unspec' expressions,
  14012. combined with 'plus' and 'minus'. Any such 'unspec's are
  14013. target-specific and typically represent some form of relocation
  14014. operator. M should be a valid address mode.
  14015. '(high:M EXP)'
  14016. Represents the high-order bits of EXP. The number of bits is
  14017. machine-dependent and is normally the number of bits specified in
  14018. an instruction that initializes the high order bits of a register.
  14019. It is used with 'lo_sum' to represent the typical two-instruction
  14020. sequence used in RISC machines to reference large immediate values
  14021. and/or link-time constants such as global memory addresses. In the
  14022. latter case, M is 'Pmode' and EXP is usually a constant expression
  14023. involving 'symbol_ref'.
  14024. The macro 'CONST0_RTX (MODE)' refers to an expression with value 0 in
  14025. mode MODE. If mode MODE is of mode class 'MODE_INT', it returns
  14026. 'const0_rtx'. If mode MODE is of mode class 'MODE_FLOAT', it returns a
  14027. 'CONST_DOUBLE' expression in mode MODE. Otherwise, it returns a
  14028. 'CONST_VECTOR' expression in mode MODE. Similarly, the macro
  14029. 'CONST1_RTX (MODE)' refers to an expression with value 1 in mode MODE
  14030. and similarly for 'CONST2_RTX'. The 'CONST1_RTX' and 'CONST2_RTX'
  14031. macros are undefined for vector modes.
  14032. 
  14033. File: gccint.info, Node: Regs and Memory, Next: Arithmetic, Prev: Constants, Up: RTL
  14034. 14.8 Registers and Memory
  14035. =========================
  14036. Here are the RTL expression types for describing access to machine
  14037. registers and to main memory.
  14038. '(reg:M N)'
  14039. For small values of the integer N (those that are less than
  14040. 'FIRST_PSEUDO_REGISTER'), this stands for a reference to machine
  14041. register number N: a "hard register". For larger values of N, it
  14042. stands for a temporary value or "pseudo register". The compiler's
  14043. strategy is to generate code assuming an unlimited number of such
  14044. pseudo registers, and later convert them into hard registers or
  14045. into memory references.
  14046. M is the machine mode of the reference. It is necessary because
  14047. machines can generally refer to each register in more than one
  14048. mode. For example, a register may contain a full word but there
  14049. may be instructions to refer to it as a half word or as a single
  14050. byte, as well as instructions to refer to it as a floating point
  14051. number of various precisions.
  14052. Even for a register that the machine can access in only one mode,
  14053. the mode must always be specified.
  14054. The symbol 'FIRST_PSEUDO_REGISTER' is defined by the machine
  14055. description, since the number of hard registers on the machine is
  14056. an invariant characteristic of the machine. Note, however, that
  14057. not all of the machine registers must be general registers. All
  14058. the machine registers that can be used for storage of data are
  14059. given hard register numbers, even those that can be used only in
  14060. certain instructions or can hold only certain types of data.
  14061. A hard register may be accessed in various modes throughout one
  14062. function, but each pseudo register is given a natural mode and is
  14063. accessed only in that mode. When it is necessary to describe an
  14064. access to a pseudo register using a nonnatural mode, a 'subreg'
  14065. expression is used.
  14066. A 'reg' expression with a machine mode that specifies more than one
  14067. word of data may actually stand for several consecutive registers.
  14068. If in addition the register number specifies a hardware register,
  14069. then it actually represents several consecutive hardware registers
  14070. starting with the specified one.
  14071. Each pseudo register number used in a function's RTL code is
  14072. represented by a unique 'reg' expression.
  14073. Some pseudo register numbers, those within the range of
  14074. 'FIRST_VIRTUAL_REGISTER' to 'LAST_VIRTUAL_REGISTER' only appear
  14075. during the RTL generation phase and are eliminated before the
  14076. optimization phases. These represent locations in the stack frame
  14077. that cannot be determined until RTL generation for the function has
  14078. been completed. The following virtual register numbers are
  14079. defined:
  14080. 'VIRTUAL_INCOMING_ARGS_REGNUM'
  14081. This points to the first word of the incoming arguments passed
  14082. on the stack. Normally these arguments are placed there by
  14083. the caller, but the callee may have pushed some arguments that
  14084. were previously passed in registers.
  14085. When RTL generation is complete, this virtual register is
  14086. replaced by the sum of the register given by
  14087. 'ARG_POINTER_REGNUM' and the value of 'FIRST_PARM_OFFSET'.
  14088. 'VIRTUAL_STACK_VARS_REGNUM'
  14089. If 'FRAME_GROWS_DOWNWARD' is defined to a nonzero value, this
  14090. points to immediately above the first variable on the stack.
  14091. Otherwise, it points to the first variable on the stack.
  14092. 'VIRTUAL_STACK_VARS_REGNUM' is replaced with the sum of the
  14093. register given by 'FRAME_POINTER_REGNUM' and the value
  14094. 'TARGET_STARTING_FRAME_OFFSET'.
  14095. 'VIRTUAL_STACK_DYNAMIC_REGNUM'
  14096. This points to the location of dynamically allocated memory on
  14097. the stack immediately after the stack pointer has been
  14098. adjusted by the amount of memory desired.
  14099. This virtual register is replaced by the sum of the register
  14100. given by 'STACK_POINTER_REGNUM' and the value
  14101. 'STACK_DYNAMIC_OFFSET'.
  14102. 'VIRTUAL_OUTGOING_ARGS_REGNUM'
  14103. This points to the location in the stack at which outgoing
  14104. arguments should be written when the stack is pre-pushed
  14105. (arguments pushed using push insns should always use
  14106. 'STACK_POINTER_REGNUM').
  14107. This virtual register is replaced by the sum of the register
  14108. given by 'STACK_POINTER_REGNUM' and the value
  14109. 'STACK_POINTER_OFFSET'.
  14110. '(subreg:M1 REG:M2 BYTENUM)'
  14111. 'subreg' expressions are used to refer to a register in a machine
  14112. mode other than its natural one, or to refer to one register of a
  14113. multi-part 'reg' that actually refers to several registers.
  14114. Each pseudo register has a natural mode. If it is necessary to
  14115. operate on it in a different mode, the register must be enclosed in
  14116. a 'subreg'.
  14117. There are currently three supported types for the first operand of
  14118. a 'subreg':
  14119. * pseudo registers This is the most common case. Most 'subreg's
  14120. have pseudo 'reg's as their first operand.
  14121. * mem 'subreg's of 'mem' were common in earlier versions of GCC
  14122. and are still supported. During the reload pass these are
  14123. replaced by plain 'mem's. On machines that do not do
  14124. instruction scheduling, use of 'subreg's of 'mem' are still
  14125. used, but this is no longer recommended. Such 'subreg's are
  14126. considered to be 'register_operand's rather than
  14127. 'memory_operand's before and during reload. Because of this,
  14128. the scheduling passes cannot properly schedule instructions
  14129. with 'subreg's of 'mem', so for machines that do scheduling,
  14130. 'subreg's of 'mem' should never be used. To support this, the
  14131. combine and recog passes have explicit code to inhibit the
  14132. creation of 'subreg's of 'mem' when 'INSN_SCHEDULING' is
  14133. defined.
  14134. The use of 'subreg's of 'mem' after the reload pass is an area
  14135. that is not well understood and should be avoided. There is
  14136. still some code in the compiler to support this, but this code
  14137. has possibly rotted. This use of 'subreg's is discouraged and
  14138. will most likely not be supported in the future.
  14139. * hard registers It is seldom necessary to wrap hard registers
  14140. in 'subreg's; such registers would normally reduce to a single
  14141. 'reg' rtx. This use of 'subreg's is discouraged and may not
  14142. be supported in the future.
  14143. 'subreg's of 'subreg's are not supported. Using
  14144. 'simplify_gen_subreg' is the recommended way to avoid this problem.
  14145. 'subreg's come in two distinct flavors, each having its own usage
  14146. and rules:
  14147. Paradoxical subregs
  14148. When M1 is strictly wider than M2, the 'subreg' expression is
  14149. called "paradoxical". The canonical test for this class of
  14150. 'subreg' is:
  14151. paradoxical_subreg_p (M1, M2)
  14152. Paradoxical 'subreg's can be used as both lvalues and rvalues.
  14153. When used as an lvalue, the low-order bits of the source value
  14154. are stored in REG and the high-order bits are discarded. When
  14155. used as an rvalue, the low-order bits of the 'subreg' are
  14156. taken from REG while the high-order bits may or may not be
  14157. defined.
  14158. The high-order bits of rvalues are defined in the following
  14159. circumstances:
  14160. * 'subreg's of 'mem' When M2 is smaller than a word, the
  14161. macro 'LOAD_EXTEND_OP', can control how the high-order
  14162. bits are defined.
  14163. * 'subreg' of 'reg's The upper bits are defined when
  14164. 'SUBREG_PROMOTED_VAR_P' is true.
  14165. 'SUBREG_PROMOTED_UNSIGNED_P' describes what the upper
  14166. bits hold. Such subregs usually represent local
  14167. variables, register variables and parameter pseudo
  14168. variables that have been promoted to a wider mode.
  14169. BYTENUM is always zero for a paradoxical 'subreg', even on
  14170. big-endian targets.
  14171. For example, the paradoxical 'subreg':
  14172. (set (subreg:SI (reg:HI X) 0) Y)
  14173. stores the lower 2 bytes of Y in X and discards the upper 2
  14174. bytes. A subsequent:
  14175. (set Z (subreg:SI (reg:HI X) 0))
  14176. would set the lower two bytes of Z to Y and set the upper two
  14177. bytes to an unknown value assuming 'SUBREG_PROMOTED_VAR_P' is
  14178. false.
  14179. Normal subregs
  14180. When M1 is at least as narrow as M2 the 'subreg' expression is
  14181. called "normal".
  14182. Normal 'subreg's restrict consideration to certain bits of
  14183. REG. For this purpose, REG is divided into
  14184. individually-addressable blocks in which each block has:
  14185. REGMODE_NATURAL_SIZE (M2)
  14186. bytes. Usually the value is 'UNITS_PER_WORD'; that is, most
  14187. targets usually treat each word of a register as being
  14188. independently addressable.
  14189. There are two types of normal 'subreg'. If M1 is known to be
  14190. no bigger than a block, the 'subreg' refers to the
  14191. least-significant part (or "lowpart") of one block of REG. If
  14192. M1 is known to be larger than a block, the 'subreg' refers to
  14193. two or more complete blocks.
  14194. When used as an lvalue, 'subreg' is a block-based accessor.
  14195. Storing to a 'subreg' modifies all the blocks of REG that
  14196. overlap the 'subreg', but it leaves the other blocks of REG
  14197. alone.
  14198. When storing to a normal 'subreg' that is smaller than a
  14199. block, the other bits of the referenced block are usually left
  14200. in an undefined state. This laxity makes it easier to
  14201. generate efficient code for such instructions. To represent
  14202. an instruction that preserves all the bits outside of those in
  14203. the 'subreg', use 'strict_low_part' or 'zero_extract' around
  14204. the 'subreg'.
  14205. BYTENUM must identify the offset of the first byte of the
  14206. 'subreg' from the start of REG, assuming that REG is laid out
  14207. in memory order. The memory order of bytes is defined by two
  14208. target macros, 'WORDS_BIG_ENDIAN' and 'BYTES_BIG_ENDIAN':
  14209. * 'WORDS_BIG_ENDIAN', if set to 1, says that byte number
  14210. zero is part of the most significant word; otherwise, it
  14211. is part of the least significant word.
  14212. * 'BYTES_BIG_ENDIAN', if set to 1, says that byte number
  14213. zero is the most significant byte within a word;
  14214. otherwise, it is the least significant byte within a
  14215. word.
  14216. On a few targets, 'FLOAT_WORDS_BIG_ENDIAN' disagrees with
  14217. 'WORDS_BIG_ENDIAN'. However, most parts of the compiler treat
  14218. floating point values as if they had the same endianness as
  14219. integer values. This works because they handle them solely as
  14220. a collection of integer values, with no particular numerical
  14221. value. Only real.c and the runtime libraries care about
  14222. 'FLOAT_WORDS_BIG_ENDIAN'.
  14223. Thus,
  14224. (subreg:HI (reg:SI X) 2)
  14225. on a 'BYTES_BIG_ENDIAN', 'UNITS_PER_WORD == 4' target is the
  14226. same as
  14227. (subreg:HI (reg:SI X) 0)
  14228. on a little-endian, 'UNITS_PER_WORD == 4' target. Both
  14229. 'subreg's access the lower two bytes of register X.
  14230. Note that the byte offset is a polynomial integer; it may not
  14231. be a compile-time constant on targets with variable-sized
  14232. modes. However, the restrictions above mean that there are
  14233. only a certain set of acceptable offsets for a given
  14234. combination of M1 and M2. The compiler can always tell which
  14235. blocks a valid subreg occupies, and whether the subreg is a
  14236. lowpart of a block.
  14237. A 'MODE_PARTIAL_INT' mode behaves as if it were as wide as the
  14238. corresponding 'MODE_INT' mode, except that it has an unknown number
  14239. of undefined bits. For example:
  14240. (subreg:PSI (reg:SI 0) 0)
  14241. accesses the whole of '(reg:SI 0)', but the exact relationship
  14242. between the 'PSImode' value and the 'SImode' value is not defined.
  14243. If we assume 'REGMODE_NATURAL_SIZE (DImode) <= 4', then the
  14244. following two 'subreg's:
  14245. (subreg:PSI (reg:DI 0) 0)
  14246. (subreg:PSI (reg:DI 0) 4)
  14247. represent independent 4-byte accesses to the two halves of '(reg:DI
  14248. 0)'. Both 'subreg's have an unknown number of undefined bits.
  14249. If 'REGMODE_NATURAL_SIZE (PSImode) <= 2' then these two 'subreg's:
  14250. (subreg:HI (reg:PSI 0) 0)
  14251. (subreg:HI (reg:PSI 0) 2)
  14252. represent independent 2-byte accesses that together span the whole
  14253. of '(reg:PSI 0)'. Storing to the first 'subreg' does not affect
  14254. the value of the second, and vice versa. '(reg:PSI 0)' has an
  14255. unknown number of undefined bits, so the assignment:
  14256. (set (subreg:HI (reg:PSI 0) 0) (reg:HI 4))
  14257. does not guarantee that '(subreg:HI (reg:PSI 0) 0)' has the value
  14258. '(reg:HI 4)'.
  14259. The rules above apply to both pseudo REGs and hard REGs. If the
  14260. semantics are not correct for particular combinations of M1, M2 and
  14261. hard REG, the target-specific code must ensure that those
  14262. combinations are never used. For example:
  14263. TARGET_CAN_CHANGE_MODE_CLASS (M2, M1, CLASS)
  14264. must be false for every class CLASS that includes REG.
  14265. GCC must be able to determine at compile time whether a subreg is
  14266. paradoxical, whether it occupies a whole number of blocks, or
  14267. whether it is a lowpart of a block. This means that certain
  14268. combinations of variable-sized mode are not permitted. For
  14269. example, if M2 holds N 'SI' values, where N is greater than zero,
  14270. it is not possible to form a 'DI' 'subreg' of it; such a 'subreg'
  14271. would be paradoxical when N is 1 but not when N is greater than 1.
  14272. The first operand of a 'subreg' expression is customarily accessed
  14273. with the 'SUBREG_REG' macro and the second operand is customarily
  14274. accessed with the 'SUBREG_BYTE' macro.
  14275. It has been several years since a platform in which
  14276. 'BYTES_BIG_ENDIAN' not equal to 'WORDS_BIG_ENDIAN' has been tested.
  14277. Anyone wishing to support such a platform in the future may be
  14278. confronted with code rot.
  14279. '(scratch:M)'
  14280. This represents a scratch register that will be required for the
  14281. execution of a single instruction and not used subsequently. It is
  14282. converted into a 'reg' by either the local register allocator or
  14283. the reload pass.
  14284. 'scratch' is usually present inside a 'clobber' operation (*note
  14285. Side Effects::).
  14286. '(cc0)'
  14287. This refers to the machine's condition code register. It has no
  14288. operands and may not have a machine mode. There are two ways to
  14289. use it:
  14290. * To stand for a complete set of condition code flags. This is
  14291. best on most machines, where each comparison sets the entire
  14292. series of flags.
  14293. With this technique, '(cc0)' may be validly used in only two
  14294. contexts: as the destination of an assignment (in test and
  14295. compare instructions) and in comparison operators comparing
  14296. against zero ('const_int' with value zero; that is to say,
  14297. 'const0_rtx').
  14298. * To stand for a single flag that is the result of a single
  14299. condition. This is useful on machines that have only a single
  14300. flag bit, and in which comparison instructions must specify
  14301. the condition to test.
  14302. With this technique, '(cc0)' may be validly used in only two
  14303. contexts: as the destination of an assignment (in test and
  14304. compare instructions) where the source is a comparison
  14305. operator, and as the first operand of 'if_then_else' (in a
  14306. conditional branch).
  14307. There is only one expression object of code 'cc0'; it is the value
  14308. of the variable 'cc0_rtx'. Any attempt to create an expression of
  14309. code 'cc0' will return 'cc0_rtx'.
  14310. Instructions can set the condition code implicitly. On many
  14311. machines, nearly all instructions set the condition code based on
  14312. the value that they compute or store. It is not necessary to
  14313. record these actions explicitly in the RTL because the machine
  14314. description includes a prescription for recognizing the
  14315. instructions that do so (by means of the macro 'NOTICE_UPDATE_CC').
  14316. *Note Condition Code::. Only instructions whose sole purpose is to
  14317. set the condition code, and instructions that use the condition
  14318. code, need mention '(cc0)'.
  14319. On some machines, the condition code register is given a register
  14320. number and a 'reg' is used instead of '(cc0)'. This is usually the
  14321. preferable approach if only a small subset of instructions modify
  14322. the condition code. Other machines store condition codes in
  14323. general registers; in such cases a pseudo register should be used.
  14324. Some machines, such as the SPARC and RS/6000, have two sets of
  14325. arithmetic instructions, one that sets and one that does not set
  14326. the condition code. This is best handled by normally generating
  14327. the instruction that does not set the condition code, and making a
  14328. pattern that both performs the arithmetic and sets the condition
  14329. code register (which would not be '(cc0)' in this case). For
  14330. examples, search for 'addcc' and 'andcc' in 'sparc.md'.
  14331. '(pc)'
  14332. This represents the machine's program counter. It has no operands
  14333. and may not have a machine mode. '(pc)' may be validly used only
  14334. in certain specific contexts in jump instructions.
  14335. There is only one expression object of code 'pc'; it is the value
  14336. of the variable 'pc_rtx'. Any attempt to create an expression of
  14337. code 'pc' will return 'pc_rtx'.
  14338. All instructions that do not jump alter the program counter
  14339. implicitly by incrementing it, but there is no need to mention this
  14340. in the RTL.
  14341. '(mem:M ADDR ALIAS)'
  14342. This RTX represents a reference to main memory at an address
  14343. represented by the expression ADDR. M specifies how large a unit
  14344. of memory is accessed. ALIAS specifies an alias set for the
  14345. reference. In general two items are in different alias sets if
  14346. they cannot reference the same memory address.
  14347. The construct '(mem:BLK (scratch))' is considered to alias all
  14348. other memories. Thus it may be used as a memory barrier in
  14349. epilogue stack deallocation patterns.
  14350. '(concatM RTX RTX)'
  14351. This RTX represents the concatenation of two other RTXs. This is
  14352. used for complex values. It should only appear in the RTL attached
  14353. to declarations and during RTL generation. It should not appear in
  14354. the ordinary insn chain.
  14355. '(concatnM [RTX ...])'
  14356. This RTX represents the concatenation of all the RTX to make a
  14357. single value. Like 'concat', this should only appear in
  14358. declarations, and not in the insn chain.
  14359. 
  14360. File: gccint.info, Node: Arithmetic, Next: Comparisons, Prev: Regs and Memory, Up: RTL
  14361. 14.9 RTL Expressions for Arithmetic
  14362. ===================================
  14363. Unless otherwise specified, all the operands of arithmetic expressions
  14364. must be valid for mode M. An operand is valid for mode M if it has mode
  14365. M, or if it is a 'const_int' or 'const_double' and M is a mode of class
  14366. 'MODE_INT'.
  14367. For commutative binary operations, constants should be placed in the
  14368. second operand.
  14369. '(plus:M X Y)'
  14370. '(ss_plus:M X Y)'
  14371. '(us_plus:M X Y)'
  14372. These three expressions all represent the sum of the values
  14373. represented by X and Y carried out in machine mode M. They differ
  14374. in their behavior on overflow of integer modes. 'plus' wraps round
  14375. modulo the width of M; 'ss_plus' saturates at the maximum signed
  14376. value representable in M; 'us_plus' saturates at the maximum
  14377. unsigned value.
  14378. '(lo_sum:M X Y)'
  14379. This expression represents the sum of X and the low-order bits of
  14380. Y. It is used with 'high' (*note Constants::) to represent the
  14381. typical two-instruction sequence used in RISC machines to reference
  14382. large immediate values and/or link-time constants such as global
  14383. memory addresses. In the latter case, M is 'Pmode' and Y is
  14384. usually a constant expression involving 'symbol_ref'.
  14385. The number of low order bits is machine-dependent but is normally
  14386. the number of bits in mode M minus the number of bits set by
  14387. 'high'.
  14388. '(minus:M X Y)'
  14389. '(ss_minus:M X Y)'
  14390. '(us_minus:M X Y)'
  14391. These three expressions represent the result of subtracting Y from
  14392. X, carried out in mode M. Behavior on overflow is the same as for
  14393. the three variants of 'plus' (see above).
  14394. '(compare:M X Y)'
  14395. Represents the result of subtracting Y from X for purposes of
  14396. comparison. The result is computed without overflow, as if with
  14397. infinite precision.
  14398. Of course, machines cannot really subtract with infinite precision.
  14399. However, they can pretend to do so when only the sign of the result
  14400. will be used, which is the case when the result is stored in the
  14401. condition code. And that is the _only_ way this kind of expression
  14402. may validly be used: as a value to be stored in the condition
  14403. codes, either '(cc0)' or a register. *Note Comparisons::.
  14404. The mode M is not related to the modes of X and Y, but instead is
  14405. the mode of the condition code value. If '(cc0)' is used, it is
  14406. 'VOIDmode'. Otherwise it is some mode in class 'MODE_CC', often
  14407. 'CCmode'. *Note Condition Code::. If M is 'VOIDmode' or 'CCmode',
  14408. the operation returns sufficient information (in an unspecified
  14409. format) so that any comparison operator can be applied to the
  14410. result of the 'COMPARE' operation. For other modes in class
  14411. 'MODE_CC', the operation only returns a subset of this information.
  14412. Normally, X and Y must have the same mode. Otherwise, 'compare' is
  14413. valid only if the mode of X is in class 'MODE_INT' and Y is a
  14414. 'const_int' or 'const_double' with mode 'VOIDmode'. The mode of X
  14415. determines what mode the comparison is to be done in; thus it must
  14416. not be 'VOIDmode'.
  14417. If one of the operands is a constant, it should be placed in the
  14418. second operand and the comparison code adjusted as appropriate.
  14419. A 'compare' specifying two 'VOIDmode' constants is not valid since
  14420. there is no way to know in what mode the comparison is to be
  14421. performed; the comparison must either be folded during the
  14422. compilation or the first operand must be loaded into a register
  14423. while its mode is still known.
  14424. '(neg:M X)'
  14425. '(ss_neg:M X)'
  14426. '(us_neg:M X)'
  14427. These two expressions represent the negation (subtraction from
  14428. zero) of the value represented by X, carried out in mode M. They
  14429. differ in the behavior on overflow of integer modes. In the case
  14430. of 'neg', the negation of the operand may be a number not
  14431. representable in mode M, in which case it is truncated to M.
  14432. 'ss_neg' and 'us_neg' ensure that an out-of-bounds result saturates
  14433. to the maximum or minimum signed or unsigned value.
  14434. '(mult:M X Y)'
  14435. '(ss_mult:M X Y)'
  14436. '(us_mult:M X Y)'
  14437. Represents the signed product of the values represented by X and Y
  14438. carried out in machine mode M. 'ss_mult' and 'us_mult' ensure that
  14439. an out-of-bounds result saturates to the maximum or minimum signed
  14440. or unsigned value.
  14441. Some machines support a multiplication that generates a product
  14442. wider than the operands. Write the pattern for this as
  14443. (mult:M (sign_extend:M X) (sign_extend:M Y))
  14444. where M is wider than the modes of X and Y, which need not be the
  14445. same.
  14446. For unsigned widening multiplication, use the same idiom, but with
  14447. 'zero_extend' instead of 'sign_extend'.
  14448. '(fma:M X Y Z)'
  14449. Represents the 'fma', 'fmaf', and 'fmal' builtin functions, which
  14450. compute 'X * Y + Z' without doing an intermediate rounding step.
  14451. '(div:M X Y)'
  14452. '(ss_div:M X Y)'
  14453. Represents the quotient in signed division of X by Y, carried out
  14454. in machine mode M. If M is a floating point mode, it represents
  14455. the exact quotient; otherwise, the integerized quotient. 'ss_div'
  14456. ensures that an out-of-bounds result saturates to the maximum or
  14457. minimum signed value.
  14458. Some machines have division instructions in which the operands and
  14459. quotient widths are not all the same; you should represent such
  14460. instructions using 'truncate' and 'sign_extend' as in,
  14461. (truncate:M1 (div:M2 X (sign_extend:M2 Y)))
  14462. '(udiv:M X Y)'
  14463. '(us_div:M X Y)'
  14464. Like 'div' but represents unsigned division. 'us_div' ensures that
  14465. an out-of-bounds result saturates to the maximum or minimum
  14466. unsigned value.
  14467. '(mod:M X Y)'
  14468. '(umod:M X Y)'
  14469. Like 'div' and 'udiv' but represent the remainder instead of the
  14470. quotient.
  14471. '(smin:M X Y)'
  14472. '(smax:M X Y)'
  14473. Represents the smaller (for 'smin') or larger (for 'smax') of X and
  14474. Y, interpreted as signed values in mode M. When used with floating
  14475. point, if both operands are zeros, or if either operand is 'NaN',
  14476. then it is unspecified which of the two operands is returned as the
  14477. result.
  14478. '(umin:M X Y)'
  14479. '(umax:M X Y)'
  14480. Like 'smin' and 'smax', but the values are interpreted as unsigned
  14481. integers.
  14482. '(not:M X)'
  14483. Represents the bitwise complement of the value represented by X,
  14484. carried out in mode M, which must be a fixed-point machine mode.
  14485. '(and:M X Y)'
  14486. Represents the bitwise logical-and of the values represented by X
  14487. and Y, carried out in machine mode M, which must be a fixed-point
  14488. machine mode.
  14489. '(ior:M X Y)'
  14490. Represents the bitwise inclusive-or of the values represented by X
  14491. and Y, carried out in machine mode M, which must be a fixed-point
  14492. mode.
  14493. '(xor:M X Y)'
  14494. Represents the bitwise exclusive-or of the values represented by X
  14495. and Y, carried out in machine mode M, which must be a fixed-point
  14496. mode.
  14497. '(ashift:M X C)'
  14498. '(ss_ashift:M X C)'
  14499. '(us_ashift:M X C)'
  14500. These three expressions represent the result of arithmetically
  14501. shifting X left by C places. They differ in their behavior on
  14502. overflow of integer modes. An 'ashift' operation is a plain shift
  14503. with no special behavior in case of a change in the sign bit;
  14504. 'ss_ashift' and 'us_ashift' saturates to the minimum or maximum
  14505. representable value if any of the bits shifted out differs from the
  14506. final sign bit.
  14507. X have mode M, a fixed-point machine mode. C be a fixed-point mode
  14508. or be a constant with mode 'VOIDmode'; which mode is determined by
  14509. the mode called for in the machine description entry for the
  14510. left-shift instruction. For example, on the VAX, the mode of C is
  14511. 'QImode' regardless of M.
  14512. '(lshiftrt:M X C)'
  14513. '(ashiftrt:M X C)'
  14514. Like 'ashift' but for right shift. Unlike the case for left shift,
  14515. these two operations are distinct.
  14516. '(rotate:M X C)'
  14517. '(rotatert:M X C)'
  14518. Similar but represent left and right rotate. If C is a constant,
  14519. use 'rotate'.
  14520. '(abs:M X)'
  14521. '(ss_abs:M X)'
  14522. Represents the absolute value of X, computed in mode M. 'ss_abs'
  14523. ensures that an out-of-bounds result saturates to the maximum
  14524. signed value.
  14525. '(sqrt:M X)'
  14526. Represents the square root of X, computed in mode M. Most often M
  14527. will be a floating point mode.
  14528. '(ffs:M X)'
  14529. Represents one plus the index of the least significant 1-bit in X,
  14530. represented as an integer of mode M. (The value is zero if X is
  14531. zero.) The mode of X must be M or 'VOIDmode'.
  14532. '(clrsb:M X)'
  14533. Represents the number of redundant leading sign bits in X,
  14534. represented as an integer of mode M, starting at the most
  14535. significant bit position. This is one less than the number of
  14536. leading sign bits (either 0 or 1), with no special cases. The mode
  14537. of X must be M or 'VOIDmode'.
  14538. '(clz:M X)'
  14539. Represents the number of leading 0-bits in X, represented as an
  14540. integer of mode M, starting at the most significant bit position.
  14541. If X is zero, the value is determined by
  14542. 'CLZ_DEFINED_VALUE_AT_ZERO' (*note Misc::). Note that this is one
  14543. of the few expressions that is not invariant under widening. The
  14544. mode of X must be M or 'VOIDmode'.
  14545. '(ctz:M X)'
  14546. Represents the number of trailing 0-bits in X, represented as an
  14547. integer of mode M, starting at the least significant bit position.
  14548. If X is zero, the value is determined by
  14549. 'CTZ_DEFINED_VALUE_AT_ZERO' (*note Misc::). Except for this case,
  14550. 'ctz(x)' is equivalent to 'ffs(X) - 1'. The mode of X must be M or
  14551. 'VOIDmode'.
  14552. '(popcount:M X)'
  14553. Represents the number of 1-bits in X, represented as an integer of
  14554. mode M. The mode of X must be M or 'VOIDmode'.
  14555. '(parity:M X)'
  14556. Represents the number of 1-bits modulo 2 in X, represented as an
  14557. integer of mode M. The mode of X must be M or 'VOIDmode'.
  14558. '(bswap:M X)'
  14559. Represents the value X with the order of bytes reversed, carried
  14560. out in mode M, which must be a fixed-point machine mode. The mode
  14561. of X must be M or 'VOIDmode'.
  14562. 
  14563. File: gccint.info, Node: Comparisons, Next: Bit-Fields, Prev: Arithmetic, Up: RTL
  14564. 14.10 Comparison Operations
  14565. ===========================
  14566. Comparison operators test a relation on two operands and are considered
  14567. to represent a machine-dependent nonzero value described by, but not
  14568. necessarily equal to, 'STORE_FLAG_VALUE' (*note Misc::) if the relation
  14569. holds, or zero if it does not, for comparison operators whose results
  14570. have a 'MODE_INT' mode, 'FLOAT_STORE_FLAG_VALUE' (*note Misc::) if the
  14571. relation holds, or zero if it does not, for comparison operators that
  14572. return floating-point values, and a vector of either
  14573. 'VECTOR_STORE_FLAG_VALUE' (*note Misc::) if the relation holds, or of
  14574. zeros if it does not, for comparison operators that return vector
  14575. results. The mode of the comparison operation is independent of the
  14576. mode of the data being compared. If the comparison operation is being
  14577. tested (e.g., the first operand of an 'if_then_else'), the mode must be
  14578. 'VOIDmode'.
  14579. There are two ways that comparison operations may be used. The
  14580. comparison operators may be used to compare the condition codes '(cc0)'
  14581. against zero, as in '(eq (cc0) (const_int 0))'. Such a construct
  14582. actually refers to the result of the preceding instruction in which the
  14583. condition codes were set. The instruction setting the condition code
  14584. must be adjacent to the instruction using the condition code; only
  14585. 'note' insns may separate them.
  14586. Alternatively, a comparison operation may directly compare two data
  14587. objects. The mode of the comparison is determined by the operands; they
  14588. must both be valid for a common machine mode. A comparison with both
  14589. operands constant would be invalid as the machine mode could not be
  14590. deduced from it, but such a comparison should never exist in RTL due to
  14591. constant folding.
  14592. In the example above, if '(cc0)' were last set to '(compare X Y)', the
  14593. comparison operation is identical to '(eq X Y)'. Usually only one style
  14594. of comparisons is supported on a particular machine, but the combine
  14595. pass will try to merge the operations to produce the 'eq' shown in case
  14596. it exists in the context of the particular insn involved.
  14597. Inequality comparisons come in two flavors, signed and unsigned. Thus,
  14598. there are distinct expression codes 'gt' and 'gtu' for signed and
  14599. unsigned greater-than. These can produce different results for the same
  14600. pair of integer values: for example, 1 is signed greater-than -1 but not
  14601. unsigned greater-than, because -1 when regarded as unsigned is actually
  14602. '0xffffffff' which is greater than 1.
  14603. The signed comparisons are also used for floating point values.
  14604. Floating point comparisons are distinguished by the machine modes of the
  14605. operands.
  14606. '(eq:M X Y)'
  14607. 'STORE_FLAG_VALUE' if the values represented by X and Y are equal,
  14608. otherwise 0.
  14609. '(ne:M X Y)'
  14610. 'STORE_FLAG_VALUE' if the values represented by X and Y are not
  14611. equal, otherwise 0.
  14612. '(gt:M X Y)'
  14613. 'STORE_FLAG_VALUE' if the X is greater than Y. If they are
  14614. fixed-point, the comparison is done in a signed sense.
  14615. '(gtu:M X Y)'
  14616. Like 'gt' but does unsigned comparison, on fixed-point numbers
  14617. only.
  14618. '(lt:M X Y)'
  14619. '(ltu:M X Y)'
  14620. Like 'gt' and 'gtu' but test for "less than".
  14621. '(ge:M X Y)'
  14622. '(geu:M X Y)'
  14623. Like 'gt' and 'gtu' but test for "greater than or equal".
  14624. '(le:M X Y)'
  14625. '(leu:M X Y)'
  14626. Like 'gt' and 'gtu' but test for "less than or equal".
  14627. '(if_then_else COND THEN ELSE)'
  14628. This is not a comparison operation but is listed here because it is
  14629. always used in conjunction with a comparison operation. To be
  14630. precise, COND is a comparison expression. This expression
  14631. represents a choice, according to COND, between the value
  14632. represented by THEN and the one represented by ELSE.
  14633. On most machines, 'if_then_else' expressions are valid only to
  14634. express conditional jumps.
  14635. '(cond [TEST1 VALUE1 TEST2 VALUE2 ...] DEFAULT)'
  14636. Similar to 'if_then_else', but more general. Each of TEST1, TEST2,
  14637. ... is performed in turn. The result of this expression is the
  14638. VALUE corresponding to the first nonzero test, or DEFAULT if none
  14639. of the tests are nonzero expressions.
  14640. This is currently not valid for instruction patterns and is
  14641. supported only for insn attributes. *Note Insn Attributes::.
  14642. 
  14643. File: gccint.info, Node: Bit-Fields, Next: Vector Operations, Prev: Comparisons, Up: RTL
  14644. 14.11 Bit-Fields
  14645. ================
  14646. Special expression codes exist to represent bit-field instructions.
  14647. '(sign_extract:M LOC SIZE POS)'
  14648. This represents a reference to a sign-extended bit-field contained
  14649. or starting in LOC (a memory or register reference). The bit-field
  14650. is SIZE bits wide and starts at bit POS. The compilation option
  14651. 'BITS_BIG_ENDIAN' says which end of the memory unit POS counts
  14652. from.
  14653. If LOC is in memory, its mode must be a single-byte integer mode.
  14654. If LOC is in a register, the mode to use is specified by the
  14655. operand of the 'insv' or 'extv' pattern (*note Standard Names::)
  14656. and is usually a full-word integer mode, which is the default if
  14657. none is specified.
  14658. The mode of POS is machine-specific and is also specified in the
  14659. 'insv' or 'extv' pattern.
  14660. The mode M is the same as the mode that would be used for LOC if it
  14661. were a register.
  14662. A 'sign_extract' cannot appear as an lvalue, or part thereof, in
  14663. RTL.
  14664. '(zero_extract:M LOC SIZE POS)'
  14665. Like 'sign_extract' but refers to an unsigned or zero-extended
  14666. bit-field. The same sequence of bits are extracted, but they are
  14667. filled to an entire word with zeros instead of by sign-extension.
  14668. Unlike 'sign_extract', this type of expressions can be lvalues in
  14669. RTL; they may appear on the left side of an assignment, indicating
  14670. insertion of a value into the specified bit-field.
  14671. 
  14672. File: gccint.info, Node: Vector Operations, Next: Conversions, Prev: Bit-Fields, Up: RTL
  14673. 14.12 Vector Operations
  14674. =======================
  14675. All normal RTL expressions can be used with vector modes; they are
  14676. interpreted as operating on each part of the vector independently.
  14677. Additionally, there are a few new expressions to describe specific
  14678. vector operations.
  14679. '(vec_merge:M VEC1 VEC2 ITEMS)'
  14680. This describes a merge operation between two vectors. The result
  14681. is a vector of mode M; its elements are selected from either VEC1
  14682. or VEC2. Which elements are selected is described by ITEMS, which
  14683. is a bit mask represented by a 'const_int'; a zero bit indicates
  14684. the corresponding element in the result vector is taken from VEC2
  14685. while a set bit indicates it is taken from VEC1.
  14686. '(vec_select:M VEC1 SELECTION)'
  14687. This describes an operation that selects parts of a vector. VEC1
  14688. is the source vector, and SELECTION is a 'parallel' that contains a
  14689. 'const_int' (or another expression, if the selection can be made at
  14690. runtime) for each of the subparts of the result vector, giving the
  14691. number of the source subpart that should be stored into it. The
  14692. result mode M is either the submode for a single element of VEC1
  14693. (if only one subpart is selected), or another vector mode with that
  14694. element submode (if multiple subparts are selected).
  14695. '(vec_concat:M X1 X2)'
  14696. Describes a vector concat operation. The result is a concatenation
  14697. of the vectors or scalars X1 and X2; its length is the sum of the
  14698. lengths of the two inputs.
  14699. '(vec_duplicate:M X)'
  14700. This operation converts a scalar into a vector or a small vector
  14701. into a larger one by duplicating the input values. The output
  14702. vector mode must have the same submodes as the input vector mode or
  14703. the scalar modes, and the number of output parts must be an integer
  14704. multiple of the number of input parts.
  14705. '(vec_series:M BASE STEP)'
  14706. This operation creates a vector in which element I is equal to
  14707. 'BASE + I*STEP'. M must be a vector integer mode.
  14708. 
  14709. File: gccint.info, Node: Conversions, Next: RTL Declarations, Prev: Vector Operations, Up: RTL
  14710. 14.13 Conversions
  14711. =================
  14712. All conversions between machine modes must be represented by explicit
  14713. conversion operations. For example, an expression which is the sum of a
  14714. byte and a full word cannot be written as '(plus:SI (reg:QI 34) (reg:SI
  14715. 80))' because the 'plus' operation requires two operands of the same
  14716. machine mode. Therefore, the byte-sized operand is enclosed in a
  14717. conversion operation, as in
  14718. (plus:SI (sign_extend:SI (reg:QI 34)) (reg:SI 80))
  14719. The conversion operation is not a mere placeholder, because there may
  14720. be more than one way of converting from a given starting mode to the
  14721. desired final mode. The conversion operation code says how to do it.
  14722. For all conversion operations, X must not be 'VOIDmode' because the
  14723. mode in which to do the conversion would not be known. The conversion
  14724. must either be done at compile-time or X must be placed into a register.
  14725. '(sign_extend:M X)'
  14726. Represents the result of sign-extending the value X to machine mode
  14727. M. M must be a fixed-point mode and X a fixed-point value of a
  14728. mode narrower than M.
  14729. '(zero_extend:M X)'
  14730. Represents the result of zero-extending the value X to machine mode
  14731. M. M must be a fixed-point mode and X a fixed-point value of a
  14732. mode narrower than M.
  14733. '(float_extend:M X)'
  14734. Represents the result of extending the value X to machine mode M.
  14735. M must be a floating point mode and X a floating point value of a
  14736. mode narrower than M.
  14737. '(truncate:M X)'
  14738. Represents the result of truncating the value X to machine mode M.
  14739. M must be a fixed-point mode and X a fixed-point value of a mode
  14740. wider than M.
  14741. '(ss_truncate:M X)'
  14742. Represents the result of truncating the value X to machine mode M,
  14743. using signed saturation in the case of overflow. Both M and the
  14744. mode of X must be fixed-point modes.
  14745. '(us_truncate:M X)'
  14746. Represents the result of truncating the value X to machine mode M,
  14747. using unsigned saturation in the case of overflow. Both M and the
  14748. mode of X must be fixed-point modes.
  14749. '(float_truncate:M X)'
  14750. Represents the result of truncating the value X to machine mode M.
  14751. M must be a floating point mode and X a floating point value of a
  14752. mode wider than M.
  14753. '(float:M X)'
  14754. Represents the result of converting fixed point value X, regarded
  14755. as signed, to floating point mode M.
  14756. '(unsigned_float:M X)'
  14757. Represents the result of converting fixed point value X, regarded
  14758. as unsigned, to floating point mode M.
  14759. '(fix:M X)'
  14760. When M is a floating-point mode, represents the result of
  14761. converting floating point value X (valid for mode M) to an integer,
  14762. still represented in floating point mode M, by rounding towards
  14763. zero.
  14764. When M is a fixed-point mode, represents the result of converting
  14765. floating point value X to mode M, regarded as signed. How rounding
  14766. is done is not specified, so this operation may be used validly in
  14767. compiling C code only for integer-valued operands.
  14768. '(unsigned_fix:M X)'
  14769. Represents the result of converting floating point value X to fixed
  14770. point mode M, regarded as unsigned. How rounding is done is not
  14771. specified.
  14772. '(fract_convert:M X)'
  14773. Represents the result of converting fixed-point value X to
  14774. fixed-point mode M, signed integer value X to fixed-point mode M,
  14775. floating-point value X to fixed-point mode M, fixed-point value X
  14776. to integer mode M regarded as signed, or fixed-point value X to
  14777. floating-point mode M. When overflows or underflows happen, the
  14778. results are undefined.
  14779. '(sat_fract:M X)'
  14780. Represents the result of converting fixed-point value X to
  14781. fixed-point mode M, signed integer value X to fixed-point mode M,
  14782. or floating-point value X to fixed-point mode M. When overflows or
  14783. underflows happen, the results are saturated to the maximum or the
  14784. minimum.
  14785. '(unsigned_fract_convert:M X)'
  14786. Represents the result of converting fixed-point value X to integer
  14787. mode M regarded as unsigned, or unsigned integer value X to
  14788. fixed-point mode M. When overflows or underflows happen, the
  14789. results are undefined.
  14790. '(unsigned_sat_fract:M X)'
  14791. Represents the result of converting unsigned integer value X to
  14792. fixed-point mode M. When overflows or underflows happen, the
  14793. results are saturated to the maximum or the minimum.
  14794. 
  14795. File: gccint.info, Node: RTL Declarations, Next: Side Effects, Prev: Conversions, Up: RTL
  14796. 14.14 Declarations
  14797. ==================
  14798. Declaration expression codes do not represent arithmetic operations but
  14799. rather state assertions about their operands.
  14800. '(strict_low_part (subreg:M (reg:N R) 0))'
  14801. This expression code is used in only one context: as the
  14802. destination operand of a 'set' expression. In addition, the
  14803. operand of this expression must be a non-paradoxical 'subreg'
  14804. expression.
  14805. The presence of 'strict_low_part' says that the part of the
  14806. register which is meaningful in mode N, but is not part of mode M,
  14807. is not to be altered. Normally, an assignment to such a subreg is
  14808. allowed to have undefined effects on the rest of the register when
  14809. M is smaller than 'REGMODE_NATURAL_SIZE (N)'.
  14810. 
  14811. File: gccint.info, Node: Side Effects, Next: Incdec, Prev: RTL Declarations, Up: RTL
  14812. 14.15 Side Effect Expressions
  14813. =============================
  14814. The expression codes described so far represent values, not actions.
  14815. But machine instructions never produce values; they are meaningful only
  14816. for their side effects on the state of the machine. Special expression
  14817. codes are used to represent side effects.
  14818. The body of an instruction is always one of these side effect codes;
  14819. the codes described above, which represent values, appear only as the
  14820. operands of these.
  14821. '(set LVAL X)'
  14822. Represents the action of storing the value of X into the place
  14823. represented by LVAL. LVAL must be an expression representing a
  14824. place that can be stored in: 'reg' (or 'subreg', 'strict_low_part'
  14825. or 'zero_extract'), 'mem', 'pc', 'parallel', or 'cc0'.
  14826. If LVAL is a 'reg', 'subreg' or 'mem', it has a machine mode; then
  14827. X must be valid for that mode.
  14828. If LVAL is a 'reg' whose machine mode is less than the full width
  14829. of the register, then it means that the part of the register
  14830. specified by the machine mode is given the specified value and the
  14831. rest of the register receives an undefined value. Likewise, if
  14832. LVAL is a 'subreg' whose machine mode is narrower than the mode of
  14833. the register, the rest of the register can be changed in an
  14834. undefined way.
  14835. If LVAL is a 'strict_low_part' of a subreg, then the part of the
  14836. register specified by the machine mode of the 'subreg' is given the
  14837. value X and the rest of the register is not changed.
  14838. If LVAL is a 'zero_extract', then the referenced part of the
  14839. bit-field (a memory or register reference) specified by the
  14840. 'zero_extract' is given the value X and the rest of the bit-field
  14841. is not changed. Note that 'sign_extract' cannot appear in LVAL.
  14842. If LVAL is '(cc0)', it has no machine mode, and X may be either a
  14843. 'compare' expression or a value that may have any mode. The latter
  14844. case represents a "test" instruction. The expression '(set (cc0)
  14845. (reg:M N))' is equivalent to '(set (cc0) (compare (reg:M N)
  14846. (const_int 0)))'. Use the former expression to save space during
  14847. the compilation.
  14848. If LVAL is a 'parallel', it is used to represent the case of a
  14849. function returning a structure in multiple registers. Each element
  14850. of the 'parallel' is an 'expr_list' whose first operand is a 'reg'
  14851. and whose second operand is a 'const_int' representing the offset
  14852. (in bytes) into the structure at which the data in that register
  14853. corresponds. The first element may be null to indicate that the
  14854. structure is also passed partly in memory.
  14855. If LVAL is '(pc)', we have a jump instruction, and the
  14856. possibilities for X are very limited. It may be a 'label_ref'
  14857. expression (unconditional jump). It may be an 'if_then_else'
  14858. (conditional jump), in which case either the second or the third
  14859. operand must be '(pc)' (for the case which does not jump) and the
  14860. other of the two must be a 'label_ref' (for the case which does
  14861. jump). X may also be a 'mem' or '(plus:SI (pc) Y)', where Y may be
  14862. a 'reg' or a 'mem'; these unusual patterns are used to represent
  14863. jumps through branch tables.
  14864. If LVAL is neither '(cc0)' nor '(pc)', the mode of LVAL must not be
  14865. 'VOIDmode' and the mode of X must be valid for the mode of LVAL.
  14866. LVAL is customarily accessed with the 'SET_DEST' macro and X with
  14867. the 'SET_SRC' macro.
  14868. '(return)'
  14869. As the sole expression in a pattern, represents a return from the
  14870. current function, on machines where this can be done with one
  14871. instruction, such as VAXen. On machines where a multi-instruction
  14872. "epilogue" must be executed in order to return from the function,
  14873. returning is done by jumping to a label which precedes the
  14874. epilogue, and the 'return' expression code is never used.
  14875. Inside an 'if_then_else' expression, represents the value to be
  14876. placed in 'pc' to return to the caller.
  14877. Note that an insn pattern of '(return)' is logically equivalent to
  14878. '(set (pc) (return))', but the latter form is never used.
  14879. '(simple_return)'
  14880. Like '(return)', but truly represents only a function return, while
  14881. '(return)' may represent an insn that also performs other functions
  14882. of the function epilogue. Like '(return)', this may also occur in
  14883. conditional jumps.
  14884. '(call FUNCTION NARGS)'
  14885. Represents a function call. FUNCTION is a 'mem' expression whose
  14886. address is the address of the function to be called. NARGS is an
  14887. expression which can be used for two purposes: on some machines it
  14888. represents the number of bytes of stack argument; on others, it
  14889. represents the number of argument registers.
  14890. Each machine has a standard machine mode which FUNCTION must have.
  14891. The machine description defines macro 'FUNCTION_MODE' to expand
  14892. into the requisite mode name. The purpose of this mode is to
  14893. specify what kind of addressing is allowed, on machines where the
  14894. allowed kinds of addressing depend on the machine mode being
  14895. addressed.
  14896. '(clobber X)'
  14897. Represents the storing or possible storing of an unpredictable,
  14898. undescribed value into X, which must be a 'reg', 'scratch',
  14899. 'parallel' or 'mem' expression.
  14900. One place this is used is in string instructions that store
  14901. standard values into particular hard registers. It may not be
  14902. worth the trouble to describe the values that are stored, but it is
  14903. essential to inform the compiler that the registers will be
  14904. altered, lest it attempt to keep data in them across the string
  14905. instruction.
  14906. If X is '(mem:BLK (const_int 0))' or '(mem:BLK (scratch))', it
  14907. means that all memory locations must be presumed clobbered. If X
  14908. is a 'parallel', it has the same meaning as a 'parallel' in a 'set'
  14909. expression.
  14910. Note that the machine description classifies certain hard registers
  14911. as "call-clobbered". All function call instructions are assumed by
  14912. default to clobber these registers, so there is no need to use
  14913. 'clobber' expressions to indicate this fact. Also, each function
  14914. call is assumed to have the potential to alter any memory location,
  14915. unless the function is declared 'const'.
  14916. If the last group of expressions in a 'parallel' are each a
  14917. 'clobber' expression whose arguments are 'reg' or 'match_scratch'
  14918. (*note RTL Template::) expressions, the combiner phase can add the
  14919. appropriate 'clobber' expressions to an insn it has constructed
  14920. when doing so will cause a pattern to be matched.
  14921. This feature can be used, for example, on a machine that whose
  14922. multiply and add instructions don't use an MQ register but which
  14923. has an add-accumulate instruction that does clobber the MQ
  14924. register. Similarly, a combined instruction might require a
  14925. temporary register while the constituent instructions might not.
  14926. When a 'clobber' expression for a register appears inside a
  14927. 'parallel' with other side effects, the register allocator
  14928. guarantees that the register is unoccupied both before and after
  14929. that insn if it is a hard register clobber. For pseudo-register
  14930. clobber, the register allocator and the reload pass do not assign
  14931. the same hard register to the clobber and the input operands if
  14932. there is an insn alternative containing the '&' constraint (*note
  14933. Modifiers::) for the clobber and the hard register is in register
  14934. classes of the clobber in the alternative. You can clobber either
  14935. a specific hard register, a pseudo register, or a 'scratch'
  14936. expression; in the latter two cases, GCC will allocate a hard
  14937. register that is available there for use as a temporary.
  14938. For instructions that require a temporary register, you should use
  14939. 'scratch' instead of a pseudo-register because this will allow the
  14940. combiner phase to add the 'clobber' when required. You do this by
  14941. coding ('clobber' ('match_scratch' ...)). If you do clobber a
  14942. pseudo register, use one which appears nowhere else--generate a new
  14943. one each time. Otherwise, you may confuse CSE.
  14944. There is one other known use for clobbering a pseudo register in a
  14945. 'parallel': when one of the input operands of the insn is also
  14946. clobbered by the insn. In this case, using the same pseudo
  14947. register in the clobber and elsewhere in the insn produces the
  14948. expected results.
  14949. '(use X)'
  14950. Represents the use of the value of X. It indicates that the value
  14951. in X at this point in the program is needed, even though it may not
  14952. be apparent why this is so. Therefore, the compiler will not
  14953. attempt to delete previous instructions whose only effect is to
  14954. store a value in X. X must be a 'reg' expression.
  14955. In some situations, it may be tempting to add a 'use' of a register
  14956. in a 'parallel' to describe a situation where the value of a
  14957. special register will modify the behavior of the instruction. A
  14958. hypothetical example might be a pattern for an addition that can
  14959. either wrap around or use saturating addition depending on the
  14960. value of a special control register:
  14961. (parallel [(set (reg:SI 2) (unspec:SI [(reg:SI 3)
  14962. (reg:SI 4)] 0))
  14963. (use (reg:SI 1))])
  14964. This will not work, several of the optimizers only look at
  14965. expressions locally; it is very likely that if you have multiple
  14966. insns with identical inputs to the 'unspec', they will be optimized
  14967. away even if register 1 changes in between.
  14968. This means that 'use' can _only_ be used to describe that the
  14969. register is live. You should think twice before adding 'use'
  14970. statements, more often you will want to use 'unspec' instead. The
  14971. 'use' RTX is most commonly useful to describe that a fixed register
  14972. is implicitly used in an insn. It is also safe to use in patterns
  14973. where the compiler knows for other reasons that the result of the
  14974. whole pattern is variable, such as 'cpymemM' or 'call' patterns.
  14975. During the reload phase, an insn that has a 'use' as pattern can
  14976. carry a reg_equal note. These 'use' insns will be deleted before
  14977. the reload phase exits.
  14978. During the delayed branch scheduling phase, X may be an insn. This
  14979. indicates that X previously was located at this place in the code
  14980. and its data dependencies need to be taken into account. These
  14981. 'use' insns will be deleted before the delayed branch scheduling
  14982. phase exits.
  14983. '(parallel [X0 X1 ...])'
  14984. Represents several side effects performed in parallel. The square
  14985. brackets stand for a vector; the operand of 'parallel' is a vector
  14986. of expressions. X0, X1 and so on are individual side effect
  14987. expressions--expressions of code 'set', 'call', 'return',
  14988. 'simple_return', 'clobber' or 'use'.
  14989. "In parallel" means that first all the values used in the
  14990. individual side-effects are computed, and second all the actual
  14991. side-effects are performed. For example,
  14992. (parallel [(set (reg:SI 1) (mem:SI (reg:SI 1)))
  14993. (set (mem:SI (reg:SI 1)) (reg:SI 1))])
  14994. says unambiguously that the values of hard register 1 and the
  14995. memory location addressed by it are interchanged. In both places
  14996. where '(reg:SI 1)' appears as a memory address it refers to the
  14997. value in register 1 _before_ the execution of the insn.
  14998. It follows that it is _incorrect_ to use 'parallel' and expect the
  14999. result of one 'set' to be available for the next one. For example,
  15000. people sometimes attempt to represent a jump-if-zero instruction
  15001. this way:
  15002. (parallel [(set (cc0) (reg:SI 34))
  15003. (set (pc) (if_then_else
  15004. (eq (cc0) (const_int 0))
  15005. (label_ref ...)
  15006. (pc)))])
  15007. But this is incorrect, because it says that the jump condition
  15008. depends on the condition code value _before_ this instruction, not
  15009. on the new value that is set by this instruction.
  15010. Peephole optimization, which takes place together with final
  15011. assembly code output, can produce insns whose patterns consist of a
  15012. 'parallel' whose elements are the operands needed to output the
  15013. resulting assembler code--often 'reg', 'mem' or constant
  15014. expressions. This would not be well-formed RTL at any other stage
  15015. in compilation, but it is OK then because no further optimization
  15016. remains to be done. However, the definition of the macro
  15017. 'NOTICE_UPDATE_CC', if any, must deal with such insns if you define
  15018. any peephole optimizations.
  15019. '(cond_exec [COND EXPR])'
  15020. Represents a conditionally executed expression. The EXPR is
  15021. executed only if the COND is nonzero. The COND expression must not
  15022. have side-effects, but the EXPR may very well have side-effects.
  15023. '(sequence [INSNS ...])'
  15024. Represents a sequence of insns. If a 'sequence' appears in the
  15025. chain of insns, then each of the INSNS that appears in the sequence
  15026. must be suitable for appearing in the chain of insns, i.e. must
  15027. satisfy the 'INSN_P' predicate.
  15028. After delay-slot scheduling is completed, an insn and all the insns
  15029. that reside in its delay slots are grouped together into a
  15030. 'sequence'. The insn requiring the delay slot is the first insn in
  15031. the vector; subsequent insns are to be placed in the delay slot.
  15032. 'INSN_ANNULLED_BRANCH_P' is set on an insn in a delay slot to
  15033. indicate that a branch insn should be used that will conditionally
  15034. annul the effect of the insns in the delay slots. In such a case,
  15035. 'INSN_FROM_TARGET_P' indicates that the insn is from the target of
  15036. the branch and should be executed only if the branch is taken;
  15037. otherwise the insn should be executed only if the branch is not
  15038. taken. *Note Delay Slots::.
  15039. Some back ends also use 'sequence' objects for purposes other than
  15040. delay-slot groups. This is not supported in the common parts of
  15041. the compiler, which treat such sequences as delay-slot groups.
  15042. DWARF2 Call Frame Address (CFA) adjustments are sometimes also
  15043. expressed using 'sequence' objects as the value of a
  15044. 'RTX_FRAME_RELATED_P' note. This only happens if the CFA
  15045. adjustments cannot be easily derived from the pattern of the
  15046. instruction to which the note is attached. In such cases, the
  15047. value of the note is used instead of best-guesing the semantics of
  15048. the instruction. The back end can attach notes containing a
  15049. 'sequence' of 'set' patterns that express the effect of the parent
  15050. instruction.
  15051. These expression codes appear in place of a side effect, as the body of
  15052. an insn, though strictly speaking they do not always describe side
  15053. effects as such:
  15054. '(asm_input S)'
  15055. Represents literal assembler code as described by the string S.
  15056. '(unspec [OPERANDS ...] INDEX)'
  15057. '(unspec_volatile [OPERANDS ...] INDEX)'
  15058. Represents a machine-specific operation on OPERANDS. INDEX selects
  15059. between multiple machine-specific operations. 'unspec_volatile' is
  15060. used for volatile operations and operations that may trap; 'unspec'
  15061. is used for other operations.
  15062. These codes may appear inside a 'pattern' of an insn, inside a
  15063. 'parallel', or inside an expression.
  15064. '(addr_vec:M [LR0 LR1 ...])'
  15065. Represents a table of jump addresses. The vector elements LR0,
  15066. etc., are 'label_ref' expressions. The mode M specifies how much
  15067. space is given to each address; normally M would be 'Pmode'.
  15068. '(addr_diff_vec:M BASE [LR0 LR1 ...] MIN MAX FLAGS)'
  15069. Represents a table of jump addresses expressed as offsets from
  15070. BASE. The vector elements LR0, etc., are 'label_ref' expressions
  15071. and so is BASE. The mode M specifies how much space is given to
  15072. each address-difference. MIN and MAX are set up by branch
  15073. shortening and hold a label with a minimum and a maximum address,
  15074. respectively. FLAGS indicates the relative position of BASE, MIN
  15075. and MAX to the containing insn and of MIN and MAX to BASE. See
  15076. rtl.def for details.
  15077. '(prefetch:M ADDR RW LOCALITY)'
  15078. Represents prefetch of memory at address ADDR. Operand RW is 1 if
  15079. the prefetch is for data to be written, 0 otherwise; targets that
  15080. do not support write prefetches should treat this as a normal
  15081. prefetch. Operand LOCALITY specifies the amount of temporal
  15082. locality; 0 if there is none or 1, 2, or 3 for increasing levels of
  15083. temporal locality; targets that do not support locality hints
  15084. should ignore this.
  15085. This insn is used to minimize cache-miss latency by moving data
  15086. into a cache before it is accessed. It should use only
  15087. non-faulting data prefetch instructions.
  15088. 
  15089. File: gccint.info, Node: Incdec, Next: Assembler, Prev: Side Effects, Up: RTL
  15090. 14.16 Embedded Side-Effects on Addresses
  15091. ========================================
  15092. Six special side-effect expression codes appear as memory addresses.
  15093. '(pre_dec:M X)'
  15094. Represents the side effect of decrementing X by a standard amount
  15095. and represents also the value that X has after being decremented.
  15096. X must be a 'reg' or 'mem', but most machines allow only a 'reg'.
  15097. M must be the machine mode for pointers on the machine in use. The
  15098. amount X is decremented by is the length in bytes of the machine
  15099. mode of the containing memory reference of which this expression
  15100. serves as the address. Here is an example of its use:
  15101. (mem:DF (pre_dec:SI (reg:SI 39)))
  15102. This says to decrement pseudo register 39 by the length of a
  15103. 'DFmode' value and use the result to address a 'DFmode' value.
  15104. '(pre_inc:M X)'
  15105. Similar, but specifies incrementing X instead of decrementing it.
  15106. '(post_dec:M X)'
  15107. Represents the same side effect as 'pre_dec' but a different value.
  15108. The value represented here is the value X has before being
  15109. decremented.
  15110. '(post_inc:M X)'
  15111. Similar, but specifies incrementing X instead of decrementing it.
  15112. '(post_modify:M X Y)'
  15113. Represents the side effect of setting X to Y and represents X
  15114. before X is modified. X must be a 'reg' or 'mem', but most
  15115. machines allow only a 'reg'. M must be the machine mode for
  15116. pointers on the machine in use.
  15117. The expression Y must be one of three forms: '(plus:M X Z)',
  15118. '(minus:M X Z)', or '(plus:M X I)', where Z is an index register
  15119. and I is a constant.
  15120. Here is an example of its use:
  15121. (mem:SF (post_modify:SI (reg:SI 42) (plus (reg:SI 42)
  15122. (reg:SI 48))))
  15123. This says to modify pseudo register 42 by adding the contents of
  15124. pseudo register 48 to it, after the use of what ever 42 points to.
  15125. '(pre_modify:M X EXPR)'
  15126. Similar except side effects happen before the use.
  15127. These embedded side effect expressions must be used with care.
  15128. Instruction patterns may not use them. Until the 'flow' pass of the
  15129. compiler, they may occur only to represent pushes onto the stack. The
  15130. 'flow' pass finds cases where registers are incremented or decremented
  15131. in one instruction and used as an address shortly before or after; these
  15132. cases are then transformed to use pre- or post-increment or -decrement.
  15133. If a register used as the operand of these expressions is used in
  15134. another address in an insn, the original value of the register is used.
  15135. Uses of the register outside of an address are not permitted within the
  15136. same insn as a use in an embedded side effect expression because such
  15137. insns behave differently on different machines and hence must be treated
  15138. as ambiguous and disallowed.
  15139. An instruction that can be represented with an embedded side effect
  15140. could also be represented using 'parallel' containing an additional
  15141. 'set' to describe how the address register is altered. This is not done
  15142. because machines that allow these operations at all typically allow them
  15143. wherever a memory address is called for. Describing them as additional
  15144. parallel stores would require doubling the number of entries in the
  15145. machine description.
  15146. 
  15147. File: gccint.info, Node: Assembler, Next: Debug Information, Prev: Incdec, Up: RTL
  15148. 14.17 Assembler Instructions as Expressions
  15149. ===========================================
  15150. The RTX code 'asm_operands' represents a value produced by a
  15151. user-specified assembler instruction. It is used to represent an 'asm'
  15152. statement with arguments. An 'asm' statement with a single output
  15153. operand, like this:
  15154. asm ("foo %1,%2,%0" : "=a" (outputvar) : "g" (x + y), "di" (*z));
  15155. is represented using a single 'asm_operands' RTX which represents the
  15156. value that is stored in 'outputvar':
  15157. (set RTX-FOR-OUTPUTVAR
  15158. (asm_operands "foo %1,%2,%0" "a" 0
  15159. [RTX-FOR-ADDITION-RESULT RTX-FOR-*Z]
  15160. [(asm_input:M1 "g")
  15161. (asm_input:M2 "di")]))
  15162. Here the operands of the 'asm_operands' RTX are the assembler template
  15163. string, the output-operand's constraint, the index-number of the output
  15164. operand among the output operands specified, a vector of input operand
  15165. RTX's, and a vector of input-operand modes and constraints. The mode M1
  15166. is the mode of the sum 'x+y'; M2 is that of '*z'.
  15167. When an 'asm' statement has multiple output values, its insn has
  15168. several such 'set' RTX's inside of a 'parallel'. Each 'set' contains an
  15169. 'asm_operands'; all of these share the same assembler template and
  15170. vectors, but each contains the constraint for the respective output
  15171. operand. They are also distinguished by the output-operand index
  15172. number, which is 0, 1, ... for successive output operands.
  15173. 
  15174. File: gccint.info, Node: Debug Information, Next: Insns, Prev: Assembler, Up: RTL
  15175. 14.18 Variable Location Debug Information in RTL
  15176. ================================================
  15177. Variable tracking relies on 'MEM_EXPR' and 'REG_EXPR' annotations to
  15178. determine what user variables memory and register references refer to.
  15179. Variable tracking at assignments uses these notes only when they refer
  15180. to variables that live at fixed locations (e.g., addressable variables,
  15181. global non-automatic variables). For variables whose location may vary,
  15182. it relies on the following types of notes.
  15183. '(var_location:MODE VAR EXP STAT)'
  15184. Binds variable 'var', a tree, to value EXP, an RTL expression. It
  15185. appears only in 'NOTE_INSN_VAR_LOCATION' and 'DEBUG_INSN's, with
  15186. slightly different meanings. MODE, if present, represents the mode
  15187. of EXP, which is useful if it is a modeless expression. STAT is
  15188. only meaningful in notes, indicating whether the variable is known
  15189. to be initialized or uninitialized.
  15190. '(debug_expr:MODE DECL)'
  15191. Stands for the value bound to the 'DEBUG_EXPR_DECL' DECL, that
  15192. points back to it, within value expressions in 'VAR_LOCATION'
  15193. nodes.
  15194. '(debug_implicit_ptr:MODE DECL)'
  15195. Stands for the location of a DECL that is no longer addressable.
  15196. '(entry_value:MODE DECL)'
  15197. Stands for the value a DECL had at the entry point of the
  15198. containing function.
  15199. '(debug_parameter_ref:MODE DECL)'
  15200. Refers to a parameter that was completely optimized out.
  15201. '(debug_marker:MODE)'
  15202. Marks a program location. With 'VOIDmode', it stands for the
  15203. beginning of a statement, a recommended inspection point logically
  15204. after all prior side effects, and before any subsequent side
  15205. effects. With 'BLKmode', it indicates an inline entry point: the
  15206. lexical block encoded in the 'INSN_LOCATION' is the enclosing block
  15207. that encloses the inlined function.
  15208. 
  15209. File: gccint.info, Node: Insns, Next: Calls, Prev: Debug Information, Up: RTL
  15210. 14.19 Insns
  15211. ===========
  15212. The RTL representation of the code for a function is a doubly-linked
  15213. chain of objects called "insns". Insns are expressions with special
  15214. codes that are used for no other purpose. Some insns are actual
  15215. instructions; others represent dispatch tables for 'switch' statements;
  15216. others represent labels to jump to or various sorts of declarative
  15217. information.
  15218. In addition to its own specific data, each insn must have a unique
  15219. id-number that distinguishes it from all other insns in the current
  15220. function (after delayed branch scheduling, copies of an insn with the
  15221. same id-number may be present in multiple places in a function, but
  15222. these copies will always be identical and will only appear inside a
  15223. 'sequence'), and chain pointers to the preceding and following insns.
  15224. These three fields occupy the same position in every insn, independent
  15225. of the expression code of the insn. They could be accessed with 'XEXP'
  15226. and 'XINT', but instead three special macros are always used:
  15227. 'INSN_UID (I)'
  15228. Accesses the unique id of insn I.
  15229. 'PREV_INSN (I)'
  15230. Accesses the chain pointer to the insn preceding I. If I is the
  15231. first insn, this is a null pointer.
  15232. 'NEXT_INSN (I)'
  15233. Accesses the chain pointer to the insn following I. If I is the
  15234. last insn, this is a null pointer.
  15235. The first insn in the chain is obtained by calling 'get_insns'; the
  15236. last insn is the result of calling 'get_last_insn'. Within the chain
  15237. delimited by these insns, the 'NEXT_INSN' and 'PREV_INSN' pointers must
  15238. always correspond: if INSN is not the first insn,
  15239. NEXT_INSN (PREV_INSN (INSN)) == INSN
  15240. is always true and if INSN is not the last insn,
  15241. PREV_INSN (NEXT_INSN (INSN)) == INSN
  15242. is always true.
  15243. After delay slot scheduling, some of the insns in the chain might be
  15244. 'sequence' expressions, which contain a vector of insns. The value of
  15245. 'NEXT_INSN' in all but the last of these insns is the next insn in the
  15246. vector; the value of 'NEXT_INSN' of the last insn in the vector is the
  15247. same as the value of 'NEXT_INSN' for the 'sequence' in which it is
  15248. contained. Similar rules apply for 'PREV_INSN'.
  15249. This means that the above invariants are not necessarily true for insns
  15250. inside 'sequence' expressions. Specifically, if INSN is the first insn
  15251. in a 'sequence', 'NEXT_INSN (PREV_INSN (INSN))' is the insn containing
  15252. the 'sequence' expression, as is the value of 'PREV_INSN (NEXT_INSN
  15253. (INSN))' if INSN is the last insn in the 'sequence' expression. You can
  15254. use these expressions to find the containing 'sequence' expression.
  15255. Every insn has one of the following expression codes:
  15256. 'insn'
  15257. The expression code 'insn' is used for instructions that do not
  15258. jump and do not do function calls. 'sequence' expressions are
  15259. always contained in insns with code 'insn' even if one of those
  15260. insns should jump or do function calls.
  15261. Insns with code 'insn' have four additional fields beyond the three
  15262. mandatory ones listed above. These four are described in a table
  15263. below.
  15264. 'jump_insn'
  15265. The expression code 'jump_insn' is used for instructions that may
  15266. jump (or, more generally, may contain 'label_ref' expressions to
  15267. which 'pc' can be set in that instruction). If there is an
  15268. instruction to return from the current function, it is recorded as
  15269. a 'jump_insn'.
  15270. 'jump_insn' insns have the same extra fields as 'insn' insns,
  15271. accessed in the same way and in addition contain a field
  15272. 'JUMP_LABEL' which is defined once jump optimization has completed.
  15273. For simple conditional and unconditional jumps, this field contains
  15274. the 'code_label' to which this insn will (possibly conditionally)
  15275. branch. In a more complex jump, 'JUMP_LABEL' records one of the
  15276. labels that the insn refers to; other jump target labels are
  15277. recorded as 'REG_LABEL_TARGET' notes. The exception is 'addr_vec'
  15278. and 'addr_diff_vec', where 'JUMP_LABEL' is 'NULL_RTX' and the only
  15279. way to find the labels is to scan the entire body of the insn.
  15280. Return insns count as jumps, but their 'JUMP_LABEL' is 'RETURN' or
  15281. 'SIMPLE_RETURN'.
  15282. 'call_insn'
  15283. The expression code 'call_insn' is used for instructions that may
  15284. do function calls. It is important to distinguish these
  15285. instructions because they imply that certain registers and memory
  15286. locations may be altered unpredictably.
  15287. 'call_insn' insns have the same extra fields as 'insn' insns,
  15288. accessed in the same way and in addition contain a field
  15289. 'CALL_INSN_FUNCTION_USAGE', which contains a list (chain of
  15290. 'expr_list' expressions) containing 'use', 'clobber' and sometimes
  15291. 'set' expressions that denote hard registers and 'mem's used or
  15292. clobbered by the called function.
  15293. A 'mem' generally points to a stack slot in which arguments passed
  15294. to the libcall by reference (*note TARGET_PASS_BY_REFERENCE:
  15295. Register Arguments.) are stored. If the argument is caller-copied
  15296. (*note TARGET_CALLEE_COPIES: Register Arguments.), the stack slot
  15297. will be mentioned in 'clobber' and 'use' entries; if it's
  15298. callee-copied, only a 'use' will appear, and the 'mem' may point to
  15299. addresses that are not stack slots.
  15300. Registers occurring inside a 'clobber' in this list augment
  15301. registers specified in 'CALL_USED_REGISTERS' (*note Register
  15302. Basics::).
  15303. If the list contains a 'set' involving two registers, it indicates
  15304. that the function returns one of its arguments. Such a 'set' may
  15305. look like a no-op if the same register holds the argument and the
  15306. return value.
  15307. 'code_label'
  15308. A 'code_label' insn represents a label that a jump insn can jump
  15309. to. It contains two special fields of data in addition to the
  15310. three standard ones. 'CODE_LABEL_NUMBER' is used to hold the
  15311. "label number", a number that identifies this label uniquely among
  15312. all the labels in the compilation (not just in the current
  15313. function). Ultimately, the label is represented in the assembler
  15314. output as an assembler label, usually of the form 'LN' where N is
  15315. the label number.
  15316. When a 'code_label' appears in an RTL expression, it normally
  15317. appears within a 'label_ref' which represents the address of the
  15318. label, as a number.
  15319. Besides as a 'code_label', a label can also be represented as a
  15320. 'note' of type 'NOTE_INSN_DELETED_LABEL'.
  15321. The field 'LABEL_NUSES' is only defined once the jump optimization
  15322. phase is completed. It contains the number of times this label is
  15323. referenced in the current function.
  15324. The field 'LABEL_KIND' differentiates four different types of
  15325. labels: 'LABEL_NORMAL', 'LABEL_STATIC_ENTRY', 'LABEL_GLOBAL_ENTRY',
  15326. and 'LABEL_WEAK_ENTRY'. The only labels that do not have type
  15327. 'LABEL_NORMAL' are "alternate entry points" to the current
  15328. function. These may be static (visible only in the containing
  15329. translation unit), global (exposed to all translation units), or
  15330. weak (global, but can be overridden by another symbol with the same
  15331. name).
  15332. Much of the compiler treats all four kinds of label identically.
  15333. Some of it needs to know whether or not a label is an alternate
  15334. entry point; for this purpose, the macro 'LABEL_ALT_ENTRY_P' is
  15335. provided. It is equivalent to testing whether 'LABEL_KIND (label)
  15336. == LABEL_NORMAL'. The only place that cares about the distinction
  15337. between static, global, and weak alternate entry points, besides
  15338. the front-end code that creates them, is the function
  15339. 'output_alternate_entry_point', in 'final.c'.
  15340. To set the kind of a label, use the 'SET_LABEL_KIND' macro.
  15341. 'jump_table_data'
  15342. A 'jump_table_data' insn is a placeholder for the jump-table data
  15343. of a 'casesi' or 'tablejump' insn. They are placed after a
  15344. 'tablejump_p' insn. A 'jump_table_data' insn is not part o a basic
  15345. blockm but it is associated with the basic block that ends with the
  15346. 'tablejump_p' insn. The 'PATTERN' of a 'jump_table_data' is always
  15347. either an 'addr_vec' or an 'addr_diff_vec', and a 'jump_table_data'
  15348. insn is always preceded by a 'code_label'. The 'tablejump_p' insn
  15349. refers to that 'code_label' via its 'JUMP_LABEL'.
  15350. 'barrier'
  15351. Barriers are placed in the instruction stream when control cannot
  15352. flow past them. They are placed after unconditional jump
  15353. instructions to indicate that the jumps are unconditional and after
  15354. calls to 'volatile' functions, which do not return (e.g., 'exit').
  15355. They contain no information beyond the three standard fields.
  15356. 'note'
  15357. 'note' insns are used to represent additional debugging and
  15358. declarative information. They contain two nonstandard fields, an
  15359. integer which is accessed with the macro 'NOTE_LINE_NUMBER' and a
  15360. string accessed with 'NOTE_SOURCE_FILE'.
  15361. If 'NOTE_LINE_NUMBER' is positive, the note represents the position
  15362. of a source line and 'NOTE_SOURCE_FILE' is the source file name
  15363. that the line came from. These notes control generation of line
  15364. number data in the assembler output.
  15365. Otherwise, 'NOTE_LINE_NUMBER' is not really a line number but a
  15366. code with one of the following values (and 'NOTE_SOURCE_FILE' must
  15367. contain a null pointer):
  15368. 'NOTE_INSN_DELETED'
  15369. Such a note is completely ignorable. Some passes of the
  15370. compiler delete insns by altering them into notes of this
  15371. kind.
  15372. 'NOTE_INSN_DELETED_LABEL'
  15373. This marks what used to be a 'code_label', but was not used
  15374. for other purposes than taking its address and was transformed
  15375. to mark that no code jumps to it.
  15376. 'NOTE_INSN_BLOCK_BEG'
  15377. 'NOTE_INSN_BLOCK_END'
  15378. These types of notes indicate the position of the beginning
  15379. and end of a level of scoping of variable names. They control
  15380. the output of debugging information.
  15381. 'NOTE_INSN_EH_REGION_BEG'
  15382. 'NOTE_INSN_EH_REGION_END'
  15383. These types of notes indicate the position of the beginning
  15384. and end of a level of scoping for exception handling.
  15385. 'NOTE_EH_HANDLER' identifies which region is associated with
  15386. these notes.
  15387. 'NOTE_INSN_FUNCTION_BEG'
  15388. Appears at the start of the function body, after the function
  15389. prologue.
  15390. 'NOTE_INSN_VAR_LOCATION'
  15391. This note is used to generate variable location debugging
  15392. information. It indicates that the user variable in its
  15393. 'VAR_LOCATION' operand is at the location given in the RTL
  15394. expression, or holds a value that can be computed by
  15395. evaluating the RTL expression from that static point in the
  15396. program up to the next such note for the same user variable.
  15397. 'NOTE_INSN_BEGIN_STMT'
  15398. This note is used to generate 'is_stmt' markers in line number
  15399. debuggign information. It indicates the beginning of a user
  15400. statement.
  15401. 'NOTE_INSN_INLINE_ENTRY'
  15402. This note is used to generate 'entry_pc' for inlined
  15403. subroutines in debugging information. It indicates an
  15404. inspection point at which all arguments for the inlined
  15405. function have been bound, and before its first statement.
  15406. These codes are printed symbolically when they appear in debugging
  15407. dumps.
  15408. 'debug_insn'
  15409. The expression code 'debug_insn' is used for pseudo-instructions
  15410. that hold debugging information for variable tracking at
  15411. assignments (see '-fvar-tracking-assignments' option). They are
  15412. the RTL representation of 'GIMPLE_DEBUG' statements (*note
  15413. GIMPLE_DEBUG::), with a 'VAR_LOCATION' operand that binds a user
  15414. variable tree to an RTL representation of the 'value' in the
  15415. corresponding statement. A 'DEBUG_EXPR' in it stands for the value
  15416. bound to the corresponding 'DEBUG_EXPR_DECL'.
  15417. 'GIMPLE_DEBUG_BEGIN_STMT' and 'GIMPLE_DEBUG_INLINE_ENTRY' are
  15418. expanded to RTL as a 'DEBUG_INSN' with a 'DEBUG_MARKER' 'PATTERN';
  15419. the difference is the RTL mode: the former's 'DEBUG_MARKER' is
  15420. 'VOIDmode', whereas the latter is 'BLKmode'; information about the
  15421. inlined function can be taken from the lexical block encoded in the
  15422. 'INSN_LOCATION'. These 'DEBUG_INSN's, that do not carry
  15423. 'VAR_LOCATION' information, just 'DEBUG_MARKER's, can be detected
  15424. by testing 'DEBUG_MARKER_INSN_P', whereas those that do can be
  15425. recognized as 'DEBUG_BIND_INSN_P'.
  15426. Throughout optimization passes, 'DEBUG_INSN's are not reordered
  15427. with respect to each other, particularly during scheduling.
  15428. Binding information is kept in pseudo-instruction form, so that,
  15429. unlike notes, it gets the same treatment and adjustments that
  15430. regular instructions would. It is the variable tracking pass that
  15431. turns these pseudo-instructions into 'NOTE_INSN_VAR_LOCATION',
  15432. 'NOTE_INSN_BEGIN_STMT' and 'NOTE_INSN_INLINE_ENTRY' notes,
  15433. analyzing control flow, value equivalences and changes to registers
  15434. and memory referenced in value expressions, propagating the values
  15435. of debug temporaries and determining expressions that can be used
  15436. to compute the value of each user variable at as many points
  15437. (ranges, actually) in the program as possible.
  15438. Unlike 'NOTE_INSN_VAR_LOCATION', the value expression in an
  15439. 'INSN_VAR_LOCATION' denotes a value at that specific point in the
  15440. program, rather than an expression that can be evaluated at any
  15441. later point before an overriding 'VAR_LOCATION' is encountered.
  15442. E.g., if a user variable is bound to a 'REG' and then a subsequent
  15443. insn modifies the 'REG', the note location would keep mapping the
  15444. user variable to the register across the insn, whereas the insn
  15445. location would keep the variable bound to the value, so that the
  15446. variable tracking pass would emit another location note for the
  15447. variable at the point in which the register is modified.
  15448. The machine mode of an insn is normally 'VOIDmode', but some phases use
  15449. the mode for various purposes.
  15450. The common subexpression elimination pass sets the mode of an insn to
  15451. 'QImode' when it is the first insn in a block that has already been
  15452. processed.
  15453. The second Haifa scheduling pass, for targets that can multiple issue,
  15454. sets the mode of an insn to 'TImode' when it is believed that the
  15455. instruction begins an issue group. That is, when the instruction cannot
  15456. issue simultaneously with the previous. This may be relied on by later
  15457. passes, in particular machine-dependent reorg.
  15458. Here is a table of the extra fields of 'insn', 'jump_insn' and
  15459. 'call_insn' insns:
  15460. 'PATTERN (I)'
  15461. An expression for the side effect performed by this insn. This
  15462. must be one of the following codes: 'set', 'call', 'use',
  15463. 'clobber', 'return', 'simple_return', 'asm_input', 'asm_output',
  15464. 'addr_vec', 'addr_diff_vec', 'trap_if', 'unspec',
  15465. 'unspec_volatile', 'parallel', 'cond_exec', or 'sequence'. If it
  15466. is a 'parallel', each element of the 'parallel' must be one these
  15467. codes, except that 'parallel' expressions cannot be nested and
  15468. 'addr_vec' and 'addr_diff_vec' are not permitted inside a
  15469. 'parallel' expression.
  15470. 'INSN_CODE (I)'
  15471. An integer that says which pattern in the machine description
  15472. matches this insn, or -1 if the matching has not yet been
  15473. attempted.
  15474. Such matching is never attempted and this field remains -1 on an
  15475. insn whose pattern consists of a single 'use', 'clobber',
  15476. 'asm_input', 'addr_vec' or 'addr_diff_vec' expression.
  15477. Matching is also never attempted on insns that result from an 'asm'
  15478. statement. These contain at least one 'asm_operands' expression.
  15479. The function 'asm_noperands' returns a non-negative value for such
  15480. insns.
  15481. In the debugging output, this field is printed as a number followed
  15482. by a symbolic representation that locates the pattern in the 'md'
  15483. file as some small positive or negative offset from a named
  15484. pattern.
  15485. 'LOG_LINKS (I)'
  15486. A list (chain of 'insn_list' expressions) giving information about
  15487. dependencies between instructions within a basic block. Neither a
  15488. jump nor a label may come between the related insns. These are
  15489. only used by the schedulers and by combine. This is a deprecated
  15490. data structure. Def-use and use-def chains are now preferred.
  15491. 'REG_NOTES (I)'
  15492. A list (chain of 'expr_list', 'insn_list' and 'int_list'
  15493. expressions) giving miscellaneous information about the insn. It
  15494. is often information pertaining to the registers used in this insn.
  15495. The 'LOG_LINKS' field of an insn is a chain of 'insn_list' expressions.
  15496. Each of these has two operands: the first is an insn, and the second is
  15497. another 'insn_list' expression (the next one in the chain). The last
  15498. 'insn_list' in the chain has a null pointer as second operand. The
  15499. significant thing about the chain is which insns appear in it (as first
  15500. operands of 'insn_list' expressions). Their order is not significant.
  15501. This list is originally set up by the flow analysis pass; it is a null
  15502. pointer until then. Flow only adds links for those data dependencies
  15503. which can be used for instruction combination. For each insn, the flow
  15504. analysis pass adds a link to insns which store into registers values
  15505. that are used for the first time in this insn.
  15506. The 'REG_NOTES' field of an insn is a chain similar to the 'LOG_LINKS'
  15507. field but it includes 'expr_list' and 'int_list' expressions in addition
  15508. to 'insn_list' expressions. There are several kinds of register notes,
  15509. which are distinguished by the machine mode, which in a register note is
  15510. really understood as being an 'enum reg_note'. The first operand OP of
  15511. the note is data whose meaning depends on the kind of note.
  15512. The macro 'REG_NOTE_KIND (X)' returns the kind of register note. Its
  15513. counterpart, the macro 'PUT_REG_NOTE_KIND (X, NEWKIND)' sets the
  15514. register note type of X to be NEWKIND.
  15515. Register notes are of three classes: They may say something about an
  15516. input to an insn, they may say something about an output of an insn, or
  15517. they may create a linkage between two insns. There are also a set of
  15518. values that are only used in 'LOG_LINKS'.
  15519. These register notes annotate inputs to an insn:
  15520. 'REG_DEAD'
  15521. The value in OP dies in this insn; that is to say, altering the
  15522. value immediately after this insn would not affect the future
  15523. behavior of the program.
  15524. It does not follow that the register OP has no useful value after
  15525. this insn since OP is not necessarily modified by this insn.
  15526. Rather, no subsequent instruction uses the contents of OP.
  15527. 'REG_UNUSED'
  15528. The register OP being set by this insn will not be used in a
  15529. subsequent insn. This differs from a 'REG_DEAD' note, which
  15530. indicates that the value in an input will not be used subsequently.
  15531. These two notes are independent; both may be present for the same
  15532. register.
  15533. 'REG_INC'
  15534. The register OP is incremented (or decremented; at this level there
  15535. is no distinction) by an embedded side effect inside this insn.
  15536. This means it appears in a 'post_inc', 'pre_inc', 'post_dec' or
  15537. 'pre_dec' expression.
  15538. 'REG_NONNEG'
  15539. The register OP is known to have a nonnegative value when this insn
  15540. is reached. This is used by special looping instructions that
  15541. terminate when the register goes negative.
  15542. The 'REG_NONNEG' note is added only to 'doloop_end' insns, if its
  15543. pattern uses a 'ge' condition.
  15544. 'REG_LABEL_OPERAND'
  15545. This insn uses OP, a 'code_label' or a 'note' of type
  15546. 'NOTE_INSN_DELETED_LABEL', but is not a 'jump_insn', or it is a
  15547. 'jump_insn' that refers to the operand as an ordinary operand. The
  15548. label may still eventually be a jump target, but if so in an
  15549. indirect jump in a subsequent insn. The presence of this note
  15550. allows jump optimization to be aware that OP is, in fact, being
  15551. used, and flow optimization to build an accurate flow graph.
  15552. 'REG_LABEL_TARGET'
  15553. This insn is a 'jump_insn' but not an 'addr_vec' or
  15554. 'addr_diff_vec'. It uses OP, a 'code_label' as a direct or
  15555. indirect jump target. Its purpose is similar to that of
  15556. 'REG_LABEL_OPERAND'. This note is only present if the insn has
  15557. multiple targets; the last label in the insn (in the highest
  15558. numbered insn-field) goes into the 'JUMP_LABEL' field and does not
  15559. have a 'REG_LABEL_TARGET' note. *Note JUMP_LABEL: Insns.
  15560. 'REG_SETJMP'
  15561. Appears attached to each 'CALL_INSN' to 'setjmp' or a related
  15562. function.
  15563. The following notes describe attributes of outputs of an insn:
  15564. 'REG_EQUIV'
  15565. 'REG_EQUAL'
  15566. This note is only valid on an insn that sets only one register and
  15567. indicates that that register will be equal to OP at run time; the
  15568. scope of this equivalence differs between the two types of notes.
  15569. The value which the insn explicitly copies into the register may
  15570. look different from OP, but they will be equal at run time. If the
  15571. output of the single 'set' is a 'strict_low_part' or 'zero_extract'
  15572. expression, the note refers to the register that is contained in
  15573. its first operand.
  15574. For 'REG_EQUIV', the register is equivalent to OP throughout the
  15575. entire function, and could validly be replaced in all its
  15576. occurrences by OP. ("Validly" here refers to the data flow of the
  15577. program; simple replacement may make some insns invalid.) For
  15578. example, when a constant is loaded into a register that is never
  15579. assigned any other value, this kind of note is used.
  15580. When a parameter is copied into a pseudo-register at entry to a
  15581. function, a note of this kind records that the register is
  15582. equivalent to the stack slot where the parameter was passed.
  15583. Although in this case the register may be set by other insns, it is
  15584. still valid to replace the register by the stack slot throughout
  15585. the function.
  15586. A 'REG_EQUIV' note is also used on an instruction which copies a
  15587. register parameter into a pseudo-register at entry to a function,
  15588. if there is a stack slot where that parameter could be stored.
  15589. Although other insns may set the pseudo-register, it is valid for
  15590. the compiler to replace the pseudo-register by stack slot
  15591. throughout the function, provided the compiler ensures that the
  15592. stack slot is properly initialized by making the replacement in the
  15593. initial copy instruction as well. This is used on machines for
  15594. which the calling convention allocates stack space for register
  15595. parameters. See 'REG_PARM_STACK_SPACE' in *note Stack Arguments::.
  15596. In the case of 'REG_EQUAL', the register that is set by this insn
  15597. will be equal to OP at run time at the end of this insn but not
  15598. necessarily elsewhere in the function. In this case, OP is
  15599. typically an arithmetic expression. For example, when a sequence
  15600. of insns such as a library call is used to perform an arithmetic
  15601. operation, this kind of note is attached to the insn that produces
  15602. or copies the final value.
  15603. These two notes are used in different ways by the compiler passes.
  15604. 'REG_EQUAL' is used by passes prior to register allocation (such as
  15605. common subexpression elimination and loop optimization) to tell
  15606. them how to think of that value. 'REG_EQUIV' notes are used by
  15607. register allocation to indicate that there is an available
  15608. substitute expression (either a constant or a 'mem' expression for
  15609. the location of a parameter on the stack) that may be used in place
  15610. of a register if insufficient registers are available.
  15611. Except for stack homes for parameters, which are indicated by a
  15612. 'REG_EQUIV' note and are not useful to the early optimization
  15613. passes and pseudo registers that are equivalent to a memory
  15614. location throughout their entire life, which is not detected until
  15615. later in the compilation, all equivalences are initially indicated
  15616. by an attached 'REG_EQUAL' note. In the early stages of register
  15617. allocation, a 'REG_EQUAL' note is changed into a 'REG_EQUIV' note
  15618. if OP is a constant and the insn represents the only set of its
  15619. destination register.
  15620. Thus, compiler passes prior to register allocation need only check
  15621. for 'REG_EQUAL' notes and passes subsequent to register allocation
  15622. need only check for 'REG_EQUIV' notes.
  15623. These notes describe linkages between insns. They occur in pairs: one
  15624. insn has one of a pair of notes that points to a second insn, which has
  15625. the inverse note pointing back to the first insn.
  15626. 'REG_CC_SETTER'
  15627. 'REG_CC_USER'
  15628. On machines that use 'cc0', the insns which set and use 'cc0' set
  15629. and use 'cc0' are adjacent. However, when branch delay slot
  15630. filling is done, this may no longer be true. In this case a
  15631. 'REG_CC_USER' note will be placed on the insn setting 'cc0' to
  15632. point to the insn using 'cc0' and a 'REG_CC_SETTER' note will be
  15633. placed on the insn using 'cc0' to point to the insn setting 'cc0'.
  15634. These values are only used in the 'LOG_LINKS' field, and indicate the
  15635. type of dependency that each link represents. Links which indicate a
  15636. data dependence (a read after write dependence) do not use any code,
  15637. they simply have mode 'VOIDmode', and are printed without any
  15638. descriptive text.
  15639. 'REG_DEP_TRUE'
  15640. This indicates a true dependence (a read after write dependence).
  15641. 'REG_DEP_OUTPUT'
  15642. This indicates an output dependence (a write after write
  15643. dependence).
  15644. 'REG_DEP_ANTI'
  15645. This indicates an anti dependence (a write after read dependence).
  15646. These notes describe information gathered from gcov profile data. They
  15647. are stored in the 'REG_NOTES' field of an insn.
  15648. 'REG_BR_PROB'
  15649. This is used to specify the ratio of branches to non-branches of a
  15650. branch insn according to the profile data. The note is represented
  15651. as an 'int_list' expression whose integer value is an encoding of
  15652. 'profile_probability' type. 'profile_probability' provide member
  15653. function 'from_reg_br_prob_note' and 'to_reg_br_prob_note' to
  15654. extract and store the probability into the RTL encoding.
  15655. 'REG_BR_PRED'
  15656. These notes are found in JUMP insns after delayed branch scheduling
  15657. has taken place. They indicate both the direction and the
  15658. likelihood of the JUMP. The format is a bitmask of ATTR_FLAG_*
  15659. values.
  15660. 'REG_FRAME_RELATED_EXPR'
  15661. This is used on an RTX_FRAME_RELATED_P insn wherein the attached
  15662. expression is used in place of the actual insn pattern. This is
  15663. done in cases where the pattern is either complex or misleading.
  15664. The note 'REG_CALL_NOCF_CHECK' is used in conjunction with the
  15665. '-fcf-protection=branch' option. The note is set if a 'nocf_check'
  15666. attribute is specified for a function type or a pointer to function
  15667. type. The note is stored in the 'REG_NOTES' field of an insn.
  15668. 'REG_CALL_NOCF_CHECK'
  15669. Users have control through the 'nocf_check' attribute to identify
  15670. which calls to a function should be skipped from control-flow
  15671. instrumentation when the option '-fcf-protection=branch' is
  15672. specified. The compiler puts a 'REG_CALL_NOCF_CHECK' note on each
  15673. 'CALL_INSN' instruction that has a function type marked with a
  15674. 'nocf_check' attribute.
  15675. For convenience, the machine mode in an 'insn_list' or 'expr_list' is
  15676. printed using these symbolic codes in debugging dumps.
  15677. The only difference between the expression codes 'insn_list' and
  15678. 'expr_list' is that the first operand of an 'insn_list' is assumed to be
  15679. an insn and is printed in debugging dumps as the insn's unique id; the
  15680. first operand of an 'expr_list' is printed in the ordinary way as an
  15681. expression.
  15682. 
  15683. File: gccint.info, Node: Calls, Next: Sharing, Prev: Insns, Up: RTL
  15684. 14.20 RTL Representation of Function-Call Insns
  15685. ===============================================
  15686. Insns that call subroutines have the RTL expression code 'call_insn'.
  15687. These insns must satisfy special rules, and their bodies must use a
  15688. special RTL expression code, 'call'.
  15689. A 'call' expression has two operands, as follows:
  15690. (call (mem:FM ADDR) NBYTES)
  15691. Here NBYTES is an operand that represents the number of bytes of
  15692. argument data being passed to the subroutine, FM is a machine mode
  15693. (which must equal as the definition of the 'FUNCTION_MODE' macro in the
  15694. machine description) and ADDR represents the address of the subroutine.
  15695. For a subroutine that returns no value, the 'call' expression as shown
  15696. above is the entire body of the insn, except that the insn might also
  15697. contain 'use' or 'clobber' expressions.
  15698. For a subroutine that returns a value whose mode is not 'BLKmode', the
  15699. value is returned in a hard register. If this register's number is R,
  15700. then the body of the call insn looks like this:
  15701. (set (reg:M R)
  15702. (call (mem:FM ADDR) NBYTES))
  15703. This RTL expression makes it clear (to the optimizer passes) that the
  15704. appropriate register receives a useful value in this insn.
  15705. When a subroutine returns a 'BLKmode' value, it is handled by passing
  15706. to the subroutine the address of a place to store the value. So the
  15707. call insn itself does not "return" any value, and it has the same RTL
  15708. form as a call that returns nothing.
  15709. On some machines, the call instruction itself clobbers some register,
  15710. for example to contain the return address. 'call_insn' insns on these
  15711. machines should have a body which is a 'parallel' that contains both the
  15712. 'call' expression and 'clobber' expressions that indicate which
  15713. registers are destroyed. Similarly, if the call instruction requires
  15714. some register other than the stack pointer that is not explicitly
  15715. mentioned in its RTL, a 'use' subexpression should mention that
  15716. register.
  15717. Functions that are called are assumed to modify all registers listed in
  15718. the configuration macro 'CALL_USED_REGISTERS' (*note Register Basics::)
  15719. and, with the exception of 'const' functions and library calls, to
  15720. modify all of memory.
  15721. Insns containing just 'use' expressions directly precede the
  15722. 'call_insn' insn to indicate which registers contain inputs to the
  15723. function. Similarly, if registers other than those in
  15724. 'CALL_USED_REGISTERS' are clobbered by the called function, insns
  15725. containing a single 'clobber' follow immediately after the call to
  15726. indicate which registers.
  15727. 
  15728. File: gccint.info, Node: Sharing, Next: Reading RTL, Prev: Calls, Up: RTL
  15729. 14.21 Structure Sharing Assumptions
  15730. ===================================
  15731. The compiler assumes that certain kinds of RTL expressions are unique;
  15732. there do not exist two distinct objects representing the same value. In
  15733. other cases, it makes an opposite assumption: that no RTL expression
  15734. object of a certain kind appears in more than one place in the
  15735. containing structure.
  15736. These assumptions refer to a single function; except for the RTL
  15737. objects that describe global variables and external functions, and a few
  15738. standard objects such as small integer constants, no RTL objects are
  15739. common to two functions.
  15740. * Each pseudo-register has only a single 'reg' object to represent
  15741. it, and therefore only a single machine mode.
  15742. * For any symbolic label, there is only one 'symbol_ref' object
  15743. referring to it.
  15744. * All 'const_int' expressions with equal values are shared.
  15745. * All 'const_poly_int' expressions with equal modes and values are
  15746. shared.
  15747. * There is only one 'pc' expression.
  15748. * There is only one 'cc0' expression.
  15749. * There is only one 'const_double' expression with value 0 for each
  15750. floating point mode. Likewise for values 1 and 2.
  15751. * There is only one 'const_vector' expression with value 0 for each
  15752. vector mode, be it an integer or a double constant vector.
  15753. * No 'label_ref' or 'scratch' appears in more than one place in the
  15754. RTL structure; in other words, it is safe to do a tree-walk of all
  15755. the insns in the function and assume that each time a 'label_ref'
  15756. or 'scratch' is seen it is distinct from all others that are seen.
  15757. * Only one 'mem' object is normally created for each static variable
  15758. or stack slot, so these objects are frequently shared in all the
  15759. places they appear. However, separate but equal objects for these
  15760. variables are occasionally made.
  15761. * When a single 'asm' statement has multiple output operands, a
  15762. distinct 'asm_operands' expression is made for each output operand.
  15763. However, these all share the vector which contains the sequence of
  15764. input operands. This sharing is used later on to test whether two
  15765. 'asm_operands' expressions come from the same statement, so all
  15766. optimizations must carefully preserve the sharing if they copy the
  15767. vector at all.
  15768. * No RTL object appears in more than one place in the RTL structure
  15769. except as described above. Many passes of the compiler rely on
  15770. this by assuming that they can modify RTL objects in place without
  15771. unwanted side-effects on other insns.
  15772. * During initial RTL generation, shared structure is freely
  15773. introduced. After all the RTL for a function has been generated,
  15774. all shared structure is copied by 'unshare_all_rtl' in
  15775. 'emit-rtl.c', after which the above rules are guaranteed to be
  15776. followed.
  15777. * During the combiner pass, shared structure within an insn can exist
  15778. temporarily. However, the shared structure is copied before the
  15779. combiner is finished with the insn. This is done by calling
  15780. 'copy_rtx_if_shared', which is a subroutine of 'unshare_all_rtl'.
  15781. 
  15782. File: gccint.info, Node: Reading RTL, Prev: Sharing, Up: RTL
  15783. 14.22 Reading RTL
  15784. =================
  15785. To read an RTL object from a file, call 'read_rtx'. It takes one
  15786. argument, a stdio stream, and returns a single RTL object. This routine
  15787. is defined in 'read-rtl.c'. It is not available in the compiler itself,
  15788. only the various programs that generate the compiler back end from the
  15789. machine description.
  15790. People frequently have the idea of using RTL stored as text in a file
  15791. as an interface between a language front end and the bulk of GCC. This
  15792. idea is not feasible.
  15793. GCC was designed to use RTL internally only. Correct RTL for a given
  15794. program is very dependent on the particular target machine. And the RTL
  15795. does not contain all the information about the program.
  15796. The proper way to interface GCC to a new language front end is with the
  15797. "tree" data structure, described in the files 'tree.h' and 'tree.def'.
  15798. The documentation for this structure (*note GENERIC::) is incomplete.
  15799. 
  15800. File: gccint.info, Node: Control Flow, Next: Loop Analysis and Representation, Prev: RTL, Up: Top
  15801. 15 Control Flow Graph
  15802. *********************
  15803. A control flow graph (CFG) is a data structure built on top of the
  15804. intermediate code representation (the RTL or 'GIMPLE' instruction
  15805. stream) abstracting the control flow behavior of a function that is
  15806. being compiled. The CFG is a directed graph where the vertices
  15807. represent basic blocks and edges represent possible transfer of control
  15808. flow from one basic block to another. The data structures used to
  15809. represent the control flow graph are defined in 'basic-block.h'.
  15810. In GCC, the representation of control flow is maintained throughout the
  15811. compilation process, from constructing the CFG early in 'pass_build_cfg'
  15812. to 'pass_free_cfg' (see 'passes.def'). The CFG takes various different
  15813. modes and may undergo extensive manipulations, but the graph is always
  15814. valid between its construction and its release. This way, transfer of
  15815. information such as data flow, a measured profile, or the loop tree, can
  15816. be propagated through the passes pipeline, and even from 'GIMPLE' to
  15817. 'RTL'.
  15818. Often the CFG may be better viewed as integral part of instruction
  15819. chain, than structure built on the top of it. Updating the compiler's
  15820. intermediate representation for instructions cannot be easily done
  15821. without proper maintenance of the CFG simultaneously.
  15822. * Menu:
  15823. * Basic Blocks:: The definition and representation of basic blocks.
  15824. * Edges:: Types of edges and their representation.
  15825. * Profile information:: Representation of frequencies and probabilities.
  15826. * Maintaining the CFG:: Keeping the control flow graph and up to date.
  15827. * Liveness information:: Using and maintaining liveness information.
  15828. 
  15829. File: gccint.info, Node: Basic Blocks, Next: Edges, Up: Control Flow
  15830. 15.1 Basic Blocks
  15831. =================
  15832. A basic block is a straight-line sequence of code with only one entry
  15833. point and only one exit. In GCC, basic blocks are represented using the
  15834. 'basic_block' data type.
  15835. Special basic blocks represent possible entry and exit points of a
  15836. function. These blocks are called 'ENTRY_BLOCK_PTR' and
  15837. 'EXIT_BLOCK_PTR'. These blocks do not contain any code.
  15838. The 'BASIC_BLOCK' array contains all basic blocks in an unspecified
  15839. order. Each 'basic_block' structure has a field that holds a unique
  15840. integer identifier 'index' that is the index of the block in the
  15841. 'BASIC_BLOCK' array. The total number of basic blocks in the function
  15842. is 'n_basic_blocks'. Both the basic block indices and the total number
  15843. of basic blocks may vary during the compilation process, as passes
  15844. reorder, create, duplicate, and destroy basic blocks. The index for any
  15845. block should never be greater than 'last_basic_block'. The indices 0
  15846. and 1 are special codes reserved for 'ENTRY_BLOCK' and 'EXIT_BLOCK', the
  15847. indices of 'ENTRY_BLOCK_PTR' and 'EXIT_BLOCK_PTR'.
  15848. Two pointer members of the 'basic_block' structure are the pointers
  15849. 'next_bb' and 'prev_bb'. These are used to keep doubly linked chain of
  15850. basic blocks in the same order as the underlying instruction stream.
  15851. The chain of basic blocks is updated transparently by the provided API
  15852. for manipulating the CFG. The macro 'FOR_EACH_BB' can be used to visit
  15853. all the basic blocks in lexicographical order, except 'ENTRY_BLOCK' and
  15854. 'EXIT_BLOCK'. The macro 'FOR_ALL_BB' also visits all basic blocks in
  15855. lexicographical order, including 'ENTRY_BLOCK' and 'EXIT_BLOCK'.
  15856. The functions 'post_order_compute' and 'inverted_post_order_compute'
  15857. can be used to compute topological orders of the CFG. The orders are
  15858. stored as vectors of basic block indices. The 'BASIC_BLOCK' array can
  15859. be used to iterate each basic block by index. Dominator traversals are
  15860. also possible using 'walk_dominator_tree'. Given two basic blocks A and
  15861. B, block A dominates block B if A is _always_ executed before B.
  15862. Each 'basic_block' also contains pointers to the first instruction (the
  15863. "head") and the last instruction (the "tail") or "end" of the
  15864. instruction stream contained in a basic block. In fact, since the
  15865. 'basic_block' data type is used to represent blocks in both major
  15866. intermediate representations of GCC ('GIMPLE' and RTL), there are
  15867. pointers to the head and end of a basic block for both representations,
  15868. stored in intermediate representation specific data in the 'il' field of
  15869. 'struct basic_block_def'.
  15870. For RTL, these pointers are 'BB_HEAD' and 'BB_END'.
  15871. In the RTL representation of a function, the instruction stream
  15872. contains not only the "real" instructions, but also "notes" or "insn
  15873. notes" (to distinguish them from "reg notes"). Any function that moves
  15874. or duplicates the basic blocks needs to take care of updating of these
  15875. notes. Many of these notes expect that the instruction stream consists
  15876. of linear regions, so updating can sometimes be tedious. All types of
  15877. insn notes are defined in 'insn-notes.def'.
  15878. In the RTL function representation, the instructions contained in a
  15879. basic block always follow a 'NOTE_INSN_BASIC_BLOCK', but zero or more
  15880. 'CODE_LABEL' nodes can precede the block note. A basic block ends with
  15881. a control flow instruction or with the last instruction before the next
  15882. 'CODE_LABEL' or 'NOTE_INSN_BASIC_BLOCK'. By definition, a 'CODE_LABEL'
  15883. cannot appear in the middle of the instruction stream of a basic block.
  15884. In addition to notes, the jump table vectors are also represented as
  15885. "pseudo-instructions" inside the insn stream. These vectors never
  15886. appear in the basic block and should always be placed just after the
  15887. table jump instructions referencing them. After removing the table-jump
  15888. it is often difficult to eliminate the code computing the address and
  15889. referencing the vector, so cleaning up these vectors is postponed until
  15890. after liveness analysis. Thus the jump table vectors may appear in the
  15891. insn stream unreferenced and without any purpose. Before any edge is
  15892. made "fall-thru", the existence of such construct in the way needs to be
  15893. checked by calling 'can_fallthru' function.
  15894. For the 'GIMPLE' representation, the PHI nodes and statements contained
  15895. in a basic block are in a 'gimple_seq' pointed to by the basic block
  15896. intermediate language specific pointers. Abstract containers and
  15897. iterators are used to access the PHI nodes and statements in a basic
  15898. blocks. These iterators are called "GIMPLE statement iterators" (GSIs).
  15899. Grep for '^gsi' in the various 'gimple-*' and 'tree-*' files. There is
  15900. a 'gimple_stmt_iterator' type for iterating over all kinds of statement,
  15901. and a 'gphi_iterator' subclass for iterating over PHI nodes. The
  15902. following snippet will pretty-print all PHI nodes the statements of the
  15903. current function in the GIMPLE representation.
  15904. basic_block bb;
  15905. FOR_EACH_BB (bb)
  15906. {
  15907. gphi_iterator pi;
  15908. gimple_stmt_iterator si;
  15909. for (pi = gsi_start_phis (bb); !gsi_end_p (pi); gsi_next (&pi))
  15910. {
  15911. gphi *phi = pi.phi ();
  15912. print_gimple_stmt (dump_file, phi, 0, TDF_SLIM);
  15913. }
  15914. for (si = gsi_start_bb (bb); !gsi_end_p (si); gsi_next (&si))
  15915. {
  15916. gimple stmt = gsi_stmt (si);
  15917. print_gimple_stmt (dump_file, stmt, 0, TDF_SLIM);
  15918. }
  15919. }
  15920. 
  15921. File: gccint.info, Node: Edges, Next: Profile information, Prev: Basic Blocks, Up: Control Flow
  15922. 15.2 Edges
  15923. ==========
  15924. Edges represent possible control flow transfers from the end of some
  15925. basic block A to the head of another basic block B. We say that A is a
  15926. predecessor of B, and B is a successor of A. Edges are represented in
  15927. GCC with the 'edge' data type. Each 'edge' acts as a link between two
  15928. basic blocks: The 'src' member of an edge points to the predecessor
  15929. basic block of the 'dest' basic block. The members 'preds' and 'succs'
  15930. of the 'basic_block' data type point to type-safe vectors of edges to
  15931. the predecessors and successors of the block.
  15932. When walking the edges in an edge vector, "edge iterators" should be
  15933. used. Edge iterators are constructed using the 'edge_iterator' data
  15934. structure and several methods are available to operate on them:
  15935. 'ei_start'
  15936. This function initializes an 'edge_iterator' that points to the
  15937. first edge in a vector of edges.
  15938. 'ei_last'
  15939. This function initializes an 'edge_iterator' that points to the
  15940. last edge in a vector of edges.
  15941. 'ei_end_p'
  15942. This predicate is 'true' if an 'edge_iterator' represents the last
  15943. edge in an edge vector.
  15944. 'ei_one_before_end_p'
  15945. This predicate is 'true' if an 'edge_iterator' represents the
  15946. second last edge in an edge vector.
  15947. 'ei_next'
  15948. This function takes a pointer to an 'edge_iterator' and makes it
  15949. point to the next edge in the sequence.
  15950. 'ei_prev'
  15951. This function takes a pointer to an 'edge_iterator' and makes it
  15952. point to the previous edge in the sequence.
  15953. 'ei_edge'
  15954. This function returns the 'edge' currently pointed to by an
  15955. 'edge_iterator'.
  15956. 'ei_safe_safe'
  15957. This function returns the 'edge' currently pointed to by an
  15958. 'edge_iterator', but returns 'NULL' if the iterator is pointing at
  15959. the end of the sequence. This function has been provided for
  15960. existing code makes the assumption that a 'NULL' edge indicates the
  15961. end of the sequence.
  15962. The convenience macro 'FOR_EACH_EDGE' can be used to visit all of the
  15963. edges in a sequence of predecessor or successor edges. It must not be
  15964. used when an element might be removed during the traversal, otherwise
  15965. elements will be missed. Here is an example of how to use the macro:
  15966. edge e;
  15967. edge_iterator ei;
  15968. FOR_EACH_EDGE (e, ei, bb->succs)
  15969. {
  15970. if (e->flags & EDGE_FALLTHRU)
  15971. break;
  15972. }
  15973. There are various reasons why control flow may transfer from one block
  15974. to another. One possibility is that some instruction, for example a
  15975. 'CODE_LABEL', in a linearized instruction stream just always starts a
  15976. new basic block. In this case a "fall-thru" edge links the basic block
  15977. to the first following basic block. But there are several other reasons
  15978. why edges may be created. The 'flags' field of the 'edge' data type is
  15979. used to store information about the type of edge we are dealing with.
  15980. Each edge is of one of the following types:
  15981. _jump_
  15982. No type flags are set for edges corresponding to jump instructions.
  15983. These edges are used for unconditional or conditional jumps and in
  15984. RTL also for table jumps. They are the easiest to manipulate as
  15985. they may be freely redirected when the flow graph is not in SSA
  15986. form.
  15987. _fall-thru_
  15988. Fall-thru edges are present in case where the basic block may
  15989. continue execution to the following one without branching. These
  15990. edges have the 'EDGE_FALLTHRU' flag set. Unlike other types of
  15991. edges, these edges must come into the basic block immediately
  15992. following in the instruction stream. The function
  15993. 'force_nonfallthru' is available to insert an unconditional jump in
  15994. the case that redirection is needed. Note that this may require
  15995. creation of a new basic block.
  15996. _exception handling_
  15997. Exception handling edges represent possible control transfers from
  15998. a trapping instruction to an exception handler. The definition of
  15999. "trapping" varies. In C++, only function calls can throw, but for
  16000. Ada exceptions like division by zero or segmentation fault are
  16001. defined and thus each instruction possibly throwing this kind of
  16002. exception needs to be handled as control flow instruction.
  16003. Exception edges have the 'EDGE_ABNORMAL' and 'EDGE_EH' flags set.
  16004. When updating the instruction stream it is easy to change possibly
  16005. trapping instruction to non-trapping, by simply removing the
  16006. exception edge. The opposite conversion is difficult, but should
  16007. not happen anyway. The edges can be eliminated via
  16008. 'purge_dead_edges' call.
  16009. In the RTL representation, the destination of an exception edge is
  16010. specified by 'REG_EH_REGION' note attached to the insn. In case of
  16011. a trapping call the 'EDGE_ABNORMAL_CALL' flag is set too. In the
  16012. 'GIMPLE' representation, this extra flag is not set.
  16013. In the RTL representation, the predicate 'may_trap_p' may be used
  16014. to check whether instruction still may trap or not. For the tree
  16015. representation, the 'tree_could_trap_p' predicate is available, but
  16016. this predicate only checks for possible memory traps, as in
  16017. dereferencing an invalid pointer location.
  16018. _sibling calls_
  16019. Sibling calls or tail calls terminate the function in a
  16020. non-standard way and thus an edge to the exit must be present.
  16021. 'EDGE_SIBCALL' and 'EDGE_ABNORMAL' are set in such case. These
  16022. edges only exist in the RTL representation.
  16023. _computed jumps_
  16024. Computed jumps contain edges to all labels in the function
  16025. referenced from the code. All those edges have 'EDGE_ABNORMAL'
  16026. flag set. The edges used to represent computed jumps often cause
  16027. compile time performance problems, since functions consisting of
  16028. many taken labels and many computed jumps may have _very_ dense
  16029. flow graphs, so these edges need to be handled with special care.
  16030. During the earlier stages of the compilation process, GCC tries to
  16031. avoid such dense flow graphs by factoring computed jumps. For
  16032. example, given the following series of jumps,
  16033. goto *x;
  16034. [ ... ]
  16035. goto *x;
  16036. [ ... ]
  16037. goto *x;
  16038. [ ... ]
  16039. factoring the computed jumps results in the following code sequence
  16040. which has a much simpler flow graph:
  16041. goto y;
  16042. [ ... ]
  16043. goto y;
  16044. [ ... ]
  16045. goto y;
  16046. [ ... ]
  16047. y:
  16048. goto *x;
  16049. However, the classic problem with this transformation is that it
  16050. has a runtime cost in there resulting code: An extra jump.
  16051. Therefore, the computed jumps are un-factored in the later passes
  16052. of the compiler (in the pass called
  16053. 'pass_duplicate_computed_gotos'). Be aware of that when you work
  16054. on passes in that area. There have been numerous examples already
  16055. where the compile time for code with unfactored computed jumps
  16056. caused some serious headaches.
  16057. _nonlocal goto handlers_
  16058. GCC allows nested functions to return into caller using a 'goto' to
  16059. a label passed to as an argument to the callee. The labels passed
  16060. to nested functions contain special code to cleanup after function
  16061. call. Such sections of code are referred to as "nonlocal goto
  16062. receivers". If a function contains such nonlocal goto receivers,
  16063. an edge from the call to the label is created with the
  16064. 'EDGE_ABNORMAL' and 'EDGE_ABNORMAL_CALL' flags set.
  16065. _function entry points_
  16066. By definition, execution of function starts at basic block 0, so
  16067. there is always an edge from the 'ENTRY_BLOCK_PTR' to basic block
  16068. 0. There is no 'GIMPLE' representation for alternate entry points
  16069. at this moment. In RTL, alternate entry points are specified by
  16070. 'CODE_LABEL' with 'LABEL_ALTERNATE_NAME' defined. This feature is
  16071. currently used for multiple entry point prologues and is limited to
  16072. post-reload passes only. This can be used by back-ends to emit
  16073. alternate prologues for functions called from different contexts.
  16074. In future full support for multiple entry functions defined by
  16075. Fortran 90 needs to be implemented.
  16076. _function exits_
  16077. In the pre-reload representation a function terminates after the
  16078. last instruction in the insn chain and no explicit return
  16079. instructions are used. This corresponds to the fall-thru edge into
  16080. exit block. After reload, optimal RTL epilogues are used that use
  16081. explicit (conditional) return instructions that are represented by
  16082. edges with no flags set.
  16083. 
  16084. File: gccint.info, Node: Profile information, Next: Maintaining the CFG, Prev: Edges, Up: Control Flow
  16085. 15.3 Profile information
  16086. ========================
  16087. In many cases a compiler must make a choice whether to trade speed in
  16088. one part of code for speed in another, or to trade code size for code
  16089. speed. In such cases it is useful to know information about how often
  16090. some given block will be executed. That is the purpose for maintaining
  16091. profile within the flow graph. GCC can handle profile information
  16092. obtained through "profile feedback", but it can also estimate branch
  16093. probabilities based on statics and heuristics.
  16094. The feedback based profile is produced by compiling the program with
  16095. instrumentation, executing it on a train run and reading the numbers of
  16096. executions of basic blocks and edges back to the compiler while
  16097. re-compiling the program to produce the final executable. This method
  16098. provides very accurate information about where a program spends most of
  16099. its time on the train run. Whether it matches the average run of course
  16100. depends on the choice of train data set, but several studies have shown
  16101. that the behavior of a program usually changes just marginally over
  16102. different data sets.
  16103. When profile feedback is not available, the compiler may be asked to
  16104. attempt to predict the behavior of each branch in the program using a
  16105. set of heuristics (see 'predict.def' for details) and compute estimated
  16106. frequencies of each basic block by propagating the probabilities over
  16107. the graph.
  16108. Each 'basic_block' contains two integer fields to represent profile
  16109. information: 'frequency' and 'count'. The 'frequency' is an estimation
  16110. how often is basic block executed within a function. It is represented
  16111. as an integer scaled in the range from 0 to 'BB_FREQ_BASE'. The most
  16112. frequently executed basic block in function is initially set to
  16113. 'BB_FREQ_BASE' and the rest of frequencies are scaled accordingly.
  16114. During optimization, the frequency of the most frequent basic block can
  16115. both decrease (for instance by loop unrolling) or grow (for instance by
  16116. cross-jumping optimization), so scaling sometimes has to be performed
  16117. multiple times.
  16118. The 'count' contains hard-counted numbers of execution measured during
  16119. training runs and is nonzero only when profile feedback is available.
  16120. This value is represented as the host's widest integer (typically a 64
  16121. bit integer) of the special type 'gcov_type'.
  16122. Most optimization passes can use only the frequency information of a
  16123. basic block, but a few passes may want to know hard execution counts.
  16124. The frequencies should always match the counts after scaling, however
  16125. during updating of the profile information numerical error may
  16126. accumulate into quite large errors.
  16127. Each edge also contains a branch probability field: an integer in the
  16128. range from 0 to 'REG_BR_PROB_BASE'. It represents probability of
  16129. passing control from the end of the 'src' basic block to the 'dest'
  16130. basic block, i.e. the probability that control will flow along this
  16131. edge. The 'EDGE_FREQUENCY' macro is available to compute how frequently
  16132. a given edge is taken. There is a 'count' field for each edge as well,
  16133. representing same information as for a basic block.
  16134. The basic block frequencies are not represented in the instruction
  16135. stream, but in the RTL representation the edge frequencies are
  16136. represented for conditional jumps (via the 'REG_BR_PROB' macro) since
  16137. they are used when instructions are output to the assembly file and the
  16138. flow graph is no longer maintained.
  16139. The probability that control flow arrives via a given edge to its
  16140. destination basic block is called "reverse probability" and is not
  16141. directly represented, but it may be easily computed from frequencies of
  16142. basic blocks.
  16143. Updating profile information is a delicate task that can unfortunately
  16144. not be easily integrated with the CFG manipulation API. Many of the
  16145. functions and hooks to modify the CFG, such as
  16146. 'redirect_edge_and_branch', do not have enough information to easily
  16147. update the profile, so updating it is in the majority of cases left up
  16148. to the caller. It is difficult to uncover bugs in the profile updating
  16149. code, because they manifest themselves only by producing worse code, and
  16150. checking profile consistency is not possible because of numeric error
  16151. accumulation. Hence special attention needs to be given to this issue
  16152. in each pass that modifies the CFG.
  16153. It is important to point out that 'REG_BR_PROB_BASE' and 'BB_FREQ_BASE'
  16154. are both set low enough to be possible to compute second power of any
  16155. frequency or probability in the flow graph, it is not possible to even
  16156. square the 'count' field, as modern CPUs are fast enough to execute
  16157. $2^32$ operations quickly.
  16158. 
  16159. File: gccint.info, Node: Maintaining the CFG, Next: Liveness information, Prev: Profile information, Up: Control Flow
  16160. 15.4 Maintaining the CFG
  16161. ========================
  16162. An important task of each compiler pass is to keep both the control flow
  16163. graph and all profile information up-to-date. Reconstruction of the
  16164. control flow graph after each pass is not an option, since it may be
  16165. very expensive and lost profile information cannot be reconstructed at
  16166. all.
  16167. GCC has two major intermediate representations, and both use the
  16168. 'basic_block' and 'edge' data types to represent control flow. Both
  16169. representations share as much of the CFG maintenance code as possible.
  16170. For each representation, a set of "hooks" is defined so that each
  16171. representation can provide its own implementation of CFG manipulation
  16172. routines when necessary. These hooks are defined in 'cfghooks.h'.
  16173. There are hooks for almost all common CFG manipulations, including block
  16174. splitting and merging, edge redirection and creating and deleting basic
  16175. blocks. These hooks should provide everything you need to maintain and
  16176. manipulate the CFG in both the RTL and 'GIMPLE' representation.
  16177. At the moment, the basic block boundaries are maintained transparently
  16178. when modifying instructions, so there rarely is a need to move them
  16179. manually (such as in case someone wants to output instruction outside
  16180. basic block explicitly).
  16181. In the RTL representation, each instruction has a 'BLOCK_FOR_INSN'
  16182. value that represents pointer to the basic block that contains the
  16183. instruction. In the 'GIMPLE' representation, the function 'gimple_bb'
  16184. returns a pointer to the basic block containing the queried statement.
  16185. When changes need to be applied to a function in its 'GIMPLE'
  16186. representation, "GIMPLE statement iterators" should be used. These
  16187. iterators provide an integrated abstraction of the flow graph and the
  16188. instruction stream. Block statement iterators are constructed using the
  16189. 'gimple_stmt_iterator' data structure and several modifiers are
  16190. available, including the following:
  16191. 'gsi_start'
  16192. This function initializes a 'gimple_stmt_iterator' that points to
  16193. the first non-empty statement in a basic block.
  16194. 'gsi_last'
  16195. This function initializes a 'gimple_stmt_iterator' that points to
  16196. the last statement in a basic block.
  16197. 'gsi_end_p'
  16198. This predicate is 'true' if a 'gimple_stmt_iterator' represents the
  16199. end of a basic block.
  16200. 'gsi_next'
  16201. This function takes a 'gimple_stmt_iterator' and makes it point to
  16202. its successor.
  16203. 'gsi_prev'
  16204. This function takes a 'gimple_stmt_iterator' and makes it point to
  16205. its predecessor.
  16206. 'gsi_insert_after'
  16207. This function inserts a statement after the 'gimple_stmt_iterator'
  16208. passed in. The final parameter determines whether the statement
  16209. iterator is updated to point to the newly inserted statement, or
  16210. left pointing to the original statement.
  16211. 'gsi_insert_before'
  16212. This function inserts a statement before the 'gimple_stmt_iterator'
  16213. passed in. The final parameter determines whether the statement
  16214. iterator is updated to point to the newly inserted statement, or
  16215. left pointing to the original statement.
  16216. 'gsi_remove'
  16217. This function removes the 'gimple_stmt_iterator' passed in and
  16218. rechains the remaining statements in a basic block, if any.
  16219. In the RTL representation, the macros 'BB_HEAD' and 'BB_END' may be
  16220. used to get the head and end 'rtx' of a basic block. No abstract
  16221. iterators are defined for traversing the insn chain, but you can just
  16222. use 'NEXT_INSN' and 'PREV_INSN' instead. *Note Insns::.
  16223. Usually a code manipulating pass simplifies the instruction stream and
  16224. the flow of control, possibly eliminating some edges. This may for
  16225. example happen when a conditional jump is replaced with an unconditional
  16226. jump. Updating of edges is not transparent and each optimization pass
  16227. is required to do so manually. However only few cases occur in
  16228. practice. The pass may call 'purge_dead_edges' on a given basic block
  16229. to remove superfluous edges, if any.
  16230. Another common scenario is redirection of branch instructions, but this
  16231. is best modeled as redirection of edges in the control flow graph and
  16232. thus use of 'redirect_edge_and_branch' is preferred over more low level
  16233. functions, such as 'redirect_jump' that operate on RTL chain only. The
  16234. CFG hooks defined in 'cfghooks.h' should provide the complete API
  16235. required for manipulating and maintaining the CFG.
  16236. It is also possible that a pass has to insert control flow instruction
  16237. into the middle of a basic block, thus creating an entry point in the
  16238. middle of the basic block, which is impossible by definition: The block
  16239. must be split to make sure it only has one entry point, i.e. the head of
  16240. the basic block. The CFG hook 'split_block' may be used when an
  16241. instruction in the middle of a basic block has to become the target of a
  16242. jump or branch instruction.
  16243. For a global optimizer, a common operation is to split edges in the
  16244. flow graph and insert instructions on them. In the RTL representation,
  16245. this can be easily done using the 'insert_insn_on_edge' function that
  16246. emits an instruction "on the edge", caching it for a later
  16247. 'commit_edge_insertions' call that will take care of moving the inserted
  16248. instructions off the edge into the instruction stream contained in a
  16249. basic block. This includes the creation of new basic blocks where
  16250. needed. In the 'GIMPLE' representation, the equivalent functions are
  16251. 'gsi_insert_on_edge' which inserts a block statement iterator on an
  16252. edge, and 'gsi_commit_edge_inserts' which flushes the instruction to
  16253. actual instruction stream.
  16254. While debugging the optimization pass, the 'verify_flow_info' function
  16255. may be useful to find bugs in the control flow graph updating code.
  16256. 
  16257. File: gccint.info, Node: Liveness information, Prev: Maintaining the CFG, Up: Control Flow
  16258. 15.5 Liveness information
  16259. =========================
  16260. Liveness information is useful to determine whether some register is
  16261. "live" at given point of program, i.e. that it contains a value that may
  16262. be used at a later point in the program. This information is used, for
  16263. instance, during register allocation, as the pseudo registers only need
  16264. to be assigned to a unique hard register or to a stack slot if they are
  16265. live. The hard registers and stack slots may be freely reused for other
  16266. values when a register is dead.
  16267. Liveness information is available in the back end starting with
  16268. 'pass_df_initialize' and ending with 'pass_df_finish'. Three flavors of
  16269. live analysis are available: With 'LR', it is possible to determine at
  16270. any point 'P' in the function if the register may be used on some path
  16271. from 'P' to the end of the function. With 'UR', it is possible to
  16272. determine if there is a path from the beginning of the function to 'P'
  16273. that defines the variable. 'LIVE' is the intersection of the 'LR' and
  16274. 'UR' and a variable is live at 'P' if there is both an assignment that
  16275. reaches it from the beginning of the function and a use that can be
  16276. reached on some path from 'P' to the end of the function.
  16277. In general 'LIVE' is the most useful of the three. The macros
  16278. 'DF_[LR,UR,LIVE]_[IN,OUT]' can be used to access this information. The
  16279. macros take a basic block number and return a bitmap that is indexed by
  16280. the register number. This information is only guaranteed to be up to
  16281. date after calls are made to 'df_analyze'. See the file 'df-core.c' for
  16282. details on using the dataflow.
  16283. The liveness information is stored partly in the RTL instruction stream
  16284. and partly in the flow graph. Local information is stored in the
  16285. instruction stream: Each instruction may contain 'REG_DEAD' notes
  16286. representing that the value of a given register is no longer needed, or
  16287. 'REG_UNUSED' notes representing that the value computed by the
  16288. instruction is never used. The second is useful for instructions
  16289. computing multiple values at once.
  16290. 
  16291. File: gccint.info, Node: Loop Analysis and Representation, Next: Machine Desc, Prev: Control Flow, Up: Top
  16292. 16 Analysis and Representation of Loops
  16293. ***************************************
  16294. GCC provides extensive infrastructure for work with natural loops, i.e.,
  16295. strongly connected components of CFG with only one entry block. This
  16296. chapter describes representation of loops in GCC, both on GIMPLE and in
  16297. RTL, as well as the interfaces to loop-related analyses (induction
  16298. variable analysis and number of iterations analysis).
  16299. * Menu:
  16300. * Loop representation:: Representation and analysis of loops.
  16301. * Loop querying:: Getting information about loops.
  16302. * Loop manipulation:: Loop manipulation functions.
  16303. * LCSSA:: Loop-closed SSA form.
  16304. * Scalar evolutions:: Induction variables on GIMPLE.
  16305. * loop-iv:: Induction variables on RTL.
  16306. * Number of iterations:: Number of iterations analysis.
  16307. * Dependency analysis:: Data dependency analysis.
  16308. 
  16309. File: gccint.info, Node: Loop representation, Next: Loop querying, Up: Loop Analysis and Representation
  16310. 16.1 Loop representation
  16311. ========================
  16312. This chapter describes the representation of loops in GCC, and functions
  16313. that can be used to build, modify and analyze this representation. Most
  16314. of the interfaces and data structures are declared in 'cfgloop.h'. Loop
  16315. structures are analyzed and this information disposed or updated at the
  16316. discretion of individual passes. Still most of the generic CFG
  16317. manipulation routines are aware of loop structures and try to keep them
  16318. up-to-date. By this means an increasing part of the compilation
  16319. pipeline is setup to maintain loop structure across passes to allow
  16320. attaching meta information to individual loops for consumption by later
  16321. passes.
  16322. In general, a natural loop has one entry block (header) and possibly
  16323. several back edges (latches) leading to the header from the inside of
  16324. the loop. Loops with several latches may appear if several loops share
  16325. a single header, or if there is a branching in the middle of the loop.
  16326. The representation of loops in GCC however allows only loops with a
  16327. single latch. During loop analysis, headers of such loops are split and
  16328. forwarder blocks are created in order to disambiguate their structures.
  16329. Heuristic based on profile information and structure of the induction
  16330. variables in the loops is used to determine whether the latches
  16331. correspond to sub-loops or to control flow in a single loop. This means
  16332. that the analysis sometimes changes the CFG, and if you run it in the
  16333. middle of an optimization pass, you must be able to deal with the new
  16334. blocks. You may avoid CFG changes by passing
  16335. 'LOOPS_MAY_HAVE_MULTIPLE_LATCHES' flag to the loop discovery, note
  16336. however that most other loop manipulation functions will not work
  16337. correctly for loops with multiple latch edges (the functions that only
  16338. query membership of blocks to loops and subloop relationships, or
  16339. enumerate and test loop exits, can be expected to work).
  16340. Body of the loop is the set of blocks that are dominated by its header,
  16341. and reachable from its latch against the direction of edges in CFG. The
  16342. loops are organized in a containment hierarchy (tree) such that all the
  16343. loops immediately contained inside loop L are the children of L in the
  16344. tree. This tree is represented by the 'struct loops' structure. The
  16345. root of this tree is a fake loop that contains all blocks in the
  16346. function. Each of the loops is represented in a 'struct loop'
  16347. structure. Each loop is assigned an index ('num' field of the 'struct
  16348. loop' structure), and the pointer to the loop is stored in the
  16349. corresponding field of the 'larray' vector in the loops structure. The
  16350. indices do not have to be continuous, there may be empty ('NULL')
  16351. entries in the 'larray' created by deleting loops. Also, there is no
  16352. guarantee on the relative order of a loop and its subloops in the
  16353. numbering. The index of a loop never changes.
  16354. The entries of the 'larray' field should not be accessed directly. The
  16355. function 'get_loop' returns the loop description for a loop with the
  16356. given index. 'number_of_loops' function returns number of loops in the
  16357. function. To traverse all loops, use 'FOR_EACH_LOOP' macro. The
  16358. 'flags' argument of the macro is used to determine the direction of
  16359. traversal and the set of loops visited. Each loop is guaranteed to be
  16360. visited exactly once, regardless of the changes to the loop tree, and
  16361. the loops may be removed during the traversal. The newly created loops
  16362. are never traversed, if they need to be visited, this must be done
  16363. separately after their creation.
  16364. Each basic block contains the reference to the innermost loop it
  16365. belongs to ('loop_father'). For this reason, it is only possible to
  16366. have one 'struct loops' structure initialized at the same time for each
  16367. CFG. The global variable 'current_loops' contains the 'struct loops'
  16368. structure. Many of the loop manipulation functions assume that
  16369. dominance information is up-to-date.
  16370. The loops are analyzed through 'loop_optimizer_init' function. The
  16371. argument of this function is a set of flags represented in an integer
  16372. bitmask. These flags specify what other properties of the loop
  16373. structures should be calculated/enforced and preserved later:
  16374. * 'LOOPS_MAY_HAVE_MULTIPLE_LATCHES': If this flag is set, no changes
  16375. to CFG will be performed in the loop analysis, in particular, loops
  16376. with multiple latch edges will not be disambiguated. If a loop has
  16377. multiple latches, its latch block is set to NULL. Most of the loop
  16378. manipulation functions will not work for loops in this shape. No
  16379. other flags that require CFG changes can be passed to
  16380. loop_optimizer_init.
  16381. * 'LOOPS_HAVE_PREHEADERS': Forwarder blocks are created in such a way
  16382. that each loop has only one entry edge, and additionally, the
  16383. source block of this entry edge has only one successor. This
  16384. creates a natural place where the code can be moved out of the
  16385. loop, and ensures that the entry edge of the loop leads from its
  16386. immediate super-loop.
  16387. * 'LOOPS_HAVE_SIMPLE_LATCHES': Forwarder blocks are created to force
  16388. the latch block of each loop to have only one successor. This
  16389. ensures that the latch of the loop does not belong to any of its
  16390. sub-loops, and makes manipulation with the loops significantly
  16391. easier. Most of the loop manipulation functions assume that the
  16392. loops are in this shape. Note that with this flag, the "normal"
  16393. loop without any control flow inside and with one exit consists of
  16394. two basic blocks.
  16395. * 'LOOPS_HAVE_MARKED_IRREDUCIBLE_REGIONS': Basic blocks and edges in
  16396. the strongly connected components that are not natural loops (have
  16397. more than one entry block) are marked with 'BB_IRREDUCIBLE_LOOP'
  16398. and 'EDGE_IRREDUCIBLE_LOOP' flags. The flag is not set for blocks
  16399. and edges that belong to natural loops that are in such an
  16400. irreducible region (but it is set for the entry and exit edges of
  16401. such a loop, if they lead to/from this region).
  16402. * 'LOOPS_HAVE_RECORDED_EXITS': The lists of exits are recorded and
  16403. updated for each loop. This makes some functions (e.g.,
  16404. 'get_loop_exit_edges') more efficient. Some functions (e.g.,
  16405. 'single_exit') can be used only if the lists of exits are recorded.
  16406. These properties may also be computed/enforced later, using functions
  16407. 'create_preheaders', 'force_single_succ_latches',
  16408. 'mark_irreducible_loops' and 'record_loop_exits'. The properties can be
  16409. queried using 'loops_state_satisfies_p'.
  16410. The memory occupied by the loops structures should be freed with
  16411. 'loop_optimizer_finalize' function. When loop structures are setup to
  16412. be preserved across passes this function reduces the information to be
  16413. kept up-to-date to a minimum (only 'LOOPS_MAY_HAVE_MULTIPLE_LATCHES'
  16414. set).
  16415. The CFG manipulation functions in general do not update loop
  16416. structures. Specialized versions that additionally do so are provided
  16417. for the most common tasks. On GIMPLE, 'cleanup_tree_cfg_loop' function
  16418. can be used to cleanup CFG while updating the loops structures if
  16419. 'current_loops' is set.
  16420. At the moment loop structure is preserved from the start of GIMPLE loop
  16421. optimizations until the end of RTL loop optimizations. During this time
  16422. a loop can be tracked by its 'struct loop' and number.
  16423. 
  16424. File: gccint.info, Node: Loop querying, Next: Loop manipulation, Prev: Loop representation, Up: Loop Analysis and Representation
  16425. 16.2 Loop querying
  16426. ==================
  16427. The functions to query the information about loops are declared in
  16428. 'cfgloop.h'. Some of the information can be taken directly from the
  16429. structures. 'loop_father' field of each basic block contains the
  16430. innermost loop to that the block belongs. The most useful fields of
  16431. loop structure (that are kept up-to-date at all times) are:
  16432. * 'header', 'latch': Header and latch basic blocks of the loop.
  16433. * 'num_nodes': Number of basic blocks in the loop (including the
  16434. basic blocks of the sub-loops).
  16435. * 'outer', 'inner', 'next': The super-loop, the first sub-loop, and
  16436. the sibling of the loop in the loops tree.
  16437. There are other fields in the loop structures, many of them used only
  16438. by some of the passes, or not updated during CFG changes; in general,
  16439. they should not be accessed directly.
  16440. The most important functions to query loop structures are:
  16441. * 'loop_depth': The depth of the loop in the loops tree, i.e., the
  16442. number of super-loops of the loop.
  16443. * 'flow_loops_dump': Dumps the information about loops to a file.
  16444. * 'verify_loop_structure': Checks consistency of the loop structures.
  16445. * 'loop_latch_edge': Returns the latch edge of a loop.
  16446. * 'loop_preheader_edge': If loops have preheaders, returns the
  16447. preheader edge of a loop.
  16448. * 'flow_loop_nested_p': Tests whether loop is a sub-loop of another
  16449. loop.
  16450. * 'flow_bb_inside_loop_p': Tests whether a basic block belongs to a
  16451. loop (including its sub-loops).
  16452. * 'find_common_loop': Finds the common super-loop of two loops.
  16453. * 'superloop_at_depth': Returns the super-loop of a loop with the
  16454. given depth.
  16455. * 'tree_num_loop_insns', 'num_loop_insns': Estimates the number of
  16456. insns in the loop, on GIMPLE and on RTL.
  16457. * 'loop_exit_edge_p': Tests whether edge is an exit from a loop.
  16458. * 'mark_loop_exit_edges': Marks all exit edges of all loops with
  16459. 'EDGE_LOOP_EXIT' flag.
  16460. * 'get_loop_body', 'get_loop_body_in_dom_order',
  16461. 'get_loop_body_in_bfs_order': Enumerates the basic blocks in the
  16462. loop in depth-first search order in reversed CFG, ordered by
  16463. dominance relation, and breath-first search order, respectively.
  16464. * 'single_exit': Returns the single exit edge of the loop, or 'NULL'
  16465. if the loop has more than one exit. You can only use this function
  16466. if LOOPS_HAVE_MARKED_SINGLE_EXITS property is used.
  16467. * 'get_loop_exit_edges': Enumerates the exit edges of a loop.
  16468. * 'just_once_each_iteration_p': Returns true if the basic block is
  16469. executed exactly once during each iteration of a loop (that is, it
  16470. does not belong to a sub-loop, and it dominates the latch of the
  16471. loop).
  16472. 
  16473. File: gccint.info, Node: Loop manipulation, Next: LCSSA, Prev: Loop querying, Up: Loop Analysis and Representation
  16474. 16.3 Loop manipulation
  16475. ======================
  16476. The loops tree can be manipulated using the following functions:
  16477. * 'flow_loop_tree_node_add': Adds a node to the tree.
  16478. * 'flow_loop_tree_node_remove': Removes a node from the tree.
  16479. * 'add_bb_to_loop': Adds a basic block to a loop.
  16480. * 'remove_bb_from_loops': Removes a basic block from loops.
  16481. Most low-level CFG functions update loops automatically. The following
  16482. functions handle some more complicated cases of CFG manipulations:
  16483. * 'remove_path': Removes an edge and all blocks it dominates.
  16484. * 'split_loop_exit_edge': Splits exit edge of the loop, ensuring that
  16485. PHI node arguments remain in the loop (this ensures that
  16486. loop-closed SSA form is preserved). Only useful on GIMPLE.
  16487. Finally, there are some higher-level loop transformations implemented.
  16488. While some of them are written so that they should work on non-innermost
  16489. loops, they are mostly untested in that case, and at the moment, they
  16490. are only reliable for the innermost loops:
  16491. * 'create_iv': Creates a new induction variable. Only works on
  16492. GIMPLE. 'standard_iv_increment_position' can be used to find a
  16493. suitable place for the iv increment.
  16494. * 'duplicate_loop_to_header_edge',
  16495. 'tree_duplicate_loop_to_header_edge': These functions (on RTL and
  16496. on GIMPLE) duplicate the body of the loop prescribed number of
  16497. times on one of the edges entering loop header, thus performing
  16498. either loop unrolling or loop peeling. 'can_duplicate_loop_p'
  16499. ('can_unroll_loop_p' on GIMPLE) must be true for the duplicated
  16500. loop.
  16501. * 'loop_version': This function creates a copy of a loop, and a
  16502. branch before them that selects one of them depending on the
  16503. prescribed condition. This is useful for optimizations that need
  16504. to verify some assumptions in runtime (one of the copies of the
  16505. loop is usually left unchanged, while the other one is transformed
  16506. in some way).
  16507. * 'tree_unroll_loop': Unrolls the loop, including peeling the extra
  16508. iterations to make the number of iterations divisible by unroll
  16509. factor, updating the exit condition, and removing the exits that
  16510. now cannot be taken. Works only on GIMPLE.
  16511. 
  16512. File: gccint.info, Node: LCSSA, Next: Scalar evolutions, Prev: Loop manipulation, Up: Loop Analysis and Representation
  16513. 16.4 Loop-closed SSA form
  16514. =========================
  16515. Throughout the loop optimizations on tree level, one extra condition is
  16516. enforced on the SSA form: No SSA name is used outside of the loop in
  16517. that it is defined. The SSA form satisfying this condition is called
  16518. "loop-closed SSA form" - LCSSA. To enforce LCSSA, PHI nodes must be
  16519. created at the exits of the loops for the SSA names that are used
  16520. outside of them. Only the real operands (not virtual SSA names) are
  16521. held in LCSSA, in order to save memory.
  16522. There are various benefits of LCSSA:
  16523. * Many optimizations (value range analysis, final value replacement)
  16524. are interested in the values that are defined in the loop and used
  16525. outside of it, i.e., exactly those for that we create new PHI
  16526. nodes.
  16527. * In induction variable analysis, it is not necessary to specify the
  16528. loop in that the analysis should be performed - the scalar
  16529. evolution analysis always returns the results with respect to the
  16530. loop in that the SSA name is defined.
  16531. * It makes updating of SSA form during loop transformations simpler.
  16532. Without LCSSA, operations like loop unrolling may force creation of
  16533. PHI nodes arbitrarily far from the loop, while in LCSSA, the SSA
  16534. form can be updated locally. However, since we only keep real
  16535. operands in LCSSA, we cannot use this advantage (we could have
  16536. local updating of real operands, but it is not much more efficient
  16537. than to use generic SSA form updating for it as well; the amount of
  16538. changes to SSA is the same).
  16539. However, it also means LCSSA must be updated. This is usually
  16540. straightforward, unless you create a new value in loop and use it
  16541. outside, or unless you manipulate loop exit edges (functions are
  16542. provided to make these manipulations simple).
  16543. 'rewrite_into_loop_closed_ssa' is used to rewrite SSA form to LCSSA, and
  16544. 'verify_loop_closed_ssa' to check that the invariant of LCSSA is
  16545. preserved.
  16546. 
  16547. File: gccint.info, Node: Scalar evolutions, Next: loop-iv, Prev: LCSSA, Up: Loop Analysis and Representation
  16548. 16.5 Scalar evolutions
  16549. ======================
  16550. Scalar evolutions (SCEV) are used to represent results of induction
  16551. variable analysis on GIMPLE. They enable us to represent variables with
  16552. complicated behavior in a simple and consistent way (we only use it to
  16553. express values of polynomial induction variables, but it is possible to
  16554. extend it). The interfaces to SCEV analysis are declared in
  16555. 'tree-scalar-evolution.h'. To use scalar evolutions analysis,
  16556. 'scev_initialize' must be used. To stop using SCEV, 'scev_finalize'
  16557. should be used. SCEV analysis caches results in order to save time and
  16558. memory. This cache however is made invalid by most of the loop
  16559. transformations, including removal of code. If such a transformation is
  16560. performed, 'scev_reset' must be called to clean the caches.
  16561. Given an SSA name, its behavior in loops can be analyzed using the
  16562. 'analyze_scalar_evolution' function. The returned SCEV however does not
  16563. have to be fully analyzed and it may contain references to other SSA
  16564. names defined in the loop. To resolve these (potentially recursive)
  16565. references, 'instantiate_parameters' or 'resolve_mixers' functions must
  16566. be used. 'instantiate_parameters' is useful when you use the results of
  16567. SCEV only for some analysis, and when you work with whole nest of loops
  16568. at once. It will try replacing all SSA names by their SCEV in all
  16569. loops, including the super-loops of the current loop, thus providing a
  16570. complete information about the behavior of the variable in the loop
  16571. nest. 'resolve_mixers' is useful if you work with only one loop at a
  16572. time, and if you possibly need to create code based on the value of the
  16573. induction variable. It will only resolve the SSA names defined in the
  16574. current loop, leaving the SSA names defined outside unchanged, even if
  16575. their evolution in the outer loops is known.
  16576. The SCEV is a normal tree expression, except for the fact that it may
  16577. contain several special tree nodes. One of them is 'SCEV_NOT_KNOWN',
  16578. used for SSA names whose value cannot be expressed. The other one is
  16579. 'POLYNOMIAL_CHREC'. Polynomial chrec has three arguments - base, step
  16580. and loop (both base and step may contain further polynomial chrecs).
  16581. Type of the expression and of base and step must be the same. A
  16582. variable has evolution 'POLYNOMIAL_CHREC(base, step, loop)' if it is (in
  16583. the specified loop) equivalent to 'x_1' in the following example
  16584. while (...)
  16585. {
  16586. x_1 = phi (base, x_2);
  16587. x_2 = x_1 + step;
  16588. }
  16589. Note that this includes the language restrictions on the operations.
  16590. For example, if we compile C code and 'x' has signed type, then the
  16591. overflow in addition would cause undefined behavior, and we may assume
  16592. that this does not happen. Hence, the value with this SCEV cannot
  16593. overflow (which restricts the number of iterations of such a loop).
  16594. In many cases, one wants to restrict the attention just to affine
  16595. induction variables. In this case, the extra expressive power of SCEV
  16596. is not useful, and may complicate the optimizations. In this case,
  16597. 'simple_iv' function may be used to analyze a value - the result is a
  16598. loop-invariant base and step.
  16599. 
  16600. File: gccint.info, Node: loop-iv, Next: Number of iterations, Prev: Scalar evolutions, Up: Loop Analysis and Representation
  16601. 16.6 IV analysis on RTL
  16602. =======================
  16603. The induction variable on RTL is simple and only allows analysis of
  16604. affine induction variables, and only in one loop at once. The interface
  16605. is declared in 'cfgloop.h'. Before analyzing induction variables in a
  16606. loop L, 'iv_analysis_loop_init' function must be called on L. After the
  16607. analysis (possibly calling 'iv_analysis_loop_init' for several loops) is
  16608. finished, 'iv_analysis_done' should be called. The following functions
  16609. can be used to access the results of the analysis:
  16610. * 'iv_analyze': Analyzes a single register used in the given insn.
  16611. If no use of the register in this insn is found, the following
  16612. insns are scanned, so that this function can be called on the insn
  16613. returned by get_condition.
  16614. * 'iv_analyze_result': Analyzes result of the assignment in the given
  16615. insn.
  16616. * 'iv_analyze_expr': Analyzes a more complicated expression. All its
  16617. operands are analyzed by 'iv_analyze', and hence they must be used
  16618. in the specified insn or one of the following insns.
  16619. The description of the induction variable is provided in 'struct
  16620. rtx_iv'. In order to handle subregs, the representation is a bit
  16621. complicated; if the value of the 'extend' field is not 'UNKNOWN', the
  16622. value of the induction variable in the i-th iteration is
  16623. delta + mult * extend_{extend_mode} (subreg_{mode} (base + i * step)),
  16624. with the following exception: if 'first_special' is true, then the
  16625. value in the first iteration (when 'i' is zero) is 'delta + mult *
  16626. base'. However, if 'extend' is equal to 'UNKNOWN', then 'first_special'
  16627. must be false, 'delta' 0, 'mult' 1 and the value in the i-th iteration
  16628. is
  16629. subreg_{mode} (base + i * step)
  16630. The function 'get_iv_value' can be used to perform these calculations.
  16631. 
  16632. File: gccint.info, Node: Number of iterations, Next: Dependency analysis, Prev: loop-iv, Up: Loop Analysis and Representation
  16633. 16.7 Number of iterations analysis
  16634. ==================================
  16635. Both on GIMPLE and on RTL, there are functions available to determine
  16636. the number of iterations of a loop, with a similar interface. The
  16637. number of iterations of a loop in GCC is defined as the number of
  16638. executions of the loop latch. In many cases, it is not possible to
  16639. determine the number of iterations unconditionally - the determined
  16640. number is correct only if some assumptions are satisfied. The analysis
  16641. tries to verify these conditions using the information contained in the
  16642. program; if it fails, the conditions are returned together with the
  16643. result. The following information and conditions are provided by the
  16644. analysis:
  16645. * 'assumptions': If this condition is false, the rest of the
  16646. information is invalid.
  16647. * 'noloop_assumptions' on RTL, 'may_be_zero' on GIMPLE: If this
  16648. condition is true, the loop exits in the first iteration.
  16649. * 'infinite': If this condition is true, the loop is infinite. This
  16650. condition is only available on RTL. On GIMPLE, conditions for
  16651. finiteness of the loop are included in 'assumptions'.
  16652. * 'niter_expr' on RTL, 'niter' on GIMPLE: The expression that gives
  16653. number of iterations. The number of iterations is defined as the
  16654. number of executions of the loop latch.
  16655. Both on GIMPLE and on RTL, it necessary for the induction variable
  16656. analysis framework to be initialized (SCEV on GIMPLE, loop-iv on RTL).
  16657. On GIMPLE, the results are stored to 'struct tree_niter_desc' structure.
  16658. Number of iterations before the loop is exited through a given exit can
  16659. be determined using 'number_of_iterations_exit' function. On RTL, the
  16660. results are returned in 'struct niter_desc' structure. The
  16661. corresponding function is named 'check_simple_exit'. There are also
  16662. functions that pass through all the exits of a loop and try to find one
  16663. with easy to determine number of iterations - 'find_loop_niter' on
  16664. GIMPLE and 'find_simple_exit' on RTL. Finally, there are functions that
  16665. provide the same information, but additionally cache it, so that
  16666. repeated calls to number of iterations are not so costly -
  16667. 'number_of_latch_executions' on GIMPLE and 'get_simple_loop_desc' on
  16668. RTL.
  16669. Note that some of these functions may behave slightly differently than
  16670. others - some of them return only the expression for the number of
  16671. iterations, and fail if there are some assumptions. The function
  16672. 'number_of_latch_executions' works only for single-exit loops. The
  16673. function 'number_of_cond_exit_executions' can be used to determine
  16674. number of executions of the exit condition of a single-exit loop (i.e.,
  16675. the 'number_of_latch_executions' increased by one).
  16676. On GIMPLE, below constraint flags affect semantics of some APIs of
  16677. number of iterations analyzer:
  16678. * 'LOOP_C_INFINITE': If this constraint flag is set, the loop is
  16679. known to be infinite. APIs like 'number_of_iterations_exit' can
  16680. return false directly without doing any analysis.
  16681. * 'LOOP_C_FINITE': If this constraint flag is set, the loop is known
  16682. to be finite, in other words, loop's number of iterations can be
  16683. computed with 'assumptions' be true.
  16684. Generally, the constraint flags are set/cleared by consumers which are
  16685. loop optimizers. It's also the consumers' responsibility to set/clear
  16686. constraints correctly. Failing to do that might result in hard to track
  16687. down bugs in scev/niter consumers. One typical use case is vectorizer:
  16688. it drives number of iterations analyzer by setting 'LOOP_C_FINITE' and
  16689. vectorizes possibly infinite loop by versioning loop with analysis
  16690. result. In return, constraints set by consumers can also help number of
  16691. iterations analyzer in following optimizers. For example, 'niter' of a
  16692. loop versioned under 'assumptions' is valid unconditionally.
  16693. Other constraints may be added in the future, for example, a constraint
  16694. indicating that loops' latch must roll thus 'may_be_zero' would be false
  16695. unconditionally.
  16696. 
  16697. File: gccint.info, Node: Dependency analysis, Prev: Number of iterations, Up: Loop Analysis and Representation
  16698. 16.8 Data Dependency Analysis
  16699. =============================
  16700. The code for the data dependence analysis can be found in
  16701. 'tree-data-ref.c' and its interface and data structures are described in
  16702. 'tree-data-ref.h'. The function that computes the data dependences for
  16703. all the array and pointer references for a given loop is
  16704. 'compute_data_dependences_for_loop'. This function is currently used by
  16705. the linear loop transform and the vectorization passes. Before calling
  16706. this function, one has to allocate two vectors: a first vector will
  16707. contain the set of data references that are contained in the analyzed
  16708. loop body, and the second vector will contain the dependence relations
  16709. between the data references. Thus if the vector of data references is
  16710. of size 'n', the vector containing the dependence relations will contain
  16711. 'n*n' elements. However if the analyzed loop contains side effects,
  16712. such as calls that potentially can interfere with the data references in
  16713. the current analyzed loop, the analysis stops while scanning the loop
  16714. body for data references, and inserts a single 'chrec_dont_know' in the
  16715. dependence relation array.
  16716. The data references are discovered in a particular order during the
  16717. scanning of the loop body: the loop body is analyzed in execution order,
  16718. and the data references of each statement are pushed at the end of the
  16719. data reference array. Two data references syntactically occur in the
  16720. program in the same order as in the array of data references. This
  16721. syntactic order is important in some classical data dependence tests,
  16722. and mapping this order to the elements of this array avoids costly
  16723. queries to the loop body representation.
  16724. Three types of data references are currently handled: ARRAY_REF,
  16725. INDIRECT_REF and COMPONENT_REF. The data structure for the data
  16726. reference is 'data_reference', where 'data_reference_p' is a name of a
  16727. pointer to the data reference structure. The structure contains the
  16728. following elements:
  16729. * 'base_object_info': Provides information about the base object of
  16730. the data reference and its access functions. These access
  16731. functions represent the evolution of the data reference in the loop
  16732. relative to its base, in keeping with the classical meaning of the
  16733. data reference access function for the support of arrays. For
  16734. example, for a reference 'a.b[i][j]', the base object is 'a.b' and
  16735. the access functions, one for each array subscript, are: '{i_init,
  16736. + i_step}_1, {j_init, +, j_step}_2'.
  16737. * 'first_location_in_loop': Provides information about the first
  16738. location accessed by the data reference in the loop and about the
  16739. access function used to represent evolution relative to this
  16740. location. This data is used to support pointers, and is not used
  16741. for arrays (for which we have base objects). Pointer accesses are
  16742. represented as a one-dimensional access that starts from the first
  16743. location accessed in the loop. For example:
  16744. for1 i
  16745. for2 j
  16746. *((int *)p + i + j) = a[i][j];
  16747. The access function of the pointer access is '{0, + 4B}_for2'
  16748. relative to 'p + i'. The access functions of the array are
  16749. '{i_init, + i_step}_for1' and '{j_init, +, j_step}_for2' relative
  16750. to 'a'.
  16751. Usually, the object the pointer refers to is either unknown, or we
  16752. cannot prove that the access is confined to the boundaries of a
  16753. certain object.
  16754. Two data references can be compared only if at least one of these
  16755. two representations has all its fields filled for both data
  16756. references.
  16757. The current strategy for data dependence tests is as follows: If
  16758. both 'a' and 'b' are represented as arrays, compare 'a.base_object'
  16759. and 'b.base_object'; if they are equal, apply dependence tests (use
  16760. access functions based on base_objects). Else if both 'a' and 'b'
  16761. are represented as pointers, compare 'a.first_location' and
  16762. 'b.first_location'; if they are equal, apply dependence tests (use
  16763. access functions based on first location). However, if 'a' and 'b'
  16764. are represented differently, only try to prove that the bases are
  16765. definitely different.
  16766. * Aliasing information.
  16767. * Alignment information.
  16768. The structure describing the relation between two data references is
  16769. 'data_dependence_relation' and the shorter name for a pointer to such a
  16770. structure is 'ddr_p'. This structure contains:
  16771. * a pointer to each data reference,
  16772. * a tree node 'are_dependent' that is set to 'chrec_known' if the
  16773. analysis has proved that there is no dependence between these two
  16774. data references, 'chrec_dont_know' if the analysis was not able to
  16775. determine any useful result and potentially there could exist a
  16776. dependence between these data references, and 'are_dependent' is
  16777. set to 'NULL_TREE' if there exist a dependence relation between the
  16778. data references, and the description of this dependence relation is
  16779. given in the 'subscripts', 'dir_vects', and 'dist_vects' arrays,
  16780. * a boolean that determines whether the dependence relation can be
  16781. represented by a classical distance vector,
  16782. * an array 'subscripts' that contains a description of each subscript
  16783. of the data references. Given two array accesses a subscript is
  16784. the tuple composed of the access functions for a given dimension.
  16785. For example, given 'A[f1][f2][f3]' and 'B[g1][g2][g3]', there are
  16786. three subscripts: '(f1, g1), (f2, g2), (f3, g3)'.
  16787. * two arrays 'dir_vects' and 'dist_vects' that contain classical
  16788. representations of the data dependences under the form of direction
  16789. and distance dependence vectors,
  16790. * an array of loops 'loop_nest' that contains the loops to which the
  16791. distance and direction vectors refer to.
  16792. Several functions for pretty printing the information extracted by the
  16793. data dependence analysis are available: 'dump_ddrs' prints with a
  16794. maximum verbosity the details of a data dependence relations array,
  16795. 'dump_dist_dir_vectors' prints only the classical distance and direction
  16796. vectors for a data dependence relations array, and
  16797. 'dump_data_references' prints the details of the data references
  16798. contained in a data reference array.
  16799. 
  16800. File: gccint.info, Node: Machine Desc, Next: Target Macros, Prev: Loop Analysis and Representation, Up: Top
  16801. 17 Machine Descriptions
  16802. ***********************
  16803. A machine description has two parts: a file of instruction patterns
  16804. ('.md' file) and a C header file of macro definitions.
  16805. The '.md' file for a target machine contains a pattern for each
  16806. instruction that the target machine supports (or at least each
  16807. instruction that is worth telling the compiler about). It may also
  16808. contain comments. A semicolon causes the rest of the line to be a
  16809. comment, unless the semicolon is inside a quoted string.
  16810. See the next chapter for information on the C header file.
  16811. * Menu:
  16812. * Overview:: How the machine description is used.
  16813. * Patterns:: How to write instruction patterns.
  16814. * Example:: An explained example of a 'define_insn' pattern.
  16815. * RTL Template:: The RTL template defines what insns match a pattern.
  16816. * Output Template:: The output template says how to make assembler code
  16817. from such an insn.
  16818. * Output Statement:: For more generality, write C code to output
  16819. the assembler code.
  16820. * Predicates:: Controlling what kinds of operands can be used
  16821. for an insn.
  16822. * Constraints:: Fine-tuning operand selection.
  16823. * Standard Names:: Names mark patterns to use for code generation.
  16824. * Pattern Ordering:: When the order of patterns makes a difference.
  16825. * Dependent Patterns:: Having one pattern may make you need another.
  16826. * Jump Patterns:: Special considerations for patterns for jump insns.
  16827. * Looping Patterns:: How to define patterns for special looping insns.
  16828. * Insn Canonicalizations::Canonicalization of Instructions
  16829. * Expander Definitions::Generating a sequence of several RTL insns
  16830. for a standard operation.
  16831. * Insn Splitting:: Splitting Instructions into Multiple Instructions.
  16832. * Including Patterns:: Including Patterns in Machine Descriptions.
  16833. * Peephole Definitions::Defining machine-specific peephole optimizations.
  16834. * Insn Attributes:: Specifying the value of attributes for generated insns.
  16835. * Conditional Execution::Generating 'define_insn' patterns for
  16836. predication.
  16837. * Define Subst:: Generating 'define_insn' and 'define_expand'
  16838. patterns from other patterns.
  16839. * Constant Definitions::Defining symbolic constants that can be used in the
  16840. md file.
  16841. * Iterators:: Using iterators to generate patterns from a template.
  16842. 
  16843. File: gccint.info, Node: Overview, Next: Patterns, Up: Machine Desc
  16844. 17.1 Overview of How the Machine Description is Used
  16845. ====================================================
  16846. There are three main conversions that happen in the compiler:
  16847. 1. The front end reads the source code and builds a parse tree.
  16848. 2. The parse tree is used to generate an RTL insn list based on named
  16849. instruction patterns.
  16850. 3. The insn list is matched against the RTL templates to produce
  16851. assembler code.
  16852. For the generate pass, only the names of the insns matter, from either
  16853. a named 'define_insn' or a 'define_expand'. The compiler will choose
  16854. the pattern with the right name and apply the operands according to the
  16855. documentation later in this chapter, without regard for the RTL template
  16856. or operand constraints. Note that the names the compiler looks for are
  16857. hard-coded in the compiler--it will ignore unnamed patterns and patterns
  16858. with names it doesn't know about, but if you don't provide a named
  16859. pattern it needs, it will abort.
  16860. If a 'define_insn' is used, the template given is inserted into the
  16861. insn list. If a 'define_expand' is used, one of three things happens,
  16862. based on the condition logic. The condition logic may manually create
  16863. new insns for the insn list, say via 'emit_insn()', and invoke 'DONE'.
  16864. For certain named patterns, it may invoke 'FAIL' to tell the compiler to
  16865. use an alternate way of performing that task. If it invokes neither
  16866. 'DONE' nor 'FAIL', the template given in the pattern is inserted, as if
  16867. the 'define_expand' were a 'define_insn'.
  16868. Once the insn list is generated, various optimization passes convert,
  16869. replace, and rearrange the insns in the insn list. This is where the
  16870. 'define_split' and 'define_peephole' patterns get used, for example.
  16871. Finally, the insn list's RTL is matched up with the RTL templates in
  16872. the 'define_insn' patterns, and those patterns are used to emit the
  16873. final assembly code. For this purpose, each named 'define_insn' acts
  16874. like it's unnamed, since the names are ignored.
  16875. 
  16876. File: gccint.info, Node: Patterns, Next: Example, Prev: Overview, Up: Machine Desc
  16877. 17.2 Everything about Instruction Patterns
  16878. ==========================================
  16879. A 'define_insn' expression is used to define instruction patterns to
  16880. which insns may be matched. A 'define_insn' expression contains an
  16881. incomplete RTL expression, with pieces to be filled in later, operand
  16882. constraints that restrict how the pieces can be filled in, and an output
  16883. template or C code to generate the assembler output.
  16884. A 'define_insn' is an RTL expression containing four or five operands:
  16885. 1. An optional name N. When a name is present, the compiler
  16886. automically generates a C++ function 'gen_N' that takes the
  16887. operands of the instruction as arguments and returns the
  16888. instruction's rtx pattern. The compiler also assigns the
  16889. instruction a unique code 'CODE_FOR_N', with all such codes
  16890. belonging to an enum called 'insn_code'.
  16891. These names serve one of two purposes. The first is to indicate
  16892. that the instruction performs a certain standard job for the
  16893. RTL-generation pass of the compiler, such as a move, an addition,
  16894. or a conditional jump. The second is to help the target generate
  16895. certain target-specific operations, such as when implementing
  16896. target-specific intrinsic functions.
  16897. It is better to prefix target-specific names with the name of the
  16898. target, to avoid any clash with current or future standard names.
  16899. The absence of a name is indicated by writing an empty string where
  16900. the name should go. Nameless instruction patterns are never used
  16901. for generating RTL code, but they may permit several simpler insns
  16902. to be combined later on.
  16903. For the purpose of debugging the compiler, you may also specify a
  16904. name beginning with the '*' character. Such a name is used only
  16905. for identifying the instruction in RTL dumps; it is equivalent to
  16906. having a nameless pattern for all other purposes. Names beginning
  16907. with the '*' character are not required to be unique.
  16908. The name may also have the form '@N'. This has the same effect as
  16909. a name 'N', but in addition tells the compiler to generate further
  16910. helper functions; see *note Parameterized Names:: for details.
  16911. 2. The "RTL template": This is a vector of incomplete RTL expressions
  16912. which describe the semantics of the instruction (*note RTL
  16913. Template::). It is incomplete because it may contain
  16914. 'match_operand', 'match_operator', and 'match_dup' expressions that
  16915. stand for operands of the instruction.
  16916. If the vector has multiple elements, the RTL template is treated as
  16917. a 'parallel' expression.
  16918. 3. The condition: This is a string which contains a C expression.
  16919. When the compiler attempts to match RTL against a pattern, the
  16920. condition is evaluated. If the condition evaluates to 'true', the
  16921. match is permitted. The condition may be an empty string, which is
  16922. treated as always 'true'.
  16923. For a named pattern, the condition may not depend on the data in
  16924. the insn being matched, but only the target-machine-type flags.
  16925. The compiler needs to test these conditions during initialization
  16926. in order to learn exactly which named instructions are available in
  16927. a particular run.
  16928. For nameless patterns, the condition is applied only when matching
  16929. an individual insn, and only after the insn has matched the
  16930. pattern's recognition template. The insn's operands may be found
  16931. in the vector 'operands'.
  16932. An instruction condition cannot become more restrictive as
  16933. compilation progresses. If the condition accepts a particular RTL
  16934. instruction at one stage of compilation, it must continue to accept
  16935. that instruction until the final pass. For example,
  16936. '!reload_completed' and 'can_create_pseudo_p ()' are both invalid
  16937. instruction conditions, because they are true during the earlier
  16938. RTL passes and false during the later ones. For the same reason,
  16939. if a condition accepts an instruction before register allocation,
  16940. it cannot later try to control register allocation by excluding
  16941. certain register or value combinations.
  16942. Although a condition cannot become more restrictive as compilation
  16943. progresses, the condition for a nameless pattern _can_ become more
  16944. permissive. For example, a nameless instruction can require
  16945. 'reload_completed' to be true, in which case it only matches after
  16946. register allocation.
  16947. 4. The "output template" or "output statement": This is either a
  16948. string, or a fragment of C code which returns a string.
  16949. When simple substitution isn't general enough, you can specify a
  16950. piece of C code to compute the output. *Note Output Statement::.
  16951. 5. The "insn attributes": This is an optional vector containing the
  16952. values of attributes for insns matching this pattern (*note Insn
  16953. Attributes::).
  16954. 
  16955. File: gccint.info, Node: Example, Next: RTL Template, Prev: Patterns, Up: Machine Desc
  16956. 17.3 Example of 'define_insn'
  16957. =============================
  16958. Here is an example of an instruction pattern, taken from the machine
  16959. description for the 68000/68020.
  16960. (define_insn "tstsi"
  16961. [(set (cc0)
  16962. (match_operand:SI 0 "general_operand" "rm"))]
  16963. ""
  16964. "*
  16965. {
  16966. if (TARGET_68020 || ! ADDRESS_REG_P (operands[0]))
  16967. return \"tstl %0\";
  16968. return \"cmpl #0,%0\";
  16969. }")
  16970. This can also be written using braced strings:
  16971. (define_insn "tstsi"
  16972. [(set (cc0)
  16973. (match_operand:SI 0 "general_operand" "rm"))]
  16974. ""
  16975. {
  16976. if (TARGET_68020 || ! ADDRESS_REG_P (operands[0]))
  16977. return "tstl %0";
  16978. return "cmpl #0,%0";
  16979. })
  16980. This describes an instruction which sets the condition codes based on
  16981. the value of a general operand. It has no condition, so any insn with
  16982. an RTL description of the form shown may be matched to this pattern.
  16983. The name 'tstsi' means "test a 'SImode' value" and tells the RTL
  16984. generation pass that, when it is necessary to test such a value, an insn
  16985. to do so can be constructed using this pattern.
  16986. The output control string is a piece of C code which chooses which
  16987. output template to return based on the kind of operand and the specific
  16988. type of CPU for which code is being generated.
  16989. '"rm"' is an operand constraint. Its meaning is explained below.
  16990. 
  16991. File: gccint.info, Node: RTL Template, Next: Output Template, Prev: Example, Up: Machine Desc
  16992. 17.4 RTL Template
  16993. =================
  16994. The RTL template is used to define which insns match the particular
  16995. pattern and how to find their operands. For named patterns, the RTL
  16996. template also says how to construct an insn from specified operands.
  16997. Construction involves substituting specified operands into a copy of
  16998. the template. Matching involves determining the values that serve as
  16999. the operands in the insn being matched. Both of these activities are
  17000. controlled by special expression types that direct matching and
  17001. substitution of the operands.
  17002. '(match_operand:M N PREDICATE CONSTRAINT)'
  17003. This expression is a placeholder for operand number N of the insn.
  17004. When constructing an insn, operand number N will be substituted at
  17005. this point. When matching an insn, whatever appears at this
  17006. position in the insn will be taken as operand number N; but it must
  17007. satisfy PREDICATE or this instruction pattern will not match at
  17008. all.
  17009. Operand numbers must be chosen consecutively counting from zero in
  17010. each instruction pattern. There may be only one 'match_operand'
  17011. expression in the pattern for each operand number. Usually
  17012. operands are numbered in the order of appearance in 'match_operand'
  17013. expressions. In the case of a 'define_expand', any operand numbers
  17014. used only in 'match_dup' expressions have higher values than all
  17015. other operand numbers.
  17016. PREDICATE is a string that is the name of a function that accepts
  17017. two arguments, an expression and a machine mode. *Note
  17018. Predicates::. During matching, the function will be called with
  17019. the putative operand as the expression and M as the mode argument
  17020. (if M is not specified, 'VOIDmode' will be used, which normally
  17021. causes PREDICATE to accept any mode). If it returns zero, this
  17022. instruction pattern fails to match. PREDICATE may be an empty
  17023. string; then it means no test is to be done on the operand, so
  17024. anything which occurs in this position is valid.
  17025. Most of the time, PREDICATE will reject modes other than M--but not
  17026. always. For example, the predicate 'address_operand' uses M as the
  17027. mode of memory ref that the address should be valid for. Many
  17028. predicates accept 'const_int' nodes even though their mode is
  17029. 'VOIDmode'.
  17030. CONSTRAINT controls reloading and the choice of the best register
  17031. class to use for a value, as explained later (*note Constraints::).
  17032. If the constraint would be an empty string, it can be omitted.
  17033. People are often unclear on the difference between the constraint
  17034. and the predicate. The predicate helps decide whether a given insn
  17035. matches the pattern. The constraint plays no role in this
  17036. decision; instead, it controls various decisions in the case of an
  17037. insn which does match.
  17038. '(match_scratch:M N CONSTRAINT)'
  17039. This expression is also a placeholder for operand number N and
  17040. indicates that operand must be a 'scratch' or 'reg' expression.
  17041. When matching patterns, this is equivalent to
  17042. (match_operand:M N "scratch_operand" CONSTRAINT)
  17043. but, when generating RTL, it produces a ('scratch':M) expression.
  17044. If the last few expressions in a 'parallel' are 'clobber'
  17045. expressions whose operands are either a hard register or
  17046. 'match_scratch', the combiner can add or delete them when
  17047. necessary. *Note Side Effects::.
  17048. '(match_dup N)'
  17049. This expression is also a placeholder for operand number N. It is
  17050. used when the operand needs to appear more than once in the insn.
  17051. In construction, 'match_dup' acts just like 'match_operand': the
  17052. operand is substituted into the insn being constructed. But in
  17053. matching, 'match_dup' behaves differently. It assumes that operand
  17054. number N has already been determined by a 'match_operand' appearing
  17055. earlier in the recognition template, and it matches only an
  17056. identical-looking expression.
  17057. Note that 'match_dup' should not be used to tell the compiler that
  17058. a particular register is being used for two operands (example:
  17059. 'add' that adds one register to another; the second register is
  17060. both an input operand and the output operand). Use a matching
  17061. constraint (*note Simple Constraints::) for those. 'match_dup' is
  17062. for the cases where one operand is used in two places in the
  17063. template, such as an instruction that computes both a quotient and
  17064. a remainder, where the opcode takes two input operands but the RTL
  17065. template has to refer to each of those twice; once for the quotient
  17066. pattern and once for the remainder pattern.
  17067. '(match_operator:M N PREDICATE [OPERANDS...])'
  17068. This pattern is a kind of placeholder for a variable RTL expression
  17069. code.
  17070. When constructing an insn, it stands for an RTL expression whose
  17071. expression code is taken from that of operand N, and whose operands
  17072. are constructed from the patterns OPERANDS.
  17073. When matching an expression, it matches an expression if the
  17074. function PREDICATE returns nonzero on that expression _and_ the
  17075. patterns OPERANDS match the operands of the expression.
  17076. Suppose that the function 'commutative_operator' is defined as
  17077. follows, to match any expression whose operator is one of the
  17078. commutative arithmetic operators of RTL and whose mode is MODE:
  17079. int
  17080. commutative_integer_operator (x, mode)
  17081. rtx x;
  17082. machine_mode mode;
  17083. {
  17084. enum rtx_code code = GET_CODE (x);
  17085. if (GET_MODE (x) != mode)
  17086. return 0;
  17087. return (GET_RTX_CLASS (code) == RTX_COMM_ARITH
  17088. || code == EQ || code == NE);
  17089. }
  17090. Then the following pattern will match any RTL expression consisting
  17091. of a commutative operator applied to two general operands:
  17092. (match_operator:SI 3 "commutative_operator"
  17093. [(match_operand:SI 1 "general_operand" "g")
  17094. (match_operand:SI 2 "general_operand" "g")])
  17095. Here the vector '[OPERANDS...]' contains two patterns because the
  17096. expressions to be matched all contain two operands.
  17097. When this pattern does match, the two operands of the commutative
  17098. operator are recorded as operands 1 and 2 of the insn. (This is
  17099. done by the two instances of 'match_operand'.) Operand 3 of the
  17100. insn will be the entire commutative expression: use 'GET_CODE
  17101. (operands[3])' to see which commutative operator was used.
  17102. The machine mode M of 'match_operator' works like that of
  17103. 'match_operand': it is passed as the second argument to the
  17104. predicate function, and that function is solely responsible for
  17105. deciding whether the expression to be matched "has" that mode.
  17106. When constructing an insn, argument 3 of the gen-function will
  17107. specify the operation (i.e. the expression code) for the expression
  17108. to be made. It should be an RTL expression, whose expression code
  17109. is copied into a new expression whose operands are arguments 1 and
  17110. 2 of the gen-function. The subexpressions of argument 3 are not
  17111. used; only its expression code matters.
  17112. When 'match_operator' is used in a pattern for matching an insn, it
  17113. usually best if the operand number of the 'match_operator' is
  17114. higher than that of the actual operands of the insn. This improves
  17115. register allocation because the register allocator often looks at
  17116. operands 1 and 2 of insns to see if it can do register tying.
  17117. There is no way to specify constraints in 'match_operator'. The
  17118. operand of the insn which corresponds to the 'match_operator' never
  17119. has any constraints because it is never reloaded as a whole.
  17120. However, if parts of its OPERANDS are matched by 'match_operand'
  17121. patterns, those parts may have constraints of their own.
  17122. '(match_op_dup:M N[OPERANDS...])'
  17123. Like 'match_dup', except that it applies to operators instead of
  17124. operands. When constructing an insn, operand number N will be
  17125. substituted at this point. But in matching, 'match_op_dup' behaves
  17126. differently. It assumes that operand number N has already been
  17127. determined by a 'match_operator' appearing earlier in the
  17128. recognition template, and it matches only an identical-looking
  17129. expression.
  17130. '(match_parallel N PREDICATE [SUBPAT...])'
  17131. This pattern is a placeholder for an insn that consists of a
  17132. 'parallel' expression with a variable number of elements. This
  17133. expression should only appear at the top level of an insn pattern.
  17134. When constructing an insn, operand number N will be substituted at
  17135. this point. When matching an insn, it matches if the body of the
  17136. insn is a 'parallel' expression with at least as many elements as
  17137. the vector of SUBPAT expressions in the 'match_parallel', if each
  17138. SUBPAT matches the corresponding element of the 'parallel', _and_
  17139. the function PREDICATE returns nonzero on the 'parallel' that is
  17140. the body of the insn. It is the responsibility of the predicate to
  17141. validate elements of the 'parallel' beyond those listed in the
  17142. 'match_parallel'.
  17143. A typical use of 'match_parallel' is to match load and store
  17144. multiple expressions, which can contain a variable number of
  17145. elements in a 'parallel'. For example,
  17146. (define_insn ""
  17147. [(match_parallel 0 "load_multiple_operation"
  17148. [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
  17149. (match_operand:SI 2 "memory_operand" "m"))
  17150. (use (reg:SI 179))
  17151. (clobber (reg:SI 179))])]
  17152. ""
  17153. "loadm 0,0,%1,%2")
  17154. This example comes from 'a29k.md'. The function
  17155. 'load_multiple_operation' is defined in 'a29k.c' and checks that
  17156. subsequent elements in the 'parallel' are the same as the 'set' in
  17157. the pattern, except that they are referencing subsequent registers
  17158. and memory locations.
  17159. An insn that matches this pattern might look like:
  17160. (parallel
  17161. [(set (reg:SI 20) (mem:SI (reg:SI 100)))
  17162. (use (reg:SI 179))
  17163. (clobber (reg:SI 179))
  17164. (set (reg:SI 21)
  17165. (mem:SI (plus:SI (reg:SI 100)
  17166. (const_int 4))))
  17167. (set (reg:SI 22)
  17168. (mem:SI (plus:SI (reg:SI 100)
  17169. (const_int 8))))])
  17170. '(match_par_dup N [SUBPAT...])'
  17171. Like 'match_op_dup', but for 'match_parallel' instead of
  17172. 'match_operator'.
  17173. 
  17174. File: gccint.info, Node: Output Template, Next: Output Statement, Prev: RTL Template, Up: Machine Desc
  17175. 17.5 Output Templates and Operand Substitution
  17176. ==============================================
  17177. The "output template" is a string which specifies how to output the
  17178. assembler code for an instruction pattern. Most of the template is a
  17179. fixed string which is output literally. The character '%' is used to
  17180. specify where to substitute an operand; it can also be used to identify
  17181. places where different variants of the assembler require different
  17182. syntax.
  17183. In the simplest case, a '%' followed by a digit N says to output
  17184. operand N at that point in the string.
  17185. '%' followed by a letter and a digit says to output an operand in an
  17186. alternate fashion. Four letters have standard, built-in meanings
  17187. described below. The machine description macro 'PRINT_OPERAND' can
  17188. define additional letters with nonstandard meanings.
  17189. '%cDIGIT' can be used to substitute an operand that is a constant value
  17190. without the syntax that normally indicates an immediate operand.
  17191. '%nDIGIT' is like '%cDIGIT' except that the value of the constant is
  17192. negated before printing.
  17193. '%aDIGIT' can be used to substitute an operand as if it were a memory
  17194. reference, with the actual operand treated as the address. This may be
  17195. useful when outputting a "load address" instruction, because often the
  17196. assembler syntax for such an instruction requires you to write the
  17197. operand as if it were a memory reference.
  17198. '%lDIGIT' is used to substitute a 'label_ref' into a jump instruction.
  17199. '%=' outputs a number which is unique to each instruction in the entire
  17200. compilation. This is useful for making local labels to be referred to
  17201. more than once in a single template that generates multiple assembler
  17202. instructions.
  17203. '%' followed by a punctuation character specifies a substitution that
  17204. does not use an operand. Only one case is standard: '%%' outputs a '%'
  17205. into the assembler code. Other nonstandard cases can be defined in the
  17206. 'PRINT_OPERAND' macro. You must also define which punctuation
  17207. characters are valid with the 'PRINT_OPERAND_PUNCT_VALID_P' macro.
  17208. The template may generate multiple assembler instructions. Write the
  17209. text for the instructions, with '\;' between them.
  17210. When the RTL contains two operands which are required by constraint to
  17211. match each other, the output template must refer only to the
  17212. lower-numbered operand. Matching operands are not always identical, and
  17213. the rest of the compiler arranges to put the proper RTL expression for
  17214. printing into the lower-numbered operand.
  17215. One use of nonstandard letters or punctuation following '%' is to
  17216. distinguish between different assembler languages for the same machine;
  17217. for example, Motorola syntax versus MIT syntax for the 68000. Motorola
  17218. syntax requires periods in most opcode names, while MIT syntax does not.
  17219. For example, the opcode 'movel' in MIT syntax is 'move.l' in Motorola
  17220. syntax. The same file of patterns is used for both kinds of output
  17221. syntax, but the character sequence '%.' is used in each place where
  17222. Motorola syntax wants a period. The 'PRINT_OPERAND' macro for Motorola
  17223. syntax defines the sequence to output a period; the macro for MIT syntax
  17224. defines it to do nothing.
  17225. As a special case, a template consisting of the single character '#'
  17226. instructs the compiler to first split the insn, and then output the
  17227. resulting instructions separately. This helps eliminate redundancy in
  17228. the output templates. If you have a 'define_insn' that needs to emit
  17229. multiple assembler instructions, and there is a matching 'define_split'
  17230. already defined, then you can simply use '#' as the output template
  17231. instead of writing an output template that emits the multiple assembler
  17232. instructions.
  17233. Note that '#' only has an effect while generating assembly code; it
  17234. does not affect whether a split occurs earlier. An associated
  17235. 'define_split' must exist and it must be suitable for use after register
  17236. allocation.
  17237. If the macro 'ASSEMBLER_DIALECT' is defined, you can use construct of
  17238. the form '{option0|option1|option2}' in the templates. These describe
  17239. multiple variants of assembler language syntax. *Note Instruction
  17240. Output::.
  17241. 
  17242. File: gccint.info, Node: Output Statement, Next: Predicates, Prev: Output Template, Up: Machine Desc
  17243. 17.6 C Statements for Assembler Output
  17244. ======================================
  17245. Often a single fixed template string cannot produce correct and
  17246. efficient assembler code for all the cases that are recognized by a
  17247. single instruction pattern. For example, the opcodes may depend on the
  17248. kinds of operands; or some unfortunate combinations of operands may
  17249. require extra machine instructions.
  17250. If the output control string starts with a '@', then it is actually a
  17251. series of templates, each on a separate line. (Blank lines and leading
  17252. spaces and tabs are ignored.) The templates correspond to the pattern's
  17253. constraint alternatives (*note Multi-Alternative::). For example, if a
  17254. target machine has a two-address add instruction 'addr' to add into a
  17255. register and another 'addm' to add a register to memory, you might write
  17256. this pattern:
  17257. (define_insn "addsi3"
  17258. [(set (match_operand:SI 0 "general_operand" "=r,m")
  17259. (plus:SI (match_operand:SI 1 "general_operand" "0,0")
  17260. (match_operand:SI 2 "general_operand" "g,r")))]
  17261. ""
  17262. "@
  17263. addr %2,%0
  17264. addm %2,%0")
  17265. If the output control string starts with a '*', then it is not an
  17266. output template but rather a piece of C program that should compute a
  17267. template. It should execute a 'return' statement to return the
  17268. template-string you want. Most such templates use C string literals,
  17269. which require doublequote characters to delimit them. To include these
  17270. doublequote characters in the string, prefix each one with '\'.
  17271. If the output control string is written as a brace block instead of a
  17272. double-quoted string, it is automatically assumed to be C code. In that
  17273. case, it is not necessary to put in a leading asterisk, or to escape the
  17274. doublequotes surrounding C string literals.
  17275. The operands may be found in the array 'operands', whose C data type is
  17276. 'rtx []'.
  17277. It is very common to select different ways of generating assembler code
  17278. based on whether an immediate operand is within a certain range. Be
  17279. careful when doing this, because the result of 'INTVAL' is an integer on
  17280. the host machine. If the host machine has more bits in an 'int' than
  17281. the target machine has in the mode in which the constant will be used,
  17282. then some of the bits you get from 'INTVAL' will be superfluous. For
  17283. proper results, you must carefully disregard the values of those bits.
  17284. It is possible to output an assembler instruction and then go on to
  17285. output or compute more of them, using the subroutine 'output_asm_insn'.
  17286. This receives two arguments: a template-string and a vector of operands.
  17287. The vector may be 'operands', or it may be another array of 'rtx' that
  17288. you declare locally and initialize yourself.
  17289. When an insn pattern has multiple alternatives in its constraints,
  17290. often the appearance of the assembler code is determined mostly by which
  17291. alternative was matched. When this is so, the C code can test the
  17292. variable 'which_alternative', which is the ordinal number of the
  17293. alternative that was actually satisfied (0 for the first, 1 for the
  17294. second alternative, etc.).
  17295. For example, suppose there are two opcodes for storing zero, 'clrreg'
  17296. for registers and 'clrmem' for memory locations. Here is how a pattern
  17297. could use 'which_alternative' to choose between them:
  17298. (define_insn ""
  17299. [(set (match_operand:SI 0 "general_operand" "=r,m")
  17300. (const_int 0))]
  17301. ""
  17302. {
  17303. return (which_alternative == 0
  17304. ? "clrreg %0" : "clrmem %0");
  17305. })
  17306. The example above, where the assembler code to generate was _solely_
  17307. determined by the alternative, could also have been specified as
  17308. follows, having the output control string start with a '@':
  17309. (define_insn ""
  17310. [(set (match_operand:SI 0 "general_operand" "=r,m")
  17311. (const_int 0))]
  17312. ""
  17313. "@
  17314. clrreg %0
  17315. clrmem %0")
  17316. If you just need a little bit of C code in one (or a few) alternatives,
  17317. you can use '*' inside of a '@' multi-alternative template:
  17318. (define_insn ""
  17319. [(set (match_operand:SI 0 "general_operand" "=r,<,m")
  17320. (const_int 0))]
  17321. ""
  17322. "@
  17323. clrreg %0
  17324. * return stack_mem_p (operands[0]) ? \"push 0\" : \"clrmem %0\";
  17325. clrmem %0")
  17326. 
  17327. File: gccint.info, Node: Predicates, Next: Constraints, Prev: Output Statement, Up: Machine Desc
  17328. 17.7 Predicates
  17329. ===============
  17330. A predicate determines whether a 'match_operand' or 'match_operator'
  17331. expression matches, and therefore whether the surrounding instruction
  17332. pattern will be used for that combination of operands. GCC has a number
  17333. of machine-independent predicates, and you can define machine-specific
  17334. predicates as needed. By convention, predicates used with
  17335. 'match_operand' have names that end in '_operand', and those used with
  17336. 'match_operator' have names that end in '_operator'.
  17337. All predicates are boolean functions (in the mathematical sense) of two
  17338. arguments: the RTL expression that is being considered at that position
  17339. in the instruction pattern, and the machine mode that the
  17340. 'match_operand' or 'match_operator' specifies. In this section, the
  17341. first argument is called OP and the second argument MODE. Predicates
  17342. can be called from C as ordinary two-argument functions; this can be
  17343. useful in output templates or other machine-specific code.
  17344. Operand predicates can allow operands that are not actually acceptable
  17345. to the hardware, as long as the constraints give reload the ability to
  17346. fix them up (*note Constraints::). However, GCC will usually generate
  17347. better code if the predicates specify the requirements of the machine
  17348. instructions as closely as possible. Reload cannot fix up operands that
  17349. must be constants ("immediate operands"); you must use a predicate that
  17350. allows only constants, or else enforce the requirement in the extra
  17351. condition.
  17352. Most predicates handle their MODE argument in a uniform manner. If
  17353. MODE is 'VOIDmode' (unspecified), then OP can have any mode. If MODE is
  17354. anything else, then OP must have the same mode, unless OP is a
  17355. 'CONST_INT' or integer 'CONST_DOUBLE'. These RTL expressions always
  17356. have 'VOIDmode', so it would be counterproductive to check that their
  17357. mode matches. Instead, predicates that accept 'CONST_INT' and/or
  17358. integer 'CONST_DOUBLE' check that the value stored in the constant will
  17359. fit in the requested mode.
  17360. Predicates with this behavior are called "normal". 'genrecog' can
  17361. optimize the instruction recognizer based on knowledge of how normal
  17362. predicates treat modes. It can also diagnose certain kinds of common
  17363. errors in the use of normal predicates; for instance, it is almost
  17364. always an error to use a normal predicate without specifying a mode.
  17365. Predicates that do something different with their MODE argument are
  17366. called "special". The generic predicates 'address_operand' and
  17367. 'pmode_register_operand' are special predicates. 'genrecog' does not do
  17368. any optimizations or diagnosis when special predicates are used.
  17369. * Menu:
  17370. * Machine-Independent Predicates:: Predicates available to all back ends.
  17371. * Defining Predicates:: How to write machine-specific predicate
  17372. functions.
  17373. 
  17374. File: gccint.info, Node: Machine-Independent Predicates, Next: Defining Predicates, Up: Predicates
  17375. 17.7.1 Machine-Independent Predicates
  17376. -------------------------------------
  17377. These are the generic predicates available to all back ends. They are
  17378. defined in 'recog.c'. The first category of predicates allow only
  17379. constant, or "immediate", operands.
  17380. -- Function: immediate_operand
  17381. This predicate allows any sort of constant that fits in MODE. It
  17382. is an appropriate choice for instructions that take operands that
  17383. must be constant.
  17384. -- Function: const_int_operand
  17385. This predicate allows any 'CONST_INT' expression that fits in MODE.
  17386. It is an appropriate choice for an immediate operand that does not
  17387. allow a symbol or label.
  17388. -- Function: const_double_operand
  17389. This predicate accepts any 'CONST_DOUBLE' expression that has
  17390. exactly MODE. If MODE is 'VOIDmode', it will also accept
  17391. 'CONST_INT'. It is intended for immediate floating point
  17392. constants.
  17393. The second category of predicates allow only some kind of machine
  17394. register.
  17395. -- Function: register_operand
  17396. This predicate allows any 'REG' or 'SUBREG' expression that is
  17397. valid for MODE. It is often suitable for arithmetic instruction
  17398. operands on a RISC machine.
  17399. -- Function: pmode_register_operand
  17400. This is a slight variant on 'register_operand' which works around a
  17401. limitation in the machine-description reader.
  17402. (match_operand N "pmode_register_operand" CONSTRAINT)
  17403. means exactly what
  17404. (match_operand:P N "register_operand" CONSTRAINT)
  17405. would mean, if the machine-description reader accepted ':P' mode
  17406. suffixes. Unfortunately, it cannot, because 'Pmode' is an alias
  17407. for some other mode, and might vary with machine-specific options.
  17408. *Note Misc::.
  17409. -- Function: scratch_operand
  17410. This predicate allows hard registers and 'SCRATCH' expressions, but
  17411. not pseudo-registers. It is used internally by 'match_scratch'; it
  17412. should not be used directly.
  17413. The third category of predicates allow only some kind of memory
  17414. reference.
  17415. -- Function: memory_operand
  17416. This predicate allows any valid reference to a quantity of mode
  17417. MODE in memory, as determined by the weak form of
  17418. 'GO_IF_LEGITIMATE_ADDRESS' (*note Addressing Modes::).
  17419. -- Function: address_operand
  17420. This predicate is a little unusual; it allows any operand that is a
  17421. valid expression for the _address_ of a quantity of mode MODE,
  17422. again determined by the weak form of 'GO_IF_LEGITIMATE_ADDRESS'.
  17423. To first order, if '(mem:MODE (EXP))' is acceptable to
  17424. 'memory_operand', then EXP is acceptable to 'address_operand'.
  17425. Note that EXP does not necessarily have the mode MODE.
  17426. -- Function: indirect_operand
  17427. This is a stricter form of 'memory_operand' which allows only
  17428. memory references with a 'general_operand' as the address
  17429. expression. New uses of this predicate are discouraged, because
  17430. 'general_operand' is very permissive, so it's hard to tell what an
  17431. 'indirect_operand' does or does not allow. If a target has
  17432. different requirements for memory operands for different
  17433. instructions, it is better to define target-specific predicates
  17434. which enforce the hardware's requirements explicitly.
  17435. -- Function: push_operand
  17436. This predicate allows a memory reference suitable for pushing a
  17437. value onto the stack. This will be a 'MEM' which refers to
  17438. 'stack_pointer_rtx', with a side effect in its address expression
  17439. (*note Incdec::); which one is determined by the 'STACK_PUSH_CODE'
  17440. macro (*note Frame Layout::).
  17441. -- Function: pop_operand
  17442. This predicate allows a memory reference suitable for popping a
  17443. value off the stack. Again, this will be a 'MEM' referring to
  17444. 'stack_pointer_rtx', with a side effect in its address expression.
  17445. However, this time 'STACK_POP_CODE' is expected.
  17446. The fourth category of predicates allow some combination of the above
  17447. operands.
  17448. -- Function: nonmemory_operand
  17449. This predicate allows any immediate or register operand valid for
  17450. MODE.
  17451. -- Function: nonimmediate_operand
  17452. This predicate allows any register or memory operand valid for
  17453. MODE.
  17454. -- Function: general_operand
  17455. This predicate allows any immediate, register, or memory operand
  17456. valid for MODE.
  17457. Finally, there are two generic operator predicates.
  17458. -- Function: comparison_operator
  17459. This predicate matches any expression which performs an arithmetic
  17460. comparison in MODE; that is, 'COMPARISON_P' is true for the
  17461. expression code.
  17462. -- Function: ordered_comparison_operator
  17463. This predicate matches any expression which performs an arithmetic
  17464. comparison in MODE and whose expression code is valid for integer
  17465. modes; that is, the expression code will be one of 'eq', 'ne',
  17466. 'lt', 'ltu', 'le', 'leu', 'gt', 'gtu', 'ge', 'geu'.
  17467. 
  17468. File: gccint.info, Node: Defining Predicates, Prev: Machine-Independent Predicates, Up: Predicates
  17469. 17.7.2 Defining Machine-Specific Predicates
  17470. -------------------------------------------
  17471. Many machines have requirements for their operands that cannot be
  17472. expressed precisely using the generic predicates. You can define
  17473. additional predicates using 'define_predicate' and
  17474. 'define_special_predicate' expressions. These expressions have three
  17475. operands:
  17476. * The name of the predicate, as it will be referred to in
  17477. 'match_operand' or 'match_operator' expressions.
  17478. * An RTL expression which evaluates to true if the predicate allows
  17479. the operand OP, false if it does not. This expression can only use
  17480. the following RTL codes:
  17481. 'MATCH_OPERAND'
  17482. When written inside a predicate expression, a 'MATCH_OPERAND'
  17483. expression evaluates to true if the predicate it names would
  17484. allow OP. The operand number and constraint are ignored. Due
  17485. to limitations in 'genrecog', you can only refer to generic
  17486. predicates and predicates that have already been defined.
  17487. 'MATCH_CODE'
  17488. This expression evaluates to true if OP or a specified
  17489. subexpression of OP has one of a given list of RTX codes.
  17490. The first operand of this expression is a string constant
  17491. containing a comma-separated list of RTX code names (in lower
  17492. case). These are the codes for which the 'MATCH_CODE' will be
  17493. true.
  17494. The second operand is a string constant which indicates what
  17495. subexpression of OP to examine. If it is absent or the empty
  17496. string, OP itself is examined. Otherwise, the string constant
  17497. must be a sequence of digits and/or lowercase letters. Each
  17498. character indicates a subexpression to extract from the
  17499. current expression; for the first character this is OP, for
  17500. the second and subsequent characters it is the result of the
  17501. previous character. A digit N extracts 'XEXP (E, N)'; a
  17502. letter L extracts 'XVECEXP (E, 0, N)' where N is the
  17503. alphabetic ordinal of L (0 for 'a', 1 for 'b', and so on).
  17504. The 'MATCH_CODE' then examines the RTX code of the
  17505. subexpression extracted by the complete string. It is not
  17506. possible to extract components of an 'rtvec' that is not at
  17507. position 0 within its RTX object.
  17508. 'MATCH_TEST'
  17509. This expression has one operand, a string constant containing
  17510. a C expression. The predicate's arguments, OP and MODE, are
  17511. available with those names in the C expression. The
  17512. 'MATCH_TEST' evaluates to true if the C expression evaluates
  17513. to a nonzero value. 'MATCH_TEST' expressions must not have
  17514. side effects.
  17515. 'AND'
  17516. 'IOR'
  17517. 'NOT'
  17518. 'IF_THEN_ELSE'
  17519. The basic 'MATCH_' expressions can be combined using these
  17520. logical operators, which have the semantics of the C operators
  17521. '&&', '||', '!', and '? :' respectively. As in Common Lisp,
  17522. you may give an 'AND' or 'IOR' expression an arbitrary number
  17523. of arguments; this has exactly the same effect as writing a
  17524. chain of two-argument 'AND' or 'IOR' expressions.
  17525. * An optional block of C code, which should execute 'return true' if
  17526. the predicate is found to match and 'return false' if it does not.
  17527. It must not have any side effects. The predicate arguments, OP and
  17528. MODE, are available with those names.
  17529. If a code block is present in a predicate definition, then the RTL
  17530. expression must evaluate to true _and_ the code block must execute
  17531. 'return true' for the predicate to allow the operand. The RTL
  17532. expression is evaluated first; do not re-check anything in the code
  17533. block that was checked in the RTL expression.
  17534. The program 'genrecog' scans 'define_predicate' and
  17535. 'define_special_predicate' expressions to determine which RTX codes are
  17536. possibly allowed. You should always make this explicit in the RTL
  17537. predicate expression, using 'MATCH_OPERAND' and 'MATCH_CODE'.
  17538. Here is an example of a simple predicate definition, from the IA64
  17539. machine description:
  17540. ;; True if OP is a 'SYMBOL_REF' which refers to the sdata section.
  17541. (define_predicate "small_addr_symbolic_operand"
  17542. (and (match_code "symbol_ref")
  17543. (match_test "SYMBOL_REF_SMALL_ADDR_P (op)")))
  17544. And here is another, showing the use of the C block.
  17545. ;; True if OP is a register operand that is (or could be) a GR reg.
  17546. (define_predicate "gr_register_operand"
  17547. (match_operand 0 "register_operand")
  17548. {
  17549. unsigned int regno;
  17550. if (GET_CODE (op) == SUBREG)
  17551. op = SUBREG_REG (op);
  17552. regno = REGNO (op);
  17553. return (regno >= FIRST_PSEUDO_REGISTER || GENERAL_REGNO_P (regno));
  17554. })
  17555. Predicates written with 'define_predicate' automatically include a test
  17556. that MODE is 'VOIDmode', or OP has the same mode as MODE, or OP is a
  17557. 'CONST_INT' or 'CONST_DOUBLE'. They do _not_ check specifically for
  17558. integer 'CONST_DOUBLE', nor do they test that the value of either kind
  17559. of constant fits in the requested mode. This is because target-specific
  17560. predicates that take constants usually have to do more stringent value
  17561. checks anyway. If you need the exact same treatment of 'CONST_INT' or
  17562. 'CONST_DOUBLE' that the generic predicates provide, use a
  17563. 'MATCH_OPERAND' subexpression to call 'const_int_operand',
  17564. 'const_double_operand', or 'immediate_operand'.
  17565. Predicates written with 'define_special_predicate' do not get any
  17566. automatic mode checks, and are treated as having special mode handling
  17567. by 'genrecog'.
  17568. The program 'genpreds' is responsible for generating code to test
  17569. predicates. It also writes a header file containing function
  17570. declarations for all machine-specific predicates. It is not necessary
  17571. to declare these predicates in 'CPU-protos.h'.
  17572. 
  17573. File: gccint.info, Node: Constraints, Next: Standard Names, Prev: Predicates, Up: Machine Desc
  17574. 17.8 Operand Constraints
  17575. ========================
  17576. Each 'match_operand' in an instruction pattern can specify constraints
  17577. for the operands allowed. The constraints allow you to fine-tune
  17578. matching within the set of operands allowed by the predicate.
  17579. Constraints can say whether an operand may be in a register, and which
  17580. kinds of register; whether the operand can be a memory reference, and
  17581. which kinds of address; whether the operand may be an immediate
  17582. constant, and which possible values it may have. Constraints can also
  17583. require two operands to match. Side-effects aren't allowed in operands
  17584. of inline 'asm', unless '<' or '>' constraints are used, because there
  17585. is no guarantee that the side effects will happen exactly once in an
  17586. instruction that can update the addressing register.
  17587. * Menu:
  17588. * Simple Constraints:: Basic use of constraints.
  17589. * Multi-Alternative:: When an insn has two alternative constraint-patterns.
  17590. * Class Preferences:: Constraints guide which hard register to put things in.
  17591. * Modifiers:: More precise control over effects of constraints.
  17592. * Machine Constraints:: Existing constraints for some particular machines.
  17593. * Disable Insn Alternatives:: Disable insn alternatives using attributes.
  17594. * Define Constraints:: How to define machine-specific constraints.
  17595. * C Constraint Interface:: How to test constraints from C code.
  17596. 
  17597. File: gccint.info, Node: Simple Constraints, Next: Multi-Alternative, Up: Constraints
  17598. 17.8.1 Simple Constraints
  17599. -------------------------
  17600. The simplest kind of constraint is a string full of letters, each of
  17601. which describes one kind of operand that is permitted. Here are the
  17602. letters that are allowed:
  17603. whitespace
  17604. Whitespace characters are ignored and can be inserted at any
  17605. position except the first. This enables each alternative for
  17606. different operands to be visually aligned in the machine
  17607. description even if they have different number of constraints and
  17608. modifiers.
  17609. 'm'
  17610. A memory operand is allowed, with any kind of address that the
  17611. machine supports in general. Note that the letter used for the
  17612. general memory constraint can be re-defined by a back end using the
  17613. 'TARGET_MEM_CONSTRAINT' macro.
  17614. 'o'
  17615. A memory operand is allowed, but only if the address is
  17616. "offsettable". This means that adding a small integer (actually,
  17617. the width in bytes of the operand, as determined by its machine
  17618. mode) may be added to the address and the result is also a valid
  17619. memory address.
  17620. For example, an address which is constant is offsettable; so is an
  17621. address that is the sum of a register and a constant (as long as a
  17622. slightly larger constant is also within the range of
  17623. address-offsets supported by the machine); but an autoincrement or
  17624. autodecrement address is not offsettable. More complicated
  17625. indirect/indexed addresses may or may not be offsettable depending
  17626. on the other addressing modes that the machine supports.
  17627. Note that in an output operand which can be matched by another
  17628. operand, the constraint letter 'o' is valid only when accompanied
  17629. by both '<' (if the target machine has predecrement addressing) and
  17630. '>' (if the target machine has preincrement addressing).
  17631. 'V'
  17632. A memory operand that is not offsettable. In other words, anything
  17633. that would fit the 'm' constraint but not the 'o' constraint.
  17634. '<'
  17635. A memory operand with autodecrement addressing (either predecrement
  17636. or postdecrement) is allowed. In inline 'asm' this constraint is
  17637. only allowed if the operand is used exactly once in an instruction
  17638. that can handle the side effects. Not using an operand with '<' in
  17639. constraint string in the inline 'asm' pattern at all or using it in
  17640. multiple instructions isn't valid, because the side effects
  17641. wouldn't be performed or would be performed more than once.
  17642. Furthermore, on some targets the operand with '<' in constraint
  17643. string must be accompanied by special instruction suffixes like
  17644. '%U0' instruction suffix on PowerPC or '%P0' on IA-64.
  17645. '>'
  17646. A memory operand with autoincrement addressing (either preincrement
  17647. or postincrement) is allowed. In inline 'asm' the same
  17648. restrictions as for '<' apply.
  17649. 'r'
  17650. A register operand is allowed provided that it is in a general
  17651. register.
  17652. 'i'
  17653. An immediate integer operand (one with constant value) is allowed.
  17654. This includes symbolic constants whose values will be known only at
  17655. assembly time or later.
  17656. 'n'
  17657. An immediate integer operand with a known numeric value is allowed.
  17658. Many systems cannot support assembly-time constants for operands
  17659. less than a word wide. Constraints for these operands should use
  17660. 'n' rather than 'i'.
  17661. 'I', 'J', 'K', ... 'P'
  17662. Other letters in the range 'I' through 'P' may be defined in a
  17663. machine-dependent fashion to permit immediate integer operands with
  17664. explicit integer values in specified ranges. For example, on the
  17665. 68000, 'I' is defined to stand for the range of values 1 to 8.
  17666. This is the range permitted as a shift count in the shift
  17667. instructions.
  17668. 'E'
  17669. An immediate floating operand (expression code 'const_double') is
  17670. allowed, but only if the target floating point format is the same
  17671. as that of the host machine (on which the compiler is running).
  17672. 'F'
  17673. An immediate floating operand (expression code 'const_double' or
  17674. 'const_vector') is allowed.
  17675. 'G', 'H'
  17676. 'G' and 'H' may be defined in a machine-dependent fashion to permit
  17677. immediate floating operands in particular ranges of values.
  17678. 's'
  17679. An immediate integer operand whose value is not an explicit integer
  17680. is allowed.
  17681. This might appear strange; if an insn allows a constant operand
  17682. with a value not known at compile time, it certainly must allow any
  17683. known value. So why use 's' instead of 'i'? Sometimes it allows
  17684. better code to be generated.
  17685. For example, on the 68000 in a fullword instruction it is possible
  17686. to use an immediate operand; but if the immediate value is between
  17687. -128 and 127, better code results from loading the value into a
  17688. register and using the register. This is because the load into the
  17689. register can be done with a 'moveq' instruction. We arrange for
  17690. this to happen by defining the letter 'K' to mean "any integer
  17691. outside the range -128 to 127", and then specifying 'Ks' in the
  17692. operand constraints.
  17693. 'g'
  17694. Any register, memory or immediate integer operand is allowed,
  17695. except for registers that are not general registers.
  17696. 'X'
  17697. Any operand whatsoever is allowed, even if it does not satisfy
  17698. 'general_operand'. This is normally used in the constraint of a
  17699. 'match_scratch' when certain alternatives will not actually require
  17700. a scratch register.
  17701. '0', '1', '2', ... '9'
  17702. An operand that matches the specified operand number is allowed.
  17703. If a digit is used together with letters within the same
  17704. alternative, the digit should come last.
  17705. This number is allowed to be more than a single digit. If multiple
  17706. digits are encountered consecutively, they are interpreted as a
  17707. single decimal integer. There is scant chance for ambiguity, since
  17708. to-date it has never been desirable that '10' be interpreted as
  17709. matching either operand 1 _or_ operand 0. Should this be desired,
  17710. one can use multiple alternatives instead.
  17711. This is called a "matching constraint" and what it really means is
  17712. that the assembler has only a single operand that fills two roles
  17713. considered separate in the RTL insn. For example, an add insn has
  17714. two input operands and one output operand in the RTL, but on most
  17715. CISC machines an add instruction really has only two operands, one
  17716. of them an input-output operand:
  17717. addl #35,r12
  17718. Matching constraints are used in these circumstances. More
  17719. precisely, the two operands that match must include one input-only
  17720. operand and one output-only operand. Moreover, the digit must be a
  17721. smaller number than the number of the operand that uses it in the
  17722. constraint.
  17723. For operands to match in a particular case usually means that they
  17724. are identical-looking RTL expressions. But in a few special cases
  17725. specific kinds of dissimilarity are allowed. For example, '*x' as
  17726. an input operand will match '*x++' as an output operand. For
  17727. proper results in such cases, the output template should always use
  17728. the output-operand's number when printing the operand.
  17729. 'p'
  17730. An operand that is a valid memory address is allowed. This is for
  17731. "load address" and "push address" instructions.
  17732. 'p' in the constraint must be accompanied by 'address_operand' as
  17733. the predicate in the 'match_operand'. This predicate interprets
  17734. the mode specified in the 'match_operand' as the mode of the memory
  17735. reference for which the address would be valid.
  17736. OTHER-LETTERS
  17737. Other letters can be defined in machine-dependent fashion to stand
  17738. for particular classes of registers or other arbitrary operand
  17739. types. 'd', 'a' and 'f' are defined on the 68000/68020 to stand
  17740. for data, address and floating point registers.
  17741. In order to have valid assembler code, each operand must satisfy its
  17742. constraint. But a failure to do so does not prevent the pattern from
  17743. applying to an insn. Instead, it directs the compiler to modify the
  17744. code so that the constraint will be satisfied. Usually this is done by
  17745. copying an operand into a register.
  17746. Contrast, therefore, the two instruction patterns that follow:
  17747. (define_insn ""
  17748. [(set (match_operand:SI 0 "general_operand" "=r")
  17749. (plus:SI (match_dup 0)
  17750. (match_operand:SI 1 "general_operand" "r")))]
  17751. ""
  17752. "...")
  17753. which has two operands, one of which must appear in two places, and
  17754. (define_insn ""
  17755. [(set (match_operand:SI 0 "general_operand" "=r")
  17756. (plus:SI (match_operand:SI 1 "general_operand" "0")
  17757. (match_operand:SI 2 "general_operand" "r")))]
  17758. ""
  17759. "...")
  17760. which has three operands, two of which are required by a constraint to
  17761. be identical. If we are considering an insn of the form
  17762. (insn N PREV NEXT
  17763. (set (reg:SI 3)
  17764. (plus:SI (reg:SI 6) (reg:SI 109)))
  17765. ...)
  17766. the first pattern would not apply at all, because this insn does not
  17767. contain two identical subexpressions in the right place. The pattern
  17768. would say, "That does not look like an add instruction; try other
  17769. patterns". The second pattern would say, "Yes, that's an add
  17770. instruction, but there is something wrong with it". It would direct the
  17771. reload pass of the compiler to generate additional insns to make the
  17772. constraint true. The results might look like this:
  17773. (insn N2 PREV N
  17774. (set (reg:SI 3) (reg:SI 6))
  17775. ...)
  17776. (insn N N2 NEXT
  17777. (set (reg:SI 3)
  17778. (plus:SI (reg:SI 3) (reg:SI 109)))
  17779. ...)
  17780. It is up to you to make sure that each operand, in each pattern, has
  17781. constraints that can handle any RTL expression that could be present for
  17782. that operand. (When multiple alternatives are in use, each pattern
  17783. must, for each possible combination of operand expressions, have at
  17784. least one alternative which can handle that combination of operands.)
  17785. The constraints don't need to _allow_ any possible operand--when this is
  17786. the case, they do not constrain--but they must at least point the way to
  17787. reloading any possible operand so that it will fit.
  17788. * If the constraint accepts whatever operands the predicate permits,
  17789. there is no problem: reloading is never necessary for this operand.
  17790. For example, an operand whose constraints permit everything except
  17791. registers is safe provided its predicate rejects registers.
  17792. An operand whose predicate accepts only constant values is safe
  17793. provided its constraints include the letter 'i'. If any possible
  17794. constant value is accepted, then nothing less than 'i' will do; if
  17795. the predicate is more selective, then the constraints may also be
  17796. more selective.
  17797. * Any operand expression can be reloaded by copying it into a
  17798. register. So if an operand's constraints allow some kind of
  17799. register, it is certain to be safe. It need not permit all classes
  17800. of registers; the compiler knows how to copy a register into
  17801. another register of the proper class in order to make an
  17802. instruction valid.
  17803. * A nonoffsettable memory reference can be reloaded by copying the
  17804. address into a register. So if the constraint uses the letter 'o',
  17805. all memory references are taken care of.
  17806. * A constant operand can be reloaded by allocating space in memory to
  17807. hold it as preinitialized data. Then the memory reference can be
  17808. used in place of the constant. So if the constraint uses the
  17809. letters 'o' or 'm', constant operands are not a problem.
  17810. * If the constraint permits a constant and a pseudo register used in
  17811. an insn was not allocated to a hard register and is equivalent to a
  17812. constant, the register will be replaced with the constant. If the
  17813. predicate does not permit a constant and the insn is re-recognized
  17814. for some reason, the compiler will crash. Thus the predicate must
  17815. always recognize any objects allowed by the constraint.
  17816. If the operand's predicate can recognize registers, but the constraint
  17817. does not permit them, it can make the compiler crash. When this operand
  17818. happens to be a register, the reload pass will be stymied, because it
  17819. does not know how to copy a register temporarily into memory.
  17820. If the predicate accepts a unary operator, the constraint applies to
  17821. the operand. For example, the MIPS processor at ISA level 3 supports an
  17822. instruction which adds two registers in 'SImode' to produce a 'DImode'
  17823. result, but only if the registers are correctly sign extended. This
  17824. predicate for the input operands accepts a 'sign_extend' of an 'SImode'
  17825. register. Write the constraint to indicate the type of register that is
  17826. required for the operand of the 'sign_extend'.
  17827. 
  17828. File: gccint.info, Node: Multi-Alternative, Next: Class Preferences, Prev: Simple Constraints, Up: Constraints
  17829. 17.8.2 Multiple Alternative Constraints
  17830. ---------------------------------------
  17831. Sometimes a single instruction has multiple alternative sets of possible
  17832. operands. For example, on the 68000, a logical-or instruction can
  17833. combine register or an immediate value into memory, or it can combine
  17834. any kind of operand into a register; but it cannot combine one memory
  17835. location into another.
  17836. These constraints are represented as multiple alternatives. An
  17837. alternative can be described by a series of letters for each operand.
  17838. The overall constraint for an operand is made from the letters for this
  17839. operand from the first alternative, a comma, the letters for this
  17840. operand from the second alternative, a comma, and so on until the last
  17841. alternative. All operands for a single instruction must have the same
  17842. number of alternatives. Here is how it is done for fullword logical-or
  17843. on the 68000:
  17844. (define_insn "iorsi3"
  17845. [(set (match_operand:SI 0 "general_operand" "=m,d")
  17846. (ior:SI (match_operand:SI 1 "general_operand" "%0,0")
  17847. (match_operand:SI 2 "general_operand" "dKs,dmKs")))]
  17848. ...)
  17849. The first alternative has 'm' (memory) for operand 0, '0' for operand 1
  17850. (meaning it must match operand 0), and 'dKs' for operand 2. The second
  17851. alternative has 'd' (data register) for operand 0, '0' for operand 1,
  17852. and 'dmKs' for operand 2. The '=' and '%' in the constraints apply to
  17853. all the alternatives; their meaning is explained in the next section
  17854. (*note Class Preferences::).
  17855. If all the operands fit any one alternative, the instruction is valid.
  17856. Otherwise, for each alternative, the compiler counts how many
  17857. instructions must be added to copy the operands so that that alternative
  17858. applies. The alternative requiring the least copying is chosen. If two
  17859. alternatives need the same amount of copying, the one that comes first
  17860. is chosen. These choices can be altered with the '?' and '!'
  17861. characters:
  17862. '?'
  17863. Disparage slightly the alternative that the '?' appears in, as a
  17864. choice when no alternative applies exactly. The compiler regards
  17865. this alternative as one unit more costly for each '?' that appears
  17866. in it.
  17867. '!'
  17868. Disparage severely the alternative that the '!' appears in. This
  17869. alternative can still be used if it fits without reloading, but if
  17870. reloading is needed, some other alternative will be used.
  17871. '^'
  17872. This constraint is analogous to '?' but it disparages slightly the
  17873. alternative only if the operand with the '^' needs a reload.
  17874. '$'
  17875. This constraint is analogous to '!' but it disparages severely the
  17876. alternative only if the operand with the '$' needs a reload.
  17877. When an insn pattern has multiple alternatives in its constraints,
  17878. often the appearance of the assembler code is determined mostly by which
  17879. alternative was matched. When this is so, the C code for writing the
  17880. assembler code can use the variable 'which_alternative', which is the
  17881. ordinal number of the alternative that was actually satisfied (0 for the
  17882. first, 1 for the second alternative, etc.). *Note Output Statement::.
  17883. 
  17884. File: gccint.info, Node: Class Preferences, Next: Modifiers, Prev: Multi-Alternative, Up: Constraints
  17885. 17.8.3 Register Class Preferences
  17886. ---------------------------------
  17887. The operand constraints have another function: they enable the compiler
  17888. to decide which kind of hardware register a pseudo register is best
  17889. allocated to. The compiler examines the constraints that apply to the
  17890. insns that use the pseudo register, looking for the machine-dependent
  17891. letters such as 'd' and 'a' that specify classes of registers. The
  17892. pseudo register is put in whichever class gets the most "votes". The
  17893. constraint letters 'g' and 'r' also vote: they vote in favor of a
  17894. general register. The machine description says which registers are
  17895. considered general.
  17896. Of course, on some machines all registers are equivalent, and no
  17897. register classes are defined. Then none of this complexity is relevant.
  17898. 
  17899. File: gccint.info, Node: Modifiers, Next: Machine Constraints, Prev: Class Preferences, Up: Constraints
  17900. 17.8.4 Constraint Modifier Characters
  17901. -------------------------------------
  17902. Here are constraint modifier characters.
  17903. '='
  17904. Means that this operand is written to by this instruction: the
  17905. previous value is discarded and replaced by new data.
  17906. '+'
  17907. Means that this operand is both read and written by the
  17908. instruction.
  17909. When the compiler fixes up the operands to satisfy the constraints,
  17910. it needs to know which operands are read by the instruction and
  17911. which are written by it. '=' identifies an operand which is only
  17912. written; '+' identifies an operand that is both read and written;
  17913. all other operands are assumed to only be read.
  17914. If you specify '=' or '+' in a constraint, you put it in the first
  17915. character of the constraint string.
  17916. '&'
  17917. Means (in a particular alternative) that this operand is an
  17918. "earlyclobber" operand, which is written before the instruction is
  17919. finished using the input operands. Therefore, this operand may not
  17920. lie in a register that is read by the instruction or as part of any
  17921. memory address.
  17922. '&' applies only to the alternative in which it is written. In
  17923. constraints with multiple alternatives, sometimes one alternative
  17924. requires '&' while others do not. See, for example, the 'movdf'
  17925. insn of the 68000.
  17926. A operand which is read by the instruction can be tied to an
  17927. earlyclobber operand if its only use as an input occurs before the
  17928. early result is written. Adding alternatives of this form often
  17929. allows GCC to produce better code when only some of the read
  17930. operands can be affected by the earlyclobber. See, for example,
  17931. the 'mulsi3' insn of the ARM.
  17932. Furthermore, if the "earlyclobber" operand is also a read/write
  17933. operand, then that operand is written only after it's used.
  17934. '&' does not obviate the need to write '=' or '+'. As
  17935. "earlyclobber" operands are always written, a read-only
  17936. "earlyclobber" operand is ill-formed and will be rejected by the
  17937. compiler.
  17938. '%'
  17939. Declares the instruction to be commutative for this operand and the
  17940. following operand. This means that the compiler may interchange
  17941. the two operands if that is the cheapest way to make all operands
  17942. fit the constraints. '%' applies to all alternatives and must
  17943. appear as the first character in the constraint. Only read-only
  17944. operands can use '%'.
  17945. This is often used in patterns for addition instructions that
  17946. really have only two operands: the result must go in one of the
  17947. arguments. Here for example, is how the 68000 halfword-add
  17948. instruction is defined:
  17949. (define_insn "addhi3"
  17950. [(set (match_operand:HI 0 "general_operand" "=m,r")
  17951. (plus:HI (match_operand:HI 1 "general_operand" "%0,0")
  17952. (match_operand:HI 2 "general_operand" "di,g")))]
  17953. ...)
  17954. GCC can only handle one commutative pair in an asm; if you use
  17955. more, the compiler may fail. Note that you need not use the
  17956. modifier if the two alternatives are strictly identical; this would
  17957. only waste time in the reload pass. The modifier is not
  17958. operational after register allocation, so the result of
  17959. 'define_peephole2' and 'define_split's performed after reload
  17960. cannot rely on '%' to make the intended insn match.
  17961. '#'
  17962. Says that all following characters, up to the next comma, are to be
  17963. ignored as a constraint. They are significant only for choosing
  17964. register preferences.
  17965. '*'
  17966. Says that the following character should be ignored when choosing
  17967. register preferences. '*' has no effect on the meaning of the
  17968. constraint as a constraint, and no effect on reloading. For LRA
  17969. '*' additionally disparages slightly the alternative if the
  17970. following character matches the operand.
  17971. Here is an example: the 68000 has an instruction to sign-extend a
  17972. halfword in a data register, and can also sign-extend a value by
  17973. copying it into an address register. While either kind of register
  17974. is acceptable, the constraints on an address-register destination
  17975. are less strict, so it is best if register allocation makes an
  17976. address register its goal. Therefore, '*' is used so that the 'd'
  17977. constraint letter (for data register) is ignored when computing
  17978. register preferences.
  17979. (define_insn "extendhisi2"
  17980. [(set (match_operand:SI 0 "general_operand" "=*d,a")
  17981. (sign_extend:SI
  17982. (match_operand:HI 1 "general_operand" "0,g")))]
  17983. ...)
  17984. 
  17985. File: gccint.info, Node: Machine Constraints, Next: Disable Insn Alternatives, Prev: Modifiers, Up: Constraints
  17986. 17.8.5 Constraints for Particular Machines
  17987. ------------------------------------------
  17988. Whenever possible, you should use the general-purpose constraint letters
  17989. in 'asm' arguments, since they will convey meaning more readily to
  17990. people reading your code. Failing that, use the constraint letters that
  17991. usually have very similar meanings across architectures. The most
  17992. commonly used constraints are 'm' and 'r' (for memory and
  17993. general-purpose registers respectively; *note Simple Constraints::), and
  17994. 'I', usually the letter indicating the most common immediate-constant
  17995. format.
  17996. Each architecture defines additional constraints. These constraints
  17997. are used by the compiler itself for instruction generation, as well as
  17998. for 'asm' statements; therefore, some of the constraints are not
  17999. particularly useful for 'asm'. Here is a summary of some of the
  18000. machine-dependent constraints available on some particular machines; it
  18001. includes both constraints that are useful for 'asm' and constraints that
  18002. aren't. The compiler source file mentioned in the table heading for
  18003. each architecture is the definitive reference for the meanings of that
  18004. architecture's constraints.
  18005. _AArch64 family--'config/aarch64/constraints.md'_
  18006. 'k'
  18007. The stack pointer register ('SP')
  18008. 'w'
  18009. Floating point register, Advanced SIMD vector register or SVE
  18010. vector register
  18011. 'x'
  18012. Like 'w', but restricted to registers 0 to 15 inclusive.
  18013. 'y'
  18014. Like 'w', but restricted to registers 0 to 7 inclusive.
  18015. 'Upl'
  18016. One of the low eight SVE predicate registers ('P0' to 'P7')
  18017. 'Upa'
  18018. Any of the SVE predicate registers ('P0' to 'P15')
  18019. 'I'
  18020. Integer constant that is valid as an immediate operand in an
  18021. 'ADD' instruction
  18022. 'J'
  18023. Integer constant that is valid as an immediate operand in a
  18024. 'SUB' instruction (once negated)
  18025. 'K'
  18026. Integer constant that can be used with a 32-bit logical
  18027. instruction
  18028. 'L'
  18029. Integer constant that can be used with a 64-bit logical
  18030. instruction
  18031. 'M'
  18032. Integer constant that is valid as an immediate operand in a
  18033. 32-bit 'MOV' pseudo instruction. The 'MOV' may be assembled
  18034. to one of several different machine instructions depending on
  18035. the value
  18036. 'N'
  18037. Integer constant that is valid as an immediate operand in a
  18038. 64-bit 'MOV' pseudo instruction
  18039. 'S'
  18040. An absolute symbolic address or a label reference
  18041. 'Y'
  18042. Floating point constant zero
  18043. 'Z'
  18044. Integer constant zero
  18045. 'Ush'
  18046. The high part (bits 12 and upwards) of the pc-relative address
  18047. of a symbol within 4GB of the instruction
  18048. 'Q'
  18049. A memory address which uses a single base register with no
  18050. offset
  18051. 'Ump'
  18052. A memory address suitable for a load/store pair instruction in
  18053. SI, DI, SF and DF modes
  18054. _AMD GCN --'config/gcn/constraints.md'_
  18055. 'I'
  18056. Immediate integer in the range -16 to 64
  18057. 'J'
  18058. Immediate 16-bit signed integer
  18059. 'Kf'
  18060. Immediate constant -1
  18061. 'L'
  18062. Immediate 15-bit unsigned integer
  18063. 'A'
  18064. Immediate constant that can be inlined in an instruction
  18065. encoding: integer -16..64, or float 0.0, +/-0.5, +/-1.0,
  18066. +/-2.0, +/-4.0, 1.0/(2.0*PI)
  18067. 'B'
  18068. Immediate 32-bit signed integer that can be attached to an
  18069. instruction encoding
  18070. 'C'
  18071. Immediate 32-bit integer in range -16..4294967295 (i.e.
  18072. 32-bit unsigned integer or 'A' constraint)
  18073. 'DA'
  18074. Immediate 64-bit constant that can be split into two 'A'
  18075. constants
  18076. 'DB'
  18077. Immediate 64-bit constant that can be split into two 'B'
  18078. constants
  18079. 'U'
  18080. Any 'unspec'
  18081. 'Y'
  18082. Any 'symbol_ref' or 'label_ref'
  18083. 'v'
  18084. VGPR register
  18085. 'Sg'
  18086. SGPR register
  18087. 'SD'
  18088. SGPR registers valid for instruction destinations, including
  18089. VCC, M0 and EXEC
  18090. 'SS'
  18091. SGPR registers valid for instruction sources, including VCC,
  18092. M0, EXEC and SCC
  18093. 'Sm'
  18094. SGPR registers valid as a source for scalar memory
  18095. instructions (excludes M0 and EXEC)
  18096. 'Sv'
  18097. SGPR registers valid as a source or destination for vector
  18098. instructions (excludes EXEC)
  18099. 'ca'
  18100. All condition registers: SCC, VCCZ, EXECZ
  18101. 'cs'
  18102. Scalar condition register: SCC
  18103. 'cV'
  18104. Vector condition register: VCC, VCC_LO, VCC_HI
  18105. 'e'
  18106. EXEC register (EXEC_LO and EXEC_HI)
  18107. 'RB'
  18108. Memory operand with address space suitable for 'buffer_*'
  18109. instructions
  18110. 'RF'
  18111. Memory operand with address space suitable for 'flat_*'
  18112. instructions
  18113. 'RS'
  18114. Memory operand with address space suitable for 's_*'
  18115. instructions
  18116. 'RL'
  18117. Memory operand with address space suitable for 'ds_*' LDS
  18118. instructions
  18119. 'RG'
  18120. Memory operand with address space suitable for 'ds_*' GDS
  18121. instructions
  18122. 'RD'
  18123. Memory operand with address space suitable for any 'ds_*'
  18124. instructions
  18125. 'RM'
  18126. Memory operand with address space suitable for 'global_*'
  18127. instructions
  18128. _ARC --'config/arc/constraints.md'_
  18129. 'q'
  18130. Registers usable in ARCompact 16-bit instructions: 'r0'-'r3',
  18131. 'r12'-'r15'. This constraint can only match when the '-mq'
  18132. option is in effect.
  18133. 'e'
  18134. Registers usable as base-regs of memory addresses in ARCompact
  18135. 16-bit memory instructions: 'r0'-'r3', 'r12'-'r15', 'sp'.
  18136. This constraint can only match when the '-mq' option is in
  18137. effect.
  18138. 'D'
  18139. ARC FPX (dpfp) 64-bit registers. 'D0', 'D1'.
  18140. 'I'
  18141. A signed 12-bit integer constant.
  18142. 'Cal'
  18143. constant for arithmetic/logical operations. This might be any
  18144. constant that can be put into a long immediate by the assmbler
  18145. or linker without involving a PIC relocation.
  18146. 'K'
  18147. A 3-bit unsigned integer constant.
  18148. 'L'
  18149. A 6-bit unsigned integer constant.
  18150. 'CnL'
  18151. One's complement of a 6-bit unsigned integer constant.
  18152. 'CmL'
  18153. Two's complement of a 6-bit unsigned integer constant.
  18154. 'M'
  18155. A 5-bit unsigned integer constant.
  18156. 'O'
  18157. A 7-bit unsigned integer constant.
  18158. 'P'
  18159. A 8-bit unsigned integer constant.
  18160. 'H'
  18161. Any const_double value.
  18162. _ARM family--'config/arm/constraints.md'_
  18163. 'h'
  18164. In Thumb state, the core registers 'r8'-'r15'.
  18165. 'k'
  18166. The stack pointer register.
  18167. 'l'
  18168. In Thumb State the core registers 'r0'-'r7'. In ARM state
  18169. this is an alias for the 'r' constraint.
  18170. 't'
  18171. VFP floating-point registers 's0'-'s31'. Used for 32 bit
  18172. values.
  18173. 'w'
  18174. VFP floating-point registers 'd0'-'d31' and the appropriate
  18175. subset 'd0'-'d15' based on command line options. Used for 64
  18176. bit values only. Not valid for Thumb1.
  18177. 'y'
  18178. The iWMMX co-processor registers.
  18179. 'z'
  18180. The iWMMX GR registers.
  18181. 'G'
  18182. The floating-point constant 0.0
  18183. 'I'
  18184. Integer that is valid as an immediate operand in a data
  18185. processing instruction. That is, an integer in the range 0 to
  18186. 255 rotated by a multiple of 2
  18187. 'J'
  18188. Integer in the range -4095 to 4095
  18189. 'K'
  18190. Integer that satisfies constraint 'I' when inverted (ones
  18191. complement)
  18192. 'L'
  18193. Integer that satisfies constraint 'I' when negated (twos
  18194. complement)
  18195. 'M'
  18196. Integer in the range 0 to 32
  18197. 'Q'
  18198. A memory reference where the exact address is in a single
  18199. register (''m'' is preferable for 'asm' statements)
  18200. 'R'
  18201. An item in the constant pool
  18202. 'S'
  18203. A symbol in the text segment of the current file
  18204. 'Uv'
  18205. A memory reference suitable for VFP load/store insns
  18206. (reg+constant offset)
  18207. 'Uy'
  18208. A memory reference suitable for iWMMXt load/store
  18209. instructions.
  18210. 'Uq'
  18211. A memory reference suitable for the ARMv4 ldrsb instruction.
  18212. _AVR family--'config/avr/constraints.md'_
  18213. 'l'
  18214. Registers from r0 to r15
  18215. 'a'
  18216. Registers from r16 to r23
  18217. 'd'
  18218. Registers from r16 to r31
  18219. 'w'
  18220. Registers from r24 to r31. These registers can be used in
  18221. 'adiw' command
  18222. 'e'
  18223. Pointer register (r26-r31)
  18224. 'b'
  18225. Base pointer register (r28-r31)
  18226. 'q'
  18227. Stack pointer register (SPH:SPL)
  18228. 't'
  18229. Temporary register r0
  18230. 'x'
  18231. Register pair X (r27:r26)
  18232. 'y'
  18233. Register pair Y (r29:r28)
  18234. 'z'
  18235. Register pair Z (r31:r30)
  18236. 'I'
  18237. Constant greater than -1, less than 64
  18238. 'J'
  18239. Constant greater than -64, less than 1
  18240. 'K'
  18241. Constant integer 2
  18242. 'L'
  18243. Constant integer 0
  18244. 'M'
  18245. Constant that fits in 8 bits
  18246. 'N'
  18247. Constant integer -1
  18248. 'O'
  18249. Constant integer 8, 16, or 24
  18250. 'P'
  18251. Constant integer 1
  18252. 'G'
  18253. A floating point constant 0.0
  18254. 'Q'
  18255. A memory address based on Y or Z pointer with displacement.
  18256. _Blackfin family--'config/bfin/constraints.md'_
  18257. 'a'
  18258. P register
  18259. 'd'
  18260. D register
  18261. 'z'
  18262. A call clobbered P register.
  18263. 'qN'
  18264. A single register. If N is in the range 0 to 7, the
  18265. corresponding D register. If it is 'A', then the register P0.
  18266. 'D'
  18267. Even-numbered D register
  18268. 'W'
  18269. Odd-numbered D register
  18270. 'e'
  18271. Accumulator register.
  18272. 'A'
  18273. Even-numbered accumulator register.
  18274. 'B'
  18275. Odd-numbered accumulator register.
  18276. 'b'
  18277. I register
  18278. 'v'
  18279. B register
  18280. 'f'
  18281. M register
  18282. 'c'
  18283. Registers used for circular buffering, i.e. I, B, or L
  18284. registers.
  18285. 'C'
  18286. The CC register.
  18287. 't'
  18288. LT0 or LT1.
  18289. 'k'
  18290. LC0 or LC1.
  18291. 'u'
  18292. LB0 or LB1.
  18293. 'x'
  18294. Any D, P, B, M, I or L register.
  18295. 'y'
  18296. Additional registers typically used only in prologues and
  18297. epilogues: RETS, RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and
  18298. USP.
  18299. 'w'
  18300. Any register except accumulators or CC.
  18301. 'Ksh'
  18302. Signed 16 bit integer (in the range -32768 to 32767)
  18303. 'Kuh'
  18304. Unsigned 16 bit integer (in the range 0 to 65535)
  18305. 'Ks7'
  18306. Signed 7 bit integer (in the range -64 to 63)
  18307. 'Ku7'
  18308. Unsigned 7 bit integer (in the range 0 to 127)
  18309. 'Ku5'
  18310. Unsigned 5 bit integer (in the range 0 to 31)
  18311. 'Ks4'
  18312. Signed 4 bit integer (in the range -8 to 7)
  18313. 'Ks3'
  18314. Signed 3 bit integer (in the range -3 to 4)
  18315. 'Ku3'
  18316. Unsigned 3 bit integer (in the range 0 to 7)
  18317. 'PN'
  18318. Constant N, where N is a single-digit constant in the range 0
  18319. to 4.
  18320. 'PA'
  18321. An integer equal to one of the MACFLAG_XXX constants that is
  18322. suitable for use with either accumulator.
  18323. 'PB'
  18324. An integer equal to one of the MACFLAG_XXX constants that is
  18325. suitable for use only with accumulator A1.
  18326. 'M1'
  18327. Constant 255.
  18328. 'M2'
  18329. Constant 65535.
  18330. 'J'
  18331. An integer constant with exactly a single bit set.
  18332. 'L'
  18333. An integer constant with all bits set except exactly one.
  18334. 'H'
  18335. 'Q'
  18336. Any SYMBOL_REF.
  18337. _CR16 Architecture--'config/cr16/cr16.h'_
  18338. 'b'
  18339. Registers from r0 to r14 (registers without stack pointer)
  18340. 't'
  18341. Register from r0 to r11 (all 16-bit registers)
  18342. 'p'
  18343. Register from r12 to r15 (all 32-bit registers)
  18344. 'I'
  18345. Signed constant that fits in 4 bits
  18346. 'J'
  18347. Signed constant that fits in 5 bits
  18348. 'K'
  18349. Signed constant that fits in 6 bits
  18350. 'L'
  18351. Unsigned constant that fits in 4 bits
  18352. 'M'
  18353. Signed constant that fits in 32 bits
  18354. 'N'
  18355. Check for 64 bits wide constants for add/sub instructions
  18356. 'G'
  18357. Floating point constant that is legal for store immediate
  18358. _C-SKY--'config/csky/constraints.md'_
  18359. 'a'
  18360. The mini registers r0 - r7.
  18361. 'b'
  18362. The low registers r0 - r15.
  18363. 'c'
  18364. C register.
  18365. 'y'
  18366. HI and LO registers.
  18367. 'l'
  18368. LO register.
  18369. 'h'
  18370. HI register.
  18371. 'v'
  18372. Vector registers.
  18373. 'z'
  18374. Stack pointer register (SP).
  18375. The C-SKY back end supports a large set of additional constraints
  18376. that are only useful for instruction selection or splitting rather
  18377. than inline asm, such as constraints representing constant integer
  18378. ranges accepted by particular instruction encodings. Refer to the
  18379. source code for details.
  18380. _Epiphany--'config/epiphany/constraints.md'_
  18381. 'U16'
  18382. An unsigned 16-bit constant.
  18383. 'K'
  18384. An unsigned 5-bit constant.
  18385. 'L'
  18386. A signed 11-bit constant.
  18387. 'Cm1'
  18388. A signed 11-bit constant added to -1. Can only match when the
  18389. '-m1reg-REG' option is active.
  18390. 'Cl1'
  18391. Left-shift of -1, i.e., a bit mask with a block of leading
  18392. ones, the rest being a block of trailing zeroes. Can only
  18393. match when the '-m1reg-REG' option is active.
  18394. 'Cr1'
  18395. Right-shift of -1, i.e., a bit mask with a trailing block of
  18396. ones, the rest being zeroes. Or to put it another way, one
  18397. less than a power of two. Can only match when the
  18398. '-m1reg-REG' option is active.
  18399. 'Cal'
  18400. Constant for arithmetic/logical operations. This is like 'i',
  18401. except that for position independent code, no symbols /
  18402. expressions needing relocations are allowed.
  18403. 'Csy'
  18404. Symbolic constant for call/jump instruction.
  18405. 'Rcs'
  18406. The register class usable in short insns. This is a register
  18407. class constraint, and can thus drive register allocation.
  18408. This constraint won't match unless '-mprefer-short-insn-regs'
  18409. is in effect.
  18410. 'Rsc'
  18411. The the register class of registers that can be used to hold a
  18412. sibcall call address. I.e., a caller-saved register.
  18413. 'Rct'
  18414. Core control register class.
  18415. 'Rgs'
  18416. The register group usable in short insns. This constraint
  18417. does not use a register class, so that it only passively
  18418. matches suitable registers, and doesn't drive register
  18419. allocation.
  18420. 'Car'
  18421. Constant suitable for the addsi3_r pattern. This is a valid
  18422. offset For byte, halfword, or word addressing.
  18423. 'Rra'
  18424. Matches the return address if it can be replaced with the link
  18425. register.
  18426. 'Rcc'
  18427. Matches the integer condition code register.
  18428. 'Sra'
  18429. Matches the return address if it is in a stack slot.
  18430. 'Cfm'
  18431. Matches control register values to switch fp mode, which are
  18432. encapsulated in 'UNSPEC_FP_MODE'.
  18433. _FRV--'config/frv/frv.h'_
  18434. 'a'
  18435. Register in the class 'ACC_REGS' ('acc0' to 'acc7').
  18436. 'b'
  18437. Register in the class 'EVEN_ACC_REGS' ('acc0' to 'acc7').
  18438. 'c'
  18439. Register in the class 'CC_REGS' ('fcc0' to 'fcc3' and 'icc0'
  18440. to 'icc3').
  18441. 'd'
  18442. Register in the class 'GPR_REGS' ('gr0' to 'gr63').
  18443. 'e'
  18444. Register in the class 'EVEN_REGS' ('gr0' to 'gr63'). Odd
  18445. registers are excluded not in the class but through the use of
  18446. a machine mode larger than 4 bytes.
  18447. 'f'
  18448. Register in the class 'FPR_REGS' ('fr0' to 'fr63').
  18449. 'h'
  18450. Register in the class 'FEVEN_REGS' ('fr0' to 'fr63'). Odd
  18451. registers are excluded not in the class but through the use of
  18452. a machine mode larger than 4 bytes.
  18453. 'l'
  18454. Register in the class 'LR_REG' (the 'lr' register).
  18455. 'q'
  18456. Register in the class 'QUAD_REGS' ('gr2' to 'gr63'). Register
  18457. numbers not divisible by 4 are excluded not in the class but
  18458. through the use of a machine mode larger than 8 bytes.
  18459. 't'
  18460. Register in the class 'ICC_REGS' ('icc0' to 'icc3').
  18461. 'u'
  18462. Register in the class 'FCC_REGS' ('fcc0' to 'fcc3').
  18463. 'v'
  18464. Register in the class 'ICR_REGS' ('cc4' to 'cc7').
  18465. 'w'
  18466. Register in the class 'FCR_REGS' ('cc0' to 'cc3').
  18467. 'x'
  18468. Register in the class 'QUAD_FPR_REGS' ('fr0' to 'fr63').
  18469. Register numbers not divisible by 4 are excluded not in the
  18470. class but through the use of a machine mode larger than 8
  18471. bytes.
  18472. 'z'
  18473. Register in the class 'SPR_REGS' ('lcr' and 'lr').
  18474. 'A'
  18475. Register in the class 'QUAD_ACC_REGS' ('acc0' to 'acc7').
  18476. 'B'
  18477. Register in the class 'ACCG_REGS' ('accg0' to 'accg7').
  18478. 'C'
  18479. Register in the class 'CR_REGS' ('cc0' to 'cc7').
  18480. 'G'
  18481. Floating point constant zero
  18482. 'I'
  18483. 6-bit signed integer constant
  18484. 'J'
  18485. 10-bit signed integer constant
  18486. 'L'
  18487. 16-bit signed integer constant
  18488. 'M'
  18489. 16-bit unsigned integer constant
  18490. 'N'
  18491. 12-bit signed integer constant that is negative--i.e. in the
  18492. range of -2048 to -1
  18493. 'O'
  18494. Constant zero
  18495. 'P'
  18496. 12-bit signed integer constant that is greater than zero--i.e.
  18497. in the range of 1 to 2047.
  18498. _FT32--'config/ft32/constraints.md'_
  18499. 'A'
  18500. An absolute address
  18501. 'B'
  18502. An offset address
  18503. 'W'
  18504. A register indirect memory operand
  18505. 'e'
  18506. An offset address.
  18507. 'f'
  18508. An offset address.
  18509. 'O'
  18510. The constant zero or one
  18511. 'I'
  18512. A 16-bit signed constant (-32768 ... 32767)
  18513. 'w'
  18514. A bitfield mask suitable for bext or bins
  18515. 'x'
  18516. An inverted bitfield mask suitable for bext or bins
  18517. 'L'
  18518. A 16-bit unsigned constant, multiple of 4 (0 ... 65532)
  18519. 'S'
  18520. A 20-bit signed constant (-524288 ... 524287)
  18521. 'b'
  18522. A constant for a bitfield width (1 ... 16)
  18523. 'KA'
  18524. A 10-bit signed constant (-512 ... 511)
  18525. _Hewlett-Packard PA-RISC--'config/pa/pa.h'_
  18526. 'a'
  18527. General register 1
  18528. 'f'
  18529. Floating point register
  18530. 'q'
  18531. Shift amount register
  18532. 'x'
  18533. Floating point register (deprecated)
  18534. 'y'
  18535. Upper floating point register (32-bit), floating point
  18536. register (64-bit)
  18537. 'Z'
  18538. Any register
  18539. 'I'
  18540. Signed 11-bit integer constant
  18541. 'J'
  18542. Signed 14-bit integer constant
  18543. 'K'
  18544. Integer constant that can be deposited with a 'zdepi'
  18545. instruction
  18546. 'L'
  18547. Signed 5-bit integer constant
  18548. 'M'
  18549. Integer constant 0
  18550. 'N'
  18551. Integer constant that can be loaded with a 'ldil' instruction
  18552. 'O'
  18553. Integer constant whose value plus one is a power of 2
  18554. 'P'
  18555. Integer constant that can be used for 'and' operations in
  18556. 'depi' and 'extru' instructions
  18557. 'S'
  18558. Integer constant 31
  18559. 'U'
  18560. Integer constant 63
  18561. 'G'
  18562. Floating-point constant 0.0
  18563. 'A'
  18564. A 'lo_sum' data-linkage-table memory operand
  18565. 'Q'
  18566. A memory operand that can be used as the destination operand
  18567. of an integer store instruction
  18568. 'R'
  18569. A scaled or unscaled indexed memory operand
  18570. 'T'
  18571. A memory operand for floating-point loads and stores
  18572. 'W'
  18573. A register indirect memory operand
  18574. _Intel IA-64--'config/ia64/ia64.h'_
  18575. 'a'
  18576. General register 'r0' to 'r3' for 'addl' instruction
  18577. 'b'
  18578. Branch register
  18579. 'c'
  18580. Predicate register ('c' as in "conditional")
  18581. 'd'
  18582. Application register residing in M-unit
  18583. 'e'
  18584. Application register residing in I-unit
  18585. 'f'
  18586. Floating-point register
  18587. 'm'
  18588. Memory operand. If used together with '<' or '>', the operand
  18589. can have postincrement and postdecrement which require
  18590. printing with '%Pn' on IA-64.
  18591. 'G'
  18592. Floating-point constant 0.0 or 1.0
  18593. 'I'
  18594. 14-bit signed integer constant
  18595. 'J'
  18596. 22-bit signed integer constant
  18597. 'K'
  18598. 8-bit signed integer constant for logical instructions
  18599. 'L'
  18600. 8-bit adjusted signed integer constant for compare pseudo-ops
  18601. 'M'
  18602. 6-bit unsigned integer constant for shift counts
  18603. 'N'
  18604. 9-bit signed integer constant for load and store
  18605. postincrements
  18606. 'O'
  18607. The constant zero
  18608. 'P'
  18609. 0 or -1 for 'dep' instruction
  18610. 'Q'
  18611. Non-volatile memory for floating-point loads and stores
  18612. 'R'
  18613. Integer constant in the range 1 to 4 for 'shladd' instruction
  18614. 'S'
  18615. Memory operand except postincrement and postdecrement. This
  18616. is now roughly the same as 'm' when not used together with '<'
  18617. or '>'.
  18618. _M32C--'config/m32c/m32c.c'_
  18619. 'Rsp'
  18620. 'Rfb'
  18621. 'Rsb'
  18622. '$sp', '$fb', '$sb'.
  18623. 'Rcr'
  18624. Any control register, when they're 16 bits wide (nothing if
  18625. control registers are 24 bits wide)
  18626. 'Rcl'
  18627. Any control register, when they're 24 bits wide.
  18628. 'R0w'
  18629. 'R1w'
  18630. 'R2w'
  18631. 'R3w'
  18632. $r0, $r1, $r2, $r3.
  18633. 'R02'
  18634. $r0 or $r2, or $r2r0 for 32 bit values.
  18635. 'R13'
  18636. $r1 or $r3, or $r3r1 for 32 bit values.
  18637. 'Rdi'
  18638. A register that can hold a 64 bit value.
  18639. 'Rhl'
  18640. $r0 or $r1 (registers with addressable high/low bytes)
  18641. 'R23'
  18642. $r2 or $r3
  18643. 'Raa'
  18644. Address registers
  18645. 'Raw'
  18646. Address registers when they're 16 bits wide.
  18647. 'Ral'
  18648. Address registers when they're 24 bits wide.
  18649. 'Rqi'
  18650. Registers that can hold QI values.
  18651. 'Rad'
  18652. Registers that can be used with displacements ($a0, $a1, $sb).
  18653. 'Rsi'
  18654. Registers that can hold 32 bit values.
  18655. 'Rhi'
  18656. Registers that can hold 16 bit values.
  18657. 'Rhc'
  18658. Registers chat can hold 16 bit values, including all control
  18659. registers.
  18660. 'Rra'
  18661. $r0 through R1, plus $a0 and $a1.
  18662. 'Rfl'
  18663. The flags register.
  18664. 'Rmm'
  18665. The memory-based pseudo-registers $mem0 through $mem15.
  18666. 'Rpi'
  18667. Registers that can hold pointers (16 bit registers for r8c,
  18668. m16c; 24 bit registers for m32cm, m32c).
  18669. 'Rpa'
  18670. Matches multiple registers in a PARALLEL to form a larger
  18671. register. Used to match function return values.
  18672. 'Is3'
  18673. -8 ... 7
  18674. 'IS1'
  18675. -128 ... 127
  18676. 'IS2'
  18677. -32768 ... 32767
  18678. 'IU2'
  18679. 0 ... 65535
  18680. 'In4'
  18681. -8 ... -1 or 1 ... 8
  18682. 'In5'
  18683. -16 ... -1 or 1 ... 16
  18684. 'In6'
  18685. -32 ... -1 or 1 ... 32
  18686. 'IM2'
  18687. -65536 ... -1
  18688. 'Ilb'
  18689. An 8 bit value with exactly one bit set.
  18690. 'Ilw'
  18691. A 16 bit value with exactly one bit set.
  18692. 'Sd'
  18693. The common src/dest memory addressing modes.
  18694. 'Sa'
  18695. Memory addressed using $a0 or $a1.
  18696. 'Si'
  18697. Memory addressed with immediate addresses.
  18698. 'Ss'
  18699. Memory addressed using the stack pointer ($sp).
  18700. 'Sf'
  18701. Memory addressed using the frame base register ($fb).
  18702. 'Ss'
  18703. Memory addressed using the small base register ($sb).
  18704. 'S1'
  18705. $r1h
  18706. _MicroBlaze--'config/microblaze/constraints.md'_
  18707. 'd'
  18708. A general register ('r0' to 'r31').
  18709. 'z'
  18710. A status register ('rmsr', '$fcc1' to '$fcc7').
  18711. _MIPS--'config/mips/constraints.md'_
  18712. 'd'
  18713. A general-purpose register. This is equivalent to 'r' unless
  18714. generating MIPS16 code, in which case the MIPS16 register set
  18715. is used.
  18716. 'f'
  18717. A floating-point register (if available).
  18718. 'h'
  18719. Formerly the 'hi' register. This constraint is no longer
  18720. supported.
  18721. 'l'
  18722. The 'lo' register. Use this register to store values that are
  18723. no bigger than a word.
  18724. 'x'
  18725. The concatenated 'hi' and 'lo' registers. Use this register
  18726. to store doubleword values.
  18727. 'c'
  18728. A register suitable for use in an indirect jump. This will
  18729. always be '$25' for '-mabicalls'.
  18730. 'v'
  18731. Register '$3'. Do not use this constraint in new code; it is
  18732. retained only for compatibility with glibc.
  18733. 'y'
  18734. Equivalent to 'r'; retained for backwards compatibility.
  18735. 'z'
  18736. A floating-point condition code register.
  18737. 'I'
  18738. A signed 16-bit constant (for arithmetic instructions).
  18739. 'J'
  18740. Integer zero.
  18741. 'K'
  18742. An unsigned 16-bit constant (for logic instructions).
  18743. 'L'
  18744. A signed 32-bit constant in which the lower 16 bits are zero.
  18745. Such constants can be loaded using 'lui'.
  18746. 'M'
  18747. A constant that cannot be loaded using 'lui', 'addiu' or
  18748. 'ori'.
  18749. 'N'
  18750. A constant in the range -65535 to -1 (inclusive).
  18751. 'O'
  18752. A signed 15-bit constant.
  18753. 'P'
  18754. A constant in the range 1 to 65535 (inclusive).
  18755. 'G'
  18756. Floating-point zero.
  18757. 'R'
  18758. An address that can be used in a non-macro load or store.
  18759. 'ZC'
  18760. A memory operand whose address is formed by a base register
  18761. and offset that is suitable for use in instructions with the
  18762. same addressing mode as 'll' and 'sc'.
  18763. 'ZD'
  18764. An address suitable for a 'prefetch' instruction, or for any
  18765. other instruction with the same addressing mode as 'prefetch'.
  18766. _Motorola 680x0--'config/m68k/constraints.md'_
  18767. 'a'
  18768. Address register
  18769. 'd'
  18770. Data register
  18771. 'f'
  18772. 68881 floating-point register, if available
  18773. 'I'
  18774. Integer in the range 1 to 8
  18775. 'J'
  18776. 16-bit signed number
  18777. 'K'
  18778. Signed number whose magnitude is greater than 0x80
  18779. 'L'
  18780. Integer in the range -8 to -1
  18781. 'M'
  18782. Signed number whose magnitude is greater than 0x100
  18783. 'N'
  18784. Range 24 to 31, rotatert:SI 8 to 1 expressed as rotate
  18785. 'O'
  18786. 16 (for rotate using swap)
  18787. 'P'
  18788. Range 8 to 15, rotatert:HI 8 to 1 expressed as rotate
  18789. 'R'
  18790. Numbers that mov3q can handle
  18791. 'G'
  18792. Floating point constant that is not a 68881 constant
  18793. 'S'
  18794. Operands that satisfy 'm' when -mpcrel is in effect
  18795. 'T'
  18796. Operands that satisfy 's' when -mpcrel is not in effect
  18797. 'Q'
  18798. Address register indirect addressing mode
  18799. 'U'
  18800. Register offset addressing
  18801. 'W'
  18802. const_call_operand
  18803. 'Cs'
  18804. symbol_ref or const
  18805. 'Ci'
  18806. const_int
  18807. 'C0'
  18808. const_int 0
  18809. 'Cj'
  18810. Range of signed numbers that don't fit in 16 bits
  18811. 'Cmvq'
  18812. Integers valid for mvq
  18813. 'Capsw'
  18814. Integers valid for a moveq followed by a swap
  18815. 'Cmvz'
  18816. Integers valid for mvz
  18817. 'Cmvs'
  18818. Integers valid for mvs
  18819. 'Ap'
  18820. push_operand
  18821. 'Ac'
  18822. Non-register operands allowed in clr
  18823. _Moxie--'config/moxie/constraints.md'_
  18824. 'A'
  18825. An absolute address
  18826. 'B'
  18827. An offset address
  18828. 'W'
  18829. A register indirect memory operand
  18830. 'I'
  18831. A constant in the range of 0 to 255.
  18832. 'N'
  18833. A constant in the range of 0 to -255.
  18834. _MSP430-'config/msp430/constraints.md'_
  18835. 'R12'
  18836. Register R12.
  18837. 'R13'
  18838. Register R13.
  18839. 'K'
  18840. Integer constant 1.
  18841. 'L'
  18842. Integer constant -1^20..1^19.
  18843. 'M'
  18844. Integer constant 1-4.
  18845. 'Ya'
  18846. Memory references which do not require an extended MOVX
  18847. instruction.
  18848. 'Yl'
  18849. Memory reference, labels only.
  18850. 'Ys'
  18851. Memory reference, stack only.
  18852. _NDS32--'config/nds32/constraints.md'_
  18853. 'w'
  18854. LOW register class $r0 to $r7 constraint for V3/V3M ISA.
  18855. 'l'
  18856. LOW register class $r0 to $r7.
  18857. 'd'
  18858. MIDDLE register class $r0 to $r11, $r16 to $r19.
  18859. 'h'
  18860. HIGH register class $r12 to $r14, $r20 to $r31.
  18861. 't'
  18862. Temporary assist register $ta (i.e. $r15).
  18863. 'k'
  18864. Stack register $sp.
  18865. 'Iu03'
  18866. Unsigned immediate 3-bit value.
  18867. 'In03'
  18868. Negative immediate 3-bit value in the range of -7-0.
  18869. 'Iu04'
  18870. Unsigned immediate 4-bit value.
  18871. 'Is05'
  18872. Signed immediate 5-bit value.
  18873. 'Iu05'
  18874. Unsigned immediate 5-bit value.
  18875. 'In05'
  18876. Negative immediate 5-bit value in the range of -31-0.
  18877. 'Ip05'
  18878. Unsigned immediate 5-bit value for movpi45 instruction with
  18879. range 16-47.
  18880. 'Iu06'
  18881. Unsigned immediate 6-bit value constraint for addri36.sp
  18882. instruction.
  18883. 'Iu08'
  18884. Unsigned immediate 8-bit value.
  18885. 'Iu09'
  18886. Unsigned immediate 9-bit value.
  18887. 'Is10'
  18888. Signed immediate 10-bit value.
  18889. 'Is11'
  18890. Signed immediate 11-bit value.
  18891. 'Is15'
  18892. Signed immediate 15-bit value.
  18893. 'Iu15'
  18894. Unsigned immediate 15-bit value.
  18895. 'Ic15'
  18896. A constant which is not in the range of imm15u but ok for bclr
  18897. instruction.
  18898. 'Ie15'
  18899. A constant which is not in the range of imm15u but ok for bset
  18900. instruction.
  18901. 'It15'
  18902. A constant which is not in the range of imm15u but ok for btgl
  18903. instruction.
  18904. 'Ii15'
  18905. A constant whose compliment value is in the range of imm15u
  18906. and ok for bitci instruction.
  18907. 'Is16'
  18908. Signed immediate 16-bit value.
  18909. 'Is17'
  18910. Signed immediate 17-bit value.
  18911. 'Is19'
  18912. Signed immediate 19-bit value.
  18913. 'Is20'
  18914. Signed immediate 20-bit value.
  18915. 'Ihig'
  18916. The immediate value that can be simply set high 20-bit.
  18917. 'Izeb'
  18918. The immediate value 0xff.
  18919. 'Izeh'
  18920. The immediate value 0xffff.
  18921. 'Ixls'
  18922. The immediate value 0x01.
  18923. 'Ix11'
  18924. The immediate value 0x7ff.
  18925. 'Ibms'
  18926. The immediate value with power of 2.
  18927. 'Ifex'
  18928. The immediate value with power of 2 minus 1.
  18929. 'U33'
  18930. Memory constraint for 333 format.
  18931. 'U45'
  18932. Memory constraint for 45 format.
  18933. 'U37'
  18934. Memory constraint for 37 format.
  18935. _Nios II family--'config/nios2/constraints.md'_
  18936. 'I'
  18937. Integer that is valid as an immediate operand in an
  18938. instruction taking a signed 16-bit number. Range -32768 to
  18939. 32767.
  18940. 'J'
  18941. Integer that is valid as an immediate operand in an
  18942. instruction taking an unsigned 16-bit number. Range 0 to
  18943. 65535.
  18944. 'K'
  18945. Integer that is valid as an immediate operand in an
  18946. instruction taking only the upper 16-bits of a 32-bit number.
  18947. Range 32-bit numbers with the lower 16-bits being 0.
  18948. 'L'
  18949. Integer that is valid as an immediate operand for a shift
  18950. instruction. Range 0 to 31.
  18951. 'M'
  18952. Integer that is valid as an immediate operand for only the
  18953. value 0. Can be used in conjunction with the format modifier
  18954. 'z' to use 'r0' instead of '0' in the assembly output.
  18955. 'N'
  18956. Integer that is valid as an immediate operand for a custom
  18957. instruction opcode. Range 0 to 255.
  18958. 'P'
  18959. An immediate operand for R2 andchi/andci instructions.
  18960. 'S'
  18961. Matches immediates which are addresses in the small data
  18962. section and therefore can be added to 'gp' as a 16-bit
  18963. immediate to re-create their 32-bit value.
  18964. 'U'
  18965. Matches constants suitable as an operand for the rdprs and
  18966. cache instructions.
  18967. 'v'
  18968. A memory operand suitable for Nios II R2 load/store exclusive
  18969. instructions.
  18970. 'w'
  18971. A memory operand suitable for load/store IO and cache
  18972. instructions.
  18973. 'T'
  18974. A 'const' wrapped 'UNSPEC' expression, representing a
  18975. supported PIC or TLS relocation.
  18976. _OpenRISC--'config/or1k/constraints.md'_
  18977. 'I'
  18978. Integer that is valid as an immediate operand in an
  18979. instruction taking a signed 16-bit number. Range -32768 to
  18980. 32767.
  18981. 'K'
  18982. Integer that is valid as an immediate operand in an
  18983. instruction taking an unsigned 16-bit number. Range 0 to
  18984. 65535.
  18985. 'M'
  18986. Signed 16-bit constant shifted left 16 bits. (Used with
  18987. 'l.movhi')
  18988. 'O'
  18989. Zero
  18990. 'c'
  18991. Register usable for sibcalls.
  18992. _PDP-11--'config/pdp11/constraints.md'_
  18993. 'a'
  18994. Floating point registers AC0 through AC3. These can be loaded
  18995. from/to memory with a single instruction.
  18996. 'd'
  18997. Odd numbered general registers (R1, R3, R5). These are used
  18998. for 16-bit multiply operations.
  18999. 'D'
  19000. A memory reference that is encoded within the opcode, but not
  19001. auto-increment or auto-decrement.
  19002. 'f'
  19003. Any of the floating point registers (AC0 through AC5).
  19004. 'G'
  19005. Floating point constant 0.
  19006. 'h'
  19007. Floating point registers AC4 and AC5. These cannot be loaded
  19008. from/to memory with a single instruction.
  19009. 'I'
  19010. An integer constant that fits in 16 bits.
  19011. 'J'
  19012. An integer constant whose low order 16 bits are zero.
  19013. 'K'
  19014. An integer constant that does not meet the constraints for
  19015. codes 'I' or 'J'.
  19016. 'L'
  19017. The integer constant 1.
  19018. 'M'
  19019. The integer constant -1.
  19020. 'N'
  19021. The integer constant 0.
  19022. 'O'
  19023. Integer constants 0 through 3; shifts by these amounts are
  19024. handled as multiple single-bit shifts rather than a single
  19025. variable-length shift.
  19026. 'Q'
  19027. A memory reference which requires an additional word (address
  19028. or offset) after the opcode.
  19029. 'R'
  19030. A memory reference that is encoded within the opcode.
  19031. _PowerPC and IBM RS6000--'config/rs6000/constraints.md'_
  19032. 'r'
  19033. A general purpose register (GPR), 'r0'...'r31'.
  19034. 'b'
  19035. A base register. Like 'r', but 'r0' is not allowed, so
  19036. 'r1'...'r31'.
  19037. 'f'
  19038. A floating point register (FPR), 'f0'...'f31'.
  19039. 'd'
  19040. A floating point register. This is the same as 'f' nowadays;
  19041. historically 'f' was for single-precision and 'd' was for
  19042. double-precision floating point.
  19043. 'v'
  19044. An Altivec vector register (VR), 'v0'...'v31'.
  19045. 'wa'
  19046. A VSX register (VSR), 'vs0'...'vs63'. This is either an FPR
  19047. ('vs0'...'vs31' are 'f0'...'f31') or a VR ('vs32'...'vs63' are
  19048. 'v0'...'v31').
  19049. When using 'wa', you should use the '%x' output modifier, so
  19050. that the correct register number is printed. For example:
  19051. asm ("xvadddp %x0,%x1,%x2"
  19052. : "=wa" (v1)
  19053. : "wa" (v2), "wa" (v3));
  19054. You should not use '%x' for 'v' operands:
  19055. asm ("xsaddqp %0,%1,%2"
  19056. : "=v" (v1)
  19057. : "v" (v2), "v" (v3));
  19058. 'h'
  19059. A special register ('vrsave', 'ctr', or 'lr').
  19060. 'c'
  19061. The count register, 'ctr'.
  19062. 'l'
  19063. The link register, 'lr'.
  19064. 'x'
  19065. Condition register field 0, 'cr0'.
  19066. 'y'
  19067. Any condition register field, 'cr0'...'cr7'.
  19068. 'z'
  19069. The carry bit, 'XER[CA]'.
  19070. 'we'
  19071. Like 'wa', if '-mpower9-vector' and '-m64' are used;
  19072. otherwise, 'NO_REGS'.
  19073. 'wn'
  19074. No register ('NO_REGS').
  19075. 'wr'
  19076. Like 'r', if '-mpowerpc64' is used; otherwise, 'NO_REGS'.
  19077. 'wx'
  19078. Like 'd', if '-mpowerpc-gfxopt' is used; otherwise, 'NO_REGS'.
  19079. 'wA'
  19080. Like 'b', if '-mpowerpc64' is used; otherwise, 'NO_REGS'.
  19081. 'wB'
  19082. Signed 5-bit constant integer that can be loaded into an
  19083. Altivec register.
  19084. 'wD'
  19085. Int constant that is the element number of the 64-bit scalar
  19086. in a vector.
  19087. 'wE'
  19088. Vector constant that can be loaded with the XXSPLTIB
  19089. instruction.
  19090. 'wF'
  19091. Memory operand suitable for power8 GPR load fusion.
  19092. 'wL'
  19093. Int constant that is the element number mfvsrld accesses in a
  19094. vector.
  19095. 'wM'
  19096. Match vector constant with all 1's if the XXLORC instruction
  19097. is available.
  19098. 'wO'
  19099. Memory operand suitable for the ISA 3.0 vector d-form
  19100. instructions.
  19101. 'wQ'
  19102. Memory operand suitable for the load/store quad instructions.
  19103. 'wS'
  19104. Vector constant that can be loaded with XXSPLTIB & sign
  19105. extension.
  19106. 'wY'
  19107. A memory operand for a DS-form instruction.
  19108. 'wZ'
  19109. An indexed or indirect memory operand, ignoring the bottom 4
  19110. bits.
  19111. 'I'
  19112. A signed 16-bit constant.
  19113. 'J'
  19114. An unsigned 16-bit constant shifted left 16 bits (use 'L'
  19115. instead for 'SImode' constants).
  19116. 'K'
  19117. An unsigned 16-bit constant.
  19118. 'L'
  19119. A signed 16-bit constant shifted left 16 bits.
  19120. 'M'
  19121. An integer constant greater than 31.
  19122. 'N'
  19123. An exact power of 2.
  19124. 'O'
  19125. The integer constant zero.
  19126. 'P'
  19127. A constant whose negation is a signed 16-bit constant.
  19128. 'eI'
  19129. A signed 34-bit integer constant if prefixed instructions are
  19130. supported.
  19131. 'G'
  19132. A floating point constant that can be loaded into a register
  19133. with one instruction per word.
  19134. 'H'
  19135. A floating point constant that can be loaded into a register
  19136. using three instructions.
  19137. 'm'
  19138. A memory operand. Normally, 'm' does not allow addresses that
  19139. update the base register. If the '<' or '>' constraint is
  19140. also used, they are allowed and therefore on PowerPC targets
  19141. in that case it is only safe to use 'm<>' in an 'asm'
  19142. statement if that 'asm' statement accesses the operand exactly
  19143. once. The 'asm' statement must also use '%U<OPNO>' as a
  19144. placeholder for the "update" flag in the corresponding load or
  19145. store instruction. For example:
  19146. asm ("st%U0 %1,%0" : "=m<>" (mem) : "r" (val));
  19147. is correct but:
  19148. asm ("st %1,%0" : "=m<>" (mem) : "r" (val));
  19149. is not.
  19150. 'es'
  19151. A "stable" memory operand; that is, one which does not include
  19152. any automodification of the base register. This used to be
  19153. useful when 'm' allowed automodification of the base register,
  19154. but as those are now only allowed when '<' or '>' is used,
  19155. 'es' is basically the same as 'm' without '<' and '>'.
  19156. 'Q'
  19157. A memory operand addressed by just a base register.
  19158. 'Y'
  19159. A memory operand for a DQ-form instruction.
  19160. 'Z'
  19161. A memory operand accessed with indexed or indirect addressing.
  19162. 'R'
  19163. An AIX TOC entry.
  19164. 'a'
  19165. An indexed or indirect address.
  19166. 'U'
  19167. A V.4 small data reference.
  19168. 'W'
  19169. A vector constant that does not require memory.
  19170. 'j'
  19171. The zero vector constant.
  19172. _PRU--'config/pru/constraints.md'_
  19173. 'I'
  19174. An unsigned 8-bit integer constant.
  19175. 'J'
  19176. An unsigned 16-bit integer constant.
  19177. 'L'
  19178. An unsigned 5-bit integer constant (for shift counts).
  19179. 'T'
  19180. A text segment (program memory) constant label.
  19181. 'Z'
  19182. Integer constant zero.
  19183. _RL78--'config/rl78/constraints.md'_
  19184. 'Int3'
  19185. An integer constant in the range 1 ... 7.
  19186. 'Int8'
  19187. An integer constant in the range 0 ... 255.
  19188. 'J'
  19189. An integer constant in the range -255 ... 0
  19190. 'K'
  19191. The integer constant 1.
  19192. 'L'
  19193. The integer constant -1.
  19194. 'M'
  19195. The integer constant 0.
  19196. 'N'
  19197. The integer constant 2.
  19198. 'O'
  19199. The integer constant -2.
  19200. 'P'
  19201. An integer constant in the range 1 ... 15.
  19202. 'Qbi'
  19203. The built-in compare types-eq, ne, gtu, ltu, geu, and leu.
  19204. 'Qsc'
  19205. The synthetic compare types-gt, lt, ge, and le.
  19206. 'Wab'
  19207. A memory reference with an absolute address.
  19208. 'Wbc'
  19209. A memory reference using 'BC' as a base register, with an
  19210. optional offset.
  19211. 'Wca'
  19212. A memory reference using 'AX', 'BC', 'DE', or 'HL' for the
  19213. address, for calls.
  19214. 'Wcv'
  19215. A memory reference using any 16-bit register pair for the
  19216. address, for calls.
  19217. 'Wd2'
  19218. A memory reference using 'DE' as a base register, with an
  19219. optional offset.
  19220. 'Wde'
  19221. A memory reference using 'DE' as a base register, without any
  19222. offset.
  19223. 'Wfr'
  19224. Any memory reference to an address in the far address space.
  19225. 'Wh1'
  19226. A memory reference using 'HL' as a base register, with an
  19227. optional one-byte offset.
  19228. 'Whb'
  19229. A memory reference using 'HL' as a base register, with 'B' or
  19230. 'C' as the index register.
  19231. 'Whl'
  19232. A memory reference using 'HL' as a base register, without any
  19233. offset.
  19234. 'Ws1'
  19235. A memory reference using 'SP' as a base register, with an
  19236. optional one-byte offset.
  19237. 'Y'
  19238. Any memory reference to an address in the near address space.
  19239. 'A'
  19240. The 'AX' register.
  19241. 'B'
  19242. The 'BC' register.
  19243. 'D'
  19244. The 'DE' register.
  19245. 'R'
  19246. 'A' through 'L' registers.
  19247. 'S'
  19248. The 'SP' register.
  19249. 'T'
  19250. The 'HL' register.
  19251. 'Z08W'
  19252. The 16-bit 'R8' register.
  19253. 'Z10W'
  19254. The 16-bit 'R10' register.
  19255. 'Zint'
  19256. The registers reserved for interrupts ('R24' to 'R31').
  19257. 'a'
  19258. The 'A' register.
  19259. 'b'
  19260. The 'B' register.
  19261. 'c'
  19262. The 'C' register.
  19263. 'd'
  19264. The 'D' register.
  19265. 'e'
  19266. The 'E' register.
  19267. 'h'
  19268. The 'H' register.
  19269. 'l'
  19270. The 'L' register.
  19271. 'v'
  19272. The virtual registers.
  19273. 'w'
  19274. The 'PSW' register.
  19275. 'x'
  19276. The 'X' register.
  19277. _RISC-V--'config/riscv/constraints.md'_
  19278. 'f'
  19279. A floating-point register (if available).
  19280. 'I'
  19281. An I-type 12-bit signed immediate.
  19282. 'J'
  19283. Integer zero.
  19284. 'K'
  19285. A 5-bit unsigned immediate for CSR access instructions.
  19286. 'A'
  19287. An address that is held in a general-purpose register.
  19288. _RX--'config/rx/constraints.md'_
  19289. 'Q'
  19290. An address which does not involve register indirect addressing
  19291. or pre/post increment/decrement addressing.
  19292. 'Symbol'
  19293. A symbol reference.
  19294. 'Int08'
  19295. A constant in the range -256 to 255, inclusive.
  19296. 'Sint08'
  19297. A constant in the range -128 to 127, inclusive.
  19298. 'Sint16'
  19299. A constant in the range -32768 to 32767, inclusive.
  19300. 'Sint24'
  19301. A constant in the range -8388608 to 8388607, inclusive.
  19302. 'Uint04'
  19303. A constant in the range 0 to 15, inclusive.
  19304. _S/390 and zSeries--'config/s390/s390.h'_
  19305. 'a'
  19306. Address register (general purpose register except r0)
  19307. 'c'
  19308. Condition code register
  19309. 'd'
  19310. Data register (arbitrary general purpose register)
  19311. 'f'
  19312. Floating-point register
  19313. 'I'
  19314. Unsigned 8-bit constant (0-255)
  19315. 'J'
  19316. Unsigned 12-bit constant (0-4095)
  19317. 'K'
  19318. Signed 16-bit constant (-32768-32767)
  19319. 'L'
  19320. Value appropriate as displacement.
  19321. '(0..4095)'
  19322. for short displacement
  19323. '(-524288..524287)'
  19324. for long displacement
  19325. 'M'
  19326. Constant integer with a value of 0x7fffffff.
  19327. 'N'
  19328. Multiple letter constraint followed by 4 parameter letters.
  19329. '0..9:'
  19330. number of the part counting from most to least
  19331. significant
  19332. 'H,Q:'
  19333. mode of the part
  19334. 'D,S,H:'
  19335. mode of the containing operand
  19336. '0,F:'
  19337. value of the other parts (F--all bits set)
  19338. The constraint matches if the specified part of a constant has
  19339. a value different from its other parts.
  19340. 'Q'
  19341. Memory reference without index register and with short
  19342. displacement.
  19343. 'R'
  19344. Memory reference with index register and short displacement.
  19345. 'S'
  19346. Memory reference without index register but with long
  19347. displacement.
  19348. 'T'
  19349. Memory reference with index register and long displacement.
  19350. 'U'
  19351. Pointer with short displacement.
  19352. 'W'
  19353. Pointer with long displacement.
  19354. 'Y'
  19355. Shift count operand.
  19356. _SPARC--'config/sparc/sparc.h'_
  19357. 'f'
  19358. Floating-point register on the SPARC-V8 architecture and lower
  19359. floating-point register on the SPARC-V9 architecture.
  19360. 'e'
  19361. Floating-point register. It is equivalent to 'f' on the
  19362. SPARC-V8 architecture and contains both lower and upper
  19363. floating-point registers on the SPARC-V9 architecture.
  19364. 'c'
  19365. Floating-point condition code register.
  19366. 'd'
  19367. Lower floating-point register. It is only valid on the
  19368. SPARC-V9 architecture when the Visual Instruction Set is
  19369. available.
  19370. 'b'
  19371. Floating-point register. It is only valid on the SPARC-V9
  19372. architecture when the Visual Instruction Set is available.
  19373. 'h'
  19374. 64-bit global or out register for the SPARC-V8+ architecture.
  19375. 'C'
  19376. The constant all-ones, for floating-point.
  19377. 'A'
  19378. Signed 5-bit constant
  19379. 'D'
  19380. A vector constant
  19381. 'I'
  19382. Signed 13-bit constant
  19383. 'J'
  19384. Zero
  19385. 'K'
  19386. 32-bit constant with the low 12 bits clear (a constant that
  19387. can be loaded with the 'sethi' instruction)
  19388. 'L'
  19389. A constant in the range supported by 'movcc' instructions
  19390. (11-bit signed immediate)
  19391. 'M'
  19392. A constant in the range supported by 'movrcc' instructions
  19393. (10-bit signed immediate)
  19394. 'N'
  19395. Same as 'K', except that it verifies that bits that are not in
  19396. the lower 32-bit range are all zero. Must be used instead of
  19397. 'K' for modes wider than 'SImode'
  19398. 'O'
  19399. The constant 4096
  19400. 'G'
  19401. Floating-point zero
  19402. 'H'
  19403. Signed 13-bit constant, sign-extended to 32 or 64 bits
  19404. 'P'
  19405. The constant -1
  19406. 'Q'
  19407. Floating-point constant whose integral representation can be
  19408. moved into an integer register using a single sethi
  19409. instruction
  19410. 'R'
  19411. Floating-point constant whose integral representation can be
  19412. moved into an integer register using a single mov instruction
  19413. 'S'
  19414. Floating-point constant whose integral representation can be
  19415. moved into an integer register using a high/lo_sum instruction
  19416. sequence
  19417. 'T'
  19418. Memory address aligned to an 8-byte boundary
  19419. 'U'
  19420. Even register
  19421. 'W'
  19422. Memory address for 'e' constraint registers
  19423. 'w'
  19424. Memory address with only a base register
  19425. 'Y'
  19426. Vector zero
  19427. _TI C6X family--'config/c6x/constraints.md'_
  19428. 'a'
  19429. Register file A (A0-A31).
  19430. 'b'
  19431. Register file B (B0-B31).
  19432. 'A'
  19433. Predicate registers in register file A (A0-A2 on C64X and
  19434. higher, A1 and A2 otherwise).
  19435. 'B'
  19436. Predicate registers in register file B (B0-B2).
  19437. 'C'
  19438. A call-used register in register file B (B0-B9, B16-B31).
  19439. 'Da'
  19440. Register file A, excluding predicate registers (A3-A31, plus
  19441. A0 if not C64X or higher).
  19442. 'Db'
  19443. Register file B, excluding predicate registers (B3-B31).
  19444. 'Iu4'
  19445. Integer constant in the range 0 ... 15.
  19446. 'Iu5'
  19447. Integer constant in the range 0 ... 31.
  19448. 'In5'
  19449. Integer constant in the range -31 ... 0.
  19450. 'Is5'
  19451. Integer constant in the range -16 ... 15.
  19452. 'I5x'
  19453. Integer constant that can be the operand of an ADDA or a SUBA
  19454. insn.
  19455. 'IuB'
  19456. Integer constant in the range 0 ... 65535.
  19457. 'IsB'
  19458. Integer constant in the range -32768 ... 32767.
  19459. 'IsC'
  19460. Integer constant in the range -2^{20} ... 2^{20} - 1.
  19461. 'Jc'
  19462. Integer constant that is a valid mask for the clr instruction.
  19463. 'Js'
  19464. Integer constant that is a valid mask for the set instruction.
  19465. 'Q'
  19466. Memory location with A base register.
  19467. 'R'
  19468. Memory location with B base register.
  19469. 'S0'
  19470. On C64x+ targets, a GP-relative small data reference.
  19471. 'S1'
  19472. Any kind of 'SYMBOL_REF', for use in a call address.
  19473. 'Si'
  19474. Any kind of immediate operand, unless it matches the S0
  19475. constraint.
  19476. 'T'
  19477. Memory location with B base register, but not using a long
  19478. offset.
  19479. 'W'
  19480. A memory operand with an address that cannot be used in an
  19481. unaligned access.
  19482. 'Z'
  19483. Register B14 (aka DP).
  19484. _TILE-Gx--'config/tilegx/constraints.md'_
  19485. 'R00'
  19486. 'R01'
  19487. 'R02'
  19488. 'R03'
  19489. 'R04'
  19490. 'R05'
  19491. 'R06'
  19492. 'R07'
  19493. 'R08'
  19494. 'R09'
  19495. 'R10'
  19496. Each of these represents a register constraint for an
  19497. individual register, from r0 to r10.
  19498. 'I'
  19499. Signed 8-bit integer constant.
  19500. 'J'
  19501. Signed 16-bit integer constant.
  19502. 'K'
  19503. Unsigned 16-bit integer constant.
  19504. 'L'
  19505. Integer constant that fits in one signed byte when incremented
  19506. by one (-129 ... 126).
  19507. 'm'
  19508. Memory operand. If used together with '<' or '>', the operand
  19509. can have postincrement which requires printing with '%In' and
  19510. '%in' on TILE-Gx. For example:
  19511. asm ("st_add %I0,%1,%i0" : "=m<>" (*mem) : "r" (val));
  19512. 'M'
  19513. A bit mask suitable for the BFINS instruction.
  19514. 'N'
  19515. Integer constant that is a byte tiled out eight times.
  19516. 'O'
  19517. The integer zero constant.
  19518. 'P'
  19519. Integer constant that is a sign-extended byte tiled out as
  19520. four shorts.
  19521. 'Q'
  19522. Integer constant that fits in one signed byte when incremented
  19523. (-129 ... 126), but excluding -1.
  19524. 'S'
  19525. Integer constant that has all 1 bits consecutive and starting
  19526. at bit 0.
  19527. 'T'
  19528. A 16-bit fragment of a got, tls, or pc-relative reference.
  19529. 'U'
  19530. Memory operand except postincrement. This is roughly the same
  19531. as 'm' when not used together with '<' or '>'.
  19532. 'W'
  19533. An 8-element vector constant with identical elements.
  19534. 'Y'
  19535. A 4-element vector constant with identical elements.
  19536. 'Z0'
  19537. The integer constant 0xffffffff.
  19538. 'Z1'
  19539. The integer constant 0xffffffff00000000.
  19540. _TILEPro--'config/tilepro/constraints.md'_
  19541. 'R00'
  19542. 'R01'
  19543. 'R02'
  19544. 'R03'
  19545. 'R04'
  19546. 'R05'
  19547. 'R06'
  19548. 'R07'
  19549. 'R08'
  19550. 'R09'
  19551. 'R10'
  19552. Each of these represents a register constraint for an
  19553. individual register, from r0 to r10.
  19554. 'I'
  19555. Signed 8-bit integer constant.
  19556. 'J'
  19557. Signed 16-bit integer constant.
  19558. 'K'
  19559. Nonzero integer constant with low 16 bits zero.
  19560. 'L'
  19561. Integer constant that fits in one signed byte when incremented
  19562. by one (-129 ... 126).
  19563. 'm'
  19564. Memory operand. If used together with '<' or '>', the operand
  19565. can have postincrement which requires printing with '%In' and
  19566. '%in' on TILEPro. For example:
  19567. asm ("swadd %I0,%1,%i0" : "=m<>" (mem) : "r" (val));
  19568. 'M'
  19569. A bit mask suitable for the MM instruction.
  19570. 'N'
  19571. Integer constant that is a byte tiled out four times.
  19572. 'O'
  19573. The integer zero constant.
  19574. 'P'
  19575. Integer constant that is a sign-extended byte tiled out as two
  19576. shorts.
  19577. 'Q'
  19578. Integer constant that fits in one signed byte when incremented
  19579. (-129 ... 126), but excluding -1.
  19580. 'T'
  19581. A symbolic operand, or a 16-bit fragment of a got, tls, or
  19582. pc-relative reference.
  19583. 'U'
  19584. Memory operand except postincrement. This is roughly the same
  19585. as 'm' when not used together with '<' or '>'.
  19586. 'W'
  19587. A 4-element vector constant with identical elements.
  19588. 'Y'
  19589. A 2-element vector constant with identical elements.
  19590. _Visium--'config/visium/constraints.md'_
  19591. 'b'
  19592. EAM register 'mdb'
  19593. 'c'
  19594. EAM register 'mdc'
  19595. 'f'
  19596. Floating point register
  19597. 'k'
  19598. Register for sibcall optimization
  19599. 'l'
  19600. General register, but not 'r29', 'r30' and 'r31'
  19601. 't'
  19602. Register 'r1'
  19603. 'u'
  19604. Register 'r2'
  19605. 'v'
  19606. Register 'r3'
  19607. 'G'
  19608. Floating-point constant 0.0
  19609. 'J'
  19610. Integer constant in the range 0 .. 65535 (16-bit immediate)
  19611. 'K'
  19612. Integer constant in the range 1 .. 31 (5-bit immediate)
  19613. 'L'
  19614. Integer constant in the range -65535 .. -1 (16-bit negative
  19615. immediate)
  19616. 'M'
  19617. Integer constant -1
  19618. 'O'
  19619. Integer constant 0
  19620. 'P'
  19621. Integer constant 32
  19622. _x86 family--'config/i386/constraints.md'_
  19623. 'R'
  19624. Legacy register--the eight integer registers available on all
  19625. i386 processors ('a', 'b', 'c', 'd', 'si', 'di', 'bp', 'sp').
  19626. 'q'
  19627. Any register accessible as 'Rl'. In 32-bit mode, 'a', 'b',
  19628. 'c', and 'd'; in 64-bit mode, any integer register.
  19629. 'Q'
  19630. Any register accessible as 'Rh': 'a', 'b', 'c', and 'd'.
  19631. 'l'
  19632. Any register that can be used as the index in a base+index
  19633. memory access: that is, any general register except the stack
  19634. pointer.
  19635. 'a'
  19636. The 'a' register.
  19637. 'b'
  19638. The 'b' register.
  19639. 'c'
  19640. The 'c' register.
  19641. 'd'
  19642. The 'd' register.
  19643. 'S'
  19644. The 'si' register.
  19645. 'D'
  19646. The 'di' register.
  19647. 'A'
  19648. The 'a' and 'd' registers. This class is used for
  19649. instructions that return double word results in the 'ax:dx'
  19650. register pair. Single word values will be allocated either in
  19651. 'ax' or 'dx'. For example on i386 the following implements
  19652. 'rdtsc':
  19653. unsigned long long rdtsc (void)
  19654. {
  19655. unsigned long long tick;
  19656. __asm__ __volatile__("rdtsc":"=A"(tick));
  19657. return tick;
  19658. }
  19659. This is not correct on x86-64 as it would allocate tick in
  19660. either 'ax' or 'dx'. You have to use the following variant
  19661. instead:
  19662. unsigned long long rdtsc (void)
  19663. {
  19664. unsigned int tickl, tickh;
  19665. __asm__ __volatile__("rdtsc":"=a"(tickl),"=d"(tickh));
  19666. return ((unsigned long long)tickh << 32)|tickl;
  19667. }
  19668. 'U'
  19669. The call-clobbered integer registers.
  19670. 'f'
  19671. Any 80387 floating-point (stack) register.
  19672. 't'
  19673. Top of 80387 floating-point stack ('%st(0)').
  19674. 'u'
  19675. Second from top of 80387 floating-point stack ('%st(1)').
  19676. 'Yk'
  19677. Any mask register that can be used as a predicate, i.e.
  19678. 'k1-k7'.
  19679. 'k'
  19680. Any mask register.
  19681. 'y'
  19682. Any MMX register.
  19683. 'x'
  19684. Any SSE register.
  19685. 'v'
  19686. Any EVEX encodable SSE register ('%xmm0-%xmm31').
  19687. 'w'
  19688. Any bound register.
  19689. 'Yz'
  19690. First SSE register ('%xmm0').
  19691. 'Yi'
  19692. Any SSE register, when SSE2 and inter-unit moves are enabled.
  19693. 'Yj'
  19694. Any SSE register, when SSE2 and inter-unit moves from vector
  19695. registers are enabled.
  19696. 'Ym'
  19697. Any MMX register, when inter-unit moves are enabled.
  19698. 'Yn'
  19699. Any MMX register, when inter-unit moves from vector registers
  19700. are enabled.
  19701. 'Yp'
  19702. Any integer register when 'TARGET_PARTIAL_REG_STALL' is
  19703. disabled.
  19704. 'Ya'
  19705. Any integer register when zero extensions with 'AND' are
  19706. disabled.
  19707. 'Yb'
  19708. Any register that can be used as the GOT base when calling
  19709. '___tls_get_addr': that is, any general register except 'a'
  19710. and 'sp' registers, for '-fno-plt' if linker supports it.
  19711. Otherwise, 'b' register.
  19712. 'Yf'
  19713. Any x87 register when 80387 floating-point arithmetic is
  19714. enabled.
  19715. 'Yr'
  19716. Lower SSE register when avoiding REX prefix and all SSE
  19717. registers otherwise.
  19718. 'Yv'
  19719. For AVX512VL, any EVEX-encodable SSE register
  19720. ('%xmm0-%xmm31'), otherwise any SSE register.
  19721. 'Yh'
  19722. Any EVEX-encodable SSE register, that has number factor of
  19723. four.
  19724. 'Bf'
  19725. Flags register operand.
  19726. 'Bg'
  19727. GOT memory operand.
  19728. 'Bm'
  19729. Vector memory operand.
  19730. 'Bc'
  19731. Constant memory operand.
  19732. 'Bn'
  19733. Memory operand without REX prefix.
  19734. 'Bs'
  19735. Sibcall memory operand.
  19736. 'Bw'
  19737. Call memory operand.
  19738. 'Bz'
  19739. Constant call address operand.
  19740. 'BC'
  19741. SSE constant -1 operand.
  19742. 'I'
  19743. Integer constant in the range 0 ... 31, for 32-bit shifts.
  19744. 'J'
  19745. Integer constant in the range 0 ... 63, for 64-bit shifts.
  19746. 'K'
  19747. Signed 8-bit integer constant.
  19748. 'L'
  19749. '0xFF' or '0xFFFF', for andsi as a zero-extending move.
  19750. 'M'
  19751. 0, 1, 2, or 3 (shifts for the 'lea' instruction).
  19752. 'N'
  19753. Unsigned 8-bit integer constant (for 'in' and 'out'
  19754. instructions).
  19755. 'O'
  19756. Integer constant in the range 0 ... 127, for 128-bit shifts.
  19757. 'G'
  19758. Standard 80387 floating point constant.
  19759. 'C'
  19760. SSE constant zero operand.
  19761. 'e'
  19762. 32-bit signed integer constant, or a symbolic reference known
  19763. to fit that range (for immediate operands in sign-extending
  19764. x86-64 instructions).
  19765. 'We'
  19766. 32-bit signed integer constant, or a symbolic reference known
  19767. to fit that range (for sign-extending conversion operations
  19768. that require non-'VOIDmode' immediate operands).
  19769. 'Wz'
  19770. 32-bit unsigned integer constant, or a symbolic reference
  19771. known to fit that range (for zero-extending conversion
  19772. operations that require non-'VOIDmode' immediate operands).
  19773. 'Wd'
  19774. 128-bit integer constant where both the high and low 64-bit
  19775. word satisfy the 'e' constraint.
  19776. 'Z'
  19777. 32-bit unsigned integer constant, or a symbolic reference
  19778. known to fit that range (for immediate operands in
  19779. zero-extending x86-64 instructions).
  19780. 'Tv'
  19781. VSIB address operand.
  19782. 'Ts'
  19783. Address operand without segment register.
  19784. _Xstormy16--'config/stormy16/stormy16.h'_
  19785. 'a'
  19786. Register r0.
  19787. 'b'
  19788. Register r1.
  19789. 'c'
  19790. Register r2.
  19791. 'd'
  19792. Register r8.
  19793. 'e'
  19794. Registers r0 through r7.
  19795. 't'
  19796. Registers r0 and r1.
  19797. 'y'
  19798. The carry register.
  19799. 'z'
  19800. Registers r8 and r9.
  19801. 'I'
  19802. A constant between 0 and 3 inclusive.
  19803. 'J'
  19804. A constant that has exactly one bit set.
  19805. 'K'
  19806. A constant that has exactly one bit clear.
  19807. 'L'
  19808. A constant between 0 and 255 inclusive.
  19809. 'M'
  19810. A constant between -255 and 0 inclusive.
  19811. 'N'
  19812. A constant between -3 and 0 inclusive.
  19813. 'O'
  19814. A constant between 1 and 4 inclusive.
  19815. 'P'
  19816. A constant between -4 and -1 inclusive.
  19817. 'Q'
  19818. A memory reference that is a stack push.
  19819. 'R'
  19820. A memory reference that is a stack pop.
  19821. 'S'
  19822. A memory reference that refers to a constant address of known
  19823. value.
  19824. 'T'
  19825. The register indicated by Rx (not implemented yet).
  19826. 'U'
  19827. A constant that is not between 2 and 15 inclusive.
  19828. 'Z'
  19829. The constant 0.
  19830. _Xtensa--'config/xtensa/constraints.md'_
  19831. 'a'
  19832. General-purpose 32-bit register
  19833. 'b'
  19834. One-bit boolean register
  19835. 'A'
  19836. MAC16 40-bit accumulator register
  19837. 'I'
  19838. Signed 12-bit integer constant, for use in MOVI instructions
  19839. 'J'
  19840. Signed 8-bit integer constant, for use in ADDI instructions
  19841. 'K'
  19842. Integer constant valid for BccI instructions
  19843. 'L'
  19844. Unsigned constant valid for BccUI instructions
  19845. 
  19846. File: gccint.info, Node: Disable Insn Alternatives, Next: Define Constraints, Prev: Machine Constraints, Up: Constraints
  19847. 17.8.6 Disable insn alternatives using the 'enabled' attribute
  19848. --------------------------------------------------------------
  19849. There are three insn attributes that may be used to selectively disable
  19850. instruction alternatives:
  19851. 'enabled'
  19852. Says whether an alternative is available on the current subtarget.
  19853. 'preferred_for_size'
  19854. Says whether an enabled alternative should be used in code that is
  19855. optimized for size.
  19856. 'preferred_for_speed'
  19857. Says whether an enabled alternative should be used in code that is
  19858. optimized for speed.
  19859. All these attributes should use '(const_int 1)' to allow an alternative
  19860. or '(const_int 0)' to disallow it. The attributes must be a static
  19861. property of the subtarget; they cannot for example depend on the current
  19862. operands, on the current optimization level, on the location of the insn
  19863. within the body of a loop, on whether register allocation has finished,
  19864. or on the current compiler pass.
  19865. The 'enabled' attribute is a correctness property. It tells GCC to act
  19866. as though the disabled alternatives were never defined in the first
  19867. place. This is useful when adding new instructions to an existing
  19868. pattern in cases where the new instructions are only available for
  19869. certain cpu architecture levels (typically mapped to the '-march='
  19870. command-line option).
  19871. In contrast, the 'preferred_for_size' and 'preferred_for_speed'
  19872. attributes are strong optimization hints rather than correctness
  19873. properties. 'preferred_for_size' tells GCC which alternatives to
  19874. consider when adding or modifying an instruction that GCC wants to
  19875. optimize for size. 'preferred_for_speed' does the same thing for speed.
  19876. Note that things like code motion can lead to cases where code optimized
  19877. for size uses alternatives that are not preferred for size, and
  19878. similarly for speed.
  19879. Although 'define_insn's can in principle specify the 'enabled'
  19880. attribute directly, it is often clearer to have subsiduary attributes
  19881. for each architectural feature of interest. The 'define_insn's can then
  19882. use these subsiduary attributes to say which alternatives require which
  19883. features. The example below does this for 'cpu_facility'.
  19884. E.g. the following two patterns could easily be merged using the
  19885. 'enabled' attribute:
  19886. (define_insn "*movdi_old"
  19887. [(set (match_operand:DI 0 "register_operand" "=d")
  19888. (match_operand:DI 1 "register_operand" " d"))]
  19889. "!TARGET_NEW"
  19890. "lgr %0,%1")
  19891. (define_insn "*movdi_new"
  19892. [(set (match_operand:DI 0 "register_operand" "=d,f,d")
  19893. (match_operand:DI 1 "register_operand" " d,d,f"))]
  19894. "TARGET_NEW"
  19895. "@
  19896. lgr %0,%1
  19897. ldgr %0,%1
  19898. lgdr %0,%1")
  19899. to:
  19900. (define_insn "*movdi_combined"
  19901. [(set (match_operand:DI 0 "register_operand" "=d,f,d")
  19902. (match_operand:DI 1 "register_operand" " d,d,f"))]
  19903. ""
  19904. "@
  19905. lgr %0,%1
  19906. ldgr %0,%1
  19907. lgdr %0,%1"
  19908. [(set_attr "cpu_facility" "*,new,new")])
  19909. with the 'enabled' attribute defined like this:
  19910. (define_attr "cpu_facility" "standard,new" (const_string "standard"))
  19911. (define_attr "enabled" ""
  19912. (cond [(eq_attr "cpu_facility" "standard") (const_int 1)
  19913. (and (eq_attr "cpu_facility" "new")
  19914. (ne (symbol_ref "TARGET_NEW") (const_int 0)))
  19915. (const_int 1)]
  19916. (const_int 0)))
  19917. 
  19918. File: gccint.info, Node: Define Constraints, Next: C Constraint Interface, Prev: Disable Insn Alternatives, Up: Constraints
  19919. 17.8.7 Defining Machine-Specific Constraints
  19920. --------------------------------------------
  19921. Machine-specific constraints fall into two categories: register and
  19922. non-register constraints. Within the latter category, constraints which
  19923. allow subsets of all possible memory or address operands should be
  19924. specially marked, to give 'reload' more information.
  19925. Machine-specific constraints can be given names of arbitrary length,
  19926. but they must be entirely composed of letters, digits, underscores
  19927. ('_'), and angle brackets ('< >'). Like C identifiers, they must begin
  19928. with a letter or underscore.
  19929. In order to avoid ambiguity in operand constraint strings, no
  19930. constraint can have a name that begins with any other constraint's name.
  19931. For example, if 'x' is defined as a constraint name, 'xy' may not be,
  19932. and vice versa. As a consequence of this rule, no constraint may begin
  19933. with one of the generic constraint letters: 'E F V X g i m n o p r s'.
  19934. Register constraints correspond directly to register classes. *Note
  19935. Register Classes::. There is thus not much flexibility in their
  19936. definitions.
  19937. -- MD Expression: define_register_constraint name regclass docstring
  19938. All three arguments are string constants. NAME is the name of the
  19939. constraint, as it will appear in 'match_operand' expressions. If
  19940. NAME is a multi-letter constraint its length shall be the same for
  19941. all constraints starting with the same letter. REGCLASS can be
  19942. either the name of the corresponding register class (*note Register
  19943. Classes::), or a C expression which evaluates to the appropriate
  19944. register class. If it is an expression, it must have no side
  19945. effects, and it cannot look at the operand. The usual use of
  19946. expressions is to map some register constraints to 'NO_REGS' when
  19947. the register class is not available on a given subarchitecture.
  19948. DOCSTRING is a sentence documenting the meaning of the constraint.
  19949. Docstrings are explained further below.
  19950. Non-register constraints are more like predicates: the constraint
  19951. definition gives a boolean expression which indicates whether the
  19952. constraint matches.
  19953. -- MD Expression: define_constraint name docstring exp
  19954. The NAME and DOCSTRING arguments are the same as for
  19955. 'define_register_constraint', but note that the docstring comes
  19956. immediately after the name for these expressions. EXP is an RTL
  19957. expression, obeying the same rules as the RTL expressions in
  19958. predicate definitions. *Note Defining Predicates::, for details.
  19959. If it evaluates true, the constraint matches; if it evaluates
  19960. false, it doesn't. Constraint expressions should indicate which
  19961. RTL codes they might match, just like predicate expressions.
  19962. 'match_test' C expressions have access to the following variables:
  19963. OP
  19964. The RTL object defining the operand.
  19965. MODE
  19966. The machine mode of OP.
  19967. IVAL
  19968. 'INTVAL (OP)', if OP is a 'const_int'.
  19969. HVAL
  19970. 'CONST_DOUBLE_HIGH (OP)', if OP is an integer 'const_double'.
  19971. LVAL
  19972. 'CONST_DOUBLE_LOW (OP)', if OP is an integer 'const_double'.
  19973. RVAL
  19974. 'CONST_DOUBLE_REAL_VALUE (OP)', if OP is a floating-point
  19975. 'const_double'.
  19976. The *VAL variables should only be used once another piece of the
  19977. expression has verified that OP is the appropriate kind of RTL
  19978. object.
  19979. Most non-register constraints should be defined with
  19980. 'define_constraint'. The remaining two definition expressions are only
  19981. appropriate for constraints that should be handled specially by 'reload'
  19982. if they fail to match.
  19983. -- MD Expression: define_memory_constraint name docstring exp
  19984. Use this expression for constraints that match a subset of all
  19985. memory operands: that is, 'reload' can make them match by
  19986. converting the operand to the form '(mem (reg X))', where X is a
  19987. base register (from the register class specified by
  19988. 'BASE_REG_CLASS', *note Register Classes::).
  19989. For example, on the S/390, some instructions do not accept
  19990. arbitrary memory references, but only those that do not make use of
  19991. an index register. The constraint letter 'Q' is defined to
  19992. represent a memory address of this type. If 'Q' is defined with
  19993. 'define_memory_constraint', a 'Q' constraint can handle any memory
  19994. operand, because 'reload' knows it can simply copy the memory
  19995. address into a base register if required. This is analogous to the
  19996. way an 'o' constraint can handle any memory operand.
  19997. The syntax and semantics are otherwise identical to
  19998. 'define_constraint'.
  19999. -- MD Expression: define_special_memory_constraint name docstring exp
  20000. Use this expression for constraints that match a subset of all
  20001. memory operands: that is, 'reload' cannot make them match by
  20002. reloading the address as it is described for
  20003. 'define_memory_constraint' or such address reload is undesirable
  20004. with the performance point of view.
  20005. For example, 'define_special_memory_constraint' can be useful if
  20006. specifically aligned memory is necessary or desirable for some insn
  20007. operand.
  20008. The syntax and semantics are otherwise identical to
  20009. 'define_constraint'.
  20010. -- MD Expression: define_address_constraint name docstring exp
  20011. Use this expression for constraints that match a subset of all
  20012. address operands: that is, 'reload' can make the constraint match
  20013. by converting the operand to the form '(reg X)', again with X a
  20014. base register.
  20015. Constraints defined with 'define_address_constraint' can only be
  20016. used with the 'address_operand' predicate, or machine-specific
  20017. predicates that work the same way. They are treated analogously to
  20018. the generic 'p' constraint.
  20019. The syntax and semantics are otherwise identical to
  20020. 'define_constraint'.
  20021. For historical reasons, names beginning with the letters 'G H' are
  20022. reserved for constraints that match only 'const_double's, and names
  20023. beginning with the letters 'I J K L M N O P' are reserved for
  20024. constraints that match only 'const_int's. This may change in the
  20025. future. For the time being, constraints with these names must be
  20026. written in a stylized form, so that 'genpreds' can tell you did it
  20027. correctly:
  20028. (define_constraint "[GHIJKLMNOP]..."
  20029. "DOC..."
  20030. (and (match_code "const_int") ; 'const_double' for G/H
  20031. CONDITION...)) ; usually a 'match_test'
  20032. It is fine to use names beginning with other letters for constraints
  20033. that match 'const_double's or 'const_int's.
  20034. Each docstring in a constraint definition should be one or more
  20035. complete sentences, marked up in Texinfo format. _They are currently
  20036. unused._ In the future they will be copied into the GCC manual, in
  20037. *note Machine Constraints::, replacing the hand-maintained tables
  20038. currently found in that section. Also, in the future the compiler may
  20039. use this to give more helpful diagnostics when poor choice of 'asm'
  20040. constraints causes a reload failure.
  20041. If you put the pseudo-Texinfo directive '@internal' at the beginning of
  20042. a docstring, then (in the future) it will appear only in the internals
  20043. manual's version of the machine-specific constraint tables. Use this
  20044. for constraints that should not appear in 'asm' statements.
  20045. 
  20046. File: gccint.info, Node: C Constraint Interface, Prev: Define Constraints, Up: Constraints
  20047. 17.8.8 Testing constraints from C
  20048. ---------------------------------
  20049. It is occasionally useful to test a constraint from C code rather than
  20050. implicitly via the constraint string in a 'match_operand'. The
  20051. generated file 'tm_p.h' declares a few interfaces for working with
  20052. constraints. At present these are defined for all constraints except
  20053. 'g' (which is equivalent to 'general_operand').
  20054. Some valid constraint names are not valid C identifiers, so there is a
  20055. mangling scheme for referring to them from C. Constraint names that do
  20056. not contain angle brackets or underscores are left unchanged.
  20057. Underscores are doubled, each '<' is replaced with '_l', and each '>'
  20058. with '_g'. Here are some examples:
  20059. *Original* *Mangled*
  20060. x x
  20061. P42x P42x
  20062. P4_x P4__x
  20063. P4>x P4_gx
  20064. P4>> P4_g_g
  20065. P4_g> P4__g_g
  20066. Throughout this section, the variable C is either a constraint in the
  20067. abstract sense, or a constant from 'enum constraint_num'; the variable M
  20068. is a mangled constraint name (usually as part of a larger identifier).
  20069. -- Enum: constraint_num
  20070. For each constraint except 'g', there is a corresponding
  20071. enumeration constant: 'CONSTRAINT_' plus the mangled name of the
  20072. constraint. Functions that take an 'enum constraint_num' as an
  20073. argument expect one of these constants.
  20074. -- Function: inline bool satisfies_constraint_M (rtx EXP)
  20075. For each non-register constraint M except 'g', there is one of
  20076. these functions; it returns 'true' if EXP satisfies the constraint.
  20077. These functions are only visible if 'rtl.h' was included before
  20078. 'tm_p.h'.
  20079. -- Function: bool constraint_satisfied_p (rtx EXP, enum constraint_num
  20080. C)
  20081. Like the 'satisfies_constraint_M' functions, but the constraint to
  20082. test is given as an argument, C. If C specifies a register
  20083. constraint, this function will always return 'false'.
  20084. -- Function: enum reg_class reg_class_for_constraint (enum
  20085. constraint_num C)
  20086. Returns the register class associated with C. If C is not a
  20087. register constraint, or those registers are not available for the
  20088. currently selected subtarget, returns 'NO_REGS'.
  20089. Here is an example use of 'satisfies_constraint_M'. In peephole
  20090. optimizations (*note Peephole Definitions::), operand constraint strings
  20091. are ignored, so if there are relevant constraints, they must be tested
  20092. in the C condition. In the example, the optimization is applied if
  20093. operand 2 does _not_ satisfy the 'K' constraint. (This is a simplified
  20094. version of a peephole definition from the i386 machine description.)
  20095. (define_peephole2
  20096. [(match_scratch:SI 3 "r")
  20097. (set (match_operand:SI 0 "register_operand" "")
  20098. (mult:SI (match_operand:SI 1 "memory_operand" "")
  20099. (match_operand:SI 2 "immediate_operand" "")))]
  20100. "!satisfies_constraint_K (operands[2])"
  20101. [(set (match_dup 3) (match_dup 1))
  20102. (set (match_dup 0) (mult:SI (match_dup 3) (match_dup 2)))]
  20103. "")
  20104. 
  20105. File: gccint.info, Node: Standard Names, Next: Pattern Ordering, Prev: Constraints, Up: Machine Desc
  20106. 17.9 Standard Pattern Names For Generation
  20107. ==========================================
  20108. Here is a table of the instruction names that are meaningful in the RTL
  20109. generation pass of the compiler. Giving one of these names to an
  20110. instruction pattern tells the RTL generation pass that it can use the
  20111. pattern to accomplish a certain task.
  20112. 'movM'
  20113. Here M stands for a two-letter machine mode name, in lowercase.
  20114. This instruction pattern moves data with that machine mode from
  20115. operand 1 to operand 0. For example, 'movsi' moves full-word data.
  20116. If operand 0 is a 'subreg' with mode M of a register whose own mode
  20117. is wider than M, the effect of this instruction is to store the
  20118. specified value in the part of the register that corresponds to
  20119. mode M. Bits outside of M, but which are within the same target
  20120. word as the 'subreg' are undefined. Bits which are outside the
  20121. target word are left unchanged.
  20122. This class of patterns is special in several ways. First of all,
  20123. each of these names up to and including full word size _must_ be
  20124. defined, because there is no other way to copy a datum from one
  20125. place to another. If there are patterns accepting operands in
  20126. larger modes, 'movM' must be defined for integer modes of those
  20127. sizes.
  20128. Second, these patterns are not used solely in the RTL generation
  20129. pass. Even the reload pass can generate move insns to copy values
  20130. from stack slots into temporary registers. When it does so, one of
  20131. the operands is a hard register and the other is an operand that
  20132. can need to be reloaded into a register.
  20133. Therefore, when given such a pair of operands, the pattern must
  20134. generate RTL which needs no reloading and needs no temporary
  20135. registers--no registers other than the operands. For example, if
  20136. you support the pattern with a 'define_expand', then in such a case
  20137. the 'define_expand' mustn't call 'force_reg' or any other such
  20138. function which might generate new pseudo registers.
  20139. This requirement exists even for subword modes on a RISC machine
  20140. where fetching those modes from memory normally requires several
  20141. insns and some temporary registers.
  20142. During reload a memory reference with an invalid address may be
  20143. passed as an operand. Such an address will be replaced with a
  20144. valid address later in the reload pass. In this case, nothing may
  20145. be done with the address except to use it as it stands. If it is
  20146. copied, it will not be replaced with a valid address. No attempt
  20147. should be made to make such an address into a valid address and no
  20148. routine (such as 'change_address') that will do so may be called.
  20149. Note that 'general_operand' will fail when applied to such an
  20150. address.
  20151. The global variable 'reload_in_progress' (which must be explicitly
  20152. declared if required) can be used to determine whether such special
  20153. handling is required.
  20154. The variety of operands that have reloads depends on the rest of
  20155. the machine description, but typically on a RISC machine these can
  20156. only be pseudo registers that did not get hard registers, while on
  20157. other machines explicit memory references will get optional
  20158. reloads.
  20159. If a scratch register is required to move an object to or from
  20160. memory, it can be allocated using 'gen_reg_rtx' prior to life
  20161. analysis.
  20162. If there are cases which need scratch registers during or after
  20163. reload, you must provide an appropriate secondary_reload target
  20164. hook.
  20165. The macro 'can_create_pseudo_p' can be used to determine if it is
  20166. unsafe to create new pseudo registers. If this variable is
  20167. nonzero, then it is unsafe to call 'gen_reg_rtx' to allocate a new
  20168. pseudo.
  20169. The constraints on a 'movM' must permit moving any hard register to
  20170. any other hard register provided that 'TARGET_HARD_REGNO_MODE_OK'
  20171. permits mode M in both registers and 'TARGET_REGISTER_MOVE_COST'
  20172. applied to their classes returns a value of 2.
  20173. It is obligatory to support floating point 'movM' instructions into
  20174. and out of any registers that can hold fixed point values, because
  20175. unions and structures (which have modes 'SImode' or 'DImode') can
  20176. be in those registers and they may have floating point members.
  20177. There may also be a need to support fixed point 'movM' instructions
  20178. in and out of floating point registers. Unfortunately, I have
  20179. forgotten why this was so, and I don't know whether it is still
  20180. true. If 'TARGET_HARD_REGNO_MODE_OK' rejects fixed point values in
  20181. floating point registers, then the constraints of the fixed point
  20182. 'movM' instructions must be designed to avoid ever trying to reload
  20183. into a floating point register.
  20184. 'reload_inM'
  20185. 'reload_outM'
  20186. These named patterns have been obsoleted by the target hook
  20187. 'secondary_reload'.
  20188. Like 'movM', but used when a scratch register is required to move
  20189. between operand 0 and operand 1. Operand 2 describes the scratch
  20190. register. See the discussion of the 'SECONDARY_RELOAD_CLASS' macro
  20191. in *note Register Classes::.
  20192. There are special restrictions on the form of the 'match_operand's
  20193. used in these patterns. First, only the predicate for the reload
  20194. operand is examined, i.e., 'reload_in' examines operand 1, but not
  20195. the predicates for operand 0 or 2. Second, there may be only one
  20196. alternative in the constraints. Third, only a single register
  20197. class letter may be used for the constraint; subsequent constraint
  20198. letters are ignored. As a special exception, an empty constraint
  20199. string matches the 'ALL_REGS' register class. This may relieve
  20200. ports of the burden of defining an 'ALL_REGS' constraint letter
  20201. just for these patterns.
  20202. 'movstrictM'
  20203. Like 'movM' except that if operand 0 is a 'subreg' with mode M of a
  20204. register whose natural mode is wider, the 'movstrictM' instruction
  20205. is guaranteed not to alter any of the register except the part
  20206. which belongs to mode M.
  20207. 'movmisalignM'
  20208. This variant of a move pattern is designed to load or store a value
  20209. from a memory address that is not naturally aligned for its mode.
  20210. For a store, the memory will be in operand 0; for a load, the
  20211. memory will be in operand 1. The other operand is guaranteed not
  20212. to be a memory, so that it's easy to tell whether this is a load or
  20213. store.
  20214. This pattern is used by the autovectorizer, and when expanding a
  20215. 'MISALIGNED_INDIRECT_REF' expression.
  20216. 'load_multiple'
  20217. Load several consecutive memory locations into consecutive
  20218. registers. Operand 0 is the first of the consecutive registers,
  20219. operand 1 is the first memory location, and operand 2 is a
  20220. constant: the number of consecutive registers.
  20221. Define this only if the target machine really has such an
  20222. instruction; do not define this if the most efficient way of
  20223. loading consecutive registers from memory is to do them one at a
  20224. time.
  20225. On some machines, there are restrictions as to which consecutive
  20226. registers can be stored into memory, such as particular starting or
  20227. ending register numbers or only a range of valid counts. For those
  20228. machines, use a 'define_expand' (*note Expander Definitions::) and
  20229. make the pattern fail if the restrictions are not met.
  20230. Write the generated insn as a 'parallel' with elements being a
  20231. 'set' of one register from the appropriate memory location (you may
  20232. also need 'use' or 'clobber' elements). Use a 'match_parallel'
  20233. (*note RTL Template::) to recognize the insn. See 'rs6000.md' for
  20234. examples of the use of this insn pattern.
  20235. 'store_multiple'
  20236. Similar to 'load_multiple', but store several consecutive registers
  20237. into consecutive memory locations. Operand 0 is the first of the
  20238. consecutive memory locations, operand 1 is the first register, and
  20239. operand 2 is a constant: the number of consecutive registers.
  20240. 'vec_load_lanesMN'
  20241. Perform an interleaved load of several vectors from memory operand
  20242. 1 into register operand 0. Both operands have mode M. The
  20243. register operand is viewed as holding consecutive vectors of mode
  20244. N, while the memory operand is a flat array that contains the same
  20245. number of elements. The operation is equivalent to:
  20246. int c = GET_MODE_SIZE (M) / GET_MODE_SIZE (N);
  20247. for (j = 0; j < GET_MODE_NUNITS (N); j++)
  20248. for (i = 0; i < c; i++)
  20249. operand0[i][j] = operand1[j * c + i];
  20250. For example, 'vec_load_lanestiv4hi' loads 8 16-bit values from
  20251. memory into a register of mode 'TI'. The register contains two
  20252. consecutive vectors of mode 'V4HI'.
  20253. This pattern can only be used if:
  20254. TARGET_ARRAY_MODE_SUPPORTED_P (N, C)
  20255. is true. GCC assumes that, if a target supports this kind of
  20256. instruction for some mode N, it also supports unaligned loads for
  20257. vectors of mode N.
  20258. This pattern is not allowed to 'FAIL'.
  20259. 'vec_mask_load_lanesMN'
  20260. Like 'vec_load_lanesMN', but takes an additional mask operand
  20261. (operand 2) that specifies which elements of the destination
  20262. vectors should be loaded. Other elements of the destination
  20263. vectors are set to zero. The operation is equivalent to:
  20264. int c = GET_MODE_SIZE (M) / GET_MODE_SIZE (N);
  20265. for (j = 0; j < GET_MODE_NUNITS (N); j++)
  20266. if (operand2[j])
  20267. for (i = 0; i < c; i++)
  20268. operand0[i][j] = operand1[j * c + i];
  20269. else
  20270. for (i = 0; i < c; i++)
  20271. operand0[i][j] = 0;
  20272. This pattern is not allowed to 'FAIL'.
  20273. 'vec_store_lanesMN'
  20274. Equivalent to 'vec_load_lanesMN', with the memory and register
  20275. operands reversed. That is, the instruction is equivalent to:
  20276. int c = GET_MODE_SIZE (M) / GET_MODE_SIZE (N);
  20277. for (j = 0; j < GET_MODE_NUNITS (N); j++)
  20278. for (i = 0; i < c; i++)
  20279. operand0[j * c + i] = operand1[i][j];
  20280. for a memory operand 0 and register operand 1.
  20281. This pattern is not allowed to 'FAIL'.
  20282. 'vec_mask_store_lanesMN'
  20283. Like 'vec_store_lanesMN', but takes an additional mask operand
  20284. (operand 2) that specifies which elements of the source vectors
  20285. should be stored. The operation is equivalent to:
  20286. int c = GET_MODE_SIZE (M) / GET_MODE_SIZE (N);
  20287. for (j = 0; j < GET_MODE_NUNITS (N); j++)
  20288. if (operand2[j])
  20289. for (i = 0; i < c; i++)
  20290. operand0[j * c + i] = operand1[i][j];
  20291. This pattern is not allowed to 'FAIL'.
  20292. 'gather_loadMN'
  20293. Load several separate memory locations into a vector of mode M.
  20294. Operand 1 is a scalar base address and operand 2 is a vector of
  20295. mode N containing offsets from that base. Operand 0 is a
  20296. destination vector with the same number of elements as N. For each
  20297. element index I:
  20298. * extend the offset element I to address width, using zero
  20299. extension if operand 3 is 1 and sign extension if operand 3 is
  20300. zero;
  20301. * multiply the extended offset by operand 4;
  20302. * add the result to the base; and
  20303. * load the value at that address into element I of operand 0.
  20304. The value of operand 3 does not matter if the offsets are already
  20305. address width.
  20306. 'mask_gather_loadMN'
  20307. Like 'gather_loadMN', but takes an extra mask operand as operand 5.
  20308. Bit I of the mask is set if element I of the result should be
  20309. loaded from memory and clear if element I of the result should be
  20310. set to zero.
  20311. 'scatter_storeMN'
  20312. Store a vector of mode M into several distinct memory locations.
  20313. Operand 0 is a scalar base address and operand 1 is a vector of
  20314. mode N containing offsets from that base. Operand 4 is the vector
  20315. of values that should be stored, which has the same number of
  20316. elements as N. For each element index I:
  20317. * extend the offset element I to address width, using zero
  20318. extension if operand 2 is 1 and sign extension if operand 2 is
  20319. zero;
  20320. * multiply the extended offset by operand 3;
  20321. * add the result to the base; and
  20322. * store element I of operand 4 to that address.
  20323. The value of operand 2 does not matter if the offsets are already
  20324. address width.
  20325. 'mask_scatter_storeMN'
  20326. Like 'scatter_storeMN', but takes an extra mask operand as operand
  20327. 5. Bit I of the mask is set if element I of the result should be
  20328. stored to memory.
  20329. 'vec_setM'
  20330. Set given field in the vector value. Operand 0 is the vector to
  20331. modify, operand 1 is new value of field and operand 2 specify the
  20332. field index.
  20333. 'vec_extractMN'
  20334. Extract given field from the vector value. Operand 1 is the
  20335. vector, operand 2 specify field index and operand 0 place to store
  20336. value into. The N mode is the mode of the field or vector of
  20337. fields that should be extracted, should be either element mode of
  20338. the vector mode M, or a vector mode with the same element mode and
  20339. smaller number of elements. If N is a vector mode, the index is
  20340. counted in units of that mode.
  20341. 'vec_initMN'
  20342. Initialize the vector to given values. Operand 0 is the vector to
  20343. initialize and operand 1 is parallel containing values for
  20344. individual fields. The N mode is the mode of the elements, should
  20345. be either element mode of the vector mode M, or a vector mode with
  20346. the same element mode and smaller number of elements.
  20347. 'vec_duplicateM'
  20348. Initialize vector output operand 0 so that each element has the
  20349. value given by scalar input operand 1. The vector has mode M and
  20350. the scalar has the mode appropriate for one element of M.
  20351. This pattern only handles duplicates of non-constant inputs.
  20352. Constant vectors go through the 'movM' pattern instead.
  20353. This pattern is not allowed to 'FAIL'.
  20354. 'vec_seriesM'
  20355. Initialize vector output operand 0 so that element I is equal to
  20356. operand 1 plus I times operand 2. In other words, create a linear
  20357. series whose base value is operand 1 and whose step is operand 2.
  20358. The vector output has mode M and the scalar inputs have the mode
  20359. appropriate for one element of M. This pattern is not used for
  20360. floating-point vectors, in order to avoid having to specify the
  20361. rounding behavior for I > 1.
  20362. This pattern is not allowed to 'FAIL'.
  20363. 'while_ultMN'
  20364. Set operand 0 to a mask that is true while incrementing operand 1
  20365. gives a value that is less than operand 2. Operand 0 has mode N
  20366. and operands 1 and 2 are scalar integers of mode M. The operation
  20367. is equivalent to:
  20368. operand0[0] = operand1 < operand2;
  20369. for (i = 1; i < GET_MODE_NUNITS (N); i++)
  20370. operand0[i] = operand0[i - 1] && (operand1 + i < operand2);
  20371. 'check_raw_ptrsM'
  20372. Check whether, given two pointers A and B and a length LEN, a write
  20373. of LEN bytes at A followed by a read of LEN bytes at B can be split
  20374. into interleaved byte accesses 'A[0], B[0], A[1], B[1], ...'
  20375. without affecting the dependencies between the bytes. Set operand
  20376. 0 to true if the split is possible and false otherwise.
  20377. Operands 1, 2 and 3 provide the values of A, B and LEN
  20378. respectively. Operand 4 is a constant integer that provides the
  20379. known common alignment of A and B. All inputs have mode M.
  20380. This split is possible if:
  20381. A == B || A + LEN <= B || B + LEN <= A
  20382. You should only define this pattern if the target has a way of
  20383. accelerating the test without having to do the individual
  20384. comparisons.
  20385. 'check_war_ptrsM'
  20386. Like 'check_raw_ptrsM', but with the read and write swapped round.
  20387. The split is possible in this case if:
  20388. B <= A || A + LEN <= B
  20389. 'vec_cmpMN'
  20390. Output a vector comparison. Operand 0 of mode N is the destination
  20391. for predicate in operand 1 which is a signed vector comparison with
  20392. operands of mode M in operands 2 and 3. Predicate is computed by
  20393. element-wise evaluation of the vector comparison with a truth value
  20394. of all-ones and a false value of all-zeros.
  20395. 'vec_cmpuMN'
  20396. Similar to 'vec_cmpMN' but perform unsigned vector comparison.
  20397. 'vec_cmpeqMN'
  20398. Similar to 'vec_cmpMN' but perform equality or non-equality vector
  20399. comparison only. If 'vec_cmpMN' or 'vec_cmpuMN' instruction
  20400. pattern is supported, it will be preferred over 'vec_cmpeqMN', so
  20401. there is no need to define this instruction pattern if the others
  20402. are supported.
  20403. 'vcondMN'
  20404. Output a conditional vector move. Operand 0 is the destination to
  20405. receive a combination of operand 1 and operand 2, which are of mode
  20406. M, dependent on the outcome of the predicate in operand 3 which is
  20407. a signed vector comparison with operands of mode N in operands 4
  20408. and 5. The modes M and N should have the same size. Operand 0
  20409. will be set to the value OP1 & MSK | OP2 & ~MSK where MSK is
  20410. computed by element-wise evaluation of the vector comparison with a
  20411. truth value of all-ones and a false value of all-zeros.
  20412. 'vconduMN'
  20413. Similar to 'vcondMN' but performs unsigned vector comparison.
  20414. 'vcondeqMN'
  20415. Similar to 'vcondMN' but performs equality or non-equality vector
  20416. comparison only. If 'vcondMN' or 'vconduMN' instruction pattern is
  20417. supported, it will be preferred over 'vcondeqMN', so there is no
  20418. need to define this instruction pattern if the others are
  20419. supported.
  20420. 'vcond_mask_MN'
  20421. Similar to 'vcondMN' but operand 3 holds a pre-computed result of
  20422. vector comparison.
  20423. 'maskloadMN'
  20424. Perform a masked load of vector from memory operand 1 of mode M
  20425. into register operand 0. Mask is provided in register operand 2 of
  20426. mode N.
  20427. This pattern is not allowed to 'FAIL'.
  20428. 'maskstoreMN'
  20429. Perform a masked store of vector from register operand 1 of mode M
  20430. into memory operand 0. Mask is provided in register operand 2 of
  20431. mode N.
  20432. This pattern is not allowed to 'FAIL'.
  20433. 'vec_permM'
  20434. Output a (variable) vector permutation. Operand 0 is the
  20435. destination to receive elements from operand 1 and operand 2, which
  20436. are of mode M. Operand 3 is the "selector". It is an integral
  20437. mode vector of the same width and number of elements as mode M.
  20438. The input elements are numbered from 0 in operand 1 through 2*N-1
  20439. in operand 2. The elements of the selector must be computed modulo
  20440. 2*N. Note that if 'rtx_equal_p(operand1, operand2)', this can be
  20441. implemented with just operand 1 and selector elements modulo N.
  20442. In order to make things easy for a number of targets, if there is
  20443. no 'vec_perm' pattern for mode M, but there is for mode Q where Q
  20444. is a vector of 'QImode' of the same width as M, the middle-end will
  20445. lower the mode M 'VEC_PERM_EXPR' to mode Q.
  20446. See also 'TARGET_VECTORIZER_VEC_PERM_CONST', which performs the
  20447. analogous operation for constant selectors.
  20448. 'pushM1'
  20449. Output a push instruction. Operand 0 is value to push. Used only
  20450. when 'PUSH_ROUNDING' is defined. For historical reason, this
  20451. pattern may be missing and in such case an 'mov' expander is used
  20452. instead, with a 'MEM' expression forming the push operation. The
  20453. 'mov' expander method is deprecated.
  20454. 'addM3'
  20455. Add operand 2 and operand 1, storing the result in operand 0. All
  20456. operands must have mode M. This can be used even on two-address
  20457. machines, by means of constraints requiring operands 1 and 0 to be
  20458. the same location.
  20459. 'ssaddM3', 'usaddM3'
  20460. 'subM3', 'sssubM3', 'ussubM3'
  20461. 'mulM3', 'ssmulM3', 'usmulM3'
  20462. 'divM3', 'ssdivM3'
  20463. 'udivM3', 'usdivM3'
  20464. 'modM3', 'umodM3'
  20465. 'uminM3', 'umaxM3'
  20466. 'andM3', 'iorM3', 'xorM3'
  20467. Similar, for other arithmetic operations.
  20468. 'addvM4'
  20469. Like 'addM3' but takes a 'code_label' as operand 3 and emits code
  20470. to jump to it if signed overflow occurs during the addition. This
  20471. pattern is used to implement the built-in functions performing
  20472. signed integer addition with overflow checking.
  20473. 'subvM4', 'mulvM4'
  20474. Similar, for other signed arithmetic operations.
  20475. 'uaddvM4'
  20476. Like 'addvM4' but for unsigned addition. That is to say, the
  20477. operation is the same as signed addition but the jump is taken only
  20478. on unsigned overflow.
  20479. 'usubvM4', 'umulvM4'
  20480. Similar, for other unsigned arithmetic operations.
  20481. 'addptrM3'
  20482. Like 'addM3' but is guaranteed to only be used for address
  20483. calculations. The expanded code is not allowed to clobber the
  20484. condition code. It only needs to be defined if 'addM3' sets the
  20485. condition code. If adds used for address calculations and normal
  20486. adds are not compatible it is required to expand a distinct pattern
  20487. (e.g. using an unspec). The pattern is used by LRA to emit address
  20488. calculations. 'addM3' is used if 'addptrM3' is not defined.
  20489. 'fmaM4'
  20490. Multiply operand 2 and operand 1, then add operand 3, storing the
  20491. result in operand 0 without doing an intermediate rounding step.
  20492. All operands must have mode M. This pattern is used to implement
  20493. the 'fma', 'fmaf', and 'fmal' builtin functions from the ISO C99
  20494. standard.
  20495. 'fmsM4'
  20496. Like 'fmaM4', except operand 3 subtracted from the product instead
  20497. of added to the product. This is represented in the rtl as
  20498. (fma:M OP1 OP2 (neg:M OP3))
  20499. 'fnmaM4'
  20500. Like 'fmaM4' except that the intermediate product is negated before
  20501. being added to operand 3. This is represented in the rtl as
  20502. (fma:M (neg:M OP1) OP2 OP3)
  20503. 'fnmsM4'
  20504. Like 'fmsM4' except that the intermediate product is negated before
  20505. subtracting operand 3. This is represented in the rtl as
  20506. (fma:M (neg:M OP1) OP2 (neg:M OP3))
  20507. 'sminM3', 'smaxM3'
  20508. Signed minimum and maximum operations. When used with floating
  20509. point, if both operands are zeros, or if either operand is 'NaN',
  20510. then it is unspecified which of the two operands is returned as the
  20511. result.
  20512. 'fminM3', 'fmaxM3'
  20513. IEEE-conformant minimum and maximum operations. If one operand is
  20514. a quiet 'NaN', then the other operand is returned. If both
  20515. operands are quiet 'NaN', then a quiet 'NaN' is returned. In the
  20516. case when gcc supports signaling 'NaN' (-fsignaling-nans) an
  20517. invalid floating point exception is raised and a quiet 'NaN' is
  20518. returned.
  20519. All operands have mode M, which is a scalar or vector
  20520. floating-point mode. These patterns are not allowed to 'FAIL'.
  20521. 'reduc_smin_scal_M', 'reduc_smax_scal_M'
  20522. Find the signed minimum/maximum of the elements of a vector. The
  20523. vector is operand 1, and operand 0 is the scalar result, with mode
  20524. equal to the mode of the elements of the input vector.
  20525. 'reduc_umin_scal_M', 'reduc_umax_scal_M'
  20526. Find the unsigned minimum/maximum of the elements of a vector. The
  20527. vector is operand 1, and operand 0 is the scalar result, with mode
  20528. equal to the mode of the elements of the input vector.
  20529. 'reduc_plus_scal_M'
  20530. Compute the sum of the elements of a vector. The vector is operand
  20531. 1, and operand 0 is the scalar result, with mode equal to the mode
  20532. of the elements of the input vector.
  20533. 'reduc_and_scal_M'
  20534. 'reduc_ior_scal_M'
  20535. 'reduc_xor_scal_M'
  20536. Compute the bitwise 'AND'/'IOR'/'XOR' reduction of the elements of
  20537. a vector of mode M. Operand 1 is the vector input and operand 0 is
  20538. the scalar result. The mode of the scalar result is the same as
  20539. one element of M.
  20540. 'extract_last_M'
  20541. Find the last set bit in mask operand 1 and extract the associated
  20542. element of vector operand 2. Store the result in scalar operand 0.
  20543. Operand 2 has vector mode M while operand 0 has the mode
  20544. appropriate for one element of M. Operand 1 has the usual mask
  20545. mode for vectors of mode M; see 'TARGET_VECTORIZE_GET_MASK_MODE'.
  20546. 'fold_extract_last_M'
  20547. If any bits of mask operand 2 are set, find the last set bit,
  20548. extract the associated element from vector operand 3, and store the
  20549. result in operand 0. Store operand 1 in operand 0 otherwise.
  20550. Operand 3 has mode M and operands 0 and 1 have the mode appropriate
  20551. for one element of M. Operand 2 has the usual mask mode for
  20552. vectors of mode M; see 'TARGET_VECTORIZE_GET_MASK_MODE'.
  20553. 'fold_left_plus_M'
  20554. Take scalar operand 1 and successively add each element from vector
  20555. operand 2. Store the result in scalar operand 0. The vector has
  20556. mode M and the scalars have the mode appropriate for one element of
  20557. M. The operation is strictly in-order: there is no reassociation.
  20558. 'mask_fold_left_plus_M'
  20559. Like 'fold_left_plus_M', but takes an additional mask operand
  20560. (operand 3) that specifies which elements of the source vector
  20561. should be added.
  20562. 'sdot_prodM'
  20563. 'udot_prodM'
  20564. Compute the sum of the products of two signed/unsigned elements.
  20565. Operand 1 and operand 2 are of the same mode. Their product, which
  20566. is of a wider mode, is computed and added to operand 3. Operand 3
  20567. is of a mode equal or wider than the mode of the product. The
  20568. result is placed in operand 0, which is of the same mode as operand
  20569. 3.
  20570. 'ssadM'
  20571. 'usadM'
  20572. Compute the sum of absolute differences of two signed/unsigned
  20573. elements. Operand 1 and operand 2 are of the same mode. Their
  20574. absolute difference, which is of a wider mode, is computed and
  20575. added to operand 3. Operand 3 is of a mode equal or wider than the
  20576. mode of the absolute difference. The result is placed in operand
  20577. 0, which is of the same mode as operand 3.
  20578. 'widen_ssumM3'
  20579. 'widen_usumM3'
  20580. Operands 0 and 2 are of the same mode, which is wider than the mode
  20581. of operand 1. Add operand 1 to operand 2 and place the widened
  20582. result in operand 0. (This is used express accumulation of
  20583. elements into an accumulator of a wider mode.)
  20584. 'smulhsM3'
  20585. 'umulhsM3'
  20586. Signed/unsigned multiply high with scale. This is equivalent to
  20587. the C code:
  20588. narrow op0, op1, op2;
  20589. ...
  20590. op0 = (narrow) (((wide) op1 * (wide) op2) >> (N / 2 - 1));
  20591. where the sign of 'narrow' determines whether this is a signed or
  20592. unsigned operation, and N is the size of 'wide' in bits.
  20593. 'smulhrsM3'
  20594. 'umulhrsM3'
  20595. Signed/unsigned multiply high with round and scale. This is
  20596. equivalent to the C code:
  20597. narrow op0, op1, op2;
  20598. ...
  20599. op0 = (narrow) (((((wide) op1 * (wide) op2) >> (N / 2 - 2)) + 1) >> 1);
  20600. where the sign of 'narrow' determines whether this is a signed or
  20601. unsigned operation, and N is the size of 'wide' in bits.
  20602. 'sdiv_pow2M3'
  20603. 'sdiv_pow2M3'
  20604. Signed division by power-of-2 immediate. Equivalent to:
  20605. signed op0, op1;
  20606. ...
  20607. op0 = op1 / (1 << imm);
  20608. 'vec_shl_insert_M'
  20609. Shift the elements in vector input operand 1 left one element (i.e.
  20610. away from element 0) and fill the vacated element 0 with the scalar
  20611. in operand 2. Store the result in vector output operand 0.
  20612. Operands 0 and 1 have mode M and operand 2 has the mode appropriate
  20613. for one element of M.
  20614. 'vec_shl_M'
  20615. Whole vector left shift in bits, i.e. away from element 0. Operand
  20616. 1 is a vector to be shifted. Operand 2 is an integer shift amount
  20617. in bits. Operand 0 is where the resulting shifted vector is
  20618. stored. The output and input vectors should have the same modes.
  20619. 'vec_shr_M'
  20620. Whole vector right shift in bits, i.e. towards element 0. Operand
  20621. 1 is a vector to be shifted. Operand 2 is an integer shift amount
  20622. in bits. Operand 0 is where the resulting shifted vector is
  20623. stored. The output and input vectors should have the same modes.
  20624. 'vec_pack_trunc_M'
  20625. Narrow (demote) and merge the elements of two vectors. Operands 1
  20626. and 2 are vectors of the same mode having N integral or floating
  20627. point elements of size S. Operand 0 is the resulting vector in
  20628. which 2*N elements of size S/2 are concatenated after narrowing
  20629. them down using truncation.
  20630. 'vec_pack_sbool_trunc_M'
  20631. Narrow and merge the elements of two vectors. Operands 1 and 2 are
  20632. vectors of the same type having N boolean elements. Operand 0 is
  20633. the resulting vector in which 2*N elements are concatenated. The
  20634. last operand (operand 3) is the number of elements in the output
  20635. vector 2*N as a 'CONST_INT'. This instruction pattern is used when
  20636. all the vector input and output operands have the same scalar mode
  20637. M and thus using 'vec_pack_trunc_M' would be ambiguous.
  20638. 'vec_pack_ssat_M', 'vec_pack_usat_M'
  20639. Narrow (demote) and merge the elements of two vectors. Operands 1
  20640. and 2 are vectors of the same mode having N integral elements of
  20641. size S. Operand 0 is the resulting vector in which the elements of
  20642. the two input vectors are concatenated after narrowing them down
  20643. using signed/unsigned saturating arithmetic.
  20644. 'vec_pack_sfix_trunc_M', 'vec_pack_ufix_trunc_M'
  20645. Narrow, convert to signed/unsigned integral type and merge the
  20646. elements of two vectors. Operands 1 and 2 are vectors of the same
  20647. mode having N floating point elements of size S. Operand 0 is the
  20648. resulting vector in which 2*N elements of size S/2 are
  20649. concatenated.
  20650. 'vec_packs_float_M', 'vec_packu_float_M'
  20651. Narrow, convert to floating point type and merge the elements of
  20652. two vectors. Operands 1 and 2 are vectors of the same mode having
  20653. N signed/unsigned integral elements of size S. Operand 0 is the
  20654. resulting vector in which 2*N elements of size S/2 are
  20655. concatenated.
  20656. 'vec_unpacks_hi_M', 'vec_unpacks_lo_M'
  20657. Extract and widen (promote) the high/low part of a vector of signed
  20658. integral or floating point elements. The input vector (operand 1)
  20659. has N elements of size S. Widen (promote) the high/low elements of
  20660. the vector using signed or floating point extension and place the
  20661. resulting N/2 values of size 2*S in the output vector (operand 0).
  20662. 'vec_unpacku_hi_M', 'vec_unpacku_lo_M'
  20663. Extract and widen (promote) the high/low part of a vector of
  20664. unsigned integral elements. The input vector (operand 1) has N
  20665. elements of size S. Widen (promote) the high/low elements of the
  20666. vector using zero extension and place the resulting N/2 values of
  20667. size 2*S in the output vector (operand 0).
  20668. 'vec_unpacks_sbool_hi_M', 'vec_unpacks_sbool_lo_M'
  20669. Extract the high/low part of a vector of boolean elements that have
  20670. scalar mode M. The input vector (operand 1) has N elements, the
  20671. output vector (operand 0) has N/2 elements. The last operand
  20672. (operand 2) is the number of elements of the input vector N as a
  20673. 'CONST_INT'. These patterns are used if both the input and output
  20674. vectors have the same scalar mode M and thus using
  20675. 'vec_unpacks_hi_M' or 'vec_unpacks_lo_M' would be ambiguous.
  20676. 'vec_unpacks_float_hi_M', 'vec_unpacks_float_lo_M'
  20677. 'vec_unpacku_float_hi_M', 'vec_unpacku_float_lo_M'
  20678. Extract, convert to floating point type and widen the high/low part
  20679. of a vector of signed/unsigned integral elements. The input vector
  20680. (operand 1) has N elements of size S. Convert the high/low
  20681. elements of the vector using floating point conversion and place
  20682. the resulting N/2 values of size 2*S in the output vector (operand
  20683. 0).
  20684. 'vec_unpack_sfix_trunc_hi_M',
  20685. 'vec_unpack_sfix_trunc_lo_M'
  20686. 'vec_unpack_ufix_trunc_hi_M'
  20687. 'vec_unpack_ufix_trunc_lo_M'
  20688. Extract, convert to signed/unsigned integer type and widen the
  20689. high/low part of a vector of floating point elements. The input
  20690. vector (operand 1) has N elements of size S. Convert the high/low
  20691. elements of the vector to integers and place the resulting N/2
  20692. values of size 2*S in the output vector (operand 0).
  20693. 'vec_widen_umult_hi_M', 'vec_widen_umult_lo_M'
  20694. 'vec_widen_smult_hi_M', 'vec_widen_smult_lo_M'
  20695. 'vec_widen_umult_even_M', 'vec_widen_umult_odd_M'
  20696. 'vec_widen_smult_even_M', 'vec_widen_smult_odd_M'
  20697. Signed/Unsigned widening multiplication. The two inputs (operands
  20698. 1 and 2) are vectors with N signed/unsigned elements of size S.
  20699. Multiply the high/low or even/odd elements of the two vectors, and
  20700. put the N/2 products of size 2*S in the output vector (operand 0).
  20701. A target shouldn't implement even/odd pattern pair if it is less
  20702. efficient than lo/hi one.
  20703. 'vec_widen_ushiftl_hi_M', 'vec_widen_ushiftl_lo_M'
  20704. 'vec_widen_sshiftl_hi_M', 'vec_widen_sshiftl_lo_M'
  20705. Signed/Unsigned widening shift left. The first input (operand 1)
  20706. is a vector with N signed/unsigned elements of size S. Operand 2
  20707. is a constant. Shift the high/low elements of operand 1, and put
  20708. the N/2 results of size 2*S in the output vector (operand 0).
  20709. 'mulhisi3'
  20710. Multiply operands 1 and 2, which have mode 'HImode', and store a
  20711. 'SImode' product in operand 0.
  20712. 'mulqihi3', 'mulsidi3'
  20713. Similar widening-multiplication instructions of other widths.
  20714. 'umulqihi3', 'umulhisi3', 'umulsidi3'
  20715. Similar widening-multiplication instructions that do unsigned
  20716. multiplication.
  20717. 'usmulqihi3', 'usmulhisi3', 'usmulsidi3'
  20718. Similar widening-multiplication instructions that interpret the
  20719. first operand as unsigned and the second operand as signed, then do
  20720. a signed multiplication.
  20721. 'smulM3_highpart'
  20722. Perform a signed multiplication of operands 1 and 2, which have
  20723. mode M, and store the most significant half of the product in
  20724. operand 0. The least significant half of the product is discarded.
  20725. 'umulM3_highpart'
  20726. Similar, but the multiplication is unsigned.
  20727. 'maddMN4'
  20728. Multiply operands 1 and 2, sign-extend them to mode N, add operand
  20729. 3, and store the result in operand 0. Operands 1 and 2 have mode M
  20730. and operands 0 and 3 have mode N. Both modes must be integer or
  20731. fixed-point modes and N must be twice the size of M.
  20732. In other words, 'maddMN4' is like 'mulMN3' except that it also adds
  20733. operand 3.
  20734. These instructions are not allowed to 'FAIL'.
  20735. 'umaddMN4'
  20736. Like 'maddMN4', but zero-extend the multiplication operands instead
  20737. of sign-extending them.
  20738. 'ssmaddMN4'
  20739. Like 'maddMN4', but all involved operations must be
  20740. signed-saturating.
  20741. 'usmaddMN4'
  20742. Like 'umaddMN4', but all involved operations must be
  20743. unsigned-saturating.
  20744. 'msubMN4'
  20745. Multiply operands 1 and 2, sign-extend them to mode N, subtract the
  20746. result from operand 3, and store the result in operand 0. Operands
  20747. 1 and 2 have mode M and operands 0 and 3 have mode N. Both modes
  20748. must be integer or fixed-point modes and N must be twice the size
  20749. of M.
  20750. In other words, 'msubMN4' is like 'mulMN3' except that it also
  20751. subtracts the result from operand 3.
  20752. These instructions are not allowed to 'FAIL'.
  20753. 'umsubMN4'
  20754. Like 'msubMN4', but zero-extend the multiplication operands instead
  20755. of sign-extending them.
  20756. 'ssmsubMN4'
  20757. Like 'msubMN4', but all involved operations must be
  20758. signed-saturating.
  20759. 'usmsubMN4'
  20760. Like 'umsubMN4', but all involved operations must be
  20761. unsigned-saturating.
  20762. 'divmodM4'
  20763. Signed division that produces both a quotient and a remainder.
  20764. Operand 1 is divided by operand 2 to produce a quotient stored in
  20765. operand 0 and a remainder stored in operand 3.
  20766. For machines with an instruction that produces both a quotient and
  20767. a remainder, provide a pattern for 'divmodM4' but do not provide
  20768. patterns for 'divM3' and 'modM3'. This allows optimization in the
  20769. relatively common case when both the quotient and remainder are
  20770. computed.
  20771. If an instruction that just produces a quotient or just a remainder
  20772. exists and is more efficient than the instruction that produces
  20773. both, write the output routine of 'divmodM4' to call
  20774. 'find_reg_note' and look for a 'REG_UNUSED' note on the quotient or
  20775. remainder and generate the appropriate instruction.
  20776. 'udivmodM4'
  20777. Similar, but does unsigned division.
  20778. 'ashlM3', 'ssashlM3', 'usashlM3'
  20779. Arithmetic-shift operand 1 left by a number of bits specified by
  20780. operand 2, and store the result in operand 0. Here M is the mode
  20781. of operand 0 and operand 1; operand 2's mode is specified by the
  20782. instruction pattern, and the compiler will convert the operand to
  20783. that mode before generating the instruction. The shift or rotate
  20784. expander or instruction pattern should explicitly specify the mode
  20785. of the operand 2, it should never be 'VOIDmode'. The meaning of
  20786. out-of-range shift counts can optionally be specified by
  20787. 'TARGET_SHIFT_TRUNCATION_MASK'. *Note
  20788. TARGET_SHIFT_TRUNCATION_MASK::. Operand 2 is always a scalar type.
  20789. 'ashrM3', 'lshrM3', 'rotlM3', 'rotrM3'
  20790. Other shift and rotate instructions, analogous to the 'ashlM3'
  20791. instructions. Operand 2 is always a scalar type.
  20792. 'vashlM3', 'vashrM3', 'vlshrM3', 'vrotlM3', 'vrotrM3'
  20793. Vector shift and rotate instructions that take vectors as operand 2
  20794. instead of a scalar type.
  20795. 'avgM3_floor'
  20796. 'uavgM3_floor'
  20797. Signed and unsigned average instructions. These instructions add
  20798. operands 1 and 2 without truncation, divide the result by 2, round
  20799. towards -Inf, and store the result in operand 0. This is
  20800. equivalent to the C code:
  20801. narrow op0, op1, op2;
  20802. ...
  20803. op0 = (narrow) (((wide) op1 + (wide) op2) >> 1);
  20804. where the sign of 'narrow' determines whether this is a signed or
  20805. unsigned operation.
  20806. 'avgM3_ceil'
  20807. 'uavgM3_ceil'
  20808. Like 'avgM3_floor' and 'uavgM3_floor', but round towards +Inf.
  20809. This is equivalent to the C code:
  20810. narrow op0, op1, op2;
  20811. ...
  20812. op0 = (narrow) (((wide) op1 + (wide) op2 + 1) >> 1);
  20813. 'bswapM2'
  20814. Reverse the order of bytes of operand 1 and store the result in
  20815. operand 0.
  20816. 'negM2', 'ssnegM2', 'usnegM2'
  20817. Negate operand 1 and store the result in operand 0.
  20818. 'negvM3'
  20819. Like 'negM2' but takes a 'code_label' as operand 2 and emits code
  20820. to jump to it if signed overflow occurs during the negation.
  20821. 'absM2'
  20822. Store the absolute value of operand 1 into operand 0.
  20823. 'sqrtM2'
  20824. Store the square root of operand 1 into operand 0. Both operands
  20825. have mode M, which is a scalar or vector floating-point mode.
  20826. This pattern is not allowed to 'FAIL'.
  20827. 'rsqrtM2'
  20828. Store the reciprocal of the square root of operand 1 into operand
  20829. 0. Both operands have mode M, which is a scalar or vector
  20830. floating-point mode.
  20831. On most architectures this pattern is only approximate, so either
  20832. its C condition or the 'TARGET_OPTAB_SUPPORTED_P' hook should check
  20833. for the appropriate math flags. (Using the C condition is more
  20834. direct, but using 'TARGET_OPTAB_SUPPORTED_P' can be useful if a
  20835. target-specific built-in also uses the 'rsqrtM2' pattern.)
  20836. This pattern is not allowed to 'FAIL'.
  20837. 'fmodM3'
  20838. Store the remainder of dividing operand 1 by operand 2 into operand
  20839. 0, rounded towards zero to an integer. All operands have mode M,
  20840. which is a scalar or vector floating-point mode.
  20841. This pattern is not allowed to 'FAIL'.
  20842. 'remainderM3'
  20843. Store the remainder of dividing operand 1 by operand 2 into operand
  20844. 0, rounded to the nearest integer. All operands have mode M, which
  20845. is a scalar or vector floating-point mode.
  20846. This pattern is not allowed to 'FAIL'.
  20847. 'scalbM3'
  20848. Raise 'FLT_RADIX' to the power of operand 2, multiply it by operand
  20849. 1, and store the result in operand 0. All operands have mode M,
  20850. which is a scalar or vector floating-point mode.
  20851. This pattern is not allowed to 'FAIL'.
  20852. 'ldexpM3'
  20853. Raise 2 to the power of operand 2, multiply it by operand 1, and
  20854. store the result in operand 0. Operands 0 and 1 have mode M, which
  20855. is a scalar or vector floating-point mode. Operand 2's mode has
  20856. the same number of elements as M and each element is wide enough to
  20857. store an 'int'. The integers are signed.
  20858. This pattern is not allowed to 'FAIL'.
  20859. 'cosM2'
  20860. Store the cosine of operand 1 into operand 0. Both operands have
  20861. mode M, which is a scalar or vector floating-point mode.
  20862. This pattern is not allowed to 'FAIL'.
  20863. 'sinM2'
  20864. Store the sine of operand 1 into operand 0. Both operands have
  20865. mode M, which is a scalar or vector floating-point mode.
  20866. This pattern is not allowed to 'FAIL'.
  20867. 'sincosM3'
  20868. Store the cosine of operand 2 into operand 0 and the sine of
  20869. operand 2 into operand 1. All operands have mode M, which is a
  20870. scalar or vector floating-point mode.
  20871. Targets that can calculate the sine and cosine simultaneously can
  20872. implement this pattern as opposed to implementing individual
  20873. 'sinM2' and 'cosM2' patterns. The 'sin' and 'cos' built-in
  20874. functions will then be expanded to the 'sincosM3' pattern, with one
  20875. of the output values left unused.
  20876. 'tanM2'
  20877. Store the tangent of operand 1 into operand 0. Both operands have
  20878. mode M, which is a scalar or vector floating-point mode.
  20879. This pattern is not allowed to 'FAIL'.
  20880. 'asinM2'
  20881. Store the arc sine of operand 1 into operand 0. Both operands have
  20882. mode M, which is a scalar or vector floating-point mode.
  20883. This pattern is not allowed to 'FAIL'.
  20884. 'acosM2'
  20885. Store the arc cosine of operand 1 into operand 0. Both operands
  20886. have mode M, which is a scalar or vector floating-point mode.
  20887. This pattern is not allowed to 'FAIL'.
  20888. 'atanM2'
  20889. Store the arc tangent of operand 1 into operand 0. Both operands
  20890. have mode M, which is a scalar or vector floating-point mode.
  20891. This pattern is not allowed to 'FAIL'.
  20892. 'expM2'
  20893. Raise e (the base of natural logarithms) to the power of operand 1
  20894. and store the result in operand 0. Both operands have mode M,
  20895. which is a scalar or vector floating-point mode.
  20896. This pattern is not allowed to 'FAIL'.
  20897. 'expm1M2'
  20898. Raise e (the base of natural logarithms) to the power of operand 1,
  20899. subtract 1, and store the result in operand 0. Both operands have
  20900. mode M, which is a scalar or vector floating-point mode.
  20901. For inputs close to zero, the pattern is expected to be more
  20902. accurate than a separate 'expM2' and 'subM3' would be.
  20903. This pattern is not allowed to 'FAIL'.
  20904. 'exp10M2'
  20905. Raise 10 to the power of operand 1 and store the result in operand
  20906. 0. Both operands have mode M, which is a scalar or vector
  20907. floating-point mode.
  20908. This pattern is not allowed to 'FAIL'.
  20909. 'exp2M2'
  20910. Raise 2 to the power of operand 1 and store the result in operand
  20911. 0. Both operands have mode M, which is a scalar or vector
  20912. floating-point mode.
  20913. This pattern is not allowed to 'FAIL'.
  20914. 'logM2'
  20915. Store the natural logarithm of operand 1 into operand 0. Both
  20916. operands have mode M, which is a scalar or vector floating-point
  20917. mode.
  20918. This pattern is not allowed to 'FAIL'.
  20919. 'log1pM2'
  20920. Add 1 to operand 1, compute the natural logarithm, and store the
  20921. result in operand 0. Both operands have mode M, which is a scalar
  20922. or vector floating-point mode.
  20923. For inputs close to zero, the pattern is expected to be more
  20924. accurate than a separate 'addM3' and 'logM2' would be.
  20925. This pattern is not allowed to 'FAIL'.
  20926. 'log10M2'
  20927. Store the base-10 logarithm of operand 1 into operand 0. Both
  20928. operands have mode M, which is a scalar or vector floating-point
  20929. mode.
  20930. This pattern is not allowed to 'FAIL'.
  20931. 'log2M2'
  20932. Store the base-2 logarithm of operand 1 into operand 0. Both
  20933. operands have mode M, which is a scalar or vector floating-point
  20934. mode.
  20935. This pattern is not allowed to 'FAIL'.
  20936. 'logbM2'
  20937. Store the base-'FLT_RADIX' logarithm of operand 1 into operand 0.
  20938. Both operands have mode M, which is a scalar or vector
  20939. floating-point mode.
  20940. This pattern is not allowed to 'FAIL'.
  20941. 'significandM2'
  20942. Store the significand of floating-point operand 1 in operand 0.
  20943. Both operands have mode M, which is a scalar or vector
  20944. floating-point mode.
  20945. This pattern is not allowed to 'FAIL'.
  20946. 'powM3'
  20947. Store the value of operand 1 raised to the exponent operand 2 into
  20948. operand 0. All operands have mode M, which is a scalar or vector
  20949. floating-point mode.
  20950. This pattern is not allowed to 'FAIL'.
  20951. 'atan2M3'
  20952. Store the arc tangent (inverse tangent) of operand 1 divided by
  20953. operand 2 into operand 0, using the signs of both arguments to
  20954. determine the quadrant of the result. All operands have mode M,
  20955. which is a scalar or vector floating-point mode.
  20956. This pattern is not allowed to 'FAIL'.
  20957. 'floorM2'
  20958. Store the largest integral value not greater than operand 1 in
  20959. operand 0. Both operands have mode M, which is a scalar or vector
  20960. floating-point mode. If '-ffp-int-builtin-inexact' is in effect,
  20961. the "inexact" exception may be raised for noninteger operands;
  20962. otherwise, it may not.
  20963. This pattern is not allowed to 'FAIL'.
  20964. 'btruncM2'
  20965. Round operand 1 to an integer, towards zero, and store the result
  20966. in operand 0. Both operands have mode M, which is a scalar or
  20967. vector floating-point mode. If '-ffp-int-builtin-inexact' is in
  20968. effect, the "inexact" exception may be raised for noninteger
  20969. operands; otherwise, it may not.
  20970. This pattern is not allowed to 'FAIL'.
  20971. 'roundM2'
  20972. Round operand 1 to the nearest integer, rounding away from zero in
  20973. the event of a tie, and store the result in operand 0. Both
  20974. operands have mode M, which is a scalar or vector floating-point
  20975. mode. If '-ffp-int-builtin-inexact' is in effect, the "inexact"
  20976. exception may be raised for noninteger operands; otherwise, it may
  20977. not.
  20978. This pattern is not allowed to 'FAIL'.
  20979. 'ceilM2'
  20980. Store the smallest integral value not less than operand 1 in
  20981. operand 0. Both operands have mode M, which is a scalar or vector
  20982. floating-point mode. If '-ffp-int-builtin-inexact' is in effect,
  20983. the "inexact" exception may be raised for noninteger operands;
  20984. otherwise, it may not.
  20985. This pattern is not allowed to 'FAIL'.
  20986. 'nearbyintM2'
  20987. Round operand 1 to an integer, using the current rounding mode, and
  20988. store the result in operand 0. Do not raise an inexact condition
  20989. when the result is different from the argument. Both operands have
  20990. mode M, which is a scalar or vector floating-point mode.
  20991. This pattern is not allowed to 'FAIL'.
  20992. 'rintM2'
  20993. Round operand 1 to an integer, using the current rounding mode, and
  20994. store the result in operand 0. Raise an inexact condition when the
  20995. result is different from the argument. Both operands have mode M,
  20996. which is a scalar or vector floating-point mode.
  20997. This pattern is not allowed to 'FAIL'.
  20998. 'lrintMN2'
  20999. Convert operand 1 (valid for floating point mode M) to fixed point
  21000. mode N as a signed number according to the current rounding mode
  21001. and store in operand 0 (which has mode N).
  21002. 'lroundMN2'
  21003. Convert operand 1 (valid for floating point mode M) to fixed point
  21004. mode N as a signed number rounding to nearest and away from zero
  21005. and store in operand 0 (which has mode N).
  21006. 'lfloorMN2'
  21007. Convert operand 1 (valid for floating point mode M) to fixed point
  21008. mode N as a signed number rounding down and store in operand 0
  21009. (which has mode N).
  21010. 'lceilMN2'
  21011. Convert operand 1 (valid for floating point mode M) to fixed point
  21012. mode N as a signed number rounding up and store in operand 0 (which
  21013. has mode N).
  21014. 'copysignM3'
  21015. Store a value with the magnitude of operand 1 and the sign of
  21016. operand 2 into operand 0. All operands have mode M, which is a
  21017. scalar or vector floating-point mode.
  21018. This pattern is not allowed to 'FAIL'.
  21019. 'xorsignM3'
  21020. Equivalent to 'op0 = op1 * copysign (1.0, op2)': store a value with
  21021. the magnitude of operand 1 and the sign of operand 2 into operand
  21022. 0. All operands have mode M, which is a scalar or vector
  21023. floating-point mode.
  21024. This pattern is not allowed to 'FAIL'.
  21025. 'ffsM2'
  21026. Store into operand 0 one plus the index of the least significant
  21027. 1-bit of operand 1. If operand 1 is zero, store zero.
  21028. M is either a scalar or vector integer mode. When it is a scalar,
  21029. operand 1 has mode M but operand 0 can have whatever scalar integer
  21030. mode is suitable for the target. The compiler will insert
  21031. conversion instructions as necessary (typically to convert the
  21032. result to the same width as 'int'). When M is a vector, both
  21033. operands must have mode M.
  21034. This pattern is not allowed to 'FAIL'.
  21035. 'clrsbM2'
  21036. Count leading redundant sign bits. Store into operand 0 the number
  21037. of redundant sign bits in operand 1, starting at the most
  21038. significant bit position. A redundant sign bit is defined as any
  21039. sign bit after the first. As such, this count will be one less
  21040. than the count of leading sign bits.
  21041. M is either a scalar or vector integer mode. When it is a scalar,
  21042. operand 1 has mode M but operand 0 can have whatever scalar integer
  21043. mode is suitable for the target. The compiler will insert
  21044. conversion instructions as necessary (typically to convert the
  21045. result to the same width as 'int'). When M is a vector, both
  21046. operands must have mode M.
  21047. This pattern is not allowed to 'FAIL'.
  21048. 'clzM2'
  21049. Store into operand 0 the number of leading 0-bits in operand 1,
  21050. starting at the most significant bit position. If operand 1 is 0,
  21051. the 'CLZ_DEFINED_VALUE_AT_ZERO' (*note Misc::) macro defines if the
  21052. result is undefined or has a useful value.
  21053. M is either a scalar or vector integer mode. When it is a scalar,
  21054. operand 1 has mode M but operand 0 can have whatever scalar integer
  21055. mode is suitable for the target. The compiler will insert
  21056. conversion instructions as necessary (typically to convert the
  21057. result to the same width as 'int'). When M is a vector, both
  21058. operands must have mode M.
  21059. This pattern is not allowed to 'FAIL'.
  21060. 'ctzM2'
  21061. Store into operand 0 the number of trailing 0-bits in operand 1,
  21062. starting at the least significant bit position. If operand 1 is 0,
  21063. the 'CTZ_DEFINED_VALUE_AT_ZERO' (*note Misc::) macro defines if the
  21064. result is undefined or has a useful value.
  21065. M is either a scalar or vector integer mode. When it is a scalar,
  21066. operand 1 has mode M but operand 0 can have whatever scalar integer
  21067. mode is suitable for the target. The compiler will insert
  21068. conversion instructions as necessary (typically to convert the
  21069. result to the same width as 'int'). When M is a vector, both
  21070. operands must have mode M.
  21071. This pattern is not allowed to 'FAIL'.
  21072. 'popcountM2'
  21073. Store into operand 0 the number of 1-bits in operand 1.
  21074. M is either a scalar or vector integer mode. When it is a scalar,
  21075. operand 1 has mode M but operand 0 can have whatever scalar integer
  21076. mode is suitable for the target. The compiler will insert
  21077. conversion instructions as necessary (typically to convert the
  21078. result to the same width as 'int'). When M is a vector, both
  21079. operands must have mode M.
  21080. This pattern is not allowed to 'FAIL'.
  21081. 'parityM2'
  21082. Store into operand 0 the parity of operand 1, i.e. the number of
  21083. 1-bits in operand 1 modulo 2.
  21084. M is either a scalar or vector integer mode. When it is a scalar,
  21085. operand 1 has mode M but operand 0 can have whatever scalar integer
  21086. mode is suitable for the target. The compiler will insert
  21087. conversion instructions as necessary (typically to convert the
  21088. result to the same width as 'int'). When M is a vector, both
  21089. operands must have mode M.
  21090. This pattern is not allowed to 'FAIL'.
  21091. 'one_cmplM2'
  21092. Store the bitwise-complement of operand 1 into operand 0.
  21093. 'cpymemM'
  21094. Block copy instruction. The destination and source blocks of
  21095. memory are the first two operands, and both are 'mem:BLK's with an
  21096. address in mode 'Pmode'.
  21097. The number of bytes to copy is the third operand, in mode M.
  21098. Usually, you specify 'Pmode' for M. However, if you can generate
  21099. better code knowing the range of valid lengths is smaller than
  21100. those representable in a full Pmode pointer, you should provide a
  21101. pattern with a mode corresponding to the range of values you can
  21102. handle efficiently (e.g., 'QImode' for values in the range 0-127;
  21103. note we avoid numbers that appear negative) and also a pattern with
  21104. 'Pmode'.
  21105. The fourth operand is the known shared alignment of the source and
  21106. destination, in the form of a 'const_int' rtx. Thus, if the
  21107. compiler knows that both source and destination are word-aligned,
  21108. it may provide the value 4 for this operand.
  21109. Optional operands 5 and 6 specify expected alignment and size of
  21110. block respectively. The expected alignment differs from alignment
  21111. in operand 4 in a way that the blocks are not required to be
  21112. aligned according to it in all cases. This expected alignment is
  21113. also in bytes, just like operand 4. Expected size, when unknown,
  21114. is set to '(const_int -1)'.
  21115. Descriptions of multiple 'cpymemM' patterns can only be beneficial
  21116. if the patterns for smaller modes have fewer restrictions on their
  21117. first, second and fourth operands. Note that the mode M in
  21118. 'cpymemM' does not impose any restriction on the mode of
  21119. individually copied data units in the block.
  21120. The 'cpymemM' patterns need not give special consideration to the
  21121. possibility that the source and destination strings might overlap.
  21122. These patterns are used to do inline expansion of
  21123. '__builtin_memcpy'.
  21124. 'movmemM'
  21125. Block move instruction. The destination and source blocks of
  21126. memory are the first two operands, and both are 'mem:BLK's with an
  21127. address in mode 'Pmode'.
  21128. The number of bytes to copy is the third operand, in mode M.
  21129. Usually, you specify 'Pmode' for M. However, if you can generate
  21130. better code knowing the range of valid lengths is smaller than
  21131. those representable in a full Pmode pointer, you should provide a
  21132. pattern with a mode corresponding to the range of values you can
  21133. handle efficiently (e.g., 'QImode' for values in the range 0-127;
  21134. note we avoid numbers that appear negative) and also a pattern with
  21135. 'Pmode'.
  21136. The fourth operand is the known shared alignment of the source and
  21137. destination, in the form of a 'const_int' rtx. Thus, if the
  21138. compiler knows that both source and destination are word-aligned,
  21139. it may provide the value 4 for this operand.
  21140. Optional operands 5 and 6 specify expected alignment and size of
  21141. block respectively. The expected alignment differs from alignment
  21142. in operand 4 in a way that the blocks are not required to be
  21143. aligned according to it in all cases. This expected alignment is
  21144. also in bytes, just like operand 4. Expected size, when unknown,
  21145. is set to '(const_int -1)'.
  21146. Descriptions of multiple 'movmemM' patterns can only be beneficial
  21147. if the patterns for smaller modes have fewer restrictions on their
  21148. first, second and fourth operands. Note that the mode M in
  21149. 'movmemM' does not impose any restriction on the mode of
  21150. individually copied data units in the block.
  21151. The 'movmemM' patterns must correctly handle the case where the
  21152. source and destination strings overlap. These patterns are used to
  21153. do inline expansion of '__builtin_memmove'.
  21154. 'movstr'
  21155. String copy instruction, with 'stpcpy' semantics. Operand 0 is an
  21156. output operand in mode 'Pmode'. The addresses of the destination
  21157. and source strings are operands 1 and 2, and both are 'mem:BLK's
  21158. with addresses in mode 'Pmode'. The execution of the expansion of
  21159. this pattern should store in operand 0 the address in which the
  21160. 'NUL' terminator was stored in the destination string.
  21161. This pattern has also several optional operands that are same as in
  21162. 'setmem'.
  21163. 'setmemM'
  21164. Block set instruction. The destination string is the first
  21165. operand, given as a 'mem:BLK' whose address is in mode 'Pmode'.
  21166. The number of bytes to set is the second operand, in mode M. The
  21167. value to initialize the memory with is the third operand. Targets
  21168. that only support the clearing of memory should reject any value
  21169. that is not the constant 0. See 'cpymemM' for a discussion of the
  21170. choice of mode.
  21171. The fourth operand is the known alignment of the destination, in
  21172. the form of a 'const_int' rtx. Thus, if the compiler knows that
  21173. the destination is word-aligned, it may provide the value 4 for
  21174. this operand.
  21175. Optional operands 5 and 6 specify expected alignment and size of
  21176. block respectively. The expected alignment differs from alignment
  21177. in operand 4 in a way that the blocks are not required to be
  21178. aligned according to it in all cases. This expected alignment is
  21179. also in bytes, just like operand 4. Expected size, when unknown,
  21180. is set to '(const_int -1)'. Operand 7 is the minimal size of the
  21181. block and operand 8 is the maximal size of the block (NULL if it
  21182. cannot be represented as CONST_INT). Operand 9 is the probable
  21183. maximal size (i.e. we cannot rely on it for correctness, but it can
  21184. be used for choosing proper code sequence for a given size).
  21185. The use for multiple 'setmemM' is as for 'cpymemM'.
  21186. 'cmpstrnM'
  21187. String compare instruction, with five operands. Operand 0 is the
  21188. output; it has mode M. The remaining four operands are like the
  21189. operands of 'cpymemM'. The two memory blocks specified are
  21190. compared byte by byte in lexicographic order starting at the
  21191. beginning of each string. The instruction is not allowed to
  21192. prefetch more than one byte at a time since either string may end
  21193. in the first byte and reading past that may access an invalid page
  21194. or segment and cause a fault. The comparison terminates early if
  21195. the fetched bytes are different or if they are equal to zero. The
  21196. effect of the instruction is to store a value in operand 0 whose
  21197. sign indicates the result of the comparison.
  21198. 'cmpstrM'
  21199. String compare instruction, without known maximum length. Operand
  21200. 0 is the output; it has mode M. The second and third operand are
  21201. the blocks of memory to be compared; both are 'mem:BLK' with an
  21202. address in mode 'Pmode'.
  21203. The fourth operand is the known shared alignment of the source and
  21204. destination, in the form of a 'const_int' rtx. Thus, if the
  21205. compiler knows that both source and destination are word-aligned,
  21206. it may provide the value 4 for this operand.
  21207. The two memory blocks specified are compared byte by byte in
  21208. lexicographic order starting at the beginning of each string. The
  21209. instruction is not allowed to prefetch more than one byte at a time
  21210. since either string may end in the first byte and reading past that
  21211. may access an invalid page or segment and cause a fault. The
  21212. comparison will terminate when the fetched bytes are different or
  21213. if they are equal to zero. The effect of the instruction is to
  21214. store a value in operand 0 whose sign indicates the result of the
  21215. comparison.
  21216. 'cmpmemM'
  21217. Block compare instruction, with five operands like the operands of
  21218. 'cmpstrM'. The two memory blocks specified are compared byte by
  21219. byte in lexicographic order starting at the beginning of each
  21220. block. Unlike 'cmpstrM' the instruction can prefetch any bytes in
  21221. the two memory blocks. Also unlike 'cmpstrM' the comparison will
  21222. not stop if both bytes are zero. The effect of the instruction is
  21223. to store a value in operand 0 whose sign indicates the result of
  21224. the comparison.
  21225. 'strlenM'
  21226. Compute the length of a string, with three operands. Operand 0 is
  21227. the result (of mode M), operand 1 is a 'mem' referring to the first
  21228. character of the string, operand 2 is the character to search for
  21229. (normally zero), and operand 3 is a constant describing the known
  21230. alignment of the beginning of the string.
  21231. 'floatMN2'
  21232. Convert signed integer operand 1 (valid for fixed point mode M) to
  21233. floating point mode N and store in operand 0 (which has mode N).
  21234. 'floatunsMN2'
  21235. Convert unsigned integer operand 1 (valid for fixed point mode M)
  21236. to floating point mode N and store in operand 0 (which has mode N).
  21237. 'fixMN2'
  21238. Convert operand 1 (valid for floating point mode M) to fixed point
  21239. mode N as a signed number and store in operand 0 (which has mode
  21240. N). This instruction's result is defined only when the value of
  21241. operand 1 is an integer.
  21242. If the machine description defines this pattern, it also needs to
  21243. define the 'ftrunc' pattern.
  21244. 'fixunsMN2'
  21245. Convert operand 1 (valid for floating point mode M) to fixed point
  21246. mode N as an unsigned number and store in operand 0 (which has mode
  21247. N). This instruction's result is defined only when the value of
  21248. operand 1 is an integer.
  21249. 'ftruncM2'
  21250. Convert operand 1 (valid for floating point mode M) to an integer
  21251. value, still represented in floating point mode M, and store it in
  21252. operand 0 (valid for floating point mode M).
  21253. 'fix_truncMN2'
  21254. Like 'fixMN2' but works for any floating point value of mode M by
  21255. converting the value to an integer.
  21256. 'fixuns_truncMN2'
  21257. Like 'fixunsMN2' but works for any floating point value of mode M
  21258. by converting the value to an integer.
  21259. 'truncMN2'
  21260. Truncate operand 1 (valid for mode M) to mode N and store in
  21261. operand 0 (which has mode N). Both modes must be fixed point or
  21262. both floating point.
  21263. 'extendMN2'
  21264. Sign-extend operand 1 (valid for mode M) to mode N and store in
  21265. operand 0 (which has mode N). Both modes must be fixed point or
  21266. both floating point.
  21267. 'zero_extendMN2'
  21268. Zero-extend operand 1 (valid for mode M) to mode N and store in
  21269. operand 0 (which has mode N). Both modes must be fixed point.
  21270. 'fractMN2'
  21271. Convert operand 1 of mode M to mode N and store in operand 0 (which
  21272. has mode N). Mode M and mode N could be fixed-point to
  21273. fixed-point, signed integer to fixed-point, fixed-point to signed
  21274. integer, floating-point to fixed-point, or fixed-point to
  21275. floating-point. When overflows or underflows happen, the results
  21276. are undefined.
  21277. 'satfractMN2'
  21278. Convert operand 1 of mode M to mode N and store in operand 0 (which
  21279. has mode N). Mode M and mode N could be fixed-point to
  21280. fixed-point, signed integer to fixed-point, or floating-point to
  21281. fixed-point. When overflows or underflows happen, the instruction
  21282. saturates the results to the maximum or the minimum.
  21283. 'fractunsMN2'
  21284. Convert operand 1 of mode M to mode N and store in operand 0 (which
  21285. has mode N). Mode M and mode N could be unsigned integer to
  21286. fixed-point, or fixed-point to unsigned integer. When overflows or
  21287. underflows happen, the results are undefined.
  21288. 'satfractunsMN2'
  21289. Convert unsigned integer operand 1 of mode M to fixed-point mode N
  21290. and store in operand 0 (which has mode N). When overflows or
  21291. underflows happen, the instruction saturates the results to the
  21292. maximum or the minimum.
  21293. 'extvM'
  21294. Extract a bit-field from register operand 1, sign-extend it, and
  21295. store it in operand 0. Operand 2 specifies the width of the field
  21296. in bits and operand 3 the starting bit, which counts from the most
  21297. significant bit if 'BITS_BIG_ENDIAN' is true and from the least
  21298. significant bit otherwise.
  21299. Operands 0 and 1 both have mode M. Operands 2 and 3 have a
  21300. target-specific mode.
  21301. 'extvmisalignM'
  21302. Extract a bit-field from memory operand 1, sign extend it, and
  21303. store it in operand 0. Operand 2 specifies the width in bits and
  21304. operand 3 the starting bit. The starting bit is always somewhere
  21305. in the first byte of operand 1; it counts from the most significant
  21306. bit if 'BITS_BIG_ENDIAN' is true and from the least significant bit
  21307. otherwise.
  21308. Operand 0 has mode M while operand 1 has 'BLK' mode. Operands 2
  21309. and 3 have a target-specific mode.
  21310. The instruction must not read beyond the last byte of the
  21311. bit-field.
  21312. 'extzvM'
  21313. Like 'extvM' except that the bit-field value is zero-extended.
  21314. 'extzvmisalignM'
  21315. Like 'extvmisalignM' except that the bit-field value is
  21316. zero-extended.
  21317. 'insvM'
  21318. Insert operand 3 into a bit-field of register operand 0. Operand 1
  21319. specifies the width of the field in bits and operand 2 the starting
  21320. bit, which counts from the most significant bit if
  21321. 'BITS_BIG_ENDIAN' is true and from the least significant bit
  21322. otherwise.
  21323. Operands 0 and 3 both have mode M. Operands 1 and 2 have a
  21324. target-specific mode.
  21325. 'insvmisalignM'
  21326. Insert operand 3 into a bit-field of memory operand 0. Operand 1
  21327. specifies the width of the field in bits and operand 2 the starting
  21328. bit. The starting bit is always somewhere in the first byte of
  21329. operand 0; it counts from the most significant bit if
  21330. 'BITS_BIG_ENDIAN' is true and from the least significant bit
  21331. otherwise.
  21332. Operand 3 has mode M while operand 0 has 'BLK' mode. Operands 1
  21333. and 2 have a target-specific mode.
  21334. The instruction must not read or write beyond the last byte of the
  21335. bit-field.
  21336. 'extv'
  21337. Extract a bit-field from operand 1 (a register or memory operand),
  21338. where operand 2 specifies the width in bits and operand 3 the
  21339. starting bit, and store it in operand 0. Operand 0 must have mode
  21340. 'word_mode'. Operand 1 may have mode 'byte_mode' or 'word_mode';
  21341. often 'word_mode' is allowed only for registers. Operands 2 and 3
  21342. must be valid for 'word_mode'.
  21343. The RTL generation pass generates this instruction only with
  21344. constants for operands 2 and 3 and the constant is never zero for
  21345. operand 2.
  21346. The bit-field value is sign-extended to a full word integer before
  21347. it is stored in operand 0.
  21348. This pattern is deprecated; please use 'extvM' and 'extvmisalignM'
  21349. instead.
  21350. 'extzv'
  21351. Like 'extv' except that the bit-field value is zero-extended.
  21352. This pattern is deprecated; please use 'extzvM' and
  21353. 'extzvmisalignM' instead.
  21354. 'insv'
  21355. Store operand 3 (which must be valid for 'word_mode') into a
  21356. bit-field in operand 0, where operand 1 specifies the width in bits
  21357. and operand 2 the starting bit. Operand 0 may have mode
  21358. 'byte_mode' or 'word_mode'; often 'word_mode' is allowed only for
  21359. registers. Operands 1 and 2 must be valid for 'word_mode'.
  21360. The RTL generation pass generates this instruction only with
  21361. constants for operands 1 and 2 and the constant is never zero for
  21362. operand 1.
  21363. This pattern is deprecated; please use 'insvM' and 'insvmisalignM'
  21364. instead.
  21365. 'movMODEcc'
  21366. Conditionally move operand 2 or operand 3 into operand 0 according
  21367. to the comparison in operand 1. If the comparison is true, operand
  21368. 2 is moved into operand 0, otherwise operand 3 is moved.
  21369. The mode of the operands being compared need not be the same as the
  21370. operands being moved. Some machines, sparc64 for example, have
  21371. instructions that conditionally move an integer value based on the
  21372. floating point condition codes and vice versa.
  21373. If the machine does not have conditional move instructions, do not
  21374. define these patterns.
  21375. 'addMODEcc'
  21376. Similar to 'movMODEcc' but for conditional addition. Conditionally
  21377. move operand 2 or (operands 2 + operand 3) into operand 0 according
  21378. to the comparison in operand 1. If the comparison is false,
  21379. operand 2 is moved into operand 0, otherwise (operand 2 + operand
  21380. 3) is moved.
  21381. 'cond_addMODE'
  21382. 'cond_subMODE'
  21383. 'cond_mulMODE'
  21384. 'cond_divMODE'
  21385. 'cond_udivMODE'
  21386. 'cond_modMODE'
  21387. 'cond_umodMODE'
  21388. 'cond_andMODE'
  21389. 'cond_iorMODE'
  21390. 'cond_xorMODE'
  21391. 'cond_sminMODE'
  21392. 'cond_smaxMODE'
  21393. 'cond_uminMODE'
  21394. 'cond_umaxMODE'
  21395. When operand 1 is true, perform an operation on operands 2 and 3
  21396. and store the result in operand 0, otherwise store operand 4 in
  21397. operand 0. The operation works elementwise if the operands are
  21398. vectors.
  21399. The scalar case is equivalent to:
  21400. op0 = op1 ? op2 OP op3 : op4;
  21401. while the vector case is equivalent to:
  21402. for (i = 0; i < GET_MODE_NUNITS (M); i++)
  21403. op0[i] = op1[i] ? op2[i] OP op3[i] : op4[i];
  21404. where, for example, OP is '+' for 'cond_addMODE'.
  21405. When defined for floating-point modes, the contents of 'op3[i]' are
  21406. not interpreted if 'op1[i]' is false, just like they would not be
  21407. in a normal C '?:' condition.
  21408. Operands 0, 2, 3 and 4 all have mode M. Operand 1 is a scalar
  21409. integer if M is scalar, otherwise it has the mode returned by
  21410. 'TARGET_VECTORIZE_GET_MASK_MODE'.
  21411. 'cond_fmaMODE'
  21412. 'cond_fmsMODE'
  21413. 'cond_fnmaMODE'
  21414. 'cond_fnmsMODE'
  21415. Like 'cond_addM', except that the conditional operation takes 3
  21416. operands rather than two. For example, the vector form of
  21417. 'cond_fmaMODE' is equivalent to:
  21418. for (i = 0; i < GET_MODE_NUNITS (M); i++)
  21419. op0[i] = op1[i] ? fma (op2[i], op3[i], op4[i]) : op5[i];
  21420. 'negMODEcc'
  21421. Similar to 'movMODEcc' but for conditional negation. Conditionally
  21422. move the negation of operand 2 or the unchanged operand 3 into
  21423. operand 0 according to the comparison in operand 1. If the
  21424. comparison is true, the negation of operand 2 is moved into operand
  21425. 0, otherwise operand 3 is moved.
  21426. 'notMODEcc'
  21427. Similar to 'negMODEcc' but for conditional complement.
  21428. Conditionally move the bitwise complement of operand 2 or the
  21429. unchanged operand 3 into operand 0 according to the comparison in
  21430. operand 1. If the comparison is true, the complement of operand 2
  21431. is moved into operand 0, otherwise operand 3 is moved.
  21432. 'cstoreMODE4'
  21433. Store zero or nonzero in operand 0 according to whether a
  21434. comparison is true. Operand 1 is a comparison operator. Operand 2
  21435. and operand 3 are the first and second operand of the comparison,
  21436. respectively. You specify the mode that operand 0 must have when
  21437. you write the 'match_operand' expression. The compiler
  21438. automatically sees which mode you have used and supplies an operand
  21439. of that mode.
  21440. The value stored for a true condition must have 1 as its low bit,
  21441. or else must be negative. Otherwise the instruction is not
  21442. suitable and you should omit it from the machine description. You
  21443. describe to the compiler exactly which value is stored by defining
  21444. the macro 'STORE_FLAG_VALUE' (*note Misc::). If a description
  21445. cannot be found that can be used for all the possible comparison
  21446. operators, you should pick one and use a 'define_expand' to map all
  21447. results onto the one you chose.
  21448. These operations may 'FAIL', but should do so only in relatively
  21449. uncommon cases; if they would 'FAIL' for common cases involving
  21450. integer comparisons, it is best to restrict the predicates to not
  21451. allow these operands. Likewise if a given comparison operator will
  21452. always fail, independent of the operands (for floating-point modes,
  21453. the 'ordered_comparison_operator' predicate is often useful in this
  21454. case).
  21455. If this pattern is omitted, the compiler will generate a
  21456. conditional branch--for example, it may copy a constant one to the
  21457. target and branching around an assignment of zero to the target--or
  21458. a libcall. If the predicate for operand 1 only rejects some
  21459. operators, it will also try reordering the operands and/or
  21460. inverting the result value (e.g. by an exclusive OR). These
  21461. possibilities could be cheaper or equivalent to the instructions
  21462. used for the 'cstoreMODE4' pattern followed by those required to
  21463. convert a positive result from 'STORE_FLAG_VALUE' to 1; in this
  21464. case, you can and should make operand 1's predicate reject some
  21465. operators in the 'cstoreMODE4' pattern, or remove the pattern
  21466. altogether from the machine description.
  21467. 'cbranchMODE4'
  21468. Conditional branch instruction combined with a compare instruction.
  21469. Operand 0 is a comparison operator. Operand 1 and operand 2 are
  21470. the first and second operands of the comparison, respectively.
  21471. Operand 3 is the 'code_label' to jump to.
  21472. 'jump'
  21473. A jump inside a function; an unconditional branch. Operand 0 is
  21474. the 'code_label' to jump to. This pattern name is mandatory on all
  21475. machines.
  21476. 'call'
  21477. Subroutine call instruction returning no value. Operand 0 is the
  21478. function to call; operand 1 is the number of bytes of arguments
  21479. pushed as a 'const_int'; operand 2 is the number of registers used
  21480. as operands.
  21481. On most machines, operand 2 is not actually stored into the RTL
  21482. pattern. It is supplied for the sake of some RISC machines which
  21483. need to put this information into the assembler code; they can put
  21484. it in the RTL instead of operand 1.
  21485. Operand 0 should be a 'mem' RTX whose address is the address of the
  21486. function. Note, however, that this address can be a 'symbol_ref'
  21487. expression even if it would not be a legitimate memory address on
  21488. the target machine. If it is also not a valid argument for a call
  21489. instruction, the pattern for this operation should be a
  21490. 'define_expand' (*note Expander Definitions::) that places the
  21491. address into a register and uses that register in the call
  21492. instruction.
  21493. 'call_value'
  21494. Subroutine call instruction returning a value. Operand 0 is the
  21495. hard register in which the value is returned. There are three more
  21496. operands, the same as the three operands of the 'call' instruction
  21497. (but with numbers increased by one).
  21498. Subroutines that return 'BLKmode' objects use the 'call' insn.
  21499. 'call_pop', 'call_value_pop'
  21500. Similar to 'call' and 'call_value', except used if defined and if
  21501. 'RETURN_POPS_ARGS' is nonzero. They should emit a 'parallel' that
  21502. contains both the function call and a 'set' to indicate the
  21503. adjustment made to the frame pointer.
  21504. For machines where 'RETURN_POPS_ARGS' can be nonzero, the use of
  21505. these patterns increases the number of functions for which the
  21506. frame pointer can be eliminated, if desired.
  21507. 'untyped_call'
  21508. Subroutine call instruction returning a value of any type. Operand
  21509. 0 is the function to call; operand 1 is a memory location where the
  21510. result of calling the function is to be stored; operand 2 is a
  21511. 'parallel' expression where each element is a 'set' expression that
  21512. indicates the saving of a function return value into the result
  21513. block.
  21514. This instruction pattern should be defined to support
  21515. '__builtin_apply' on machines where special instructions are needed
  21516. to call a subroutine with arbitrary arguments or to save the value
  21517. returned. This instruction pattern is required on machines that
  21518. have multiple registers that can hold a return value (i.e.
  21519. 'FUNCTION_VALUE_REGNO_P' is true for more than one register).
  21520. 'return'
  21521. Subroutine return instruction. This instruction pattern name
  21522. should be defined only if a single instruction can do all the work
  21523. of returning from a function.
  21524. Like the 'movM' patterns, this pattern is also used after the RTL
  21525. generation phase. In this case it is to support machines where
  21526. multiple instructions are usually needed to return from a function,
  21527. but some class of functions only requires one instruction to
  21528. implement a return. Normally, the applicable functions are those
  21529. which do not need to save any registers or allocate stack space.
  21530. It is valid for this pattern to expand to an instruction using
  21531. 'simple_return' if no epilogue is required.
  21532. 'simple_return'
  21533. Subroutine return instruction. This instruction pattern name
  21534. should be defined only if a single instruction can do all the work
  21535. of returning from a function on a path where no epilogue is
  21536. required. This pattern is very similar to the 'return' instruction
  21537. pattern, but it is emitted only by the shrink-wrapping optimization
  21538. on paths where the function prologue has not been executed, and a
  21539. function return should occur without any of the effects of the
  21540. epilogue. Additional uses may be introduced on paths where both
  21541. the prologue and the epilogue have executed.
  21542. For such machines, the condition specified in this pattern should
  21543. only be true when 'reload_completed' is nonzero and the function's
  21544. epilogue would only be a single instruction. For machines with
  21545. register windows, the routine 'leaf_function_p' may be used to
  21546. determine if a register window push is required.
  21547. Machines that have conditional return instructions should define
  21548. patterns such as
  21549. (define_insn ""
  21550. [(set (pc)
  21551. (if_then_else (match_operator
  21552. 0 "comparison_operator"
  21553. [(cc0) (const_int 0)])
  21554. (return)
  21555. (pc)))]
  21556. "CONDITION"
  21557. "...")
  21558. where CONDITION would normally be the same condition specified on
  21559. the named 'return' pattern.
  21560. 'untyped_return'
  21561. Untyped subroutine return instruction. This instruction pattern
  21562. should be defined to support '__builtin_return' on machines where
  21563. special instructions are needed to return a value of any type.
  21564. Operand 0 is a memory location where the result of calling a
  21565. function with '__builtin_apply' is stored; operand 1 is a
  21566. 'parallel' expression where each element is a 'set' expression that
  21567. indicates the restoring of a function return value from the result
  21568. block.
  21569. 'nop'
  21570. No-op instruction. This instruction pattern name should always be
  21571. defined to output a no-op in assembler code. '(const_int 0)' will
  21572. do as an RTL pattern.
  21573. 'indirect_jump'
  21574. An instruction to jump to an address which is operand zero. This
  21575. pattern name is mandatory on all machines.
  21576. 'casesi'
  21577. Instruction to jump through a dispatch table, including bounds
  21578. checking. This instruction takes five operands:
  21579. 1. The index to dispatch on, which has mode 'SImode'.
  21580. 2. The lower bound for indices in the table, an integer constant.
  21581. 3. The total range of indices in the table--the largest index
  21582. minus the smallest one (both inclusive).
  21583. 4. A label that precedes the table itself.
  21584. 5. A label to jump to if the index has a value outside the
  21585. bounds.
  21586. The table is an 'addr_vec' or 'addr_diff_vec' inside of a
  21587. 'jump_table_data'. The number of elements in the table is one plus
  21588. the difference between the upper bound and the lower bound.
  21589. 'tablejump'
  21590. Instruction to jump to a variable address. This is a low-level
  21591. capability which can be used to implement a dispatch table when
  21592. there is no 'casesi' pattern.
  21593. This pattern requires two operands: the address or offset, and a
  21594. label which should immediately precede the jump table. If the
  21595. macro 'CASE_VECTOR_PC_RELATIVE' evaluates to a nonzero value then
  21596. the first operand is an offset which counts from the address of the
  21597. table; otherwise, it is an absolute address to jump to. In either
  21598. case, the first operand has mode 'Pmode'.
  21599. The 'tablejump' insn is always the last insn before the jump table
  21600. it uses. Its assembler code normally has no need to use the second
  21601. operand, but you should incorporate it in the RTL pattern so that
  21602. the jump optimizer will not delete the table as unreachable code.
  21603. 'doloop_end'
  21604. Conditional branch instruction that decrements a register and jumps
  21605. if the register is nonzero. Operand 0 is the register to decrement
  21606. and test; operand 1 is the label to jump to if the register is
  21607. nonzero. *Note Looping Patterns::.
  21608. This optional instruction pattern should be defined for machines
  21609. with low-overhead looping instructions as the loop optimizer will
  21610. try to modify suitable loops to utilize it. The target hook
  21611. 'TARGET_CAN_USE_DOLOOP_P' controls the conditions under which
  21612. low-overhead loops can be used.
  21613. 'doloop_begin'
  21614. Companion instruction to 'doloop_end' required for machines that
  21615. need to perform some initialization, such as loading a special
  21616. counter register. Operand 1 is the associated 'doloop_end' pattern
  21617. and operand 0 is the register that it decrements.
  21618. If initialization insns do not always need to be emitted, use a
  21619. 'define_expand' (*note Expander Definitions::) and make it fail.
  21620. 'canonicalize_funcptr_for_compare'
  21621. Canonicalize the function pointer in operand 1 and store the result
  21622. into operand 0.
  21623. Operand 0 is always a 'reg' and has mode 'Pmode'; operand 1 may be
  21624. a 'reg', 'mem', 'symbol_ref', 'const_int', etc and also has mode
  21625. 'Pmode'.
  21626. Canonicalization of a function pointer usually involves computing
  21627. the address of the function which would be called if the function
  21628. pointer were used in an indirect call.
  21629. Only define this pattern if function pointers on the target machine
  21630. can have different values but still call the same function when
  21631. used in an indirect call.
  21632. 'save_stack_block'
  21633. 'save_stack_function'
  21634. 'save_stack_nonlocal'
  21635. 'restore_stack_block'
  21636. 'restore_stack_function'
  21637. 'restore_stack_nonlocal'
  21638. Most machines save and restore the stack pointer by copying it to
  21639. or from an object of mode 'Pmode'. Do not define these patterns on
  21640. such machines.
  21641. Some machines require special handling for stack pointer saves and
  21642. restores. On those machines, define the patterns corresponding to
  21643. the non-standard cases by using a 'define_expand' (*note Expander
  21644. Definitions::) that produces the required insns. The three types
  21645. of saves and restores are:
  21646. 1. 'save_stack_block' saves the stack pointer at the start of a
  21647. block that allocates a variable-sized object, and
  21648. 'restore_stack_block' restores the stack pointer when the
  21649. block is exited.
  21650. 2. 'save_stack_function' and 'restore_stack_function' do a
  21651. similar job for the outermost block of a function and are used
  21652. when the function allocates variable-sized objects or calls
  21653. 'alloca'. Only the epilogue uses the restored stack pointer,
  21654. allowing a simpler save or restore sequence on some machines.
  21655. 3. 'save_stack_nonlocal' is used in functions that contain labels
  21656. branched to by nested functions. It saves the stack pointer
  21657. in such a way that the inner function can use
  21658. 'restore_stack_nonlocal' to restore the stack pointer. The
  21659. compiler generates code to restore the frame and argument
  21660. pointer registers, but some machines require saving and
  21661. restoring additional data such as register window information
  21662. or stack backchains. Place insns in these patterns to save
  21663. and restore any such required data.
  21664. When saving the stack pointer, operand 0 is the save area and
  21665. operand 1 is the stack pointer. The mode used to allocate the save
  21666. area defaults to 'Pmode' but you can override that choice by
  21667. defining the 'STACK_SAVEAREA_MODE' macro (*note Storage Layout::).
  21668. You must specify an integral mode, or 'VOIDmode' if no save area is
  21669. needed for a particular type of save (either because no save is
  21670. needed or because a machine-specific save area can be used).
  21671. Operand 0 is the stack pointer and operand 1 is the save area for
  21672. restore operations. If 'save_stack_block' is defined, operand 0
  21673. must not be 'VOIDmode' since these saves can be arbitrarily nested.
  21674. A save area is a 'mem' that is at a constant offset from
  21675. 'virtual_stack_vars_rtx' when the stack pointer is saved for use by
  21676. nonlocal gotos and a 'reg' in the other two cases.
  21677. 'allocate_stack'
  21678. Subtract (or add if 'STACK_GROWS_DOWNWARD' is undefined) operand 1
  21679. from the stack pointer to create space for dynamically allocated
  21680. data.
  21681. Store the resultant pointer to this space into operand 0. If you
  21682. are allocating space from the main stack, do this by emitting a
  21683. move insn to copy 'virtual_stack_dynamic_rtx' to operand 0. If you
  21684. are allocating the space elsewhere, generate code to copy the
  21685. location of the space to operand 0. In the latter case, you must
  21686. ensure this space gets freed when the corresponding space on the
  21687. main stack is free.
  21688. Do not define this pattern if all that must be done is the
  21689. subtraction. Some machines require other operations such as stack
  21690. probes or maintaining the back chain. Define this pattern to emit
  21691. those operations in addition to updating the stack pointer.
  21692. 'check_stack'
  21693. If stack checking (*note Stack Checking::) cannot be done on your
  21694. system by probing the stack, define this pattern to perform the
  21695. needed check and signal an error if the stack has overflowed. The
  21696. single operand is the address in the stack farthest from the
  21697. current stack pointer that you need to validate. Normally, on
  21698. platforms where this pattern is needed, you would obtain the stack
  21699. limit from a global or thread-specific variable or register.
  21700. 'probe_stack_address'
  21701. If stack checking (*note Stack Checking::) can be done on your
  21702. system by probing the stack but without the need to actually access
  21703. it, define this pattern and signal an error if the stack has
  21704. overflowed. The single operand is the memory address in the stack
  21705. that needs to be probed.
  21706. 'probe_stack'
  21707. If stack checking (*note Stack Checking::) can be done on your
  21708. system by probing the stack but doing it with a "store zero"
  21709. instruction is not valid or optimal, define this pattern to do the
  21710. probing differently and signal an error if the stack has
  21711. overflowed. The single operand is the memory reference in the
  21712. stack that needs to be probed.
  21713. 'nonlocal_goto'
  21714. Emit code to generate a non-local goto, e.g., a jump from one
  21715. function to a label in an outer function. This pattern has four
  21716. arguments, each representing a value to be used in the jump. The
  21717. first argument is to be loaded into the frame pointer, the second
  21718. is the address to branch to (code to dispatch to the actual label),
  21719. the third is the address of a location where the stack is saved,
  21720. and the last is the address of the label, to be placed in the
  21721. location for the incoming static chain.
  21722. On most machines you need not define this pattern, since GCC will
  21723. already generate the correct code, which is to load the frame
  21724. pointer and static chain, restore the stack (using the
  21725. 'restore_stack_nonlocal' pattern, if defined), and jump indirectly
  21726. to the dispatcher. You need only define this pattern if this code
  21727. will not work on your machine.
  21728. 'nonlocal_goto_receiver'
  21729. This pattern, if defined, contains code needed at the target of a
  21730. nonlocal goto after the code already generated by GCC. You will
  21731. not normally need to define this pattern. A typical reason why you
  21732. might need this pattern is if some value, such as a pointer to a
  21733. global table, must be restored when the frame pointer is restored.
  21734. Note that a nonlocal goto only occurs within a unit-of-translation,
  21735. so a global table pointer that is shared by all functions of a
  21736. given module need not be restored. There are no arguments.
  21737. 'exception_receiver'
  21738. This pattern, if defined, contains code needed at the site of an
  21739. exception handler that isn't needed at the site of a nonlocal goto.
  21740. You will not normally need to define this pattern. A typical
  21741. reason why you might need this pattern is if some value, such as a
  21742. pointer to a global table, must be restored after control flow is
  21743. branched to the handler of an exception. There are no arguments.
  21744. 'builtin_setjmp_setup'
  21745. This pattern, if defined, contains additional code needed to
  21746. initialize the 'jmp_buf'. You will not normally need to define
  21747. this pattern. A typical reason why you might need this pattern is
  21748. if some value, such as a pointer to a global table, must be
  21749. restored. Though it is preferred that the pointer value be
  21750. recalculated if possible (given the address of a label for
  21751. instance). The single argument is a pointer to the 'jmp_buf'.
  21752. Note that the buffer is five words long and that the first three
  21753. are normally used by the generic mechanism.
  21754. 'builtin_setjmp_receiver'
  21755. This pattern, if defined, contains code needed at the site of a
  21756. built-in setjmp that isn't needed at the site of a nonlocal goto.
  21757. You will not normally need to define this pattern. A typical
  21758. reason why you might need this pattern is if some value, such as a
  21759. pointer to a global table, must be restored. It takes one
  21760. argument, which is the label to which builtin_longjmp transferred
  21761. control; this pattern may be emitted at a small offset from that
  21762. label.
  21763. 'builtin_longjmp'
  21764. This pattern, if defined, performs the entire action of the
  21765. longjmp. You will not normally need to define this pattern unless
  21766. you also define 'builtin_setjmp_setup'. The single argument is a
  21767. pointer to the 'jmp_buf'.
  21768. 'eh_return'
  21769. This pattern, if defined, affects the way '__builtin_eh_return',
  21770. and thence the call frame exception handling library routines, are
  21771. built. It is intended to handle non-trivial actions needed along
  21772. the abnormal return path.
  21773. The address of the exception handler to which the function should
  21774. return is passed as operand to this pattern. It will normally need
  21775. to copied by the pattern to some special register or memory
  21776. location. If the pattern needs to determine the location of the
  21777. target call frame in order to do so, it may use
  21778. 'EH_RETURN_STACKADJ_RTX', if defined; it will have already been
  21779. assigned.
  21780. If this pattern is not defined, the default action will be to
  21781. simply copy the return address to 'EH_RETURN_HANDLER_RTX'. Either
  21782. that macro or this pattern needs to be defined if call frame
  21783. exception handling is to be used.
  21784. 'prologue'
  21785. This pattern, if defined, emits RTL for entry to a function. The
  21786. function entry is responsible for setting up the stack frame,
  21787. initializing the frame pointer register, saving callee saved
  21788. registers, etc.
  21789. Using a prologue pattern is generally preferred over defining
  21790. 'TARGET_ASM_FUNCTION_PROLOGUE' to emit assembly code for the
  21791. prologue.
  21792. The 'prologue' pattern is particularly useful for targets which
  21793. perform instruction scheduling.
  21794. 'window_save'
  21795. This pattern, if defined, emits RTL for a register window save. It
  21796. should be defined if the target machine has register windows but
  21797. the window events are decoupled from calls to subroutines. The
  21798. canonical example is the SPARC architecture.
  21799. 'epilogue'
  21800. This pattern emits RTL for exit from a function. The function exit
  21801. is responsible for deallocating the stack frame, restoring callee
  21802. saved registers and emitting the return instruction.
  21803. Using an epilogue pattern is generally preferred over defining
  21804. 'TARGET_ASM_FUNCTION_EPILOGUE' to emit assembly code for the
  21805. epilogue.
  21806. The 'epilogue' pattern is particularly useful for targets which
  21807. perform instruction scheduling or which have delay slots for their
  21808. return instruction.
  21809. 'sibcall_epilogue'
  21810. This pattern, if defined, emits RTL for exit from a function
  21811. without the final branch back to the calling function. This
  21812. pattern will be emitted before any sibling call (aka tail call)
  21813. sites.
  21814. The 'sibcall_epilogue' pattern must not clobber any arguments used
  21815. for parameter passing or any stack slots for arguments passed to
  21816. the current function.
  21817. 'trap'
  21818. This pattern, if defined, signals an error, typically by causing
  21819. some kind of signal to be raised.
  21820. 'ctrapMM4'
  21821. Conditional trap instruction. Operand 0 is a piece of RTL which
  21822. performs a comparison, and operands 1 and 2 are the arms of the
  21823. comparison. Operand 3 is the trap code, an integer.
  21824. A typical 'ctrap' pattern looks like
  21825. (define_insn "ctrapsi4"
  21826. [(trap_if (match_operator 0 "trap_operator"
  21827. [(match_operand 1 "register_operand")
  21828. (match_operand 2 "immediate_operand")])
  21829. (match_operand 3 "const_int_operand" "i"))]
  21830. ""
  21831. "...")
  21832. 'prefetch'
  21833. This pattern, if defined, emits code for a non-faulting data
  21834. prefetch instruction. Operand 0 is the address of the memory to
  21835. prefetch. Operand 1 is a constant 1 if the prefetch is preparing
  21836. for a write to the memory address, or a constant 0 otherwise.
  21837. Operand 2 is the expected degree of temporal locality of the data
  21838. and is a value between 0 and 3, inclusive; 0 means that the data
  21839. has no temporal locality, so it need not be left in the cache after
  21840. the access; 3 means that the data has a high degree of temporal
  21841. locality and should be left in all levels of cache possible; 1 and
  21842. 2 mean, respectively, a low or moderate degree of temporal
  21843. locality.
  21844. Targets that do not support write prefetches or locality hints can
  21845. ignore the values of operands 1 and 2.
  21846. 'blockage'
  21847. This pattern defines a pseudo insn that prevents the instruction
  21848. scheduler and other passes from moving instructions and using
  21849. register equivalences across the boundary defined by the blockage
  21850. insn. This needs to be an UNSPEC_VOLATILE pattern or a volatile
  21851. ASM.
  21852. 'memory_blockage'
  21853. This pattern, if defined, represents a compiler memory barrier, and
  21854. will be placed at points across which RTL passes may not propagate
  21855. memory accesses. This instruction needs to read and write volatile
  21856. BLKmode memory. It does not need to generate any machine
  21857. instruction. If this pattern is not defined, the compiler falls
  21858. back to emitting an instruction corresponding to 'asm volatile (""
  21859. ::: "memory")'.
  21860. 'memory_barrier'
  21861. If the target memory model is not fully synchronous, then this
  21862. pattern should be defined to an instruction that orders both loads
  21863. and stores before the instruction with respect to loads and stores
  21864. after the instruction. This pattern has no operands.
  21865. 'speculation_barrier'
  21866. If the target can support speculative execution, then this pattern
  21867. should be defined to an instruction that will block subsequent
  21868. execution until any prior speculation conditions has been resolved.
  21869. The pattern must also ensure that the compiler cannot move memory
  21870. operations past the barrier, so it needs to be an UNSPEC_VOLATILE
  21871. pattern. The pattern has no operands.
  21872. If this pattern is not defined then the default expansion of
  21873. '__builtin_speculation_safe_value' will emit a warning. You can
  21874. suppress this warning by defining this pattern with a final
  21875. condition of '0' (zero), which tells the compiler that a
  21876. speculation barrier is not needed for this target.
  21877. 'sync_compare_and_swapMODE'
  21878. This pattern, if defined, emits code for an atomic compare-and-swap
  21879. operation. Operand 1 is the memory on which the atomic operation
  21880. is performed. Operand 2 is the "old" value to be compared against
  21881. the current contents of the memory location. Operand 3 is the
  21882. "new" value to store in the memory if the compare succeeds.
  21883. Operand 0 is the result of the operation; it should contain the
  21884. contents of the memory before the operation. If the compare
  21885. succeeds, this should obviously be a copy of operand 2.
  21886. This pattern must show that both operand 0 and operand 1 are
  21887. modified.
  21888. This pattern must issue any memory barrier instructions such that
  21889. all memory operations before the atomic operation occur before the
  21890. atomic operation and all memory operations after the atomic
  21891. operation occur after the atomic operation.
  21892. For targets where the success or failure of the compare-and-swap
  21893. operation is available via the status flags, it is possible to
  21894. avoid a separate compare operation and issue the subsequent branch
  21895. or store-flag operation immediately after the compare-and-swap. To
  21896. this end, GCC will look for a 'MODE_CC' set in the output of
  21897. 'sync_compare_and_swapMODE'; if the machine description includes
  21898. such a set, the target should also define special 'cbranchcc4'
  21899. and/or 'cstorecc4' instructions. GCC will then be able to take the
  21900. destination of the 'MODE_CC' set and pass it to the 'cbranchcc4' or
  21901. 'cstorecc4' pattern as the first operand of the comparison (the
  21902. second will be '(const_int 0)').
  21903. For targets where the operating system may provide support for this
  21904. operation via library calls, the 'sync_compare_and_swap_optab' may
  21905. be initialized to a function with the same interface as the
  21906. '__sync_val_compare_and_swap_N' built-in. If the entire set of
  21907. __SYNC builtins are supported via library calls, the target can
  21908. initialize all of the optabs at once with 'init_sync_libfuncs'.
  21909. For the purposes of C++11 'std::atomic::is_lock_free', it is
  21910. assumed that these library calls do _not_ use any kind of
  21911. interruptable locking.
  21912. 'sync_addMODE', 'sync_subMODE'
  21913. 'sync_iorMODE', 'sync_andMODE'
  21914. 'sync_xorMODE', 'sync_nandMODE'
  21915. These patterns emit code for an atomic operation on memory.
  21916. Operand 0 is the memory on which the atomic operation is performed.
  21917. Operand 1 is the second operand to the binary operator.
  21918. This pattern must issue any memory barrier instructions such that
  21919. all memory operations before the atomic operation occur before the
  21920. atomic operation and all memory operations after the atomic
  21921. operation occur after the atomic operation.
  21922. If these patterns are not defined, the operation will be
  21923. constructed from a compare-and-swap operation, if defined.
  21924. 'sync_old_addMODE', 'sync_old_subMODE'
  21925. 'sync_old_iorMODE', 'sync_old_andMODE'
  21926. 'sync_old_xorMODE', 'sync_old_nandMODE'
  21927. These patterns emit code for an atomic operation on memory, and
  21928. return the value that the memory contained before the operation.
  21929. Operand 0 is the result value, operand 1 is the memory on which the
  21930. atomic operation is performed, and operand 2 is the second operand
  21931. to the binary operator.
  21932. This pattern must issue any memory barrier instructions such that
  21933. all memory operations before the atomic operation occur before the
  21934. atomic operation and all memory operations after the atomic
  21935. operation occur after the atomic operation.
  21936. If these patterns are not defined, the operation will be
  21937. constructed from a compare-and-swap operation, if defined.
  21938. 'sync_new_addMODE', 'sync_new_subMODE'
  21939. 'sync_new_iorMODE', 'sync_new_andMODE'
  21940. 'sync_new_xorMODE', 'sync_new_nandMODE'
  21941. These patterns are like their 'sync_old_OP' counterparts, except
  21942. that they return the value that exists in the memory location after
  21943. the operation, rather than before the operation.
  21944. 'sync_lock_test_and_setMODE'
  21945. This pattern takes two forms, based on the capabilities of the
  21946. target. In either case, operand 0 is the result of the operand,
  21947. operand 1 is the memory on which the atomic operation is performed,
  21948. and operand 2 is the value to set in the lock.
  21949. In the ideal case, this operation is an atomic exchange operation,
  21950. in which the previous value in memory operand is copied into the
  21951. result operand, and the value operand is stored in the memory
  21952. operand.
  21953. For less capable targets, any value operand that is not the
  21954. constant 1 should be rejected with 'FAIL'. In this case the target
  21955. may use an atomic test-and-set bit operation. The result operand
  21956. should contain 1 if the bit was previously set and 0 if the bit was
  21957. previously clear. The true contents of the memory operand are
  21958. implementation defined.
  21959. This pattern must issue any memory barrier instructions such that
  21960. the pattern as a whole acts as an acquire barrier, that is all
  21961. memory operations after the pattern do not occur until the lock is
  21962. acquired.
  21963. If this pattern is not defined, the operation will be constructed
  21964. from a compare-and-swap operation, if defined.
  21965. 'sync_lock_releaseMODE'
  21966. This pattern, if defined, releases a lock set by
  21967. 'sync_lock_test_and_setMODE'. Operand 0 is the memory that
  21968. contains the lock; operand 1 is the value to store in the lock.
  21969. If the target doesn't implement full semantics for
  21970. 'sync_lock_test_and_setMODE', any value operand which is not the
  21971. constant 0 should be rejected with 'FAIL', and the true contents of
  21972. the memory operand are implementation defined.
  21973. This pattern must issue any memory barrier instructions such that
  21974. the pattern as a whole acts as a release barrier, that is the lock
  21975. is released only after all previous memory operations have
  21976. completed.
  21977. If this pattern is not defined, then a 'memory_barrier' pattern
  21978. will be emitted, followed by a store of the value to the memory
  21979. operand.
  21980. 'atomic_compare_and_swapMODE'
  21981. This pattern, if defined, emits code for an atomic compare-and-swap
  21982. operation with memory model semantics. Operand 2 is the memory on
  21983. which the atomic operation is performed. Operand 0 is an output
  21984. operand which is set to true or false based on whether the
  21985. operation succeeded. Operand 1 is an output operand which is set
  21986. to the contents of the memory before the operation was attempted.
  21987. Operand 3 is the value that is expected to be in memory. Operand 4
  21988. is the value to put in memory if the expected value is found there.
  21989. Operand 5 is set to 1 if this compare and swap is to be treated as
  21990. a weak operation. Operand 6 is the memory model to be used if the
  21991. operation is a success. Operand 7 is the memory model to be used
  21992. if the operation fails.
  21993. If memory referred to in operand 2 contains the value in operand 3,
  21994. then operand 4 is stored in memory pointed to by operand 2 and
  21995. fencing based on the memory model in operand 6 is issued.
  21996. If memory referred to in operand 2 does not contain the value in
  21997. operand 3, then fencing based on the memory model in operand 7 is
  21998. issued.
  21999. If a target does not support weak compare-and-swap operations, or
  22000. the port elects not to implement weak operations, the argument in
  22001. operand 5 can be ignored. Note a strong implementation must be
  22002. provided.
  22003. If this pattern is not provided, the '__atomic_compare_exchange'
  22004. built-in functions will utilize the legacy 'sync_compare_and_swap'
  22005. pattern with an '__ATOMIC_SEQ_CST' memory model.
  22006. 'atomic_loadMODE'
  22007. This pattern implements an atomic load operation with memory model
  22008. semantics. Operand 1 is the memory address being loaded from.
  22009. Operand 0 is the result of the load. Operand 2 is the memory model
  22010. to be used for the load operation.
  22011. If not present, the '__atomic_load' built-in function will either
  22012. resort to a normal load with memory barriers, or a compare-and-swap
  22013. operation if a normal load would not be atomic.
  22014. 'atomic_storeMODE'
  22015. This pattern implements an atomic store operation with memory model
  22016. semantics. Operand 0 is the memory address being stored to.
  22017. Operand 1 is the value to be written. Operand 2 is the memory
  22018. model to be used for the operation.
  22019. If not present, the '__atomic_store' built-in function will attempt
  22020. to perform a normal store and surround it with any required memory
  22021. fences. If the store would not be atomic, then an
  22022. '__atomic_exchange' is attempted with the result being ignored.
  22023. 'atomic_exchangeMODE'
  22024. This pattern implements an atomic exchange operation with memory
  22025. model semantics. Operand 1 is the memory location the operation is
  22026. performed on. Operand 0 is an output operand which is set to the
  22027. original value contained in the memory pointed to by operand 1.
  22028. Operand 2 is the value to be stored. Operand 3 is the memory model
  22029. to be used.
  22030. If this pattern is not present, the built-in function
  22031. '__atomic_exchange' will attempt to preform the operation with a
  22032. compare and swap loop.
  22033. 'atomic_addMODE', 'atomic_subMODE'
  22034. 'atomic_orMODE', 'atomic_andMODE'
  22035. 'atomic_xorMODE', 'atomic_nandMODE'
  22036. These patterns emit code for an atomic operation on memory with
  22037. memory model semantics. Operand 0 is the memory on which the
  22038. atomic operation is performed. Operand 1 is the second operand to
  22039. the binary operator. Operand 2 is the memory model to be used by
  22040. the operation.
  22041. If these patterns are not defined, attempts will be made to use
  22042. legacy 'sync' patterns, or equivalent patterns which return a
  22043. result. If none of these are available a compare-and-swap loop
  22044. will be used.
  22045. 'atomic_fetch_addMODE', 'atomic_fetch_subMODE'
  22046. 'atomic_fetch_orMODE', 'atomic_fetch_andMODE'
  22047. 'atomic_fetch_xorMODE', 'atomic_fetch_nandMODE'
  22048. These patterns emit code for an atomic operation on memory with
  22049. memory model semantics, and return the original value. Operand 0
  22050. is an output operand which contains the value of the memory
  22051. location before the operation was performed. Operand 1 is the
  22052. memory on which the atomic operation is performed. Operand 2 is
  22053. the second operand to the binary operator. Operand 3 is the memory
  22054. model to be used by the operation.
  22055. If these patterns are not defined, attempts will be made to use
  22056. legacy 'sync' patterns. If none of these are available a
  22057. compare-and-swap loop will be used.
  22058. 'atomic_add_fetchMODE', 'atomic_sub_fetchMODE'
  22059. 'atomic_or_fetchMODE', 'atomic_and_fetchMODE'
  22060. 'atomic_xor_fetchMODE', 'atomic_nand_fetchMODE'
  22061. These patterns emit code for an atomic operation on memory with
  22062. memory model semantics and return the result after the operation is
  22063. performed. Operand 0 is an output operand which contains the value
  22064. after the operation. Operand 1 is the memory on which the atomic
  22065. operation is performed. Operand 2 is the second operand to the
  22066. binary operator. Operand 3 is the memory model to be used by the
  22067. operation.
  22068. If these patterns are not defined, attempts will be made to use
  22069. legacy 'sync' patterns, or equivalent patterns which return the
  22070. result before the operation followed by the arithmetic operation
  22071. required to produce the result. If none of these are available a
  22072. compare-and-swap loop will be used.
  22073. 'atomic_test_and_set'
  22074. This pattern emits code for '__builtin_atomic_test_and_set'.
  22075. Operand 0 is an output operand which is set to true if the previous
  22076. previous contents of the byte was "set", and false otherwise.
  22077. Operand 1 is the 'QImode' memory to be modified. Operand 2 is the
  22078. memory model to be used.
  22079. The specific value that defines "set" is implementation defined,
  22080. and is normally based on what is performed by the native atomic
  22081. test and set instruction.
  22082. 'atomic_bit_test_and_setMODE'
  22083. 'atomic_bit_test_and_complementMODE'
  22084. 'atomic_bit_test_and_resetMODE'
  22085. These patterns emit code for an atomic bitwise operation on memory
  22086. with memory model semantics, and return the original value of the
  22087. specified bit. Operand 0 is an output operand which contains the
  22088. value of the specified bit from the memory location before the
  22089. operation was performed. Operand 1 is the memory on which the
  22090. atomic operation is performed. Operand 2 is the bit within the
  22091. operand, starting with least significant bit. Operand 3 is the
  22092. memory model to be used by the operation. Operand 4 is a flag - it
  22093. is 'const1_rtx' if operand 0 should contain the original value of
  22094. the specified bit in the least significant bit of the operand, and
  22095. 'const0_rtx' if the bit should be in its original position in the
  22096. operand. 'atomic_bit_test_and_setMODE' atomically sets the
  22097. specified bit after remembering its original value,
  22098. 'atomic_bit_test_and_complementMODE' inverts the specified bit and
  22099. 'atomic_bit_test_and_resetMODE' clears the specified bit.
  22100. If these patterns are not defined, attempts will be made to use
  22101. 'atomic_fetch_orMODE', 'atomic_fetch_xorMODE' or
  22102. 'atomic_fetch_andMODE' instruction patterns, or their 'sync'
  22103. counterparts. If none of these are available a compare-and-swap
  22104. loop will be used.
  22105. 'mem_thread_fence'
  22106. This pattern emits code required to implement a thread fence with
  22107. memory model semantics. Operand 0 is the memory model to be used.
  22108. For the '__ATOMIC_RELAXED' model no instructions need to be issued
  22109. and this expansion is not invoked.
  22110. The compiler always emits a compiler memory barrier regardless of
  22111. what expanding this pattern produced.
  22112. If this pattern is not defined, the compiler falls back to
  22113. expanding the 'memory_barrier' pattern, then to emitting
  22114. '__sync_synchronize' library call, and finally to just placing a
  22115. compiler memory barrier.
  22116. 'get_thread_pointerMODE'
  22117. 'set_thread_pointerMODE'
  22118. These patterns emit code that reads/sets the TLS thread pointer.
  22119. Currently, these are only needed if the target needs to support the
  22120. '__builtin_thread_pointer' and '__builtin_set_thread_pointer'
  22121. builtins.
  22122. The get/set patterns have a single output/input operand
  22123. respectively, with MODE intended to be 'Pmode'.
  22124. 'stack_protect_combined_set'
  22125. This pattern, if defined, moves a 'ptr_mode' value from an address
  22126. whose declaration RTX is given in operand 1 to the memory in
  22127. operand 0 without leaving the value in a register afterward. If
  22128. several instructions are needed by the target to perform the
  22129. operation (eg. to load the address from a GOT entry then load the
  22130. 'ptr_mode' value and finally store it), it is the backend's
  22131. responsibility to ensure no intermediate result gets spilled. This
  22132. is to avoid leaking the value some place that an attacker might use
  22133. to rewrite the stack guard slot after having clobbered it.
  22134. If this pattern is not defined, then the address declaration is
  22135. expanded first in the standard way and a 'stack_protect_set'
  22136. pattern is then generated to move the value from that address to
  22137. the address in operand 0.
  22138. 'stack_protect_set'
  22139. This pattern, if defined, moves a 'ptr_mode' value from the valid
  22140. memory location in operand 1 to the memory in operand 0 without
  22141. leaving the value in a register afterward. This is to avoid
  22142. leaking the value some place that an attacker might use to rewrite
  22143. the stack guard slot after having clobbered it.
  22144. Note: on targets where the addressing modes do not allow to load
  22145. directly from stack guard address, the address is expanded in a
  22146. standard way first which could cause some spills.
  22147. If this pattern is not defined, then a plain move pattern is
  22148. generated.
  22149. 'stack_protect_combined_test'
  22150. This pattern, if defined, compares a 'ptr_mode' value from an
  22151. address whose declaration RTX is given in operand 1 with the memory
  22152. in operand 0 without leaving the value in a register afterward and
  22153. branches to operand 2 if the values were equal. If several
  22154. instructions are needed by the target to perform the operation (eg.
  22155. to load the address from a GOT entry then load the 'ptr_mode' value
  22156. and finally store it), it is the backend's responsibility to ensure
  22157. no intermediate result gets spilled. This is to avoid leaking the
  22158. value some place that an attacker might use to rewrite the stack
  22159. guard slot after having clobbered it.
  22160. If this pattern is not defined, then the address declaration is
  22161. expanded first in the standard way and a 'stack_protect_test'
  22162. pattern is then generated to compare the value from that address to
  22163. the value at the memory in operand 0.
  22164. 'stack_protect_test'
  22165. This pattern, if defined, compares a 'ptr_mode' value from the
  22166. valid memory location in operand 1 with the memory in operand 0
  22167. without leaving the value in a register afterward and branches to
  22168. operand 2 if the values were equal.
  22169. If this pattern is not defined, then a plain compare pattern and
  22170. conditional branch pattern is used.
  22171. 'clear_cache'
  22172. This pattern, if defined, flushes the instruction cache for a
  22173. region of memory. The region is bounded to by the Pmode pointers
  22174. in operand 0 inclusive and operand 1 exclusive.
  22175. If this pattern is not defined, a call to the library function
  22176. '__clear_cache' is used.
  22177. 
  22178. File: gccint.info, Node: Pattern Ordering, Next: Dependent Patterns, Prev: Standard Names, Up: Machine Desc
  22179. 17.10 When the Order of Patterns Matters
  22180. ========================================
  22181. Sometimes an insn can match more than one instruction pattern. Then the
  22182. pattern that appears first in the machine description is the one used.
  22183. Therefore, more specific patterns (patterns that will match fewer
  22184. things) and faster instructions (those that will produce better code
  22185. when they do match) should usually go first in the description.
  22186. In some cases the effect of ordering the patterns can be used to hide a
  22187. pattern when it is not valid. For example, the 68000 has an instruction
  22188. for converting a fullword to floating point and another for converting a
  22189. byte to floating point. An instruction converting an integer to
  22190. floating point could match either one. We put the pattern to convert
  22191. the fullword first to make sure that one will be used rather than the
  22192. other. (Otherwise a large integer might be generated as a single-byte
  22193. immediate quantity, which would not work.) Instead of using this
  22194. pattern ordering it would be possible to make the pattern for
  22195. convert-a-byte smart enough to deal properly with any constant value.
  22196. 
  22197. File: gccint.info, Node: Dependent Patterns, Next: Jump Patterns, Prev: Pattern Ordering, Up: Machine Desc
  22198. 17.11 Interdependence of Patterns
  22199. =================================
  22200. In some cases machines support instructions identical except for the
  22201. machine mode of one or more operands. For example, there may be
  22202. "sign-extend halfword" and "sign-extend byte" instructions whose
  22203. patterns are
  22204. (set (match_operand:SI 0 ...)
  22205. (extend:SI (match_operand:HI 1 ...)))
  22206. (set (match_operand:SI 0 ...)
  22207. (extend:SI (match_operand:QI 1 ...)))
  22208. Constant integers do not specify a machine mode, so an instruction to
  22209. extend a constant value could match either pattern. The pattern it
  22210. actually will match is the one that appears first in the file. For
  22211. correct results, this must be the one for the widest possible mode
  22212. ('HImode', here). If the pattern matches the 'QImode' instruction, the
  22213. results will be incorrect if the constant value does not actually fit
  22214. that mode.
  22215. Such instructions to extend constants are rarely generated because they
  22216. are optimized away, but they do occasionally happen in nonoptimized
  22217. compilations.
  22218. If a constraint in a pattern allows a constant, the reload pass may
  22219. replace a register with a constant permitted by the constraint in some
  22220. cases. Similarly for memory references. Because of this substitution,
  22221. you should not provide separate patterns for increment and decrement
  22222. instructions. Instead, they should be generated from the same pattern
  22223. that supports register-register add insns by examining the operands and
  22224. generating the appropriate machine instruction.
  22225. 
  22226. File: gccint.info, Node: Jump Patterns, Next: Looping Patterns, Prev: Dependent Patterns, Up: Machine Desc
  22227. 17.12 Defining Jump Instruction Patterns
  22228. ========================================
  22229. GCC does not assume anything about how the machine realizes jumps. The
  22230. machine description should define a single pattern, usually a
  22231. 'define_expand', which expands to all the required insns.
  22232. Usually, this would be a comparison insn to set the condition code and
  22233. a separate branch insn testing the condition code and branching or not
  22234. according to its value. For many machines, however, separating compares
  22235. and branches is limiting, which is why the more flexible approach with
  22236. one 'define_expand' is used in GCC. The machine description becomes
  22237. clearer for architectures that have compare-and-branch instructions but
  22238. no condition code. It also works better when different sets of
  22239. comparison operators are supported by different kinds of conditional
  22240. branches (e.g. integer vs. floating-point), or by conditional branches
  22241. with respect to conditional stores.
  22242. Two separate insns are always used if the machine description
  22243. represents a condition code register using the legacy RTL expression
  22244. '(cc0)', and on most machines that use a separate condition code
  22245. register (*note Condition Code::). For machines that use '(cc0)', in
  22246. fact, the set and use of the condition code must be separate and
  22247. adjacent(1), thus allowing flags in 'cc_status' to be used (*note
  22248. Condition Code::) and so that the comparison and branch insns could be
  22249. located from each other by using the functions 'prev_cc0_setter' and
  22250. 'next_cc0_user'.
  22251. Even in this case having a single entry point for conditional branches
  22252. is advantageous, because it handles equally well the case where a single
  22253. comparison instruction records the results of both signed and unsigned
  22254. comparison of the given operands (with the branch insns coming in
  22255. distinct signed and unsigned flavors) as in the x86 or SPARC, and the
  22256. case where there are distinct signed and unsigned compare instructions
  22257. and only one set of conditional branch instructions as in the PowerPC.
  22258. ---------- Footnotes ----------
  22259. (1) 'note' insns can separate them, though.
  22260. 
  22261. File: gccint.info, Node: Looping Patterns, Next: Insn Canonicalizations, Prev: Jump Patterns, Up: Machine Desc
  22262. 17.13 Defining Looping Instruction Patterns
  22263. ===========================================
  22264. Some machines have special jump instructions that can be utilized to
  22265. make loops more efficient. A common example is the 68000 'dbra'
  22266. instruction which performs a decrement of a register and a branch if the
  22267. result was greater than zero. Other machines, in particular digital
  22268. signal processors (DSPs), have special block repeat instructions to
  22269. provide low-overhead loop support. For example, the TI TMS320C3x/C4x
  22270. DSPs have a block repeat instruction that loads special registers to
  22271. mark the top and end of a loop and to count the number of loop
  22272. iterations. This avoids the need for fetching and executing a
  22273. 'dbra'-like instruction and avoids pipeline stalls associated with the
  22274. jump.
  22275. GCC has two special named patterns to support low overhead looping.
  22276. They are 'doloop_begin' and 'doloop_end'. These are emitted by the loop
  22277. optimizer for certain well-behaved loops with a finite number of loop
  22278. iterations using information collected during strength reduction.
  22279. The 'doloop_end' pattern describes the actual looping instruction (or
  22280. the implicit looping operation) and the 'doloop_begin' pattern is an
  22281. optional companion pattern that can be used for initialization needed
  22282. for some low-overhead looping instructions.
  22283. Note that some machines require the actual looping instruction to be
  22284. emitted at the top of the loop (e.g., the TMS320C3x/C4x DSPs). Emitting
  22285. the true RTL for a looping instruction at the top of the loop can cause
  22286. problems with flow analysis. So instead, a dummy 'doloop' insn is
  22287. emitted at the end of the loop. The machine dependent reorg pass checks
  22288. for the presence of this 'doloop' insn and then searches back to the top
  22289. of the loop, where it inserts the true looping insn (provided there are
  22290. no instructions in the loop which would cause problems). Any additional
  22291. labels can be emitted at this point. In addition, if the desired
  22292. special iteration counter register was not allocated, this machine
  22293. dependent reorg pass could emit a traditional compare and jump
  22294. instruction pair.
  22295. For the 'doloop_end' pattern, the loop optimizer allocates an
  22296. additional pseudo register as an iteration counter. This pseudo
  22297. register cannot be used within the loop (i.e., general induction
  22298. variables cannot be derived from it), however, in many cases the loop
  22299. induction variable may become redundant and removed by the flow pass.
  22300. The 'doloop_end' pattern must have a specific structure to be handled
  22301. correctly by GCC. The example below is taken (slightly simplified) from
  22302. the PDP-11 target:
  22303. (define_expand "doloop_end"
  22304. [(parallel [(set (pc)
  22305. (if_then_else
  22306. (ne (match_operand:HI 0 "nonimmediate_operand" "+r,!m")
  22307. (const_int 1))
  22308. (label_ref (match_operand 1 "" ""))
  22309. (pc)))
  22310. (set (match_dup 0)
  22311. (plus:HI (match_dup 0)
  22312. (const_int -1)))])]
  22313. ""
  22314. "{
  22315. if (GET_MODE (operands[0]) != HImode)
  22316. FAIL;
  22317. }")
  22318. (define_insn "doloop_end_insn"
  22319. [(set (pc)
  22320. (if_then_else
  22321. (ne (match_operand:HI 0 "nonimmediate_operand" "+r,!m")
  22322. (const_int 1))
  22323. (label_ref (match_operand 1 "" ""))
  22324. (pc)))
  22325. (set (match_dup 0)
  22326. (plus:HI (match_dup 0)
  22327. (const_int -1)))]
  22328. ""
  22329. {
  22330. if (which_alternative == 0)
  22331. return "sob %0,%l1";
  22332. /* emulate sob */
  22333. output_asm_insn ("dec %0", operands);
  22334. return "bne %l1";
  22335. })
  22336. The first part of the pattern describes the branch condition. GCC
  22337. supports three cases for the way the target machine handles the loop
  22338. counter:
  22339. * Loop terminates when the loop register decrements to zero. This is
  22340. represented by a 'ne' comparison of the register (its old value)
  22341. with constant 1 (as in the example above).
  22342. * Loop terminates when the loop register decrements to -1. This is
  22343. represented by a 'ne' comparison of the register with constant
  22344. zero.
  22345. * Loop terminates when the loop register decrements to a negative
  22346. value. This is represented by a 'ge' comparison of the register
  22347. with constant zero. For this case, GCC will attach a 'REG_NONNEG'
  22348. note to the 'doloop_end' insn if it can determine that the register
  22349. will be non-negative.
  22350. Since the 'doloop_end' insn is a jump insn that also has an output, the
  22351. reload pass does not handle the output operand. Therefore, the
  22352. constraint must allow for that operand to be in memory rather than a
  22353. register. In the example shown above, that is handled (in the
  22354. 'doloop_end_insn' pattern) by using a loop instruction sequence that can
  22355. handle memory operands when the memory alternative appears.
  22356. GCC does not check the mode of the loop register operand when
  22357. generating the 'doloop_end' pattern. If the pattern is only valid for
  22358. some modes but not others, the pattern should be a 'define_expand'
  22359. pattern that checks the operand mode in the preparation code, and issues
  22360. 'FAIL' if an unsupported mode is found. The example above does this,
  22361. since the machine instruction to be used only exists for 'HImode'.
  22362. If the 'doloop_end' pattern is a 'define_expand', there must also be a
  22363. 'define_insn' or 'define_insn_and_split' matching the generated pattern.
  22364. Otherwise, the compiler will fail during loop optimization.
  22365. 
  22366. File: gccint.info, Node: Insn Canonicalizations, Next: Expander Definitions, Prev: Looping Patterns, Up: Machine Desc
  22367. 17.14 Canonicalization of Instructions
  22368. ======================================
  22369. There are often cases where multiple RTL expressions could represent an
  22370. operation performed by a single machine instruction. This situation is
  22371. most commonly encountered with logical, branch, and multiply-accumulate
  22372. instructions. In such cases, the compiler attempts to convert these
  22373. multiple RTL expressions into a single canonical form to reduce the
  22374. number of insn patterns required.
  22375. In addition to algebraic simplifications, following canonicalizations
  22376. are performed:
  22377. * For commutative and comparison operators, a constant is always made
  22378. the second operand. If a machine only supports a constant as the
  22379. second operand, only patterns that match a constant in the second
  22380. operand need be supplied.
  22381. * For associative operators, a sequence of operators will always
  22382. chain to the left; for instance, only the left operand of an
  22383. integer 'plus' can itself be a 'plus'. 'and', 'ior', 'xor',
  22384. 'plus', 'mult', 'smin', 'smax', 'umin', and 'umax' are associative
  22385. when applied to integers, and sometimes to floating-point.
  22386. * For these operators, if only one operand is a 'neg', 'not', 'mult',
  22387. 'plus', or 'minus' expression, it will be the first operand.
  22388. * In combinations of 'neg', 'mult', 'plus', and 'minus', the 'neg'
  22389. operations (if any) will be moved inside the operations as far as
  22390. possible. For instance, '(neg (mult A B))' is canonicalized as
  22391. '(mult (neg A) B)', but '(plus (mult (neg B) C) A)' is
  22392. canonicalized as '(minus A (mult B C))'.
  22393. * For the 'compare' operator, a constant is always the second operand
  22394. if the first argument is a condition code register or '(cc0)'.
  22395. * For instructions that inherently set a condition code register, the
  22396. 'compare' operator is always written as the first RTL expression of
  22397. the 'parallel' instruction pattern. For example,
  22398. (define_insn ""
  22399. [(set (reg:CCZ FLAGS_REG)
  22400. (compare:CCZ
  22401. (plus:SI
  22402. (match_operand:SI 1 "register_operand" "%r")
  22403. (match_operand:SI 2 "register_operand" "r"))
  22404. (const_int 0)))
  22405. (set (match_operand:SI 0 "register_operand" "=r")
  22406. (plus:SI (match_dup 1) (match_dup 2)))]
  22407. ""
  22408. "addl %0, %1, %2")
  22409. * An operand of 'neg', 'not', 'mult', 'plus', or 'minus' is made the
  22410. first operand under the same conditions as above.
  22411. * '(ltu (plus A B) B)' is converted to '(ltu (plus A B) A)'.
  22412. Likewise with 'geu' instead of 'ltu'.
  22413. * '(minus X (const_int N))' is converted to '(plus X (const_int
  22414. -N))'.
  22415. * Within address computations (i.e., inside 'mem'), a left shift is
  22416. converted into the appropriate multiplication by a power of two.
  22417. * De Morgan's Law is used to move bitwise negation inside a bitwise
  22418. logical-and or logical-or operation. If this results in only one
  22419. operand being a 'not' expression, it will be the first one.
  22420. A machine that has an instruction that performs a bitwise
  22421. logical-and of one operand with the bitwise negation of the other
  22422. should specify the pattern for that instruction as
  22423. (define_insn ""
  22424. [(set (match_operand:M 0 ...)
  22425. (and:M (not:M (match_operand:M 1 ...))
  22426. (match_operand:M 2 ...)))]
  22427. "..."
  22428. "...")
  22429. Similarly, a pattern for a "NAND" instruction should be written
  22430. (define_insn ""
  22431. [(set (match_operand:M 0 ...)
  22432. (ior:M (not:M (match_operand:M 1 ...))
  22433. (not:M (match_operand:M 2 ...))))]
  22434. "..."
  22435. "...")
  22436. In both cases, it is not necessary to include patterns for the many
  22437. logically equivalent RTL expressions.
  22438. * The only possible RTL expressions involving both bitwise
  22439. exclusive-or and bitwise negation are '(xor:M X Y)' and '(not:M
  22440. (xor:M X Y))'.
  22441. * The sum of three items, one of which is a constant, will only
  22442. appear in the form
  22443. (plus:M (plus:M X Y) CONSTANT)
  22444. * Equality comparisons of a group of bits (usually a single bit) with
  22445. zero will be written using 'zero_extract' rather than the
  22446. equivalent 'and' or 'sign_extract' operations.
  22447. * '(sign_extend:M1 (mult:M2 (sign_extend:M2 X) (sign_extend:M2 Y)))'
  22448. is converted to '(mult:M1 (sign_extend:M1 X) (sign_extend:M1 Y))',
  22449. and likewise for 'zero_extend'.
  22450. * '(sign_extend:M1 (mult:M2 (ashiftrt:M2 X S) (sign_extend:M2 Y)))'
  22451. is converted to '(mult:M1 (sign_extend:M1 (ashiftrt:M2 X S))
  22452. (sign_extend:M1 Y))', and likewise for patterns using 'zero_extend'
  22453. and 'lshiftrt'. If the second operand of 'mult' is also a shift,
  22454. then that is extended also. This transformation is only applied
  22455. when it can be proven that the original operation had sufficient
  22456. precision to prevent overflow.
  22457. Further canonicalization rules are defined in the function
  22458. 'commutative_operand_precedence' in 'gcc/rtlanal.c'.
  22459. 
  22460. File: gccint.info, Node: Expander Definitions, Next: Insn Splitting, Prev: Insn Canonicalizations, Up: Machine Desc
  22461. 17.15 Defining RTL Sequences for Code Generation
  22462. ================================================
  22463. On some target machines, some standard pattern names for RTL generation
  22464. cannot be handled with single insn, but a sequence of RTL insns can
  22465. represent them. For these target machines, you can write a
  22466. 'define_expand' to specify how to generate the sequence of RTL.
  22467. A 'define_expand' is an RTL expression that looks almost like a
  22468. 'define_insn'; but, unlike the latter, a 'define_expand' is used only
  22469. for RTL generation and it can produce more than one RTL insn.
  22470. A 'define_expand' RTX has four operands:
  22471. * The name. Each 'define_expand' must have a name, since the only
  22472. use for it is to refer to it by name.
  22473. * The RTL template. This is a vector of RTL expressions representing
  22474. a sequence of separate instructions. Unlike 'define_insn', there
  22475. is no implicit surrounding 'PARALLEL'.
  22476. * The condition, a string containing a C expression. This expression
  22477. is used to express how the availability of this pattern depends on
  22478. subclasses of target machine, selected by command-line options when
  22479. GCC is run. This is just like the condition of a 'define_insn'
  22480. that has a standard name. Therefore, the condition (if present)
  22481. may not depend on the data in the insn being matched, but only the
  22482. target-machine-type flags. The compiler needs to test these
  22483. conditions during initialization in order to learn exactly which
  22484. named instructions are available in a particular run.
  22485. * The preparation statements, a string containing zero or more C
  22486. statements which are to be executed before RTL code is generated
  22487. from the RTL template.
  22488. Usually these statements prepare temporary registers for use as
  22489. internal operands in the RTL template, but they can also generate
  22490. RTL insns directly by calling routines such as 'emit_insn', etc.
  22491. Any such insns precede the ones that come from the RTL template.
  22492. * Optionally, a vector containing the values of attributes. *Note
  22493. Insn Attributes::.
  22494. Every RTL insn emitted by a 'define_expand' must match some
  22495. 'define_insn' in the machine description. Otherwise, the compiler will
  22496. crash when trying to generate code for the insn or trying to optimize
  22497. it.
  22498. The RTL template, in addition to controlling generation of RTL insns,
  22499. also describes the operands that need to be specified when this pattern
  22500. is used. In particular, it gives a predicate for each operand.
  22501. A true operand, which needs to be specified in order to generate RTL
  22502. from the pattern, should be described with a 'match_operand' in its
  22503. first occurrence in the RTL template. This enters information on the
  22504. operand's predicate into the tables that record such things. GCC uses
  22505. the information to preload the operand into a register if that is
  22506. required for valid RTL code. If the operand is referred to more than
  22507. once, subsequent references should use 'match_dup'.
  22508. The RTL template may also refer to internal "operands" which are
  22509. temporary registers or labels used only within the sequence made by the
  22510. 'define_expand'. Internal operands are substituted into the RTL
  22511. template with 'match_dup', never with 'match_operand'. The values of
  22512. the internal operands are not passed in as arguments by the compiler
  22513. when it requests use of this pattern. Instead, they are computed within
  22514. the pattern, in the preparation statements. These statements compute
  22515. the values and store them into the appropriate elements of 'operands' so
  22516. that 'match_dup' can find them.
  22517. There are two special macros defined for use in the preparation
  22518. statements: 'DONE' and 'FAIL'. Use them with a following semicolon, as
  22519. a statement.
  22520. 'DONE'
  22521. Use the 'DONE' macro to end RTL generation for the pattern. The
  22522. only RTL insns resulting from the pattern on this occasion will be
  22523. those already emitted by explicit calls to 'emit_insn' within the
  22524. preparation statements; the RTL template will not be generated.
  22525. 'FAIL'
  22526. Make the pattern fail on this occasion. When a pattern fails, it
  22527. means that the pattern was not truly available. The calling
  22528. routines in the compiler will try other strategies for code
  22529. generation using other patterns.
  22530. Failure is currently supported only for binary (addition,
  22531. multiplication, shifting, etc.) and bit-field ('extv', 'extzv',
  22532. and 'insv') operations.
  22533. If the preparation falls through (invokes neither 'DONE' nor 'FAIL'),
  22534. then the 'define_expand' acts like a 'define_insn' in that the RTL
  22535. template is used to generate the insn.
  22536. The RTL template is not used for matching, only for generating the
  22537. initial insn list. If the preparation statement always invokes 'DONE'
  22538. or 'FAIL', the RTL template may be reduced to a simple list of operands,
  22539. such as this example:
  22540. (define_expand "addsi3"
  22541. [(match_operand:SI 0 "register_operand" "")
  22542. (match_operand:SI 1 "register_operand" "")
  22543. (match_operand:SI 2 "register_operand" "")]
  22544. ""
  22545. "
  22546. {
  22547. handle_add (operands[0], operands[1], operands[2]);
  22548. DONE;
  22549. }")
  22550. Here is an example, the definition of left-shift for the SPUR chip:
  22551. (define_expand "ashlsi3"
  22552. [(set (match_operand:SI 0 "register_operand" "")
  22553. (ashift:SI
  22554. (match_operand:SI 1 "register_operand" "")
  22555. (match_operand:SI 2 "nonmemory_operand" "")))]
  22556. ""
  22557. "
  22558. {
  22559. if (GET_CODE (operands[2]) != CONST_INT
  22560. || (unsigned) INTVAL (operands[2]) > 3)
  22561. FAIL;
  22562. }")
  22563. This example uses 'define_expand' so that it can generate an RTL insn
  22564. for shifting when the shift-count is in the supported range of 0 to 3
  22565. but fail in other cases where machine insns aren't available. When it
  22566. fails, the compiler tries another strategy using different patterns
  22567. (such as, a library call).
  22568. If the compiler were able to handle nontrivial condition-strings in
  22569. patterns with names, then it would be possible to use a 'define_insn' in
  22570. that case. Here is another case (zero-extension on the 68000) which
  22571. makes more use of the power of 'define_expand':
  22572. (define_expand "zero_extendhisi2"
  22573. [(set (match_operand:SI 0 "general_operand" "")
  22574. (const_int 0))
  22575. (set (strict_low_part
  22576. (subreg:HI
  22577. (match_dup 0)
  22578. 0))
  22579. (match_operand:HI 1 "general_operand" ""))]
  22580. ""
  22581. "operands[1] = make_safe_from (operands[1], operands[0]);")
  22582. Here two RTL insns are generated, one to clear the entire output operand
  22583. and the other to copy the input operand into its low half. This
  22584. sequence is incorrect if the input operand refers to [the old value of]
  22585. the output operand, so the preparation statement makes sure this isn't
  22586. so. The function 'make_safe_from' copies the 'operands[1]' into a
  22587. temporary register if it refers to 'operands[0]'. It does this by
  22588. emitting another RTL insn.
  22589. Finally, a third example shows the use of an internal operand.
  22590. Zero-extension on the SPUR chip is done by 'and'-ing the result against
  22591. a halfword mask. But this mask cannot be represented by a 'const_int'
  22592. because the constant value is too large to be legitimate on this
  22593. machine. So it must be copied into a register with 'force_reg' and then
  22594. the register used in the 'and'.
  22595. (define_expand "zero_extendhisi2"
  22596. [(set (match_operand:SI 0 "register_operand" "")
  22597. (and:SI (subreg:SI
  22598. (match_operand:HI 1 "register_operand" "")
  22599. 0)
  22600. (match_dup 2)))]
  22601. ""
  22602. "operands[2]
  22603. = force_reg (SImode, GEN_INT (65535)); ")
  22604. _Note:_ If the 'define_expand' is used to serve a standard binary or
  22605. unary arithmetic operation or a bit-field operation, then the last insn
  22606. it generates must not be a 'code_label', 'barrier' or 'note'. It must
  22607. be an 'insn', 'jump_insn' or 'call_insn'. If you don't need a real insn
  22608. at the end, emit an insn to copy the result of the operation into
  22609. itself. Such an insn will generate no code, but it can avoid problems
  22610. in the compiler.
  22611. 
  22612. File: gccint.info, Node: Insn Splitting, Next: Including Patterns, Prev: Expander Definitions, Up: Machine Desc
  22613. 17.16 Defining How to Split Instructions
  22614. ========================================
  22615. There are two cases where you should specify how to split a pattern into
  22616. multiple insns. On machines that have instructions requiring delay
  22617. slots (*note Delay Slots::) or that have instructions whose output is
  22618. not available for multiple cycles (*note Processor pipeline
  22619. description::), the compiler phases that optimize these cases need to be
  22620. able to move insns into one-instruction delay slots. However, some
  22621. insns may generate more than one machine instruction. These insns
  22622. cannot be placed into a delay slot.
  22623. Often you can rewrite the single insn as a list of individual insns,
  22624. each corresponding to one machine instruction. The disadvantage of
  22625. doing so is that it will cause the compilation to be slower and require
  22626. more space. If the resulting insns are too complex, it may also
  22627. suppress some optimizations. The compiler splits the insn if there is a
  22628. reason to believe that it might improve instruction or delay slot
  22629. scheduling.
  22630. The insn combiner phase also splits putative insns. If three insns are
  22631. merged into one insn with a complex expression that cannot be matched by
  22632. some 'define_insn' pattern, the combiner phase attempts to split the
  22633. complex pattern into two insns that are recognized. Usually it can
  22634. break the complex pattern into two patterns by splitting out some
  22635. subexpression. However, in some other cases, such as performing an
  22636. addition of a large constant in two insns on a RISC machine, the way to
  22637. split the addition into two insns is machine-dependent.
  22638. The 'define_split' definition tells the compiler how to split a complex
  22639. insn into several simpler insns. It looks like this:
  22640. (define_split
  22641. [INSN-PATTERN]
  22642. "CONDITION"
  22643. [NEW-INSN-PATTERN-1
  22644. NEW-INSN-PATTERN-2
  22645. ...]
  22646. "PREPARATION-STATEMENTS")
  22647. INSN-PATTERN is a pattern that needs to be split and CONDITION is the
  22648. final condition to be tested, as in a 'define_insn'. When an insn
  22649. matching INSN-PATTERN and satisfying CONDITION is found, it is replaced
  22650. in the insn list with the insns given by NEW-INSN-PATTERN-1,
  22651. NEW-INSN-PATTERN-2, etc.
  22652. The PREPARATION-STATEMENTS are similar to those statements that are
  22653. specified for 'define_expand' (*note Expander Definitions::) and are
  22654. executed before the new RTL is generated to prepare for the generated
  22655. code or emit some insns whose pattern is not fixed. Unlike those in
  22656. 'define_expand', however, these statements must not generate any new
  22657. pseudo-registers. Once reload has completed, they also must not
  22658. allocate any space in the stack frame.
  22659. There are two special macros defined for use in the preparation
  22660. statements: 'DONE' and 'FAIL'. Use them with a following semicolon, as
  22661. a statement.
  22662. 'DONE'
  22663. Use the 'DONE' macro to end RTL generation for the splitter. The
  22664. only RTL insns generated as replacement for the matched input insn
  22665. will be those already emitted by explicit calls to 'emit_insn'
  22666. within the preparation statements; the replacement pattern is not
  22667. used.
  22668. 'FAIL'
  22669. Make the 'define_split' fail on this occasion. When a
  22670. 'define_split' fails, it means that the splitter was not truly
  22671. available for the inputs it was given, and the input insn will not
  22672. be split.
  22673. If the preparation falls through (invokes neither 'DONE' nor 'FAIL'),
  22674. then the 'define_split' uses the replacement template.
  22675. Patterns are matched against INSN-PATTERN in two different
  22676. circumstances. If an insn needs to be split for delay slot scheduling
  22677. or insn scheduling, the insn is already known to be valid, which means
  22678. that it must have been matched by some 'define_insn' and, if
  22679. 'reload_completed' is nonzero, is known to satisfy the constraints of
  22680. that 'define_insn'. In that case, the new insn patterns must also be
  22681. insns that are matched by some 'define_insn' and, if 'reload_completed'
  22682. is nonzero, must also satisfy the constraints of those definitions.
  22683. As an example of this usage of 'define_split', consider the following
  22684. example from 'a29k.md', which splits a 'sign_extend' from 'HImode' to
  22685. 'SImode' into a pair of shift insns:
  22686. (define_split
  22687. [(set (match_operand:SI 0 "gen_reg_operand" "")
  22688. (sign_extend:SI (match_operand:HI 1 "gen_reg_operand" "")))]
  22689. ""
  22690. [(set (match_dup 0)
  22691. (ashift:SI (match_dup 1)
  22692. (const_int 16)))
  22693. (set (match_dup 0)
  22694. (ashiftrt:SI (match_dup 0)
  22695. (const_int 16)))]
  22696. "
  22697. { operands[1] = gen_lowpart (SImode, operands[1]); }")
  22698. When the combiner phase tries to split an insn pattern, it is always
  22699. the case that the pattern is _not_ matched by any 'define_insn'. The
  22700. combiner pass first tries to split a single 'set' expression and then
  22701. the same 'set' expression inside a 'parallel', but followed by a
  22702. 'clobber' of a pseudo-reg to use as a scratch register. In these cases,
  22703. the combiner expects exactly one or two new insn patterns to be
  22704. generated. It will verify that these patterns match some 'define_insn'
  22705. definitions, so you need not do this test in the 'define_split' (of
  22706. course, there is no point in writing a 'define_split' that will never
  22707. produce insns that match).
  22708. Here is an example of this use of 'define_split', taken from
  22709. 'rs6000.md':
  22710. (define_split
  22711. [(set (match_operand:SI 0 "gen_reg_operand" "")
  22712. (plus:SI (match_operand:SI 1 "gen_reg_operand" "")
  22713. (match_operand:SI 2 "non_add_cint_operand" "")))]
  22714. ""
  22715. [(set (match_dup 0) (plus:SI (match_dup 1) (match_dup 3)))
  22716. (set (match_dup 0) (plus:SI (match_dup 0) (match_dup 4)))]
  22717. "
  22718. {
  22719. int low = INTVAL (operands[2]) & 0xffff;
  22720. int high = (unsigned) INTVAL (operands[2]) >> 16;
  22721. if (low & 0x8000)
  22722. high++, low |= 0xffff0000;
  22723. operands[3] = GEN_INT (high << 16);
  22724. operands[4] = GEN_INT (low);
  22725. }")
  22726. Here the predicate 'non_add_cint_operand' matches any 'const_int' that
  22727. is _not_ a valid operand of a single add insn. The add with the smaller
  22728. displacement is written so that it can be substituted into the address
  22729. of a subsequent operation.
  22730. An example that uses a scratch register, from the same file, generates
  22731. an equality comparison of a register and a large constant:
  22732. (define_split
  22733. [(set (match_operand:CC 0 "cc_reg_operand" "")
  22734. (compare:CC (match_operand:SI 1 "gen_reg_operand" "")
  22735. (match_operand:SI 2 "non_short_cint_operand" "")))
  22736. (clobber (match_operand:SI 3 "gen_reg_operand" ""))]
  22737. "find_single_use (operands[0], insn, 0)
  22738. && (GET_CODE (*find_single_use (operands[0], insn, 0)) == EQ
  22739. || GET_CODE (*find_single_use (operands[0], insn, 0)) == NE)"
  22740. [(set (match_dup 3) (xor:SI (match_dup 1) (match_dup 4)))
  22741. (set (match_dup 0) (compare:CC (match_dup 3) (match_dup 5)))]
  22742. "
  22743. {
  22744. /* Get the constant we are comparing against, C, and see what it
  22745. looks like sign-extended to 16 bits. Then see what constant
  22746. could be XOR'ed with C to get the sign-extended value. */
  22747. int c = INTVAL (operands[2]);
  22748. int sextc = (c << 16) >> 16;
  22749. int xorv = c ^ sextc;
  22750. operands[4] = GEN_INT (xorv);
  22751. operands[5] = GEN_INT (sextc);
  22752. }")
  22753. To avoid confusion, don't write a single 'define_split' that accepts
  22754. some insns that match some 'define_insn' as well as some insns that
  22755. don't. Instead, write two separate 'define_split' definitions, one for
  22756. the insns that are valid and one for the insns that are not valid.
  22757. The splitter is allowed to split jump instructions into sequence of
  22758. jumps or create new jumps in while splitting non-jump instructions. As
  22759. the control flow graph and branch prediction information needs to be
  22760. updated, several restriction apply.
  22761. Splitting of jump instruction into sequence that over by another jump
  22762. instruction is always valid, as compiler expect identical behavior of
  22763. new jump. When new sequence contains multiple jump instructions or new
  22764. labels, more assistance is needed. Splitter is required to create only
  22765. unconditional jumps, or simple conditional jump instructions.
  22766. Additionally it must attach a 'REG_BR_PROB' note to each conditional
  22767. jump. A global variable 'split_branch_probability' holds the
  22768. probability of the original branch in case it was a simple conditional
  22769. jump, -1 otherwise. To simplify recomputing of edge frequencies, the
  22770. new sequence is required to have only forward jumps to the newly created
  22771. labels.
  22772. For the common case where the pattern of a define_split exactly matches
  22773. the pattern of a define_insn, use 'define_insn_and_split'. It looks
  22774. like this:
  22775. (define_insn_and_split
  22776. [INSN-PATTERN]
  22777. "CONDITION"
  22778. "OUTPUT-TEMPLATE"
  22779. "SPLIT-CONDITION"
  22780. [NEW-INSN-PATTERN-1
  22781. NEW-INSN-PATTERN-2
  22782. ...]
  22783. "PREPARATION-STATEMENTS"
  22784. [INSN-ATTRIBUTES])
  22785. INSN-PATTERN, CONDITION, OUTPUT-TEMPLATE, and INSN-ATTRIBUTES are used
  22786. as in 'define_insn'. The NEW-INSN-PATTERN vector and the
  22787. PREPARATION-STATEMENTS are used as in a 'define_split'. The
  22788. SPLIT-CONDITION is also used as in 'define_split', with the additional
  22789. behavior that if the condition starts with '&&', the condition used for
  22790. the split will be the constructed as a logical "and" of the split
  22791. condition with the insn condition. For example, from i386.md:
  22792. (define_insn_and_split "zero_extendhisi2_and"
  22793. [(set (match_operand:SI 0 "register_operand" "=r")
  22794. (zero_extend:SI (match_operand:HI 1 "register_operand" "0")))
  22795. (clobber (reg:CC 17))]
  22796. "TARGET_ZERO_EXTEND_WITH_AND && !optimize_size"
  22797. "#"
  22798. "&& reload_completed"
  22799. [(parallel [(set (match_dup 0)
  22800. (and:SI (match_dup 0) (const_int 65535)))
  22801. (clobber (reg:CC 17))])]
  22802. ""
  22803. [(set_attr "type" "alu1")])
  22804. In this case, the actual split condition will be
  22805. 'TARGET_ZERO_EXTEND_WITH_AND && !optimize_size && reload_completed'.
  22806. The 'define_insn_and_split' construction provides exactly the same
  22807. functionality as two separate 'define_insn' and 'define_split' patterns.
  22808. It exists for compactness, and as a maintenance tool to prevent having
  22809. to ensure the two patterns' templates match.
  22810. It is sometimes useful to have a 'define_insn_and_split' that replaces
  22811. specific operands of an instruction but leaves the rest of the
  22812. instruction pattern unchanged. You can do this directly with a
  22813. 'define_insn_and_split', but it requires a NEW-INSN-PATTERN-1 that
  22814. repeats most of the original INSN-PATTERN. There is also the
  22815. complication that an implicit 'parallel' in INSN-PATTERN must become an
  22816. explicit 'parallel' in NEW-INSN-PATTERN-1, which is easy to overlook. A
  22817. simpler alternative is to use 'define_insn_and_rewrite', which is a form
  22818. of 'define_insn_and_split' that automatically generates
  22819. NEW-INSN-PATTERN-1 by replacing each 'match_operand' in INSN-PATTERN
  22820. with a corresponding 'match_dup', and each 'match_operator' in the
  22821. pattern with a corresponding 'match_op_dup'. The arguments are
  22822. otherwise identical to 'define_insn_and_split':
  22823. (define_insn_and_rewrite
  22824. [INSN-PATTERN]
  22825. "CONDITION"
  22826. "OUTPUT-TEMPLATE"
  22827. "SPLIT-CONDITION"
  22828. "PREPARATION-STATEMENTS"
  22829. [INSN-ATTRIBUTES])
  22830. The 'match_dup's and 'match_op_dup's in the new instruction pattern use
  22831. any new operand values that the PREPARATION-STATEMENTS store in the
  22832. 'operands' array, as for a normal 'define_insn_and_split'.
  22833. PREPARATION-STATEMENTS can also emit additional instructions before the
  22834. new instruction. They can even emit an entirely different sequence of
  22835. instructions and use 'DONE' to avoid emitting a new form of the original
  22836. instruction.
  22837. The split in a 'define_insn_and_rewrite' is only intended to apply to
  22838. existing instructions that match INSN-PATTERN. SPLIT-CONDITION must
  22839. therefore start with '&&', so that the split condition applies on top of
  22840. CONDITION.
  22841. Here is an example from the AArch64 SVE port, in which operand 1 is
  22842. known to be equivalent to an all-true constant and isn't used by the
  22843. output template:
  22844. (define_insn_and_rewrite "*while_ult<GPI:mode><PRED_ALL:mode>_cc"
  22845. [(set (reg:CC CC_REGNUM)
  22846. (compare:CC
  22847. (unspec:SI [(match_operand:PRED_ALL 1)
  22848. (unspec:PRED_ALL
  22849. [(match_operand:GPI 2 "aarch64_reg_or_zero" "rZ")
  22850. (match_operand:GPI 3 "aarch64_reg_or_zero" "rZ")]
  22851. UNSPEC_WHILE_LO)]
  22852. UNSPEC_PTEST_PTRUE)
  22853. (const_int 0)))
  22854. (set (match_operand:PRED_ALL 0 "register_operand" "=Upa")
  22855. (unspec:PRED_ALL [(match_dup 2)
  22856. (match_dup 3)]
  22857. UNSPEC_WHILE_LO))]
  22858. "TARGET_SVE"
  22859. "whilelo\t%0.<PRED_ALL:Vetype>, %<w>2, %<w>3"
  22860. ;; Force the compiler to drop the unused predicate operand, so that we
  22861. ;; don't have an unnecessary PTRUE.
  22862. "&& !CONSTANT_P (operands[1])"
  22863. {
  22864. operands[1] = CONSTM1_RTX (<MODE>mode);
  22865. }
  22866. )
  22867. The splitter in this case simply replaces operand 1 with the constant
  22868. value that it is known to have. The equivalent 'define_insn_and_split'
  22869. would be:
  22870. (define_insn_and_split "*while_ult<GPI:mode><PRED_ALL:mode>_cc"
  22871. [(set (reg:CC CC_REGNUM)
  22872. (compare:CC
  22873. (unspec:SI [(match_operand:PRED_ALL 1)
  22874. (unspec:PRED_ALL
  22875. [(match_operand:GPI 2 "aarch64_reg_or_zero" "rZ")
  22876. (match_operand:GPI 3 "aarch64_reg_or_zero" "rZ")]
  22877. UNSPEC_WHILE_LO)]
  22878. UNSPEC_PTEST_PTRUE)
  22879. (const_int 0)))
  22880. (set (match_operand:PRED_ALL 0 "register_operand" "=Upa")
  22881. (unspec:PRED_ALL [(match_dup 2)
  22882. (match_dup 3)]
  22883. UNSPEC_WHILE_LO))]
  22884. "TARGET_SVE"
  22885. "whilelo\t%0.<PRED_ALL:Vetype>, %<w>2, %<w>3"
  22886. ;; Force the compiler to drop the unused predicate operand, so that we
  22887. ;; don't have an unnecessary PTRUE.
  22888. "&& !CONSTANT_P (operands[1])"
  22889. [(parallel
  22890. [(set (reg:CC CC_REGNUM)
  22891. (compare:CC
  22892. (unspec:SI [(match_dup 1)
  22893. (unspec:PRED_ALL [(match_dup 2)
  22894. (match_dup 3)]
  22895. UNSPEC_WHILE_LO)]
  22896. UNSPEC_PTEST_PTRUE)
  22897. (const_int 0)))
  22898. (set (match_dup 0)
  22899. (unspec:PRED_ALL [(match_dup 2)
  22900. (match_dup 3)]
  22901. UNSPEC_WHILE_LO))])]
  22902. {
  22903. operands[1] = CONSTM1_RTX (<MODE>mode);
  22904. }
  22905. )
  22906. 
  22907. File: gccint.info, Node: Including Patterns, Next: Peephole Definitions, Prev: Insn Splitting, Up: Machine Desc
  22908. 17.17 Including Patterns in Machine Descriptions.
  22909. =================================================
  22910. The 'include' pattern tells the compiler tools where to look for
  22911. patterns that are in files other than in the file '.md'. This is used
  22912. only at build time and there is no preprocessing allowed.
  22913. It looks like:
  22914. (include
  22915. PATHNAME)
  22916. For example:
  22917. (include "filestuff")
  22918. Where PATHNAME is a string that specifies the location of the file,
  22919. specifies the include file to be in 'gcc/config/target/filestuff'. The
  22920. directory 'gcc/config/target' is regarded as the default directory.
  22921. Machine descriptions may be split up into smaller more manageable
  22922. subsections and placed into subdirectories.
  22923. By specifying:
  22924. (include "BOGUS/filestuff")
  22925. the include file is specified to be in
  22926. 'gcc/config/TARGET/BOGUS/filestuff'.
  22927. Specifying an absolute path for the include file such as;
  22928. (include "/u2/BOGUS/filestuff")
  22929. is permitted but is not encouraged.
  22930. 17.17.1 RTL Generation Tool Options for Directory Search
  22931. --------------------------------------------------------
  22932. The '-IDIR' option specifies directories to search for machine
  22933. descriptions. For example:
  22934. genrecog -I/p1/abc/proc1 -I/p2/abcd/pro2 target.md
  22935. Add the directory DIR to the head of the list of directories to be
  22936. searched for header files. This can be used to override a system
  22937. machine definition file, substituting your own version, since these
  22938. directories are searched before the default machine description file
  22939. directories. If you use more than one '-I' option, the directories are
  22940. scanned in left-to-right order; the standard default directory come
  22941. after.
  22942. 
  22943. File: gccint.info, Node: Peephole Definitions, Next: Insn Attributes, Prev: Including Patterns, Up: Machine Desc
  22944. 17.18 Machine-Specific Peephole Optimizers
  22945. ==========================================
  22946. In addition to instruction patterns the 'md' file may contain
  22947. definitions of machine-specific peephole optimizations.
  22948. The combiner does not notice certain peephole optimizations when the
  22949. data flow in the program does not suggest that it should try them. For
  22950. example, sometimes two consecutive insns related in purpose can be
  22951. combined even though the second one does not appear to use a register
  22952. computed in the first one. A machine-specific peephole optimizer can
  22953. detect such opportunities.
  22954. There are two forms of peephole definitions that may be used. The
  22955. original 'define_peephole' is run at assembly output time to match insns
  22956. and substitute assembly text. Use of 'define_peephole' is deprecated.
  22957. A newer 'define_peephole2' matches insns and substitutes new insns.
  22958. The 'peephole2' pass is run after register allocation but before
  22959. scheduling, which may result in much better code for targets that do
  22960. scheduling.
  22961. * Menu:
  22962. * define_peephole:: RTL to Text Peephole Optimizers
  22963. * define_peephole2:: RTL to RTL Peephole Optimizers
  22964. 
  22965. File: gccint.info, Node: define_peephole, Next: define_peephole2, Up: Peephole Definitions
  22966. 17.18.1 RTL to Text Peephole Optimizers
  22967. ---------------------------------------
  22968. A definition looks like this:
  22969. (define_peephole
  22970. [INSN-PATTERN-1
  22971. INSN-PATTERN-2
  22972. ...]
  22973. "CONDITION"
  22974. "TEMPLATE"
  22975. "OPTIONAL-INSN-ATTRIBUTES")
  22976. The last string operand may be omitted if you are not using any
  22977. machine-specific information in this machine description. If present,
  22978. it must obey the same rules as in a 'define_insn'.
  22979. In this skeleton, INSN-PATTERN-1 and so on are patterns to match
  22980. consecutive insns. The optimization applies to a sequence of insns when
  22981. INSN-PATTERN-1 matches the first one, INSN-PATTERN-2 matches the next,
  22982. and so on.
  22983. Each of the insns matched by a peephole must also match a
  22984. 'define_insn'. Peepholes are checked only at the last stage just before
  22985. code generation, and only optionally. Therefore, any insn which would
  22986. match a peephole but no 'define_insn' will cause a crash in code
  22987. generation in an unoptimized compilation, or at various optimization
  22988. stages.
  22989. The operands of the insns are matched with 'match_operands',
  22990. 'match_operator', and 'match_dup', as usual. What is not usual is that
  22991. the operand numbers apply to all the insn patterns in the definition.
  22992. So, you can check for identical operands in two insns by using
  22993. 'match_operand' in one insn and 'match_dup' in the other.
  22994. The operand constraints used in 'match_operand' patterns do not have
  22995. any direct effect on the applicability of the peephole, but they will be
  22996. validated afterward, so make sure your constraints are general enough to
  22997. apply whenever the peephole matches. If the peephole matches but the
  22998. constraints are not satisfied, the compiler will crash.
  22999. It is safe to omit constraints in all the operands of the peephole; or
  23000. you can write constraints which serve as a double-check on the criteria
  23001. previously tested.
  23002. Once a sequence of insns matches the patterns, the CONDITION is
  23003. checked. This is a C expression which makes the final decision whether
  23004. to perform the optimization (we do so if the expression is nonzero). If
  23005. CONDITION is omitted (in other words, the string is empty) then the
  23006. optimization is applied to every sequence of insns that matches the
  23007. patterns.
  23008. The defined peephole optimizations are applied after register
  23009. allocation is complete. Therefore, the peephole definition can check
  23010. which operands have ended up in which kinds of registers, just by
  23011. looking at the operands.
  23012. The way to refer to the operands in CONDITION is to write 'operands[I]'
  23013. for operand number I (as matched by '(match_operand I ...)'). Use the
  23014. variable 'insn' to refer to the last of the insns being matched; use
  23015. 'prev_active_insn' to find the preceding insns.
  23016. When optimizing computations with intermediate results, you can use
  23017. CONDITION to match only when the intermediate results are not used
  23018. elsewhere. Use the C expression 'dead_or_set_p (INSN, OP)', where INSN
  23019. is the insn in which you expect the value to be used for the last time
  23020. (from the value of 'insn', together with use of 'prev_nonnote_insn'),
  23021. and OP is the intermediate value (from 'operands[I]').
  23022. Applying the optimization means replacing the sequence of insns with
  23023. one new insn. The TEMPLATE controls ultimate output of assembler code
  23024. for this combined insn. It works exactly like the template of a
  23025. 'define_insn'. Operand numbers in this template are the same ones used
  23026. in matching the original sequence of insns.
  23027. The result of a defined peephole optimizer does not need to match any
  23028. of the insn patterns in the machine description; it does not even have
  23029. an opportunity to match them. The peephole optimizer definition itself
  23030. serves as the insn pattern to control how the insn is output.
  23031. Defined peephole optimizers are run as assembler code is being output,
  23032. so the insns they produce are never combined or rearranged in any way.
  23033. Here is an example, taken from the 68000 machine description:
  23034. (define_peephole
  23035. [(set (reg:SI 15) (plus:SI (reg:SI 15) (const_int 4)))
  23036. (set (match_operand:DF 0 "register_operand" "=f")
  23037. (match_operand:DF 1 "register_operand" "ad"))]
  23038. "FP_REG_P (operands[0]) && ! FP_REG_P (operands[1])"
  23039. {
  23040. rtx xoperands[2];
  23041. xoperands[1] = gen_rtx_REG (SImode, REGNO (operands[1]) + 1);
  23042. #ifdef MOTOROLA
  23043. output_asm_insn ("move.l %1,(sp)", xoperands);
  23044. output_asm_insn ("move.l %1,-(sp)", operands);
  23045. return "fmove.d (sp)+,%0";
  23046. #else
  23047. output_asm_insn ("movel %1,sp@", xoperands);
  23048. output_asm_insn ("movel %1,sp@-", operands);
  23049. return "fmoved sp@+,%0";
  23050. #endif
  23051. })
  23052. The effect of this optimization is to change
  23053. jbsr _foobar
  23054. addql #4,sp
  23055. movel d1,sp@-
  23056. movel d0,sp@-
  23057. fmoved sp@+,fp0
  23058. into
  23059. jbsr _foobar
  23060. movel d1,sp@
  23061. movel d0,sp@-
  23062. fmoved sp@+,fp0
  23063. INSN-PATTERN-1 and so on look _almost_ like the second operand of
  23064. 'define_insn'. There is one important difference: the second operand of
  23065. 'define_insn' consists of one or more RTX's enclosed in square brackets.
  23066. Usually, there is only one: then the same action can be written as an
  23067. element of a 'define_peephole'. But when there are multiple actions in
  23068. a 'define_insn', they are implicitly enclosed in a 'parallel'. Then you
  23069. must explicitly write the 'parallel', and the square brackets within it,
  23070. in the 'define_peephole'. Thus, if an insn pattern looks like this,
  23071. (define_insn "divmodsi4"
  23072. [(set (match_operand:SI 0 "general_operand" "=d")
  23073. (div:SI (match_operand:SI 1 "general_operand" "0")
  23074. (match_operand:SI 2 "general_operand" "dmsK")))
  23075. (set (match_operand:SI 3 "general_operand" "=d")
  23076. (mod:SI (match_dup 1) (match_dup 2)))]
  23077. "TARGET_68020"
  23078. "divsl%.l %2,%3:%0")
  23079. then the way to mention this insn in a peephole is as follows:
  23080. (define_peephole
  23081. [...
  23082. (parallel
  23083. [(set (match_operand:SI 0 "general_operand" "=d")
  23084. (div:SI (match_operand:SI 1 "general_operand" "0")
  23085. (match_operand:SI 2 "general_operand" "dmsK")))
  23086. (set (match_operand:SI 3 "general_operand" "=d")
  23087. (mod:SI (match_dup 1) (match_dup 2)))])
  23088. ...]
  23089. ...)
  23090. 
  23091. File: gccint.info, Node: define_peephole2, Prev: define_peephole, Up: Peephole Definitions
  23092. 17.18.2 RTL to RTL Peephole Optimizers
  23093. --------------------------------------
  23094. The 'define_peephole2' definition tells the compiler how to substitute
  23095. one sequence of instructions for another sequence, what additional
  23096. scratch registers may be needed and what their lifetimes must be.
  23097. (define_peephole2
  23098. [INSN-PATTERN-1
  23099. INSN-PATTERN-2
  23100. ...]
  23101. "CONDITION"
  23102. [NEW-INSN-PATTERN-1
  23103. NEW-INSN-PATTERN-2
  23104. ...]
  23105. "PREPARATION-STATEMENTS")
  23106. The definition is almost identical to 'define_split' (*note Insn
  23107. Splitting::) except that the pattern to match is not a single
  23108. instruction, but a sequence of instructions.
  23109. It is possible to request additional scratch registers for use in the
  23110. output template. If appropriate registers are not free, the pattern
  23111. will simply not match.
  23112. Scratch registers are requested with a 'match_scratch' pattern at the
  23113. top level of the input pattern. The allocated register (initially) will
  23114. be dead at the point requested within the original sequence. If the
  23115. scratch is used at more than a single point, a 'match_dup' pattern at
  23116. the top level of the input pattern marks the last position in the input
  23117. sequence at which the register must be available.
  23118. Here is an example from the IA-32 machine description:
  23119. (define_peephole2
  23120. [(match_scratch:SI 2 "r")
  23121. (parallel [(set (match_operand:SI 0 "register_operand" "")
  23122. (match_operator:SI 3 "arith_or_logical_operator"
  23123. [(match_dup 0)
  23124. (match_operand:SI 1 "memory_operand" "")]))
  23125. (clobber (reg:CC 17))])]
  23126. "! optimize_size && ! TARGET_READ_MODIFY"
  23127. [(set (match_dup 2) (match_dup 1))
  23128. (parallel [(set (match_dup 0)
  23129. (match_op_dup 3 [(match_dup 0) (match_dup 2)]))
  23130. (clobber (reg:CC 17))])]
  23131. "")
  23132. This pattern tries to split a load from its use in the hopes that we'll
  23133. be able to schedule around the memory load latency. It allocates a
  23134. single 'SImode' register of class 'GENERAL_REGS' ('"r"') that needs to
  23135. be live only at the point just before the arithmetic.
  23136. A real example requiring extended scratch lifetimes is harder to come
  23137. by, so here's a silly made-up example:
  23138. (define_peephole2
  23139. [(match_scratch:SI 4 "r")
  23140. (set (match_operand:SI 0 "" "") (match_operand:SI 1 "" ""))
  23141. (set (match_operand:SI 2 "" "") (match_dup 1))
  23142. (match_dup 4)
  23143. (set (match_operand:SI 3 "" "") (match_dup 1))]
  23144. "/* determine 1 does not overlap 0 and 2 */"
  23145. [(set (match_dup 4) (match_dup 1))
  23146. (set (match_dup 0) (match_dup 4))
  23147. (set (match_dup 2) (match_dup 4))
  23148. (set (match_dup 3) (match_dup 4))]
  23149. "")
  23150. There are two special macros defined for use in the preparation
  23151. statements: 'DONE' and 'FAIL'. Use them with a following semicolon, as
  23152. a statement.
  23153. 'DONE'
  23154. Use the 'DONE' macro to end RTL generation for the peephole. The
  23155. only RTL insns generated as replacement for the matched input insn
  23156. will be those already emitted by explicit calls to 'emit_insn'
  23157. within the preparation statements; the replacement pattern is not
  23158. used.
  23159. 'FAIL'
  23160. Make the 'define_peephole2' fail on this occasion. When a
  23161. 'define_peephole2' fails, it means that the replacement was not
  23162. truly available for the particular inputs it was given. In that
  23163. case, GCC may still apply a later 'define_peephole2' that also
  23164. matches the given insn pattern. (Note that this is different from
  23165. 'define_split', where 'FAIL' prevents the input insn from being
  23166. split at all.)
  23167. If the preparation falls through (invokes neither 'DONE' nor 'FAIL'),
  23168. then the 'define_peephole2' uses the replacement template.
  23169. If we had not added the '(match_dup 4)' in the middle of the input
  23170. sequence, it might have been the case that the register we chose at the
  23171. beginning of the sequence is killed by the first or second 'set'.
  23172. 
  23173. File: gccint.info, Node: Insn Attributes, Next: Conditional Execution, Prev: Peephole Definitions, Up: Machine Desc
  23174. 17.19 Instruction Attributes
  23175. ============================
  23176. In addition to describing the instruction supported by the target
  23177. machine, the 'md' file also defines a group of "attributes" and a set of
  23178. values for each. Every generated insn is assigned a value for each
  23179. attribute. One possible attribute would be the effect that the insn has
  23180. on the machine's condition code. This attribute can then be used by
  23181. 'NOTICE_UPDATE_CC' to track the condition codes.
  23182. * Menu:
  23183. * Defining Attributes:: Specifying attributes and their values.
  23184. * Expressions:: Valid expressions for attribute values.
  23185. * Tagging Insns:: Assigning attribute values to insns.
  23186. * Attr Example:: An example of assigning attributes.
  23187. * Insn Lengths:: Computing the length of insns.
  23188. * Constant Attributes:: Defining attributes that are constant.
  23189. * Mnemonic Attribute:: Obtain the instruction mnemonic as attribute value.
  23190. * Delay Slots:: Defining delay slots required for a machine.
  23191. * Processor pipeline description:: Specifying information for insn scheduling.
  23192. 
  23193. File: gccint.info, Node: Defining Attributes, Next: Expressions, Up: Insn Attributes
  23194. 17.19.1 Defining Attributes and their Values
  23195. --------------------------------------------
  23196. The 'define_attr' expression is used to define each attribute required
  23197. by the target machine. It looks like:
  23198. (define_attr NAME LIST-OF-VALUES DEFAULT)
  23199. NAME is a string specifying the name of the attribute being defined.
  23200. Some attributes are used in a special way by the rest of the compiler.
  23201. The 'enabled' attribute can be used to conditionally enable or disable
  23202. insn alternatives (*note Disable Insn Alternatives::). The 'predicable'
  23203. attribute, together with a suitable 'define_cond_exec' (*note
  23204. Conditional Execution::), can be used to automatically generate
  23205. conditional variants of instruction patterns. The 'mnemonic' attribute
  23206. can be used to check for the instruction mnemonic (*note Mnemonic
  23207. Attribute::). The compiler internally uses the names 'ce_enabled' and
  23208. 'nonce_enabled', so they should not be used elsewhere as alternative
  23209. names.
  23210. LIST-OF-VALUES is either a string that specifies a comma-separated list
  23211. of values that can be assigned to the attribute, or a null string to
  23212. indicate that the attribute takes numeric values.
  23213. DEFAULT is an attribute expression that gives the value of this
  23214. attribute for insns that match patterns whose definition does not
  23215. include an explicit value for this attribute. *Note Attr Example::, for
  23216. more information on the handling of defaults. *Note Constant
  23217. Attributes::, for information on attributes that do not depend on any
  23218. particular insn.
  23219. For each defined attribute, a number of definitions are written to the
  23220. 'insn-attr.h' file. For cases where an explicit set of values is
  23221. specified for an attribute, the following are defined:
  23222. * A '#define' is written for the symbol 'HAVE_ATTR_NAME'.
  23223. * An enumerated class is defined for 'attr_NAME' with elements of the
  23224. form 'UPPER-NAME_UPPER-VALUE' where the attribute name and value
  23225. are first converted to uppercase.
  23226. * A function 'get_attr_NAME' is defined that is passed an insn and
  23227. returns the attribute value for that insn.
  23228. For example, if the following is present in the 'md' file:
  23229. (define_attr "type" "branch,fp,load,store,arith" ...)
  23230. the following lines will be written to the file 'insn-attr.h'.
  23231. #define HAVE_ATTR_type 1
  23232. enum attr_type {TYPE_BRANCH, TYPE_FP, TYPE_LOAD,
  23233. TYPE_STORE, TYPE_ARITH};
  23234. extern enum attr_type get_attr_type ();
  23235. If the attribute takes numeric values, no 'enum' type will be defined
  23236. and the function to obtain the attribute's value will return 'int'.
  23237. There are attributes which are tied to a specific meaning. These
  23238. attributes are not free to use for other purposes:
  23239. 'length'
  23240. The 'length' attribute is used to calculate the length of emitted
  23241. code chunks. This is especially important when verifying branch
  23242. distances. *Note Insn Lengths::.
  23243. 'enabled'
  23244. The 'enabled' attribute can be defined to prevent certain
  23245. alternatives of an insn definition from being used during code
  23246. generation. *Note Disable Insn Alternatives::.
  23247. 'mnemonic'
  23248. The 'mnemonic' attribute can be defined to implement instruction
  23249. specific checks in e.g. the pipeline description. *Note Mnemonic
  23250. Attribute::.
  23251. For each of these special attributes, the corresponding
  23252. 'HAVE_ATTR_NAME' '#define' is also written when the attribute is not
  23253. defined; in that case, it is defined as '0'.
  23254. Another way of defining an attribute is to use:
  23255. (define_enum_attr "ATTR" "ENUM" DEFAULT)
  23256. This works in just the same way as 'define_attr', except that the list
  23257. of values is taken from a separate enumeration called ENUM (*note
  23258. define_enum::). This form allows you to use the same list of values for
  23259. several attributes without having to repeat the list each time. For
  23260. example:
  23261. (define_enum "processor" [
  23262. model_a
  23263. model_b
  23264. ...
  23265. ])
  23266. (define_enum_attr "arch" "processor"
  23267. (const (symbol_ref "target_arch")))
  23268. (define_enum_attr "tune" "processor"
  23269. (const (symbol_ref "target_tune")))
  23270. defines the same attributes as:
  23271. (define_attr "arch" "model_a,model_b,..."
  23272. (const (symbol_ref "target_arch")))
  23273. (define_attr "tune" "model_a,model_b,..."
  23274. (const (symbol_ref "target_tune")))
  23275. but without duplicating the processor list. The second example defines
  23276. two separate C enums ('attr_arch' and 'attr_tune') whereas the first
  23277. defines a single C enum ('processor').
  23278. 
  23279. File: gccint.info, Node: Expressions, Next: Tagging Insns, Prev: Defining Attributes, Up: Insn Attributes
  23280. 17.19.2 Attribute Expressions
  23281. -----------------------------
  23282. RTL expressions used to define attributes use the codes described above
  23283. plus a few specific to attribute definitions, to be discussed below.
  23284. Attribute value expressions must have one of the following forms:
  23285. '(const_int I)'
  23286. The integer I specifies the value of a numeric attribute. I must
  23287. be non-negative.
  23288. The value of a numeric attribute can be specified either with a
  23289. 'const_int', or as an integer represented as a string in
  23290. 'const_string', 'eq_attr' (see below), 'attr', 'symbol_ref', simple
  23291. arithmetic expressions, and 'set_attr' overrides on specific
  23292. instructions (*note Tagging Insns::).
  23293. '(const_string VALUE)'
  23294. The string VALUE specifies a constant attribute value. If VALUE is
  23295. specified as '"*"', it means that the default value of the
  23296. attribute is to be used for the insn containing this expression.
  23297. '"*"' obviously cannot be used in the DEFAULT expression of a
  23298. 'define_attr'.
  23299. If the attribute whose value is being specified is numeric, VALUE
  23300. must be a string containing a non-negative integer (normally
  23301. 'const_int' would be used in this case). Otherwise, it must
  23302. contain one of the valid values for the attribute.
  23303. '(if_then_else TEST TRUE-VALUE FALSE-VALUE)'
  23304. TEST specifies an attribute test, whose format is defined below.
  23305. The value of this expression is TRUE-VALUE if TEST is true,
  23306. otherwise it is FALSE-VALUE.
  23307. '(cond [TEST1 VALUE1 ...] DEFAULT)'
  23308. The first operand of this expression is a vector containing an even
  23309. number of expressions and consisting of pairs of TEST and VALUE
  23310. expressions. The value of the 'cond' expression is that of the
  23311. VALUE corresponding to the first true TEST expression. If none of
  23312. the TEST expressions are true, the value of the 'cond' expression
  23313. is that of the DEFAULT expression.
  23314. TEST expressions can have one of the following forms:
  23315. '(const_int I)'
  23316. This test is true if I is nonzero and false otherwise.
  23317. '(not TEST)'
  23318. '(ior TEST1 TEST2)'
  23319. '(and TEST1 TEST2)'
  23320. These tests are true if the indicated logical function is true.
  23321. '(match_operand:M N PRED CONSTRAINTS)'
  23322. This test is true if operand N of the insn whose attribute value is
  23323. being determined has mode M (this part of the test is ignored if M
  23324. is 'VOIDmode') and the function specified by the string PRED
  23325. returns a nonzero value when passed operand N and mode M (this part
  23326. of the test is ignored if PRED is the null string).
  23327. The CONSTRAINTS operand is ignored and should be the null string.
  23328. '(match_test C-EXPR)'
  23329. The test is true if C expression C-EXPR is true. In non-constant
  23330. attributes, C-EXPR has access to the following variables:
  23331. INSN
  23332. The rtl instruction under test.
  23333. WHICH_ALTERNATIVE
  23334. The 'define_insn' alternative that INSN matches. *Note Output
  23335. Statement::.
  23336. OPERANDS
  23337. An array of INSN's rtl operands.
  23338. C-EXPR behaves like the condition in a C 'if' statement, so there
  23339. is no need to explicitly convert the expression into a boolean 0 or
  23340. 1 value. For example, the following two tests are equivalent:
  23341. (match_test "x & 2")
  23342. (match_test "(x & 2) != 0")
  23343. '(le ARITH1 ARITH2)'
  23344. '(leu ARITH1 ARITH2)'
  23345. '(lt ARITH1 ARITH2)'
  23346. '(ltu ARITH1 ARITH2)'
  23347. '(gt ARITH1 ARITH2)'
  23348. '(gtu ARITH1 ARITH2)'
  23349. '(ge ARITH1 ARITH2)'
  23350. '(geu ARITH1 ARITH2)'
  23351. '(ne ARITH1 ARITH2)'
  23352. '(eq ARITH1 ARITH2)'
  23353. These tests are true if the indicated comparison of the two
  23354. arithmetic expressions is true. Arithmetic expressions are formed
  23355. with 'plus', 'minus', 'mult', 'div', 'mod', 'abs', 'neg', 'and',
  23356. 'ior', 'xor', 'not', 'ashift', 'lshiftrt', and 'ashiftrt'
  23357. expressions.
  23358. 'const_int' and 'symbol_ref' are always valid terms (*note Insn
  23359. Lengths::,for additional forms). 'symbol_ref' is a string denoting
  23360. a C expression that yields an 'int' when evaluated by the
  23361. 'get_attr_...' routine. It should normally be a global variable.
  23362. '(eq_attr NAME VALUE)'
  23363. NAME is a string specifying the name of an attribute.
  23364. VALUE is a string that is either a valid value for attribute NAME,
  23365. a comma-separated list of values, or '!' followed by a value or
  23366. list. If VALUE does not begin with a '!', this test is true if the
  23367. value of the NAME attribute of the current insn is in the list
  23368. specified by VALUE. If VALUE begins with a '!', this test is true
  23369. if the attribute's value is _not_ in the specified list.
  23370. For example,
  23371. (eq_attr "type" "load,store")
  23372. is equivalent to
  23373. (ior (eq_attr "type" "load") (eq_attr "type" "store"))
  23374. If NAME specifies an attribute of 'alternative', it refers to the
  23375. value of the compiler variable 'which_alternative' (*note Output
  23376. Statement::) and the values must be small integers. For example,
  23377. (eq_attr "alternative" "2,3")
  23378. is equivalent to
  23379. (ior (eq (symbol_ref "which_alternative") (const_int 2))
  23380. (eq (symbol_ref "which_alternative") (const_int 3)))
  23381. Note that, for most attributes, an 'eq_attr' test is simplified in
  23382. cases where the value of the attribute being tested is known for
  23383. all insns matching a particular pattern. This is by far the most
  23384. common case.
  23385. '(attr_flag NAME)'
  23386. The value of an 'attr_flag' expression is true if the flag
  23387. specified by NAME is true for the 'insn' currently being scheduled.
  23388. NAME is a string specifying one of a fixed set of flags to test.
  23389. Test the flags 'forward' and 'backward' to determine the direction
  23390. of a conditional branch.
  23391. This example describes a conditional branch delay slot which can be
  23392. nullified for forward branches that are taken (annul-true) or for
  23393. backward branches which are not taken (annul-false).
  23394. (define_delay (eq_attr "type" "cbranch")
  23395. [(eq_attr "in_branch_delay" "true")
  23396. (and (eq_attr "in_branch_delay" "true")
  23397. (attr_flag "forward"))
  23398. (and (eq_attr "in_branch_delay" "true")
  23399. (attr_flag "backward"))])
  23400. The 'forward' and 'backward' flags are false if the current 'insn'
  23401. being scheduled is not a conditional branch.
  23402. 'attr_flag' is only used during delay slot scheduling and has no
  23403. meaning to other passes of the compiler.
  23404. '(attr NAME)'
  23405. The value of another attribute is returned. This is most useful
  23406. for numeric attributes, as 'eq_attr' and 'attr_flag' produce more
  23407. efficient code for non-numeric attributes.
  23408. 
  23409. File: gccint.info, Node: Tagging Insns, Next: Attr Example, Prev: Expressions, Up: Insn Attributes
  23410. 17.19.3 Assigning Attribute Values to Insns
  23411. -------------------------------------------
  23412. The value assigned to an attribute of an insn is primarily determined by
  23413. which pattern is matched by that insn (or which 'define_peephole'
  23414. generated it). Every 'define_insn' and 'define_peephole' can have an
  23415. optional last argument to specify the values of attributes for matching
  23416. insns. The value of any attribute not specified in a particular insn is
  23417. set to the default value for that attribute, as specified in its
  23418. 'define_attr'. Extensive use of default values for attributes permits
  23419. the specification of the values for only one or two attributes in the
  23420. definition of most insn patterns, as seen in the example in the next
  23421. section.
  23422. The optional last argument of 'define_insn' and 'define_peephole' is a
  23423. vector of expressions, each of which defines the value for a single
  23424. attribute. The most general way of assigning an attribute's value is to
  23425. use a 'set' expression whose first operand is an 'attr' expression
  23426. giving the name of the attribute being set. The second operand of the
  23427. 'set' is an attribute expression (*note Expressions::) giving the value
  23428. of the attribute.
  23429. When the attribute value depends on the 'alternative' attribute (i.e.,
  23430. which is the applicable alternative in the constraint of the insn), the
  23431. 'set_attr_alternative' expression can be used. It allows the
  23432. specification of a vector of attribute expressions, one for each
  23433. alternative.
  23434. When the generality of arbitrary attribute expressions is not required,
  23435. the simpler 'set_attr' expression can be used, which allows specifying a
  23436. string giving either a single attribute value or a list of attribute
  23437. values, one for each alternative.
  23438. The form of each of the above specifications is shown below. In each
  23439. case, NAME is a string specifying the attribute to be set.
  23440. '(set_attr NAME VALUE-STRING)'
  23441. VALUE-STRING is either a string giving the desired attribute value,
  23442. or a string containing a comma-separated list giving the values for
  23443. succeeding alternatives. The number of elements must match the
  23444. number of alternatives in the constraint of the insn pattern.
  23445. Note that it may be useful to specify '*' for some alternative, in
  23446. which case the attribute will assume its default value for insns
  23447. matching that alternative.
  23448. '(set_attr_alternative NAME [VALUE1 VALUE2 ...])'
  23449. Depending on the alternative of the insn, the value will be one of
  23450. the specified values. This is a shorthand for using a 'cond' with
  23451. tests on the 'alternative' attribute.
  23452. '(set (attr NAME) VALUE)'
  23453. The first operand of this 'set' must be the special RTL expression
  23454. 'attr', whose sole operand is a string giving the name of the
  23455. attribute being set. VALUE is the value of the attribute.
  23456. The following shows three different ways of representing the same
  23457. attribute value specification:
  23458. (set_attr "type" "load,store,arith")
  23459. (set_attr_alternative "type"
  23460. [(const_string "load") (const_string "store")
  23461. (const_string "arith")])
  23462. (set (attr "type")
  23463. (cond [(eq_attr "alternative" "1") (const_string "load")
  23464. (eq_attr "alternative" "2") (const_string "store")]
  23465. (const_string "arith")))
  23466. The 'define_asm_attributes' expression provides a mechanism to specify
  23467. the attributes assigned to insns produced from an 'asm' statement. It
  23468. has the form:
  23469. (define_asm_attributes [ATTR-SETS])
  23470. where ATTR-SETS is specified the same as for both the 'define_insn' and
  23471. the 'define_peephole' expressions.
  23472. These values will typically be the "worst case" attribute values. For
  23473. example, they might indicate that the condition code will be clobbered.
  23474. A specification for a 'length' attribute is handled specially. The way
  23475. to compute the length of an 'asm' insn is to multiply the length
  23476. specified in the expression 'define_asm_attributes' by the number of
  23477. machine instructions specified in the 'asm' statement, determined by
  23478. counting the number of semicolons and newlines in the string.
  23479. Therefore, the value of the 'length' attribute specified in a
  23480. 'define_asm_attributes' should be the maximum possible length of a
  23481. single machine instruction.
  23482. 
  23483. File: gccint.info, Node: Attr Example, Next: Insn Lengths, Prev: Tagging Insns, Up: Insn Attributes
  23484. 17.19.4 Example of Attribute Specifications
  23485. -------------------------------------------
  23486. The judicious use of defaulting is important in the efficient use of
  23487. insn attributes. Typically, insns are divided into "types" and an
  23488. attribute, customarily called 'type', is used to represent this value.
  23489. This attribute is normally used only to define the default value for
  23490. other attributes. An example will clarify this usage.
  23491. Assume we have a RISC machine with a condition code and in which only
  23492. full-word operations are performed in registers. Let us assume that we
  23493. can divide all insns into loads, stores, (integer) arithmetic
  23494. operations, floating point operations, and branches.
  23495. Here we will concern ourselves with determining the effect of an insn
  23496. on the condition code and will limit ourselves to the following possible
  23497. effects: The condition code can be set unpredictably (clobbered), not be
  23498. changed, be set to agree with the results of the operation, or only
  23499. changed if the item previously set into the condition code has been
  23500. modified.
  23501. Here is part of a sample 'md' file for such a machine:
  23502. (define_attr "type" "load,store,arith,fp,branch" (const_string "arith"))
  23503. (define_attr "cc" "clobber,unchanged,set,change0"
  23504. (cond [(eq_attr "type" "load")
  23505. (const_string "change0")
  23506. (eq_attr "type" "store,branch")
  23507. (const_string "unchanged")
  23508. (eq_attr "type" "arith")
  23509. (if_then_else (match_operand:SI 0 "" "")
  23510. (const_string "set")
  23511. (const_string "clobber"))]
  23512. (const_string "clobber")))
  23513. (define_insn ""
  23514. [(set (match_operand:SI 0 "general_operand" "=r,r,m")
  23515. (match_operand:SI 1 "general_operand" "r,m,r"))]
  23516. ""
  23517. "@
  23518. move %0,%1
  23519. load %0,%1
  23520. store %0,%1"
  23521. [(set_attr "type" "arith,load,store")])
  23522. Note that we assume in the above example that arithmetic operations
  23523. performed on quantities smaller than a machine word clobber the
  23524. condition code since they will set the condition code to a value
  23525. corresponding to the full-word result.
  23526. 
  23527. File: gccint.info, Node: Insn Lengths, Next: Constant Attributes, Prev: Attr Example, Up: Insn Attributes
  23528. 17.19.5 Computing the Length of an Insn
  23529. ---------------------------------------
  23530. For many machines, multiple types of branch instructions are provided,
  23531. each for different length branch displacements. In most cases, the
  23532. assembler will choose the correct instruction to use. However, when the
  23533. assembler cannot do so, GCC can when a special attribute, the 'length'
  23534. attribute, is defined. This attribute must be defined to have numeric
  23535. values by specifying a null string in its 'define_attr'.
  23536. In the case of the 'length' attribute, two additional forms of
  23537. arithmetic terms are allowed in test expressions:
  23538. '(match_dup N)'
  23539. This refers to the address of operand N of the current insn, which
  23540. must be a 'label_ref'.
  23541. '(pc)'
  23542. For non-branch instructions and backward branch instructions, this
  23543. refers to the address of the current insn. But for forward branch
  23544. instructions, this refers to the address of the next insn, because
  23545. the length of the current insn is to be computed.
  23546. For normal insns, the length will be determined by value of the
  23547. 'length' attribute. In the case of 'addr_vec' and 'addr_diff_vec' insn
  23548. patterns, the length is computed as the number of vectors multiplied by
  23549. the size of each vector.
  23550. Lengths are measured in addressable storage units (bytes).
  23551. Note that it is possible to call functions via the 'symbol_ref'
  23552. mechanism to compute the length of an insn. However, if you use this
  23553. mechanism you must provide dummy clauses to express the maximum length
  23554. without using the function call. You can an example of this in the 'pa'
  23555. machine description for the 'call_symref' pattern.
  23556. The following macros can be used to refine the length computation:
  23557. 'ADJUST_INSN_LENGTH (INSN, LENGTH)'
  23558. If defined, modifies the length assigned to instruction INSN as a
  23559. function of the context in which it is used. LENGTH is an lvalue
  23560. that contains the initially computed length of the insn and should
  23561. be updated with the correct length of the insn.
  23562. This macro will normally not be required. A case in which it is
  23563. required is the ROMP. On this machine, the size of an 'addr_vec'
  23564. insn must be increased by two to compensate for the fact that
  23565. alignment may be required.
  23566. The routine that returns 'get_attr_length' (the value of the 'length'
  23567. attribute) can be used by the output routine to determine the form of
  23568. the branch instruction to be written, as the example below illustrates.
  23569. As an example of the specification of variable-length branches,
  23570. consider the IBM 360. If we adopt the convention that a register will
  23571. be set to the starting address of a function, we can jump to labels
  23572. within 4k of the start using a four-byte instruction. Otherwise, we
  23573. need a six-byte sequence to load the address from memory and then branch
  23574. to it.
  23575. On such a machine, a pattern for a branch instruction might be
  23576. specified as follows:
  23577. (define_insn "jump"
  23578. [(set (pc)
  23579. (label_ref (match_operand 0 "" "")))]
  23580. ""
  23581. {
  23582. return (get_attr_length (insn) == 4
  23583. ? "b %l0" : "l r15,=a(%l0); br r15");
  23584. }
  23585. [(set (attr "length")
  23586. (if_then_else (lt (match_dup 0) (const_int 4096))
  23587. (const_int 4)
  23588. (const_int 6)))])
  23589. 
  23590. File: gccint.info, Node: Constant Attributes, Next: Mnemonic Attribute, Prev: Insn Lengths, Up: Insn Attributes
  23591. 17.19.6 Constant Attributes
  23592. ---------------------------
  23593. A special form of 'define_attr', where the expression for the default
  23594. value is a 'const' expression, indicates an attribute that is constant
  23595. for a given run of the compiler. Constant attributes may be used to
  23596. specify which variety of processor is used. For example,
  23597. (define_attr "cpu" "m88100,m88110,m88000"
  23598. (const
  23599. (cond [(symbol_ref "TARGET_88100") (const_string "m88100")
  23600. (symbol_ref "TARGET_88110") (const_string "m88110")]
  23601. (const_string "m88000"))))
  23602. (define_attr "memory" "fast,slow"
  23603. (const
  23604. (if_then_else (symbol_ref "TARGET_FAST_MEM")
  23605. (const_string "fast")
  23606. (const_string "slow"))))
  23607. The routine generated for constant attributes has no parameters as it
  23608. does not depend on any particular insn. RTL expressions used to define
  23609. the value of a constant attribute may use the 'symbol_ref' form, but may
  23610. not use either the 'match_operand' form or 'eq_attr' forms involving
  23611. insn attributes.
  23612. 
  23613. File: gccint.info, Node: Mnemonic Attribute, Next: Delay Slots, Prev: Constant Attributes, Up: Insn Attributes
  23614. 17.19.7 Mnemonic Attribute
  23615. --------------------------
  23616. The 'mnemonic' attribute is a string type attribute holding the
  23617. instruction mnemonic for an insn alternative. The attribute values will
  23618. automatically be generated by the machine description parser if there is
  23619. an attribute definition in the md file:
  23620. (define_attr "mnemonic" "unknown" (const_string "unknown"))
  23621. The default value can be freely chosen as long as it does not collide
  23622. with any of the instruction mnemonics. This value will be used whenever
  23623. the machine description parser is not able to determine the mnemonic
  23624. string. This might be the case for output templates containing more
  23625. than a single instruction as in '"mvcle\t%0,%1,0\;jo\t.-4"'.
  23626. The 'mnemonic' attribute set is not generated automatically if the
  23627. instruction string is generated via C code.
  23628. An existing 'mnemonic' attribute set in an insn definition will not be
  23629. overriden by the md file parser. That way it is possible to manually
  23630. set the instruction mnemonics for the cases where the md file parser
  23631. fails to determine it automatically.
  23632. The 'mnemonic' attribute is useful for dealing with instruction
  23633. specific properties in the pipeline description without defining
  23634. additional insn attributes.
  23635. (define_attr "ooo_expanded" ""
  23636. (cond [(eq_attr "mnemonic" "dlr,dsgr,d,dsgf,stam,dsgfr,dlgr")
  23637. (const_int 1)]
  23638. (const_int 0)))
  23639. 
  23640. File: gccint.info, Node: Delay Slots, Next: Processor pipeline description, Prev: Mnemonic Attribute, Up: Insn Attributes
  23641. 17.19.8 Delay Slot Scheduling
  23642. -----------------------------
  23643. The insn attribute mechanism can be used to specify the requirements for
  23644. delay slots, if any, on a target machine. An instruction is said to
  23645. require a "delay slot" if some instructions that are physically after
  23646. the instruction are executed as if they were located before it. Classic
  23647. examples are branch and call instructions, which often execute the
  23648. following instruction before the branch or call is performed.
  23649. On some machines, conditional branch instructions can optionally
  23650. "annul" instructions in the delay slot. This means that the instruction
  23651. will not be executed for certain branch outcomes. Both instructions
  23652. that annul if the branch is true and instructions that annul if the
  23653. branch is false are supported.
  23654. Delay slot scheduling differs from instruction scheduling in that
  23655. determining whether an instruction needs a delay slot is dependent only
  23656. on the type of instruction being generated, not on data flow between the
  23657. instructions. See the next section for a discussion of data-dependent
  23658. instruction scheduling.
  23659. The requirement of an insn needing one or more delay slots is indicated
  23660. via the 'define_delay' expression. It has the following form:
  23661. (define_delay TEST
  23662. [DELAY-1 ANNUL-TRUE-1 ANNUL-FALSE-1
  23663. DELAY-2 ANNUL-TRUE-2 ANNUL-FALSE-2
  23664. ...])
  23665. TEST is an attribute test that indicates whether this 'define_delay'
  23666. applies to a particular insn. If so, the number of required delay slots
  23667. is determined by the length of the vector specified as the second
  23668. argument. An insn placed in delay slot N must satisfy attribute test
  23669. DELAY-N. ANNUL-TRUE-N is an attribute test that specifies which insns
  23670. may be annulled if the branch is true. Similarly, ANNUL-FALSE-N
  23671. specifies which insns in the delay slot may be annulled if the branch is
  23672. false. If annulling is not supported for that delay slot, '(nil)'
  23673. should be coded.
  23674. For example, in the common case where branch and call insns require a
  23675. single delay slot, which may contain any insn other than a branch or
  23676. call, the following would be placed in the 'md' file:
  23677. (define_delay (eq_attr "type" "branch,call")
  23678. [(eq_attr "type" "!branch,call") (nil) (nil)])
  23679. Multiple 'define_delay' expressions may be specified. In this case,
  23680. each such expression specifies different delay slot requirements and
  23681. there must be no insn for which tests in two 'define_delay' expressions
  23682. are both true.
  23683. For example, if we have a machine that requires one delay slot for
  23684. branches but two for calls, no delay slot can contain a branch or call
  23685. insn, and any valid insn in the delay slot for the branch can be
  23686. annulled if the branch is true, we might represent this as follows:
  23687. (define_delay (eq_attr "type" "branch")
  23688. [(eq_attr "type" "!branch,call")
  23689. (eq_attr "type" "!branch,call")
  23690. (nil)])
  23691. (define_delay (eq_attr "type" "call")
  23692. [(eq_attr "type" "!branch,call") (nil) (nil)
  23693. (eq_attr "type" "!branch,call") (nil) (nil)])
  23694. 
  23695. File: gccint.info, Node: Processor pipeline description, Prev: Delay Slots, Up: Insn Attributes
  23696. 17.19.9 Specifying processor pipeline description
  23697. -------------------------------------------------
  23698. To achieve better performance, most modern processors (super-pipelined,
  23699. superscalar RISC, and VLIW processors) have many "functional units" on
  23700. which several instructions can be executed simultaneously. An
  23701. instruction starts execution if its issue conditions are satisfied. If
  23702. not, the instruction is stalled until its conditions are satisfied.
  23703. Such "interlock (pipeline) delay" causes interruption of the fetching of
  23704. successor instructions (or demands nop instructions, e.g. for some MIPS
  23705. processors).
  23706. There are two major kinds of interlock delays in modern processors.
  23707. The first one is a data dependence delay determining "instruction
  23708. latency time". The instruction execution is not started until all
  23709. source data have been evaluated by prior instructions (there are more
  23710. complex cases when the instruction execution starts even when the data
  23711. are not available but will be ready in given time after the instruction
  23712. execution start). Taking the data dependence delays into account is
  23713. simple. The data dependence (true, output, and anti-dependence) delay
  23714. between two instructions is given by a constant. In most cases this
  23715. approach is adequate. The second kind of interlock delays is a
  23716. reservation delay. The reservation delay means that two instructions
  23717. under execution will be in need of shared processors resources, i.e.
  23718. buses, internal registers, and/or functional units, which are reserved
  23719. for some time. Taking this kind of delay into account is complex
  23720. especially for modern RISC processors.
  23721. The task of exploiting more processor parallelism is solved by an
  23722. instruction scheduler. For a better solution to this problem, the
  23723. instruction scheduler has to have an adequate description of the
  23724. processor parallelism (or "pipeline description"). GCC machine
  23725. descriptions describe processor parallelism and functional unit
  23726. reservations for groups of instructions with the aid of "regular
  23727. expressions".
  23728. The GCC instruction scheduler uses a "pipeline hazard recognizer" to
  23729. figure out the possibility of the instruction issue by the processor on
  23730. a given simulated processor cycle. The pipeline hazard recognizer is
  23731. automatically generated from the processor pipeline description. The
  23732. pipeline hazard recognizer generated from the machine description is
  23733. based on a deterministic finite state automaton (DFA): the instruction
  23734. issue is possible if there is a transition from one automaton state to
  23735. another one. This algorithm is very fast, and furthermore, its speed is
  23736. not dependent on processor complexity(1).
  23737. The rest of this section describes the directives that constitute an
  23738. automaton-based processor pipeline description. The order of these
  23739. constructions within the machine description file is not important.
  23740. The following optional construction describes names of automata
  23741. generated and used for the pipeline hazards recognition. Sometimes the
  23742. generated finite state automaton used by the pipeline hazard recognizer
  23743. is large. If we use more than one automaton and bind functional units
  23744. to the automata, the total size of the automata is usually less than the
  23745. size of the single automaton. If there is no one such construction,
  23746. only one finite state automaton is generated.
  23747. (define_automaton AUTOMATA-NAMES)
  23748. AUTOMATA-NAMES is a string giving names of the automata. The names are
  23749. separated by commas. All the automata should have unique names. The
  23750. automaton name is used in the constructions 'define_cpu_unit' and
  23751. 'define_query_cpu_unit'.
  23752. Each processor functional unit used in the description of instruction
  23753. reservations should be described by the following construction.
  23754. (define_cpu_unit UNIT-NAMES [AUTOMATON-NAME])
  23755. UNIT-NAMES is a string giving the names of the functional units
  23756. separated by commas. Don't use name 'nothing', it is reserved for other
  23757. goals.
  23758. AUTOMATON-NAME is a string giving the name of the automaton with which
  23759. the unit is bound. The automaton should be described in construction
  23760. 'define_automaton'. You should give "automaton-name", if there is a
  23761. defined automaton.
  23762. The assignment of units to automata are constrained by the uses of the
  23763. units in insn reservations. The most important constraint is: if a unit
  23764. reservation is present on a particular cycle of an alternative for an
  23765. insn reservation, then some unit from the same automaton must be present
  23766. on the same cycle for the other alternatives of the insn reservation.
  23767. The rest of the constraints are mentioned in the description of the
  23768. subsequent constructions.
  23769. The following construction describes CPU functional units analogously
  23770. to 'define_cpu_unit'. The reservation of such units can be queried for
  23771. an automaton state. The instruction scheduler never queries reservation
  23772. of functional units for given automaton state. So as a rule, you don't
  23773. need this construction. This construction could be used for future code
  23774. generation goals (e.g. to generate VLIW insn templates).
  23775. (define_query_cpu_unit UNIT-NAMES [AUTOMATON-NAME])
  23776. UNIT-NAMES is a string giving names of the functional units separated
  23777. by commas.
  23778. AUTOMATON-NAME is a string giving the name of the automaton with which
  23779. the unit is bound.
  23780. The following construction is the major one to describe pipeline
  23781. characteristics of an instruction.
  23782. (define_insn_reservation INSN-NAME DEFAULT_LATENCY
  23783. CONDITION REGEXP)
  23784. DEFAULT_LATENCY is a number giving latency time of the instruction.
  23785. There is an important difference between the old description and the
  23786. automaton based pipeline description. The latency time is used for all
  23787. dependencies when we use the old description. In the automaton based
  23788. pipeline description, the given latency time is only used for true
  23789. dependencies. The cost of anti-dependencies is always zero and the cost
  23790. of output dependencies is the difference between latency times of the
  23791. producing and consuming insns (if the difference is negative, the cost
  23792. is considered to be zero). You can always change the default costs for
  23793. any description by using the target hook 'TARGET_SCHED_ADJUST_COST'
  23794. (*note Scheduling::).
  23795. INSN-NAME is a string giving the internal name of the insn. The
  23796. internal names are used in constructions 'define_bypass' and in the
  23797. automaton description file generated for debugging. The internal name
  23798. has nothing in common with the names in 'define_insn'. It is a good
  23799. practice to use insn classes described in the processor manual.
  23800. CONDITION defines what RTL insns are described by this construction.
  23801. You should remember that you will be in trouble if CONDITION for two or
  23802. more different 'define_insn_reservation' constructions is TRUE for an
  23803. insn. In this case what reservation will be used for the insn is not
  23804. defined. Such cases are not checked during generation of the pipeline
  23805. hazards recognizer because in general recognizing that two conditions
  23806. may have the same value is quite difficult (especially if the conditions
  23807. contain 'symbol_ref'). It is also not checked during the pipeline
  23808. hazard recognizer work because it would slow down the recognizer
  23809. considerably.
  23810. REGEXP is a string describing the reservation of the cpu's functional
  23811. units by the instruction. The reservations are described by a regular
  23812. expression according to the following syntax:
  23813. regexp = regexp "," oneof
  23814. | oneof
  23815. oneof = oneof "|" allof
  23816. | allof
  23817. allof = allof "+" repeat
  23818. | repeat
  23819. repeat = element "*" number
  23820. | element
  23821. element = cpu_function_unit_name
  23822. | reservation_name
  23823. | result_name
  23824. | "nothing"
  23825. | "(" regexp ")"
  23826. * ',' is used for describing the start of the next cycle in the
  23827. reservation.
  23828. * '|' is used for describing a reservation described by the first
  23829. regular expression *or* a reservation described by the second
  23830. regular expression *or* etc.
  23831. * '+' is used for describing a reservation described by the first
  23832. regular expression *and* a reservation described by the second
  23833. regular expression *and* etc.
  23834. * '*' is used for convenience and simply means a sequence in which
  23835. the regular expression are repeated NUMBER times with cycle
  23836. advancing (see ',').
  23837. * 'cpu_function_unit_name' denotes reservation of the named
  23838. functional unit.
  23839. * 'reservation_name' -- see description of construction
  23840. 'define_reservation'.
  23841. * 'nothing' denotes no unit reservations.
  23842. Sometimes unit reservations for different insns contain common parts.
  23843. In such case, you can simplify the pipeline description by describing
  23844. the common part by the following construction
  23845. (define_reservation RESERVATION-NAME REGEXP)
  23846. RESERVATION-NAME is a string giving name of REGEXP. Functional unit
  23847. names and reservation names are in the same name space. So the
  23848. reservation names should be different from the functional unit names and
  23849. cannot be the reserved name 'nothing'.
  23850. The following construction is used to describe exceptions in the
  23851. latency time for given instruction pair. This is so called bypasses.
  23852. (define_bypass NUMBER OUT_INSN_NAMES IN_INSN_NAMES
  23853. [GUARD])
  23854. NUMBER defines when the result generated by the instructions given in
  23855. string OUT_INSN_NAMES will be ready for the instructions given in string
  23856. IN_INSN_NAMES. Each of these strings is a comma-separated list of
  23857. filename-style globs and they refer to the names of
  23858. 'define_insn_reservation's. For example:
  23859. (define_bypass 1 "cpu1_load_*, cpu1_store_*" "cpu1_load_*")
  23860. defines a bypass between instructions that start with 'cpu1_load_' or
  23861. 'cpu1_store_' and those that start with 'cpu1_load_'.
  23862. GUARD is an optional string giving the name of a C function which
  23863. defines an additional guard for the bypass. The function will get the
  23864. two insns as parameters. If the function returns zero the bypass will
  23865. be ignored for this case. The additional guard is necessary to
  23866. recognize complicated bypasses, e.g. when the consumer is only an
  23867. address of insn 'store' (not a stored value).
  23868. If there are more one bypass with the same output and input insns, the
  23869. chosen bypass is the first bypass with a guard in description whose
  23870. guard function returns nonzero. If there is no such bypass, then bypass
  23871. without the guard function is chosen.
  23872. The following five constructions are usually used to describe VLIW
  23873. processors, or more precisely, to describe a placement of small
  23874. instructions into VLIW instruction slots. They can be used for RISC
  23875. processors, too.
  23876. (exclusion_set UNIT-NAMES UNIT-NAMES)
  23877. (presence_set UNIT-NAMES PATTERNS)
  23878. (final_presence_set UNIT-NAMES PATTERNS)
  23879. (absence_set UNIT-NAMES PATTERNS)
  23880. (final_absence_set UNIT-NAMES PATTERNS)
  23881. UNIT-NAMES is a string giving names of functional units separated by
  23882. commas.
  23883. PATTERNS is a string giving patterns of functional units separated by
  23884. comma. Currently pattern is one unit or units separated by
  23885. white-spaces.
  23886. The first construction ('exclusion_set') means that each functional
  23887. unit in the first string cannot be reserved simultaneously with a unit
  23888. whose name is in the second string and vice versa. For example, the
  23889. construction is useful for describing processors (e.g. some SPARC
  23890. processors) with a fully pipelined floating point functional unit which
  23891. can execute simultaneously only single floating point insns or only
  23892. double floating point insns.
  23893. The second construction ('presence_set') means that each functional
  23894. unit in the first string cannot be reserved unless at least one of
  23895. pattern of units whose names are in the second string is reserved. This
  23896. is an asymmetric relation. For example, it is useful for description
  23897. that VLIW 'slot1' is reserved after 'slot0' reservation. We could
  23898. describe it by the following construction
  23899. (presence_set "slot1" "slot0")
  23900. Or 'slot1' is reserved only after 'slot0' and unit 'b0' reservation.
  23901. In this case we could write
  23902. (presence_set "slot1" "slot0 b0")
  23903. The third construction ('final_presence_set') is analogous to
  23904. 'presence_set'. The difference between them is when checking is done.
  23905. When an instruction is issued in given automaton state reflecting all
  23906. current and planned unit reservations, the automaton state is changed.
  23907. The first state is a source state, the second one is a result state.
  23908. Checking for 'presence_set' is done on the source state reservation,
  23909. checking for 'final_presence_set' is done on the result reservation.
  23910. This construction is useful to describe a reservation which is actually
  23911. two subsequent reservations. For example, if we use
  23912. (presence_set "slot1" "slot0")
  23913. the following insn will be never issued (because 'slot1' requires
  23914. 'slot0' which is absent in the source state).
  23915. (define_reservation "insn_and_nop" "slot0 + slot1")
  23916. but it can be issued if we use analogous 'final_presence_set'.
  23917. The forth construction ('absence_set') means that each functional unit
  23918. in the first string can be reserved only if each pattern of units whose
  23919. names are in the second string is not reserved. This is an asymmetric
  23920. relation (actually 'exclusion_set' is analogous to this one but it is
  23921. symmetric). For example it might be useful in a VLIW description to say
  23922. that 'slot0' cannot be reserved after either 'slot1' or 'slot2' have
  23923. been reserved. This can be described as:
  23924. (absence_set "slot0" "slot1, slot2")
  23925. Or 'slot2' cannot be reserved if 'slot0' and unit 'b0' are reserved or
  23926. 'slot1' and unit 'b1' are reserved. In this case we could write
  23927. (absence_set "slot2" "slot0 b0, slot1 b1")
  23928. All functional units mentioned in a set should belong to the same
  23929. automaton.
  23930. The last construction ('final_absence_set') is analogous to
  23931. 'absence_set' but checking is done on the result (state) reservation.
  23932. See comments for 'final_presence_set'.
  23933. You can control the generator of the pipeline hazard recognizer with
  23934. the following construction.
  23935. (automata_option OPTIONS)
  23936. OPTIONS is a string giving options which affect the generated code.
  23937. Currently there are the following options:
  23938. * "no-minimization" makes no minimization of the automaton. This is
  23939. only worth to do when we are debugging the description and need to
  23940. look more accurately at reservations of states.
  23941. * "time" means printing time statistics about the generation of
  23942. automata.
  23943. * "stats" means printing statistics about the generated automata such
  23944. as the number of DFA states, NDFA states and arcs.
  23945. * "v" means a generation of the file describing the result automata.
  23946. The file has suffix '.dfa' and can be used for the description
  23947. verification and debugging.
  23948. * "w" means a generation of warning instead of error for non-critical
  23949. errors.
  23950. * "no-comb-vect" prevents the automaton generator from generating two
  23951. data structures and comparing them for space efficiency. Using a
  23952. comb vector to represent transitions may be better, but it can be
  23953. very expensive to construct. This option is useful if the build
  23954. process spends an unacceptably long time in genautomata.
  23955. * "ndfa" makes nondeterministic finite state automata. This affects
  23956. the treatment of operator '|' in the regular expressions. The
  23957. usual treatment of the operator is to try the first alternative
  23958. and, if the reservation is not possible, the second alternative.
  23959. The nondeterministic treatment means trying all alternatives, some
  23960. of them may be rejected by reservations in the subsequent insns.
  23961. * "collapse-ndfa" modifies the behavior of the generator when
  23962. producing an automaton. An additional state transition to collapse
  23963. a nondeterministic NDFA state to a deterministic DFA state is
  23964. generated. It can be triggered by passing 'const0_rtx' to
  23965. state_transition. In such an automaton, cycle advance transitions
  23966. are available only for these collapsed states. This option is
  23967. useful for ports that want to use the 'ndfa' option, but also want
  23968. to use 'define_query_cpu_unit' to assign units to insns issued in a
  23969. cycle.
  23970. * "progress" means output of a progress bar showing how many states
  23971. were generated so far for automaton being processed. This is
  23972. useful during debugging a DFA description. If you see too many
  23973. generated states, you could interrupt the generator of the pipeline
  23974. hazard recognizer and try to figure out a reason for generation of
  23975. the huge automaton.
  23976. As an example, consider a superscalar RISC machine which can issue
  23977. three insns (two integer insns and one floating point insn) on the cycle
  23978. but can finish only two insns. To describe this, we define the
  23979. following functional units.
  23980. (define_cpu_unit "i0_pipeline, i1_pipeline, f_pipeline")
  23981. (define_cpu_unit "port0, port1")
  23982. All simple integer insns can be executed in any integer pipeline and
  23983. their result is ready in two cycles. The simple integer insns are
  23984. issued into the first pipeline unless it is reserved, otherwise they are
  23985. issued into the second pipeline. Integer division and multiplication
  23986. insns can be executed only in the second integer pipeline and their
  23987. results are ready correspondingly in 9 and 4 cycles. The integer
  23988. division is not pipelined, i.e. the subsequent integer division insn
  23989. cannot be issued until the current division insn finished. Floating
  23990. point insns are fully pipelined and their results are ready in 3 cycles.
  23991. Where the result of a floating point insn is used by an integer insn, an
  23992. additional delay of one cycle is incurred. To describe all of this we
  23993. could specify
  23994. (define_cpu_unit "div")
  23995. (define_insn_reservation "simple" 2 (eq_attr "type" "int")
  23996. "(i0_pipeline | i1_pipeline), (port0 | port1)")
  23997. (define_insn_reservation "mult" 4 (eq_attr "type" "mult")
  23998. "i1_pipeline, nothing*2, (port0 | port1)")
  23999. (define_insn_reservation "div" 9 (eq_attr "type" "div")
  24000. "i1_pipeline, div*7, div + (port0 | port1)")
  24001. (define_insn_reservation "float" 3 (eq_attr "type" "float")
  24002. "f_pipeline, nothing, (port0 | port1))
  24003. (define_bypass 4 "float" "simple,mult,div")
  24004. To simplify the description we could describe the following reservation
  24005. (define_reservation "finish" "port0|port1")
  24006. and use it in all 'define_insn_reservation' as in the following
  24007. construction
  24008. (define_insn_reservation "simple" 2 (eq_attr "type" "int")
  24009. "(i0_pipeline | i1_pipeline), finish")
  24010. ---------- Footnotes ----------
  24011. (1) However, the size of the automaton depends on processor
  24012. complexity. To limit this effect, machine descriptions can split
  24013. orthogonal parts of the machine description among several automata: but
  24014. then, since each of these must be stepped independently, this does cause
  24015. a small decrease in the algorithm's performance.
  24016. 
  24017. File: gccint.info, Node: Conditional Execution, Next: Define Subst, Prev: Insn Attributes, Up: Machine Desc
  24018. 17.20 Conditional Execution
  24019. ===========================
  24020. A number of architectures provide for some form of conditional
  24021. execution, or predication. The hallmark of this feature is the ability
  24022. to nullify most of the instructions in the instruction set. When the
  24023. instruction set is large and not entirely symmetric, it can be quite
  24024. tedious to describe these forms directly in the '.md' file. An
  24025. alternative is the 'define_cond_exec' template.
  24026. (define_cond_exec
  24027. [PREDICATE-PATTERN]
  24028. "CONDITION"
  24029. "OUTPUT-TEMPLATE"
  24030. "OPTIONAL-INSN-ATTRIBUES")
  24031. PREDICATE-PATTERN is the condition that must be true for the insn to be
  24032. executed at runtime and should match a relational operator. One can use
  24033. 'match_operator' to match several relational operators at once. Any
  24034. 'match_operand' operands must have no more than one alternative.
  24035. CONDITION is a C expression that must be true for the generated pattern
  24036. to match.
  24037. OUTPUT-TEMPLATE is a string similar to the 'define_insn' output
  24038. template (*note Output Template::), except that the '*' and '@' special
  24039. cases do not apply. This is only useful if the assembly text for the
  24040. predicate is a simple prefix to the main insn. In order to handle the
  24041. general case, there is a global variable 'current_insn_predicate' that
  24042. will contain the entire predicate if the current insn is predicated, and
  24043. will otherwise be 'NULL'.
  24044. OPTIONAL-INSN-ATTRIBUTES is an optional vector of attributes that gets
  24045. appended to the insn attributes of the produced cond_exec rtx. It can
  24046. be used to add some distinguishing attribute to cond_exec rtxs produced
  24047. that way. An example usage would be to use this attribute in
  24048. conjunction with attributes on the main pattern to disable particular
  24049. alternatives under certain conditions.
  24050. When 'define_cond_exec' is used, an implicit reference to the
  24051. 'predicable' instruction attribute is made. *Note Insn Attributes::.
  24052. This attribute must be a boolean (i.e. have exactly two elements in its
  24053. LIST-OF-VALUES), with the possible values being 'no' and 'yes'. The
  24054. default and all uses in the insns must be a simple constant, not a
  24055. complex expressions. It may, however, depend on the alternative, by
  24056. using a comma-separated list of values. If that is the case, the port
  24057. should also define an 'enabled' attribute (*note Disable Insn
  24058. Alternatives::), which should also allow only 'no' and 'yes' as its
  24059. values.
  24060. For each 'define_insn' for which the 'predicable' attribute is true, a
  24061. new 'define_insn' pattern will be generated that matches a predicated
  24062. version of the instruction. For example,
  24063. (define_insn "addsi"
  24064. [(set (match_operand:SI 0 "register_operand" "r")
  24065. (plus:SI (match_operand:SI 1 "register_operand" "r")
  24066. (match_operand:SI 2 "register_operand" "r")))]
  24067. "TEST1"
  24068. "add %2,%1,%0")
  24069. (define_cond_exec
  24070. [(ne (match_operand:CC 0 "register_operand" "c")
  24071. (const_int 0))]
  24072. "TEST2"
  24073. "(%0)")
  24074. generates a new pattern
  24075. (define_insn ""
  24076. [(cond_exec
  24077. (ne (match_operand:CC 3 "register_operand" "c") (const_int 0))
  24078. (set (match_operand:SI 0 "register_operand" "r")
  24079. (plus:SI (match_operand:SI 1 "register_operand" "r")
  24080. (match_operand:SI 2 "register_operand" "r"))))]
  24081. "(TEST2) && (TEST1)"
  24082. "(%3) add %2,%1,%0")
  24083. 
  24084. File: gccint.info, Node: Define Subst, Next: Constant Definitions, Prev: Conditional Execution, Up: Machine Desc
  24085. 17.21 RTL Templates Transformations
  24086. ===================================
  24087. For some hardware architectures there are common cases when the RTL
  24088. templates for the instructions can be derived from the other RTL
  24089. templates using simple transformations. E.g., 'i386.md' contains an RTL
  24090. template for the ordinary 'sub' instruction-- '*subsi_1', and for the
  24091. 'sub' instruction with subsequent zero-extension--'*subsi_1_zext'. Such
  24092. cases can be easily implemented by a single meta-template capable of
  24093. generating a modified case based on the initial one:
  24094. (define_subst "NAME"
  24095. [INPUT-TEMPLATE]
  24096. "CONDITION"
  24097. [OUTPUT-TEMPLATE])
  24098. INPUT-TEMPLATE is a pattern describing the source RTL template, which
  24099. will be transformed.
  24100. CONDITION is a C expression that is conjunct with the condition from
  24101. the input-template to generate a condition to be used in the
  24102. output-template.
  24103. OUTPUT-TEMPLATE is a pattern that will be used in the resulting
  24104. template.
  24105. 'define_subst' mechanism is tightly coupled with the notion of the
  24106. subst attribute (*note Subst Iterators::). The use of 'define_subst' is
  24107. triggered by a reference to a subst attribute in the transforming RTL
  24108. template. This reference initiates duplication of the source RTL
  24109. template and substitution of the attributes with their values. The
  24110. source RTL template is left unchanged, while the copy is transformed by
  24111. 'define_subst'. This transformation can fail in the case when the
  24112. source RTL template is not matched against the input-template of the
  24113. 'define_subst'. In such case the copy is deleted.
  24114. 'define_subst' can be used only in 'define_insn' and 'define_expand',
  24115. it cannot be used in other expressions (e.g. in
  24116. 'define_insn_and_split').
  24117. * Menu:
  24118. * Define Subst Example:: Example of 'define_subst' work.
  24119. * Define Subst Pattern Matching:: Process of template comparison.
  24120. * Define Subst Output Template:: Generation of output template.
  24121. 
  24122. File: gccint.info, Node: Define Subst Example, Next: Define Subst Pattern Matching, Up: Define Subst
  24123. 17.21.1 'define_subst' Example
  24124. ------------------------------
  24125. To illustrate how 'define_subst' works, let us examine a simple template
  24126. transformation.
  24127. Suppose there are two kinds of instructions: one that touches flags and
  24128. the other that does not. The instructions of the second type could be
  24129. generated with the following 'define_subst':
  24130. (define_subst "add_clobber_subst"
  24131. [(set (match_operand:SI 0 "" "")
  24132. (match_operand:SI 1 "" ""))]
  24133. ""
  24134. [(set (match_dup 0)
  24135. (match_dup 1))
  24136. (clobber (reg:CC FLAGS_REG))])
  24137. This 'define_subst' can be applied to any RTL pattern containing 'set'
  24138. of mode SI and generates a copy with clobber when it is applied.
  24139. Assume there is an RTL template for a 'max' instruction to be used in
  24140. 'define_subst' mentioned above:
  24141. (define_insn "maxsi"
  24142. [(set (match_operand:SI 0 "register_operand" "=r")
  24143. (max:SI
  24144. (match_operand:SI 1 "register_operand" "r")
  24145. (match_operand:SI 2 "register_operand" "r")))]
  24146. ""
  24147. "max\t{%2, %1, %0|%0, %1, %2}"
  24148. [...])
  24149. To mark the RTL template for 'define_subst' application,
  24150. subst-attributes are used. They should be declared in advance:
  24151. (define_subst_attr "add_clobber_name" "add_clobber_subst" "_noclobber" "_clobber")
  24152. Here 'add_clobber_name' is the attribute name, 'add_clobber_subst' is
  24153. the name of the corresponding 'define_subst', the third argument
  24154. ('_noclobber') is the attribute value that would be substituted into the
  24155. unchanged version of the source RTL template, and the last argument
  24156. ('_clobber') is the value that would be substituted into the second,
  24157. transformed, version of the RTL template.
  24158. Once the subst-attribute has been defined, it should be used in RTL
  24159. templates which need to be processed by the 'define_subst'. So, the
  24160. original RTL template should be changed:
  24161. (define_insn "maxsi<add_clobber_name>"
  24162. [(set (match_operand:SI 0 "register_operand" "=r")
  24163. (max:SI
  24164. (match_operand:SI 1 "register_operand" "r")
  24165. (match_operand:SI 2 "register_operand" "r")))]
  24166. ""
  24167. "max\t{%2, %1, %0|%0, %1, %2}"
  24168. [...])
  24169. The result of the 'define_subst' usage would look like the following:
  24170. (define_insn "maxsi_noclobber"
  24171. [(set (match_operand:SI 0 "register_operand" "=r")
  24172. (max:SI
  24173. (match_operand:SI 1 "register_operand" "r")
  24174. (match_operand:SI 2 "register_operand" "r")))]
  24175. ""
  24176. "max\t{%2, %1, %0|%0, %1, %2}"
  24177. [...])
  24178. (define_insn "maxsi_clobber"
  24179. [(set (match_operand:SI 0 "register_operand" "=r")
  24180. (max:SI
  24181. (match_operand:SI 1 "register_operand" "r")
  24182. (match_operand:SI 2 "register_operand" "r")))
  24183. (clobber (reg:CC FLAGS_REG))]
  24184. ""
  24185. "max\t{%2, %1, %0|%0, %1, %2}"
  24186. [...])
  24187. 
  24188. File: gccint.info, Node: Define Subst Pattern Matching, Next: Define Subst Output Template, Prev: Define Subst Example, Up: Define Subst
  24189. 17.21.2 Pattern Matching in 'define_subst'
  24190. ------------------------------------------
  24191. All expressions, allowed in 'define_insn' or 'define_expand', are
  24192. allowed in the input-template of 'define_subst', except 'match_par_dup',
  24193. 'match_scratch', 'match_parallel'. The meanings of expressions in the
  24194. input-template were changed:
  24195. 'match_operand' matches any expression (possibly, a subtree in
  24196. RTL-template), if modes of the 'match_operand' and this expression are
  24197. the same, or mode of the 'match_operand' is 'VOIDmode', or this
  24198. expression is 'match_dup', 'match_op_dup'. If the expression is
  24199. 'match_operand' too, and predicate of 'match_operand' from the input
  24200. pattern is not empty, then the predicates are compared. That can be
  24201. used for more accurate filtering of accepted RTL-templates.
  24202. 'match_operator' matches common operators (like 'plus', 'minus'),
  24203. 'unspec', 'unspec_volatile' operators and 'match_operator's from the
  24204. original pattern if the modes match and 'match_operator' from the input
  24205. pattern has the same number of operands as the operator from the
  24206. original pattern.
  24207. 
  24208. File: gccint.info, Node: Define Subst Output Template, Prev: Define Subst Pattern Matching, Up: Define Subst
  24209. 17.21.3 Generation of output template in 'define_subst'
  24210. -------------------------------------------------------
  24211. If all necessary checks for 'define_subst' application pass, a new
  24212. RTL-pattern, based on the output-template, is created to replace the old
  24213. template. Like in input-patterns, meanings of some RTL expressions are
  24214. changed when they are used in output-patterns of a 'define_subst'.
  24215. Thus, 'match_dup' is used for copying the whole expression from the
  24216. original pattern, which matched corresponding 'match_operand' from the
  24217. input pattern.
  24218. 'match_dup N' is used in the output template to be replaced with the
  24219. expression from the original pattern, which matched 'match_operand N'
  24220. from the input pattern. As a consequence, 'match_dup' cannot be used to
  24221. point to 'match_operand's from the output pattern, it should always
  24222. refer to a 'match_operand' from the input pattern. If a 'match_dup N'
  24223. occurs more than once in the output template, its first occurrence is
  24224. replaced with the expression from the original pattern, and the
  24225. subsequent expressions are replaced with 'match_dup N', i.e., a
  24226. reference to the first expression.
  24227. In the output template one can refer to the expressions from the
  24228. original pattern and create new ones. For instance, some operands could
  24229. be added by means of standard 'match_operand'.
  24230. After replacing 'match_dup' with some RTL-subtree from the original
  24231. pattern, it could happen that several 'match_operand's in the output
  24232. pattern have the same indexes. It is unknown, how many and what indexes
  24233. would be used in the expression which would replace 'match_dup', so such
  24234. conflicts in indexes are inevitable. To overcome this issue,
  24235. 'match_operands' and 'match_operators', which were introduced into the
  24236. output pattern, are renumerated when all 'match_dup's are replaced.
  24237. Number of alternatives in 'match_operand's introduced into the output
  24238. template 'M' could differ from the number of alternatives in the
  24239. original pattern 'N', so in the resultant pattern there would be 'N*M'
  24240. alternatives. Thus, constraints from the original pattern would be
  24241. duplicated 'N' times, constraints from the output pattern would be
  24242. duplicated 'M' times, producing all possible combinations.
  24243. 
  24244. File: gccint.info, Node: Constant Definitions, Next: Iterators, Prev: Define Subst, Up: Machine Desc
  24245. 17.22 Constant Definitions
  24246. ==========================
  24247. Using literal constants inside instruction patterns reduces legibility
  24248. and can be a maintenance problem.
  24249. To overcome this problem, you may use the 'define_constants'
  24250. expression. It contains a vector of name-value pairs. From that point
  24251. on, wherever any of the names appears in the MD file, it is as if the
  24252. corresponding value had been written instead. You may use
  24253. 'define_constants' multiple times; each appearance adds more constants
  24254. to the table. It is an error to redefine a constant with a different
  24255. value.
  24256. To come back to the a29k load multiple example, instead of
  24257. (define_insn ""
  24258. [(match_parallel 0 "load_multiple_operation"
  24259. [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
  24260. (match_operand:SI 2 "memory_operand" "m"))
  24261. (use (reg:SI 179))
  24262. (clobber (reg:SI 179))])]
  24263. ""
  24264. "loadm 0,0,%1,%2")
  24265. You could write:
  24266. (define_constants [
  24267. (R_BP 177)
  24268. (R_FC 178)
  24269. (R_CR 179)
  24270. (R_Q 180)
  24271. ])
  24272. (define_insn ""
  24273. [(match_parallel 0 "load_multiple_operation"
  24274. [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
  24275. (match_operand:SI 2 "memory_operand" "m"))
  24276. (use (reg:SI R_CR))
  24277. (clobber (reg:SI R_CR))])]
  24278. ""
  24279. "loadm 0,0,%1,%2")
  24280. The constants that are defined with a define_constant are also output
  24281. in the insn-codes.h header file as #defines.
  24282. You can also use the machine description file to define enumerations.
  24283. Like the constants defined by 'define_constant', these enumerations are
  24284. visible to both the machine description file and the main C code.
  24285. The syntax is as follows:
  24286. (define_c_enum "NAME" [
  24287. VALUE0
  24288. VALUE1
  24289. ...
  24290. VALUEN
  24291. ])
  24292. This definition causes the equivalent of the following C code to appear
  24293. in 'insn-constants.h':
  24294. enum NAME {
  24295. VALUE0 = 0,
  24296. VALUE1 = 1,
  24297. ...
  24298. VALUEN = N
  24299. };
  24300. #define NUM_CNAME_VALUES (N + 1)
  24301. where CNAME is the capitalized form of NAME. It also makes each VALUEI
  24302. available in the machine description file, just as if it had been
  24303. declared with:
  24304. (define_constants [(VALUEI I)])
  24305. Each VALUEI is usually an upper-case identifier and usually begins with
  24306. CNAME.
  24307. You can split the enumeration definition into as many statements as you
  24308. like. The above example is directly equivalent to:
  24309. (define_c_enum "NAME" [VALUE0])
  24310. (define_c_enum "NAME" [VALUE1])
  24311. ...
  24312. (define_c_enum "NAME" [VALUEN])
  24313. Splitting the enumeration helps to improve the modularity of each
  24314. individual '.md' file. For example, if a port defines its
  24315. synchronization instructions in a separate 'sync.md' file, it is
  24316. convenient to define all synchronization-specific enumeration values in
  24317. 'sync.md' rather than in the main '.md' file.
  24318. Some enumeration names have special significance to GCC:
  24319. 'unspecv'
  24320. If an enumeration called 'unspecv' is defined, GCC will use it when
  24321. printing out 'unspec_volatile' expressions. For example:
  24322. (define_c_enum "unspecv" [
  24323. UNSPECV_BLOCKAGE
  24324. ])
  24325. causes GCC to print '(unspec_volatile ... 0)' as:
  24326. (unspec_volatile ... UNSPECV_BLOCKAGE)
  24327. 'unspec'
  24328. If an enumeration called 'unspec' is defined, GCC will use it when
  24329. printing out 'unspec' expressions. GCC will also use it when
  24330. printing out 'unspec_volatile' expressions unless an 'unspecv'
  24331. enumeration is also defined. You can therefore decide whether to
  24332. keep separate enumerations for volatile and non-volatile
  24333. expressions or whether to use the same enumeration for both.
  24334. Another way of defining an enumeration is to use 'define_enum':
  24335. (define_enum "NAME" [
  24336. VALUE0
  24337. VALUE1
  24338. ...
  24339. VALUEN
  24340. ])
  24341. This directive implies:
  24342. (define_c_enum "NAME" [
  24343. CNAME_CVALUE0
  24344. CNAME_CVALUE1
  24345. ...
  24346. CNAME_CVALUEN
  24347. ])
  24348. where CVALUEI is the capitalized form of VALUEI. However, unlike
  24349. 'define_c_enum', the enumerations defined by 'define_enum' can be used
  24350. in attribute specifications (*note define_enum_attr::).
  24351. 
  24352. File: gccint.info, Node: Iterators, Prev: Constant Definitions, Up: Machine Desc
  24353. 17.23 Iterators
  24354. ===============
  24355. Ports often need to define similar patterns for more than one machine
  24356. mode or for more than one rtx code. GCC provides some simple iterator
  24357. facilities to make this process easier.
  24358. * Menu:
  24359. * Mode Iterators:: Generating variations of patterns for different modes.
  24360. * Code Iterators:: Doing the same for codes.
  24361. * Int Iterators:: Doing the same for integers.
  24362. * Subst Iterators:: Generating variations of patterns for define_subst.
  24363. * Parameterized Names:: Specifying iterator values in C++ code.
  24364. 
  24365. File: gccint.info, Node: Mode Iterators, Next: Code Iterators, Up: Iterators
  24366. 17.23.1 Mode Iterators
  24367. ----------------------
  24368. Ports often need to define similar patterns for two or more different
  24369. modes. For example:
  24370. * If a processor has hardware support for both single and double
  24371. floating-point arithmetic, the 'SFmode' patterns tend to be very
  24372. similar to the 'DFmode' ones.
  24373. * If a port uses 'SImode' pointers in one configuration and 'DImode'
  24374. pointers in another, it will usually have very similar 'SImode' and
  24375. 'DImode' patterns for manipulating pointers.
  24376. Mode iterators allow several patterns to be instantiated from one '.md'
  24377. file template. They can be used with any type of rtx-based construct,
  24378. such as a 'define_insn', 'define_split', or 'define_peephole2'.
  24379. * Menu:
  24380. * Defining Mode Iterators:: Defining a new mode iterator.
  24381. * Substitutions:: Combining mode iterators with substitutions
  24382. * Examples:: Examples
  24383. 
  24384. File: gccint.info, Node: Defining Mode Iterators, Next: Substitutions, Up: Mode Iterators
  24385. 17.23.1.1 Defining Mode Iterators
  24386. .................................
  24387. The syntax for defining a mode iterator is:
  24388. (define_mode_iterator NAME [(MODE1 "COND1") ... (MODEN "CONDN")])
  24389. This allows subsequent '.md' file constructs to use the mode suffix
  24390. ':NAME'. Every construct that does so will be expanded N times, once
  24391. with every use of ':NAME' replaced by ':MODE1', once with every use
  24392. replaced by ':MODE2', and so on. In the expansion for a particular
  24393. MODEI, every C condition will also require that CONDI be true.
  24394. For example:
  24395. (define_mode_iterator P [(SI "Pmode == SImode") (DI "Pmode == DImode")])
  24396. defines a new mode suffix ':P'. Every construct that uses ':P' will be
  24397. expanded twice, once with every ':P' replaced by ':SI' and once with
  24398. every ':P' replaced by ':DI'. The ':SI' version will only apply if
  24399. 'Pmode == SImode' and the ':DI' version will only apply if 'Pmode ==
  24400. DImode'.
  24401. As with other '.md' conditions, an empty string is treated as "always
  24402. true". '(MODE "")' can also be abbreviated to 'MODE'. For example:
  24403. (define_mode_iterator GPR [SI (DI "TARGET_64BIT")])
  24404. means that the ':DI' expansion only applies if 'TARGET_64BIT' but that
  24405. the ':SI' expansion has no such constraint.
  24406. Iterators are applied in the order they are defined. This can be
  24407. significant if two iterators are used in a construct that requires
  24408. substitutions. *Note Substitutions::.
  24409. 
  24410. File: gccint.info, Node: Substitutions, Next: Examples, Prev: Defining Mode Iterators, Up: Mode Iterators
  24411. 17.23.1.2 Substitution in Mode Iterators
  24412. ........................................
  24413. If an '.md' file construct uses mode iterators, each version of the
  24414. construct will often need slightly different strings or modes. For
  24415. example:
  24416. * When a 'define_expand' defines several 'addM3' patterns (*note
  24417. Standard Names::), each expander will need to use the appropriate
  24418. mode name for M.
  24419. * When a 'define_insn' defines several instruction patterns, each
  24420. instruction will often use a different assembler mnemonic.
  24421. * When a 'define_insn' requires operands with different modes, using
  24422. an iterator for one of the operand modes usually requires a
  24423. specific mode for the other operand(s).
  24424. GCC supports such variations through a system of "mode attributes".
  24425. There are two standard attributes: 'mode', which is the name of the mode
  24426. in lower case, and 'MODE', which is the same thing in upper case. You
  24427. can define other attributes using:
  24428. (define_mode_attr NAME [(MODE1 "VALUE1") ... (MODEN "VALUEN")])
  24429. where NAME is the name of the attribute and VALUEI is the value
  24430. associated with MODEI.
  24431. When GCC replaces some :ITERATOR with :MODE, it will scan each string
  24432. and mode in the pattern for sequences of the form '<ITERATOR:ATTR>',
  24433. where ATTR is the name of a mode attribute. If the attribute is defined
  24434. for MODE, the whole '<...>' sequence will be replaced by the appropriate
  24435. attribute value.
  24436. For example, suppose an '.md' file has:
  24437. (define_mode_iterator P [(SI "Pmode == SImode") (DI "Pmode == DImode")])
  24438. (define_mode_attr load [(SI "lw") (DI "ld")])
  24439. If one of the patterns that uses ':P' contains the string
  24440. '"<P:load>\t%0,%1"', the 'SI' version of that pattern will use
  24441. '"lw\t%0,%1"' and the 'DI' version will use '"ld\t%0,%1"'.
  24442. Here is an example of using an attribute for a mode:
  24443. (define_mode_iterator LONG [SI DI])
  24444. (define_mode_attr SHORT [(SI "HI") (DI "SI")])
  24445. (define_insn ...
  24446. (sign_extend:LONG (match_operand:<LONG:SHORT> ...)) ...)
  24447. The 'ITERATOR:' prefix may be omitted, in which case the substitution
  24448. will be attempted for every iterator expansion.
  24449. 
  24450. File: gccint.info, Node: Examples, Prev: Substitutions, Up: Mode Iterators
  24451. 17.23.1.3 Mode Iterator Examples
  24452. ................................
  24453. Here is an example from the MIPS port. It defines the following modes
  24454. and attributes (among others):
  24455. (define_mode_iterator GPR [SI (DI "TARGET_64BIT")])
  24456. (define_mode_attr d [(SI "") (DI "d")])
  24457. and uses the following template to define both 'subsi3' and 'subdi3':
  24458. (define_insn "sub<mode>3"
  24459. [(set (match_operand:GPR 0 "register_operand" "=d")
  24460. (minus:GPR (match_operand:GPR 1 "register_operand" "d")
  24461. (match_operand:GPR 2 "register_operand" "d")))]
  24462. ""
  24463. "<d>subu\t%0,%1,%2"
  24464. [(set_attr "type" "arith")
  24465. (set_attr "mode" "<MODE>")])
  24466. This is exactly equivalent to:
  24467. (define_insn "subsi3"
  24468. [(set (match_operand:SI 0 "register_operand" "=d")
  24469. (minus:SI (match_operand:SI 1 "register_operand" "d")
  24470. (match_operand:SI 2 "register_operand" "d")))]
  24471. ""
  24472. "subu\t%0,%1,%2"
  24473. [(set_attr "type" "arith")
  24474. (set_attr "mode" "SI")])
  24475. (define_insn "subdi3"
  24476. [(set (match_operand:DI 0 "register_operand" "=d")
  24477. (minus:DI (match_operand:DI 1 "register_operand" "d")
  24478. (match_operand:DI 2 "register_operand" "d")))]
  24479. ""
  24480. "dsubu\t%0,%1,%2"
  24481. [(set_attr "type" "arith")
  24482. (set_attr "mode" "DI")])
  24483. 
  24484. File: gccint.info, Node: Code Iterators, Next: Int Iterators, Prev: Mode Iterators, Up: Iterators
  24485. 17.23.2 Code Iterators
  24486. ----------------------
  24487. Code iterators operate in a similar way to mode iterators. *Note Mode
  24488. Iterators::.
  24489. The construct:
  24490. (define_code_iterator NAME [(CODE1 "COND1") ... (CODEN "CONDN")])
  24491. defines a pseudo rtx code NAME that can be instantiated as CODEI if
  24492. condition CONDI is true. Each CODEI must have the same rtx format.
  24493. *Note RTL Classes::.
  24494. As with mode iterators, each pattern that uses NAME will be expanded N
  24495. times, once with all uses of NAME replaced by CODE1, once with all uses
  24496. replaced by CODE2, and so on. *Note Defining Mode Iterators::.
  24497. It is possible to define attributes for codes as well as for modes.
  24498. There are two standard code attributes: 'code', the name of the code in
  24499. lower case, and 'CODE', the name of the code in upper case. Other
  24500. attributes are defined using:
  24501. (define_code_attr NAME [(CODE1 "VALUE1") ... (CODEN "VALUEN")])
  24502. Instruction patterns can use code attributes as rtx codes, which can be
  24503. useful if two sets of codes act in tandem. For example, the following
  24504. 'define_insn' defines two patterns, one calculating a signed absolute
  24505. difference and another calculating an unsigned absolute difference:
  24506. (define_code_iterator any_max [smax umax])
  24507. (define_code_attr paired_min [(smax "smin") (umax "umin")])
  24508. (define_insn ...
  24509. [(set (match_operand:SI 0 ...)
  24510. (minus:SI (any_max:SI (match_operand:SI 1 ...)
  24511. (match_operand:SI 2 ...))
  24512. (<paired_min>:SI (match_dup 1) (match_dup 2))))]
  24513. ...)
  24514. The signed version of the instruction uses 'smax' and 'smin' while the
  24515. unsigned version uses 'umax' and 'umin'. There are no versions that
  24516. pair 'smax' with 'umin' or 'umax' with 'smin'.
  24517. Here's an example of code iterators in action, taken from the MIPS
  24518. port:
  24519. (define_code_iterator any_cond [unordered ordered unlt unge uneq ltgt unle ungt
  24520. eq ne gt ge lt le gtu geu ltu leu])
  24521. (define_expand "b<code>"
  24522. [(set (pc)
  24523. (if_then_else (any_cond:CC (cc0)
  24524. (const_int 0))
  24525. (label_ref (match_operand 0 ""))
  24526. (pc)))]
  24527. ""
  24528. {
  24529. gen_conditional_branch (operands, <CODE>);
  24530. DONE;
  24531. })
  24532. This is equivalent to:
  24533. (define_expand "bunordered"
  24534. [(set (pc)
  24535. (if_then_else (unordered:CC (cc0)
  24536. (const_int 0))
  24537. (label_ref (match_operand 0 ""))
  24538. (pc)))]
  24539. ""
  24540. {
  24541. gen_conditional_branch (operands, UNORDERED);
  24542. DONE;
  24543. })
  24544. (define_expand "bordered"
  24545. [(set (pc)
  24546. (if_then_else (ordered:CC (cc0)
  24547. (const_int 0))
  24548. (label_ref (match_operand 0 ""))
  24549. (pc)))]
  24550. ""
  24551. {
  24552. gen_conditional_branch (operands, ORDERED);
  24553. DONE;
  24554. })
  24555. ...
  24556. 
  24557. File: gccint.info, Node: Int Iterators, Next: Subst Iterators, Prev: Code Iterators, Up: Iterators
  24558. 17.23.3 Int Iterators
  24559. ---------------------
  24560. Int iterators operate in a similar way to code iterators. *Note Code
  24561. Iterators::.
  24562. The construct:
  24563. (define_int_iterator NAME [(INT1 "COND1") ... (INTN "CONDN")])
  24564. defines a pseudo integer constant NAME that can be instantiated as INTI
  24565. if condition CONDI is true. Each INT must have the same rtx format.
  24566. *Note RTL Classes::. Int iterators can appear in only those rtx fields
  24567. that have 'i' as the specifier. This means that each INT has to be a
  24568. constant defined using define_constant or define_c_enum.
  24569. As with mode and code iterators, each pattern that uses NAME will be
  24570. expanded N times, once with all uses of NAME replaced by INT1, once with
  24571. all uses replaced by INT2, and so on. *Note Defining Mode Iterators::.
  24572. It is possible to define attributes for ints as well as for codes and
  24573. modes. Attributes are defined using:
  24574. (define_int_attr NAME [(INT1 "VALUE1") ... (INTN "VALUEN")])
  24575. Here's an example of int iterators in action, taken from the ARM port:
  24576. (define_int_iterator QABSNEG [UNSPEC_VQABS UNSPEC_VQNEG])
  24577. (define_int_attr absneg [(UNSPEC_VQABS "abs") (UNSPEC_VQNEG "neg")])
  24578. (define_insn "neon_vq<absneg><mode>"
  24579. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  24580. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  24581. (match_operand:SI 2 "immediate_operand" "i")]
  24582. QABSNEG))]
  24583. "TARGET_NEON"
  24584. "vq<absneg>.<V_s_elem>\t%<V_reg>0, %<V_reg>1"
  24585. [(set_attr "type" "neon_vqneg_vqabs")]
  24586. )
  24587. This is equivalent to:
  24588. (define_insn "neon_vqabs<mode>"
  24589. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  24590. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  24591. (match_operand:SI 2 "immediate_operand" "i")]
  24592. UNSPEC_VQABS))]
  24593. "TARGET_NEON"
  24594. "vqabs.<V_s_elem>\t%<V_reg>0, %<V_reg>1"
  24595. [(set_attr "type" "neon_vqneg_vqabs")]
  24596. )
  24597. (define_insn "neon_vqneg<mode>"
  24598. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  24599. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  24600. (match_operand:SI 2 "immediate_operand" "i")]
  24601. UNSPEC_VQNEG))]
  24602. "TARGET_NEON"
  24603. "vqneg.<V_s_elem>\t%<V_reg>0, %<V_reg>1"
  24604. [(set_attr "type" "neon_vqneg_vqabs")]
  24605. )
  24606. 
  24607. File: gccint.info, Node: Subst Iterators, Next: Parameterized Names, Prev: Int Iterators, Up: Iterators
  24608. 17.23.4 Subst Iterators
  24609. -----------------------
  24610. Subst iterators are special type of iterators with the following
  24611. restrictions: they could not be declared explicitly, they always have
  24612. only two values, and they do not have explicit dedicated name.
  24613. Subst-iterators are triggered only when corresponding subst-attribute is
  24614. used in RTL-pattern.
  24615. Subst iterators transform templates in the following way: the templates
  24616. are duplicated, the subst-attributes in these templates are replaced
  24617. with the corresponding values, and a new attribute is implicitly added
  24618. to the given 'define_insn'/'define_expand'. The name of the added
  24619. attribute matches the name of 'define_subst'. Such attributes are
  24620. declared implicitly, and it is not allowed to have a 'define_attr' named
  24621. as a 'define_subst'.
  24622. Each subst iterator is linked to a 'define_subst'. It is declared
  24623. implicitly by the first appearance of the corresponding
  24624. 'define_subst_attr', and it is not allowed to define it explicitly.
  24625. Declarations of subst-attributes have the following syntax:
  24626. (define_subst_attr "NAME"
  24627. "SUBST-NAME"
  24628. "NO-SUBST-VALUE"
  24629. "SUBST-APPLIED-VALUE")
  24630. NAME is a string with which the given subst-attribute could be referred
  24631. to.
  24632. SUBST-NAME shows which 'define_subst' should be applied to an
  24633. RTL-template if the given subst-attribute is present in the
  24634. RTL-template.
  24635. NO-SUBST-VALUE is a value with which subst-attribute would be replaced
  24636. in the first copy of the original RTL-template.
  24637. SUBST-APPLIED-VALUE is a value with which subst-attribute would be
  24638. replaced in the second copy of the original RTL-template.
  24639. 
  24640. File: gccint.info, Node: Parameterized Names, Prev: Subst Iterators, Up: Iterators
  24641. 17.23.5 Parameterized Names
  24642. ---------------------------
  24643. Ports sometimes need to apply iterators using C++ code, in order to get
  24644. the code or RTL pattern for a specific instruction. For example,
  24645. suppose we have the 'neon_vq<absneg><mode>' pattern given above:
  24646. (define_int_iterator QABSNEG [UNSPEC_VQABS UNSPEC_VQNEG])
  24647. (define_int_attr absneg [(UNSPEC_VQABS "abs") (UNSPEC_VQNEG "neg")])
  24648. (define_insn "neon_vq<absneg><mode>"
  24649. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  24650. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  24651. (match_operand:SI 2 "immediate_operand" "i")]
  24652. QABSNEG))]
  24653. ...
  24654. )
  24655. A port might need to generate this pattern for a variable 'QABSNEG'
  24656. value and a variable 'VDQIW' mode. There are two ways of doing this.
  24657. The first is to build the rtx for the pattern directly from C++ code;
  24658. this is a valid technique and avoids any risk of combinatorial
  24659. explosion. The second is to prefix the instruction name with the
  24660. special character '@', which tells GCC to generate the four additional
  24661. functions below. In each case, NAME is the name of the instruction
  24662. without the leading '@' character, without the '<...>' placeholders, and
  24663. with any underscore before a '<...>' placeholder removed if keeping it
  24664. would lead to a double or trailing underscore.
  24665. 'insn_code maybe_code_for_NAME (I1, I2, ...)'
  24666. See whether replacing the first '<...>' placeholder with iterator
  24667. value I1, the second with iterator value I2, and so on, gives a
  24668. valid instruction. Return its code if so, otherwise return
  24669. 'CODE_FOR_nothing'.
  24670. 'insn_code code_for_NAME (I1, I2, ...)'
  24671. Same, but abort the compiler if the requested instruction does not
  24672. exist.
  24673. 'rtx maybe_gen_NAME (I1, I2, ..., OP0, OP1, ...)'
  24674. Check for a valid instruction in the same way as
  24675. 'maybe_code_for_NAME'. If the instruction exists, generate an
  24676. instance of it using the operand values given by OP0, OP1, and so
  24677. on, otherwise return null.
  24678. 'rtx gen_NAME (I1, I2, ..., OP0, OP1, ...)'
  24679. Same, but abort the compiler if the requested instruction does not
  24680. exist, or if the instruction generator invoked the 'FAIL' macro.
  24681. For example, changing the pattern above to:
  24682. (define_insn "@neon_vq<absneg><mode>"
  24683. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  24684. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  24685. (match_operand:SI 2 "immediate_operand" "i")]
  24686. QABSNEG))]
  24687. ...
  24688. )
  24689. would define the same patterns as before, but in addition would
  24690. generate the four functions below:
  24691. insn_code maybe_code_for_neon_vq (int, machine_mode);
  24692. insn_code code_for_neon_vq (int, machine_mode);
  24693. rtx maybe_gen_neon_vq (int, machine_mode, rtx, rtx, rtx);
  24694. rtx gen_neon_vq (int, machine_mode, rtx, rtx, rtx);
  24695. Calling 'code_for_neon_vq (UNSPEC_VQABS, V8QImode)' would then give
  24696. 'CODE_FOR_neon_vqabsv8qi'.
  24697. It is possible to have multiple '@' patterns with the same name and
  24698. same types of iterator. For example:
  24699. (define_insn "@some_arithmetic_op<mode>"
  24700. [(set (match_operand:INTEGER_MODES 0 "register_operand") ...)]
  24701. ...
  24702. )
  24703. (define_insn "@some_arithmetic_op<mode>"
  24704. [(set (match_operand:FLOAT_MODES 0 "register_operand") ...)]
  24705. ...
  24706. )
  24707. would produce a single set of functions that handles both
  24708. 'INTEGER_MODES' and 'FLOAT_MODES'.
  24709. It is also possible for these '@' patterns to have different numbers of
  24710. operands from each other. For example, patterns with a binary rtl code
  24711. might take three operands (one output and two inputs) while patterns
  24712. with a ternary rtl code might take four operands (one output and three
  24713. inputs). This combination would produce separate 'maybe_gen_NAME' and
  24714. 'gen_NAME' functions for each operand count, but it would still produce
  24715. a single 'maybe_code_for_NAME' and a single 'code_for_NAME'.
  24716. 
  24717. File: gccint.info, Node: Target Macros, Next: Host Config, Prev: Machine Desc, Up: Top
  24718. 18 Target Description Macros and Functions
  24719. ******************************************
  24720. In addition to the file 'MACHINE.md', a machine description includes a C
  24721. header file conventionally given the name 'MACHINE.h' and a C source
  24722. file named 'MACHINE.c'. The header file defines numerous macros that
  24723. convey the information about the target machine that does not fit into
  24724. the scheme of the '.md' file. The file 'tm.h' should be a link to
  24725. 'MACHINE.h'. The header file 'config.h' includes 'tm.h' and most
  24726. compiler source files include 'config.h'. The source file defines a
  24727. variable 'targetm', which is a structure containing pointers to
  24728. functions and data relating to the target machine. 'MACHINE.c' should
  24729. also contain their definitions, if they are not defined elsewhere in
  24730. GCC, and other functions called through the macros defined in the '.h'
  24731. file.
  24732. * Menu:
  24733. * Target Structure:: The 'targetm' variable.
  24734. * Driver:: Controlling how the driver runs the compilation passes.
  24735. * Run-time Target:: Defining '-m' options like '-m68000' and '-m68020'.
  24736. * Per-Function Data:: Defining data structures for per-function information.
  24737. * Storage Layout:: Defining sizes and alignments of data.
  24738. * Type Layout:: Defining sizes and properties of basic user data types.
  24739. * Registers:: Naming and describing the hardware registers.
  24740. * Register Classes:: Defining the classes of hardware registers.
  24741. * Stack and Calling:: Defining which way the stack grows and by how much.
  24742. * Varargs:: Defining the varargs macros.
  24743. * Trampolines:: Code set up at run time to enter a nested function.
  24744. * Library Calls:: Controlling how library routines are implicitly called.
  24745. * Addressing Modes:: Defining addressing modes valid for memory operands.
  24746. * Anchored Addresses:: Defining how '-fsection-anchors' should work.
  24747. * Condition Code:: Defining how insns update the condition code.
  24748. * Costs:: Defining relative costs of different operations.
  24749. * Scheduling:: Adjusting the behavior of the instruction scheduler.
  24750. * Sections:: Dividing storage into text, data, and other sections.
  24751. * PIC:: Macros for position independent code.
  24752. * Assembler Format:: Defining how to write insns and pseudo-ops to output.
  24753. * Debugging Info:: Defining the format of debugging output.
  24754. * Floating Point:: Handling floating point for cross-compilers.
  24755. * Mode Switching:: Insertion of mode-switching instructions.
  24756. * Target Attributes:: Defining target-specific uses of '__attribute__'.
  24757. * Emulated TLS:: Emulated TLS support.
  24758. * MIPS Coprocessors:: MIPS coprocessor support and how to customize it.
  24759. * PCH Target:: Validity checking for precompiled headers.
  24760. * C++ ABI:: Controlling C++ ABI changes.
  24761. * D Language and ABI:: Controlling D ABI changes.
  24762. * Named Address Spaces:: Adding support for named address spaces
  24763. * Misc:: Everything else.
  24764. 
  24765. File: gccint.info, Node: Target Structure, Next: Driver, Up: Target Macros
  24766. 18.1 The Global 'targetm' Variable
  24767. ==================================
  24768. -- Variable: struct gcc_target targetm
  24769. The target '.c' file must define the global 'targetm' variable
  24770. which contains pointers to functions and data relating to the
  24771. target machine. The variable is declared in 'target.h';
  24772. 'target-def.h' defines the macro 'TARGET_INITIALIZER' which is used
  24773. to initialize the variable, and macros for the default initializers
  24774. for elements of the structure. The '.c' file should override those
  24775. macros for which the default definition is inappropriate. For
  24776. example:
  24777. #include "target.h"
  24778. #include "target-def.h"
  24779. /* Initialize the GCC target structure. */
  24780. #undef TARGET_COMP_TYPE_ATTRIBUTES
  24781. #define TARGET_COMP_TYPE_ATTRIBUTES MACHINE_comp_type_attributes
  24782. struct gcc_target targetm = TARGET_INITIALIZER;
  24783. Where a macro should be defined in the '.c' file in this manner to form
  24784. part of the 'targetm' structure, it is documented below as a "Target
  24785. Hook" with a prototype. Many macros will change in future from being
  24786. defined in the '.h' file to being part of the 'targetm' structure.
  24787. Similarly, there is a 'targetcm' variable for hooks that are specific
  24788. to front ends for C-family languages, documented as "C Target Hook".
  24789. This is declared in 'c-family/c-target.h', the initializer
  24790. 'TARGETCM_INITIALIZER' in 'c-family/c-target-def.h'. If targets
  24791. initialize 'targetcm' themselves, they should set
  24792. 'target_has_targetcm=yes' in 'config.gcc'; otherwise a default
  24793. definition is used.
  24794. Similarly, there is a 'targetm_common' variable for hooks that are
  24795. shared between the compiler driver and the compilers proper, documented
  24796. as "Common Target Hook". This is declared in 'common/common-target.h',
  24797. the initializer 'TARGETM_COMMON_INITIALIZER' in
  24798. 'common/common-target-def.h'. If targets initialize 'targetm_common'
  24799. themselves, they should set 'target_has_targetm_common=yes' in
  24800. 'config.gcc'; otherwise a default definition is used.
  24801. Similarly, there is a 'targetdm' variable for hooks that are specific
  24802. to the D language front end, documented as "D Target Hook". This is
  24803. declared in 'd/d-target.h', the initializer 'TARGETDM_INITIALIZER' in
  24804. 'd/d-target-def.h'. If targets initialize 'targetdm' themselves, they
  24805. should set 'target_has_targetdm=yes' in 'config.gcc'; otherwise a
  24806. default definition is used.
  24807. 
  24808. File: gccint.info, Node: Driver, Next: Run-time Target, Prev: Target Structure, Up: Target Macros
  24809. 18.2 Controlling the Compilation Driver, 'gcc'
  24810. ==============================================
  24811. You can control the compilation driver.
  24812. -- Macro: DRIVER_SELF_SPECS
  24813. A list of specs for the driver itself. It should be a suitable
  24814. initializer for an array of strings, with no surrounding braces.
  24815. The driver applies these specs to its own command line between
  24816. loading default 'specs' files (but not command-line specified ones)
  24817. and choosing the multilib directory or running any subcommands. It
  24818. applies them in the order given, so each spec can depend on the
  24819. options added by earlier ones. It is also possible to remove
  24820. options using '%<OPTION' in the usual way.
  24821. This macro can be useful when a port has several interdependent
  24822. target options. It provides a way of standardizing the command
  24823. line so that the other specs are easier to write.
  24824. Do not define this macro if it does not need to do anything.
  24825. -- Macro: OPTION_DEFAULT_SPECS
  24826. A list of specs used to support configure-time default options
  24827. (i.e. '--with' options) in the driver. It should be a suitable
  24828. initializer for an array of structures, each containing two
  24829. strings, without the outermost pair of surrounding braces.
  24830. The first item in the pair is the name of the default. This must
  24831. match the code in 'config.gcc' for the target. The second item is
  24832. a spec to apply if a default with this name was specified. The
  24833. string '%(VALUE)' in the spec will be replaced by the value of the
  24834. default everywhere it occurs.
  24835. The driver will apply these specs to its own command line between
  24836. loading default 'specs' files and processing 'DRIVER_SELF_SPECS',
  24837. using the same mechanism as 'DRIVER_SELF_SPECS'.
  24838. Do not define this macro if it does not need to do anything.
  24839. -- Macro: CPP_SPEC
  24840. A C string constant that tells the GCC driver program options to
  24841. pass to CPP. It can also specify how to translate options you give
  24842. to GCC into options for GCC to pass to the CPP.
  24843. Do not define this macro if it does not need to do anything.
  24844. -- Macro: CPLUSPLUS_CPP_SPEC
  24845. This macro is just like 'CPP_SPEC', but is used for C++, rather
  24846. than C. If you do not define this macro, then the value of
  24847. 'CPP_SPEC' (if any) will be used instead.
  24848. -- Macro: CC1_SPEC
  24849. A C string constant that tells the GCC driver program options to
  24850. pass to 'cc1', 'cc1plus', 'f771', and the other language front
  24851. ends. It can also specify how to translate options you give to GCC
  24852. into options for GCC to pass to front ends.
  24853. Do not define this macro if it does not need to do anything.
  24854. -- Macro: CC1PLUS_SPEC
  24855. A C string constant that tells the GCC driver program options to
  24856. pass to 'cc1plus'. It can also specify how to translate options
  24857. you give to GCC into options for GCC to pass to the 'cc1plus'.
  24858. Do not define this macro if it does not need to do anything. Note
  24859. that everything defined in CC1_SPEC is already passed to 'cc1plus'
  24860. so there is no need to duplicate the contents of CC1_SPEC in
  24861. CC1PLUS_SPEC.
  24862. -- Macro: ASM_SPEC
  24863. A C string constant that tells the GCC driver program options to
  24864. pass to the assembler. It can also specify how to translate
  24865. options you give to GCC into options for GCC to pass to the
  24866. assembler. See the file 'sun3.h' for an example of this.
  24867. Do not define this macro if it does not need to do anything.
  24868. -- Macro: ASM_FINAL_SPEC
  24869. A C string constant that tells the GCC driver program how to run
  24870. any programs which cleanup after the normal assembler. Normally,
  24871. this is not needed. See the file 'mips.h' for an example of this.
  24872. Do not define this macro if it does not need to do anything.
  24873. -- Macro: AS_NEEDS_DASH_FOR_PIPED_INPUT
  24874. Define this macro, with no value, if the driver should give the
  24875. assembler an argument consisting of a single dash, '-', to instruct
  24876. it to read from its standard input (which will be a pipe connected
  24877. to the output of the compiler proper). This argument is given
  24878. after any '-o' option specifying the name of the output file.
  24879. If you do not define this macro, the assembler is assumed to read
  24880. its standard input if given no non-option arguments. If your
  24881. assembler cannot read standard input at all, use a '%{pipe:%e}'
  24882. construct; see 'mips.h' for instance.
  24883. -- Macro: LINK_SPEC
  24884. A C string constant that tells the GCC driver program options to
  24885. pass to the linker. It can also specify how to translate options
  24886. you give to GCC into options for GCC to pass to the linker.
  24887. Do not define this macro if it does not need to do anything.
  24888. -- Macro: LIB_SPEC
  24889. Another C string constant used much like 'LINK_SPEC'. The
  24890. difference between the two is that 'LIB_SPEC' is used at the end of
  24891. the command given to the linker.
  24892. If this macro is not defined, a default is provided that loads the
  24893. standard C library from the usual place. See 'gcc.c'.
  24894. -- Macro: LIBGCC_SPEC
  24895. Another C string constant that tells the GCC driver program how and
  24896. when to place a reference to 'libgcc.a' into the linker command
  24897. line. This constant is placed both before and after the value of
  24898. 'LIB_SPEC'.
  24899. If this macro is not defined, the GCC driver provides a default
  24900. that passes the string '-lgcc' to the linker.
  24901. -- Macro: REAL_LIBGCC_SPEC
  24902. By default, if 'ENABLE_SHARED_LIBGCC' is defined, the 'LIBGCC_SPEC'
  24903. is not directly used by the driver program but is instead modified
  24904. to refer to different versions of 'libgcc.a' depending on the
  24905. values of the command line flags '-static', '-shared',
  24906. '-static-libgcc', and '-shared-libgcc'. On targets where these
  24907. modifications are inappropriate, define 'REAL_LIBGCC_SPEC' instead.
  24908. 'REAL_LIBGCC_SPEC' tells the driver how to place a reference to
  24909. 'libgcc' on the link command line, but, unlike 'LIBGCC_SPEC', it is
  24910. used unmodified.
  24911. -- Macro: USE_LD_AS_NEEDED
  24912. A macro that controls the modifications to 'LIBGCC_SPEC' mentioned
  24913. in 'REAL_LIBGCC_SPEC'. If nonzero, a spec will be generated that
  24914. uses '--as-needed' or equivalent options and the shared 'libgcc' in
  24915. place of the static exception handler library, when linking without
  24916. any of '-static', '-static-libgcc', or '-shared-libgcc'.
  24917. -- Macro: LINK_EH_SPEC
  24918. If defined, this C string constant is added to 'LINK_SPEC'. When
  24919. 'USE_LD_AS_NEEDED' is zero or undefined, it also affects the
  24920. modifications to 'LIBGCC_SPEC' mentioned in 'REAL_LIBGCC_SPEC'.
  24921. -- Macro: STARTFILE_SPEC
  24922. Another C string constant used much like 'LINK_SPEC'. The
  24923. difference between the two is that 'STARTFILE_SPEC' is used at the
  24924. very beginning of the command given to the linker.
  24925. If this macro is not defined, a default is provided that loads the
  24926. standard C startup file from the usual place. See 'gcc.c'.
  24927. -- Macro: ENDFILE_SPEC
  24928. Another C string constant used much like 'LINK_SPEC'. The
  24929. difference between the two is that 'ENDFILE_SPEC' is used at the
  24930. very end of the command given to the linker.
  24931. Do not define this macro if it does not need to do anything.
  24932. -- Macro: THREAD_MODEL_SPEC
  24933. GCC '-v' will print the thread model GCC was configured to use.
  24934. However, this doesn't work on platforms that are multilibbed on
  24935. thread models, such as AIX 4.3. On such platforms, define
  24936. 'THREAD_MODEL_SPEC' such that it evaluates to a string without
  24937. blanks that names one of the recognized thread models. '%*', the
  24938. default value of this macro, will expand to the value of
  24939. 'thread_file' set in 'config.gcc'.
  24940. -- Macro: SYSROOT_SUFFIX_SPEC
  24941. Define this macro to add a suffix to the target sysroot when GCC is
  24942. configured with a sysroot. This will cause GCC to search for
  24943. usr/lib, et al, within sysroot+suffix.
  24944. -- Macro: SYSROOT_HEADERS_SUFFIX_SPEC
  24945. Define this macro to add a headers_suffix to the target sysroot
  24946. when GCC is configured with a sysroot. This will cause GCC to pass
  24947. the updated sysroot+headers_suffix to CPP, causing it to search for
  24948. usr/include, et al, within sysroot+headers_suffix.
  24949. -- Macro: EXTRA_SPECS
  24950. Define this macro to provide additional specifications to put in
  24951. the 'specs' file that can be used in various specifications like
  24952. 'CC1_SPEC'.
  24953. The definition should be an initializer for an array of structures,
  24954. containing a string constant, that defines the specification name,
  24955. and a string constant that provides the specification.
  24956. Do not define this macro if it does not need to do anything.
  24957. 'EXTRA_SPECS' is useful when an architecture contains several
  24958. related targets, which have various '..._SPECS' which are similar
  24959. to each other, and the maintainer would like one central place to
  24960. keep these definitions.
  24961. For example, the PowerPC System V.4 targets use 'EXTRA_SPECS' to
  24962. define either '_CALL_SYSV' when the System V calling sequence is
  24963. used or '_CALL_AIX' when the older AIX-based calling sequence is
  24964. used.
  24965. The 'config/rs6000/rs6000.h' target file defines:
  24966. #define EXTRA_SPECS \
  24967. { "cpp_sysv_default", CPP_SYSV_DEFAULT },
  24968. #define CPP_SYS_DEFAULT ""
  24969. The 'config/rs6000/sysv.h' target file defines:
  24970. #undef CPP_SPEC
  24971. #define CPP_SPEC \
  24972. "%{posix: -D_POSIX_SOURCE } \
  24973. %{mcall-sysv: -D_CALL_SYSV } \
  24974. %{!mcall-sysv: %(cpp_sysv_default) } \
  24975. %{msoft-float: -D_SOFT_FLOAT} %{mcpu=403: -D_SOFT_FLOAT}"
  24976. #undef CPP_SYSV_DEFAULT
  24977. #define CPP_SYSV_DEFAULT "-D_CALL_SYSV"
  24978. while the 'config/rs6000/eabiaix.h' target file defines
  24979. 'CPP_SYSV_DEFAULT' as:
  24980. #undef CPP_SYSV_DEFAULT
  24981. #define CPP_SYSV_DEFAULT "-D_CALL_AIX"
  24982. -- Macro: LINK_LIBGCC_SPECIAL_1
  24983. Define this macro if the driver program should find the library
  24984. 'libgcc.a'. If you do not define this macro, the driver program
  24985. will pass the argument '-lgcc' to tell the linker to do the search.
  24986. -- Macro: LINK_GCC_C_SEQUENCE_SPEC
  24987. The sequence in which libgcc and libc are specified to the linker.
  24988. By default this is '%G %L %G'.
  24989. -- Macro: POST_LINK_SPEC
  24990. Define this macro to add additional steps to be executed after
  24991. linker. The default value of this macro is empty string.
  24992. -- Macro: LINK_COMMAND_SPEC
  24993. A C string constant giving the complete command line need to
  24994. execute the linker. When you do this, you will need to update your
  24995. port each time a change is made to the link command line within
  24996. 'gcc.c'. Therefore, define this macro only if you need to
  24997. completely redefine the command line for invoking the linker and
  24998. there is no other way to accomplish the effect you need.
  24999. Overriding this macro may be avoidable by overriding
  25000. 'LINK_GCC_C_SEQUENCE_SPEC' instead.
  25001. -- Common Target Hook: bool TARGET_ALWAYS_STRIP_DOTDOT
  25002. True if '..' components should always be removed from directory
  25003. names computed relative to GCC's internal directories, false
  25004. (default) if such components should be preserved and directory
  25005. names containing them passed to other tools such as the linker.
  25006. -- Macro: MULTILIB_DEFAULTS
  25007. Define this macro as a C expression for the initializer of an array
  25008. of string to tell the driver program which options are defaults for
  25009. this target and thus do not need to be handled specially when using
  25010. 'MULTILIB_OPTIONS'.
  25011. Do not define this macro if 'MULTILIB_OPTIONS' is not defined in
  25012. the target makefile fragment or if none of the options listed in
  25013. 'MULTILIB_OPTIONS' are set by default. *Note Target Fragment::.
  25014. -- Macro: RELATIVE_PREFIX_NOT_LINKDIR
  25015. Define this macro to tell 'gcc' that it should only translate a
  25016. '-B' prefix into a '-L' linker option if the prefix indicates an
  25017. absolute file name.
  25018. -- Macro: MD_EXEC_PREFIX
  25019. If defined, this macro is an additional prefix to try after
  25020. 'STANDARD_EXEC_PREFIX'. 'MD_EXEC_PREFIX' is not searched when the
  25021. compiler is built as a cross compiler. If you define
  25022. 'MD_EXEC_PREFIX', then be sure to add it to the list of directories
  25023. used to find the assembler in 'configure.ac'.
  25024. -- Macro: STANDARD_STARTFILE_PREFIX
  25025. Define this macro as a C string constant if you wish to override
  25026. the standard choice of 'libdir' as the default prefix to try when
  25027. searching for startup files such as 'crt0.o'.
  25028. 'STANDARD_STARTFILE_PREFIX' is not searched when the compiler is
  25029. built as a cross compiler.
  25030. -- Macro: STANDARD_STARTFILE_PREFIX_1
  25031. Define this macro as a C string constant if you wish to override
  25032. the standard choice of '/lib' as a prefix to try after the default
  25033. prefix when searching for startup files such as 'crt0.o'.
  25034. 'STANDARD_STARTFILE_PREFIX_1' is not searched when the compiler is
  25035. built as a cross compiler.
  25036. -- Macro: STANDARD_STARTFILE_PREFIX_2
  25037. Define this macro as a C string constant if you wish to override
  25038. the standard choice of '/lib' as yet another prefix to try after
  25039. the default prefix when searching for startup files such as
  25040. 'crt0.o'. 'STANDARD_STARTFILE_PREFIX_2' is not searched when the
  25041. compiler is built as a cross compiler.
  25042. -- Macro: MD_STARTFILE_PREFIX
  25043. If defined, this macro supplies an additional prefix to try after
  25044. the standard prefixes. 'MD_EXEC_PREFIX' is not searched when the
  25045. compiler is built as a cross compiler.
  25046. -- Macro: MD_STARTFILE_PREFIX_1
  25047. If defined, this macro supplies yet another prefix to try after the
  25048. standard prefixes. It is not searched when the compiler is built
  25049. as a cross compiler.
  25050. -- Macro: INIT_ENVIRONMENT
  25051. Define this macro as a C string constant if you wish to set
  25052. environment variables for programs called by the driver, such as
  25053. the assembler and loader. The driver passes the value of this
  25054. macro to 'putenv' to initialize the necessary environment
  25055. variables.
  25056. -- Macro: LOCAL_INCLUDE_DIR
  25057. Define this macro as a C string constant if you wish to override
  25058. the standard choice of '/usr/local/include' as the default prefix
  25059. to try when searching for local header files. 'LOCAL_INCLUDE_DIR'
  25060. comes before 'NATIVE_SYSTEM_HEADER_DIR' (set in 'config.gcc',
  25061. normally '/usr/include') in the search order.
  25062. Cross compilers do not search either '/usr/local/include' or its
  25063. replacement.
  25064. -- Macro: NATIVE_SYSTEM_HEADER_COMPONENT
  25065. The "component" corresponding to 'NATIVE_SYSTEM_HEADER_DIR'. See
  25066. 'INCLUDE_DEFAULTS', below, for the description of components. If
  25067. you do not define this macro, no component is used.
  25068. -- Macro: INCLUDE_DEFAULTS
  25069. Define this macro if you wish to override the entire default search
  25070. path for include files. For a native compiler, the default search
  25071. path usually consists of 'GCC_INCLUDE_DIR', 'LOCAL_INCLUDE_DIR',
  25072. 'GPLUSPLUS_INCLUDE_DIR', and 'NATIVE_SYSTEM_HEADER_DIR'. In
  25073. addition, 'GPLUSPLUS_INCLUDE_DIR' and 'GCC_INCLUDE_DIR' are defined
  25074. automatically by 'Makefile', and specify private search areas for
  25075. GCC. The directory 'GPLUSPLUS_INCLUDE_DIR' is used only for C++
  25076. programs.
  25077. The definition should be an initializer for an array of structures.
  25078. Each array element should have four elements: the directory name (a
  25079. string constant), the component name (also a string constant), a
  25080. flag for C++-only directories, and a flag showing that the includes
  25081. in the directory don't need to be wrapped in 'extern 'C'' when
  25082. compiling C++. Mark the end of the array with a null element.
  25083. The component name denotes what GNU package the include file is
  25084. part of, if any, in all uppercase letters. For example, it might
  25085. be 'GCC' or 'BINUTILS'. If the package is part of a
  25086. vendor-supplied operating system, code the component name as '0'.
  25087. For example, here is the definition used for VAX/VMS:
  25088. #define INCLUDE_DEFAULTS \
  25089. { \
  25090. { "GNU_GXX_INCLUDE:", "G++", 1, 1}, \
  25091. { "GNU_CC_INCLUDE:", "GCC", 0, 0}, \
  25092. { "SYS$SYSROOT:[SYSLIB.]", 0, 0, 0}, \
  25093. { ".", 0, 0, 0}, \
  25094. { 0, 0, 0, 0} \
  25095. }
  25096. Here is the order of prefixes tried for exec files:
  25097. 1. Any prefixes specified by the user with '-B'.
  25098. 2. The environment variable 'GCC_EXEC_PREFIX' or, if 'GCC_EXEC_PREFIX'
  25099. is not set and the compiler has not been installed in the
  25100. configure-time PREFIX, the location in which the compiler has
  25101. actually been installed.
  25102. 3. The directories specified by the environment variable
  25103. 'COMPILER_PATH'.
  25104. 4. The macro 'STANDARD_EXEC_PREFIX', if the compiler has been
  25105. installed in the configured-time PREFIX.
  25106. 5. The location '/usr/libexec/gcc/', but only if this is a native
  25107. compiler.
  25108. 6. The location '/usr/lib/gcc/', but only if this is a native
  25109. compiler.
  25110. 7. The macro 'MD_EXEC_PREFIX', if defined, but only if this is a
  25111. native compiler.
  25112. Here is the order of prefixes tried for startfiles:
  25113. 1. Any prefixes specified by the user with '-B'.
  25114. 2. The environment variable 'GCC_EXEC_PREFIX' or its automatically
  25115. determined value based on the installed toolchain location.
  25116. 3. The directories specified by the environment variable
  25117. 'LIBRARY_PATH' (or port-specific name; native only, cross compilers
  25118. do not use this).
  25119. 4. The macro 'STANDARD_EXEC_PREFIX', but only if the toolchain is
  25120. installed in the configured PREFIX or this is a native compiler.
  25121. 5. The location '/usr/lib/gcc/', but only if this is a native
  25122. compiler.
  25123. 6. The macro 'MD_EXEC_PREFIX', if defined, but only if this is a
  25124. native compiler.
  25125. 7. The macro 'MD_STARTFILE_PREFIX', if defined, but only if this is a
  25126. native compiler, or we have a target system root.
  25127. 8. The macro 'MD_STARTFILE_PREFIX_1', if defined, but only if this is
  25128. a native compiler, or we have a target system root.
  25129. 9. The macro 'STANDARD_STARTFILE_PREFIX', with any sysroot
  25130. modifications. If this path is relative it will be prefixed by
  25131. 'GCC_EXEC_PREFIX' and the machine suffix or 'STANDARD_EXEC_PREFIX'
  25132. and the machine suffix.
  25133. 10. The macro 'STANDARD_STARTFILE_PREFIX_1', but only if this is a
  25134. native compiler, or we have a target system root. The default for
  25135. this macro is '/lib/'.
  25136. 11. The macro 'STANDARD_STARTFILE_PREFIX_2', but only if this is a
  25137. native compiler, or we have a target system root. The default for
  25138. this macro is '/usr/lib/'.
  25139. 
  25140. File: gccint.info, Node: Run-time Target, Next: Per-Function Data, Prev: Driver, Up: Target Macros
  25141. 18.3 Run-time Target Specification
  25142. ==================================
  25143. Here are run-time target specifications.
  25144. -- Macro: TARGET_CPU_CPP_BUILTINS ()
  25145. This function-like macro expands to a block of code that defines
  25146. built-in preprocessor macros and assertions for the target CPU,
  25147. using the functions 'builtin_define', 'builtin_define_std' and
  25148. 'builtin_assert'. When the front end calls this macro it provides
  25149. a trailing semicolon, and since it has finished command line option
  25150. processing your code can use those results freely.
  25151. 'builtin_assert' takes a string in the form you pass to the
  25152. command-line option '-A', such as 'cpu=mips', and creates the
  25153. assertion. 'builtin_define' takes a string in the form accepted by
  25154. option '-D' and unconditionally defines the macro.
  25155. 'builtin_define_std' takes a string representing the name of an
  25156. object-like macro. If it doesn't lie in the user's namespace,
  25157. 'builtin_define_std' defines it unconditionally. Otherwise, it
  25158. defines a version with two leading underscores, and another version
  25159. with two leading and trailing underscores, and defines the original
  25160. only if an ISO standard was not requested on the command line. For
  25161. example, passing 'unix' defines '__unix', '__unix__' and possibly
  25162. 'unix'; passing '_mips' defines '__mips', '__mips__' and possibly
  25163. '_mips', and passing '_ABI64' defines only '_ABI64'.
  25164. You can also test for the C dialect being compiled. The variable
  25165. 'c_language' is set to one of 'clk_c', 'clk_cplusplus' or
  25166. 'clk_objective_c'. Note that if we are preprocessing assembler,
  25167. this variable will be 'clk_c' but the function-like macro
  25168. 'preprocessing_asm_p()' will return true, so you might want to
  25169. check for that first. If you need to check for strict ANSI, the
  25170. variable 'flag_iso' can be used. The function-like macro
  25171. 'preprocessing_trad_p()' can be used to check for traditional
  25172. preprocessing.
  25173. -- Macro: TARGET_OS_CPP_BUILTINS ()
  25174. Similarly to 'TARGET_CPU_CPP_BUILTINS' but this macro is optional
  25175. and is used for the target operating system instead.
  25176. -- Macro: TARGET_OBJFMT_CPP_BUILTINS ()
  25177. Similarly to 'TARGET_CPU_CPP_BUILTINS' but this macro is optional
  25178. and is used for the target object format. 'elfos.h' uses this
  25179. macro to define '__ELF__', so you probably do not need to define it
  25180. yourself.
  25181. -- Variable: extern int target_flags
  25182. This variable is declared in 'options.h', which is included before
  25183. any target-specific headers.
  25184. -- Common Target Hook: int TARGET_DEFAULT_TARGET_FLAGS
  25185. This variable specifies the initial value of 'target_flags'. Its
  25186. default setting is 0.
  25187. -- Common Target Hook: bool TARGET_HANDLE_OPTION (struct gcc_options
  25188. *OPTS, struct gcc_options *OPTS_SET, const struct
  25189. cl_decoded_option *DECODED, location_t LOC)
  25190. This hook is called whenever the user specifies one of the
  25191. target-specific options described by the '.opt' definition files
  25192. (*note Options::). It has the opportunity to do some
  25193. option-specific processing and should return true if the option is
  25194. valid. The default definition does nothing but return true.
  25195. DECODED specifies the option and its arguments. OPTS and OPTS_SET
  25196. are the 'gcc_options' structures to be used for storing option
  25197. state, and LOC is the location at which the option was passed
  25198. ('UNKNOWN_LOCATION' except for options passed via attributes).
  25199. -- C Target Hook: bool TARGET_HANDLE_C_OPTION (size_t CODE, const char
  25200. *ARG, int VALUE)
  25201. This target hook is called whenever the user specifies one of the
  25202. target-specific C language family options described by the '.opt'
  25203. definition files(*note Options::). It has the opportunity to do
  25204. some option-specific processing and should return true if the
  25205. option is valid. The arguments are like for
  25206. 'TARGET_HANDLE_OPTION'. The default definition does nothing but
  25207. return false.
  25208. In general, you should use 'TARGET_HANDLE_OPTION' to handle
  25209. options. However, if processing an option requires routines that
  25210. are only available in the C (and related language) front ends, then
  25211. you should use 'TARGET_HANDLE_C_OPTION' instead.
  25212. -- C Target Hook: tree TARGET_OBJC_CONSTRUCT_STRING_OBJECT (tree
  25213. STRING)
  25214. Targets may provide a string object type that can be used within
  25215. and between C, C++ and their respective Objective-C dialects. A
  25216. string object might, for example, embed encoding and length
  25217. information. These objects are considered opaque to the compiler
  25218. and handled as references. An ideal implementation makes the
  25219. composition of the string object match that of the Objective-C
  25220. 'NSString' ('NXString' for GNUStep), allowing efficient
  25221. interworking between C-only and Objective-C code. If a target
  25222. implements string objects then this hook should return a reference
  25223. to such an object constructed from the normal 'C' string
  25224. representation provided in STRING. At present, the hook is used by
  25225. Objective-C only, to obtain a common-format string object when the
  25226. target provides one.
  25227. -- C Target Hook: void TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE
  25228. (const char *CLASSNAME)
  25229. Declare that Objective C class CLASSNAME is referenced by the
  25230. current TU.
  25231. -- C Target Hook: void TARGET_OBJC_DECLARE_CLASS_DEFINITION (const char
  25232. *CLASSNAME)
  25233. Declare that Objective C class CLASSNAME is defined by the current
  25234. TU.
  25235. -- C Target Hook: bool TARGET_STRING_OBJECT_REF_TYPE_P (const_tree
  25236. STRINGREF)
  25237. If a target implements string objects then this hook should return
  25238. 'true' if STRINGREF is a valid reference to such an object.
  25239. -- C Target Hook: void TARGET_CHECK_STRING_OBJECT_FORMAT_ARG (tree
  25240. FORMAT_ARG, tree ARGS_LIST)
  25241. If a target implements string objects then this hook should should
  25242. provide a facility to check the function arguments in ARGS_LIST
  25243. against the format specifiers in FORMAT_ARG where the type of
  25244. FORMAT_ARG is one recognized as a valid string reference type.
  25245. -- Target Hook: void TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE (void)
  25246. This target function is similar to the hook
  25247. 'TARGET_OPTION_OVERRIDE' but is called when the optimize level is
  25248. changed via an attribute or pragma or when it is reset at the end
  25249. of the code affected by the attribute or pragma. It is not called
  25250. at the beginning of compilation when 'TARGET_OPTION_OVERRIDE' is
  25251. called so if you want to perform these actions then, you should
  25252. have 'TARGET_OPTION_OVERRIDE' call
  25253. 'TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE'.
  25254. -- Macro: C_COMMON_OVERRIDE_OPTIONS
  25255. This is similar to the 'TARGET_OPTION_OVERRIDE' hook but is only
  25256. used in the C language frontends (C, Objective-C, C++,
  25257. Objective-C++) and so can be used to alter option flag variables
  25258. which only exist in those frontends.
  25259. -- Common Target Hook: const struct default_options *
  25260. TARGET_OPTION_OPTIMIZATION_TABLE
  25261. Some machines may desire to change what optimizations are performed
  25262. for various optimization levels. This variable, if defined,
  25263. describes options to enable at particular sets of optimization
  25264. levels. These options are processed once just after the
  25265. optimization level is determined and before the remainder of the
  25266. command options have been parsed, so may be overridden by other
  25267. options passed explicitly.
  25268. This processing is run once at program startup and when the
  25269. optimization options are changed via '#pragma GCC optimize' or by
  25270. using the 'optimize' attribute.
  25271. -- Common Target Hook: void TARGET_OPTION_INIT_STRUCT (struct
  25272. gcc_options *OPTS)
  25273. Set target-dependent initial values of fields in OPTS.
  25274. -- Macro: SWITCHABLE_TARGET
  25275. Some targets need to switch between substantially different
  25276. subtargets during compilation. For example, the MIPS target has
  25277. one subtarget for the traditional MIPS architecture and another for
  25278. MIPS16. Source code can switch between these two subarchitectures
  25279. using the 'mips16' and 'nomips16' attributes.
  25280. Such subtargets can differ in things like the set of available
  25281. registers, the set of available instructions, the costs of various
  25282. operations, and so on. GCC caches a lot of this type of
  25283. information in global variables, and recomputing them for each
  25284. subtarget takes a significant amount of time. The compiler
  25285. therefore provides a facility for maintaining several versions of
  25286. the global variables and quickly switching between them; see
  25287. 'target-globals.h' for details.
  25288. Define this macro to 1 if your target needs this facility. The
  25289. default is 0.
  25290. -- Target Hook: bool TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P
  25291. (void)
  25292. Returns true if the target supports IEEE 754 floating-point
  25293. exceptions and rounding modes, false otherwise. This is intended
  25294. to relate to the 'float' and 'double' types, but not necessarily
  25295. 'long double'. By default, returns true if the 'adddf3'
  25296. instruction pattern is available and false otherwise, on the
  25297. assumption that hardware floating point supports exceptions and
  25298. rounding modes but software floating point does not.
  25299. 
  25300. File: gccint.info, Node: Per-Function Data, Next: Storage Layout, Prev: Run-time Target, Up: Target Macros
  25301. 18.4 Defining data structures for per-function information.
  25302. ===========================================================
  25303. If the target needs to store information on a per-function basis, GCC
  25304. provides a macro and a couple of variables to allow this. Note, just
  25305. using statics to store the information is a bad idea, since GCC supports
  25306. nested functions, so you can be halfway through encoding one function
  25307. when another one comes along.
  25308. GCC defines a data structure called 'struct function' which contains
  25309. all of the data specific to an individual function. This structure
  25310. contains a field called 'machine' whose type is 'struct machine_function
  25311. *', which can be used by targets to point to their own specific data.
  25312. If a target needs per-function specific data it should define the type
  25313. 'struct machine_function' and also the macro 'INIT_EXPANDERS'. This
  25314. macro should be used to initialize the function pointer
  25315. 'init_machine_status'. This pointer is explained below.
  25316. One typical use of per-function, target specific data is to create an
  25317. RTX to hold the register containing the function's return address. This
  25318. RTX can then be used to implement the '__builtin_return_address'
  25319. function, for level 0.
  25320. Note--earlier implementations of GCC used a single data area to hold
  25321. all of the per-function information. Thus when processing of a nested
  25322. function began the old per-function data had to be pushed onto a stack,
  25323. and when the processing was finished, it had to be popped off the stack.
  25324. GCC used to provide function pointers called 'save_machine_status' and
  25325. 'restore_machine_status' to handle the saving and restoring of the
  25326. target specific information. Since the single data area approach is no
  25327. longer used, these pointers are no longer supported.
  25328. -- Macro: INIT_EXPANDERS
  25329. Macro called to initialize any target specific information. This
  25330. macro is called once per function, before generation of any RTL has
  25331. begun. The intention of this macro is to allow the initialization
  25332. of the function pointer 'init_machine_status'.
  25333. -- Variable: void (*)(struct function *) init_machine_status
  25334. If this function pointer is non-'NULL' it will be called once per
  25335. function, before function compilation starts, in order to allow the
  25336. target to perform any target specific initialization of the 'struct
  25337. function' structure. It is intended that this would be used to
  25338. initialize the 'machine' of that structure.
  25339. 'struct machine_function' structures are expected to be freed by
  25340. GC. Generally, any memory that they reference must be allocated by
  25341. using GC allocation, including the structure itself.
  25342. 
  25343. File: gccint.info, Node: Storage Layout, Next: Type Layout, Prev: Per-Function Data, Up: Target Macros
  25344. 18.5 Storage Layout
  25345. ===================
  25346. Note that the definitions of the macros in this table which are sizes or
  25347. alignments measured in bits do not need to be constant. They can be C
  25348. expressions that refer to static variables, such as the 'target_flags'.
  25349. *Note Run-time Target::.
  25350. -- Macro: BITS_BIG_ENDIAN
  25351. Define this macro to have the value 1 if the most significant bit
  25352. in a byte has the lowest number; otherwise define it to have the
  25353. value zero. This means that bit-field instructions count from the
  25354. most significant bit. If the machine has no bit-field
  25355. instructions, then this must still be defined, but it doesn't
  25356. matter which value it is defined to. This macro need not be a
  25357. constant.
  25358. This macro does not affect the way structure fields are packed into
  25359. bytes or words; that is controlled by 'BYTES_BIG_ENDIAN'.
  25360. -- Macro: BYTES_BIG_ENDIAN
  25361. Define this macro to have the value 1 if the most significant byte
  25362. in a word has the lowest number. This macro need not be a
  25363. constant.
  25364. -- Macro: WORDS_BIG_ENDIAN
  25365. Define this macro to have the value 1 if, in a multiword object,
  25366. the most significant word has the lowest number. This applies to
  25367. both memory locations and registers; see 'REG_WORDS_BIG_ENDIAN' if
  25368. the order of words in memory is not the same as the order in
  25369. registers. This macro need not be a constant.
  25370. -- Macro: REG_WORDS_BIG_ENDIAN
  25371. On some machines, the order of words in a multiword object differs
  25372. between registers in memory. In such a situation, define this
  25373. macro to describe the order of words in a register. The macro
  25374. 'WORDS_BIG_ENDIAN' controls the order of words in memory.
  25375. -- Macro: FLOAT_WORDS_BIG_ENDIAN
  25376. Define this macro to have the value 1 if 'DFmode', 'XFmode' or
  25377. 'TFmode' floating point numbers are stored in memory with the word
  25378. containing the sign bit at the lowest address; otherwise define it
  25379. to have the value 0. This macro need not be a constant.
  25380. You need not define this macro if the ordering is the same as for
  25381. multi-word integers.
  25382. -- Macro: BITS_PER_WORD
  25383. Number of bits in a word. If you do not define this macro, the
  25384. default is 'BITS_PER_UNIT * UNITS_PER_WORD'.
  25385. -- Macro: MAX_BITS_PER_WORD
  25386. Maximum number of bits in a word. If this is undefined, the
  25387. default is 'BITS_PER_WORD'. Otherwise, it is the constant value
  25388. that is the largest value that 'BITS_PER_WORD' can have at
  25389. run-time.
  25390. -- Macro: UNITS_PER_WORD
  25391. Number of storage units in a word; normally the size of a
  25392. general-purpose register, a power of two from 1 or 8.
  25393. -- Macro: MIN_UNITS_PER_WORD
  25394. Minimum number of units in a word. If this is undefined, the
  25395. default is 'UNITS_PER_WORD'. Otherwise, it is the constant value
  25396. that is the smallest value that 'UNITS_PER_WORD' can have at
  25397. run-time.
  25398. -- Macro: POINTER_SIZE
  25399. Width of a pointer, in bits. You must specify a value no wider
  25400. than the width of 'Pmode'. If it is not equal to the width of
  25401. 'Pmode', you must define 'POINTERS_EXTEND_UNSIGNED'. If you do not
  25402. specify a value the default is 'BITS_PER_WORD'.
  25403. -- Macro: POINTERS_EXTEND_UNSIGNED
  25404. A C expression that determines how pointers should be extended from
  25405. 'ptr_mode' to either 'Pmode' or 'word_mode'. It is greater than
  25406. zero if pointers should be zero-extended, zero if they should be
  25407. sign-extended, and negative if some other sort of conversion is
  25408. needed. In the last case, the extension is done by the target's
  25409. 'ptr_extend' instruction.
  25410. You need not define this macro if the 'ptr_mode', 'Pmode' and
  25411. 'word_mode' are all the same width.
  25412. -- Macro: PROMOTE_MODE (M, UNSIGNEDP, TYPE)
  25413. A macro to update M and UNSIGNEDP when an object whose type is TYPE
  25414. and which has the specified mode and signedness is to be stored in
  25415. a register. This macro is only called when TYPE is a scalar type.
  25416. On most RISC machines, which only have operations that operate on a
  25417. full register, define this macro to set M to 'word_mode' if M is an
  25418. integer mode narrower than 'BITS_PER_WORD'. In most cases, only
  25419. integer modes should be widened because wider-precision
  25420. floating-point operations are usually more expensive than their
  25421. narrower counterparts.
  25422. For most machines, the macro definition does not change UNSIGNEDP.
  25423. However, some machines, have instructions that preferentially
  25424. handle either signed or unsigned quantities of certain modes. For
  25425. example, on the DEC Alpha, 32-bit loads from memory and 32-bit add
  25426. instructions sign-extend the result to 64 bits. On such machines,
  25427. set UNSIGNEDP according to which kind of extension is more
  25428. efficient.
  25429. Do not define this macro if it would never modify M.
  25430. -- Target Hook: enum flt_eval_method TARGET_C_EXCESS_PRECISION (enum
  25431. excess_precision_type TYPE)
  25432. Return a value, with the same meaning as the C99 macro
  25433. 'FLT_EVAL_METHOD' that describes which excess precision should be
  25434. applied. TYPE is either 'EXCESS_PRECISION_TYPE_IMPLICIT',
  25435. 'EXCESS_PRECISION_TYPE_FAST', or 'EXCESS_PRECISION_TYPE_STANDARD'.
  25436. For 'EXCESS_PRECISION_TYPE_IMPLICIT', the target should return
  25437. which precision and range operations will be implictly evaluated in
  25438. regardless of the excess precision explicitly added. For
  25439. 'EXCESS_PRECISION_TYPE_STANDARD' and 'EXCESS_PRECISION_TYPE_FAST',
  25440. the target should return the explicit excess precision that should
  25441. be added depending on the value set for
  25442. '-fexcess-precision=[standard|fast]'. Note that unpredictable
  25443. explicit excess precision does not make sense, so a target should
  25444. never return 'FLT_EVAL_METHOD_UNPREDICTABLE' when TYPE is
  25445. 'EXCESS_PRECISION_TYPE_STANDARD' or 'EXCESS_PRECISION_TYPE_FAST'.
  25446. -- Target Hook: machine_mode TARGET_PROMOTE_FUNCTION_MODE (const_tree
  25447. TYPE, machine_mode MODE, int *PUNSIGNEDP, const_tree FUNTYPE,
  25448. int FOR_RETURN)
  25449. Like 'PROMOTE_MODE', but it is applied to outgoing function
  25450. arguments or function return values. The target hook should return
  25451. the new mode and possibly change '*PUNSIGNEDP' if the promotion
  25452. should change signedness. This function is called only for scalar
  25453. _or pointer_ types.
  25454. FOR_RETURN allows to distinguish the promotion of arguments and
  25455. return values. If it is '1', a return value is being promoted and
  25456. 'TARGET_FUNCTION_VALUE' must perform the same promotions done here.
  25457. If it is '2', the returned mode should be that of the register in
  25458. which an incoming parameter is copied, or the outgoing result is
  25459. computed; then the hook should return the same mode as
  25460. 'promote_mode', though the signedness may be different.
  25461. TYPE can be NULL when promoting function arguments of libcalls.
  25462. The default is to not promote arguments and return values. You can
  25463. also define the hook to
  25464. 'default_promote_function_mode_always_promote' if you would like to
  25465. apply the same rules given by 'PROMOTE_MODE'.
  25466. -- Macro: PARM_BOUNDARY
  25467. Normal alignment required for function parameters on the stack, in
  25468. bits. All stack parameters receive at least this much alignment
  25469. regardless of data type. On most machines, this is the same as the
  25470. size of an integer.
  25471. -- Macro: STACK_BOUNDARY
  25472. Define this macro to the minimum alignment enforced by hardware for
  25473. the stack pointer on this machine. The definition is a C
  25474. expression for the desired alignment (measured in bits). This
  25475. value is used as a default if 'PREFERRED_STACK_BOUNDARY' is not
  25476. defined. On most machines, this should be the same as
  25477. 'PARM_BOUNDARY'.
  25478. -- Macro: PREFERRED_STACK_BOUNDARY
  25479. Define this macro if you wish to preserve a certain alignment for
  25480. the stack pointer, greater than what the hardware enforces. The
  25481. definition is a C expression for the desired alignment (measured in
  25482. bits). This macro must evaluate to a value equal to or larger than
  25483. 'STACK_BOUNDARY'.
  25484. -- Macro: INCOMING_STACK_BOUNDARY
  25485. Define this macro if the incoming stack boundary may be different
  25486. from 'PREFERRED_STACK_BOUNDARY'. This macro must evaluate to a
  25487. value equal to or larger than 'STACK_BOUNDARY'.
  25488. -- Macro: FUNCTION_BOUNDARY
  25489. Alignment required for a function entry point, in bits.
  25490. -- Macro: BIGGEST_ALIGNMENT
  25491. Biggest alignment that any data type can require on this machine,
  25492. in bits. Note that this is not the biggest alignment that is
  25493. supported, just the biggest alignment that, when violated, may
  25494. cause a fault.
  25495. -- Target Hook: HOST_WIDE_INT TARGET_ABSOLUTE_BIGGEST_ALIGNMENT
  25496. If defined, this target hook specifies the absolute biggest
  25497. alignment that a type or variable can have on this machine,
  25498. otherwise, 'BIGGEST_ALIGNMENT' is used.
  25499. -- Macro: MALLOC_ABI_ALIGNMENT
  25500. Alignment, in bits, a C conformant malloc implementation has to
  25501. provide. If not defined, the default value is 'BITS_PER_WORD'.
  25502. -- Macro: ATTRIBUTE_ALIGNED_VALUE
  25503. Alignment used by the '__attribute__ ((aligned))' construct. If
  25504. not defined, the default value is 'BIGGEST_ALIGNMENT'.
  25505. -- Macro: MINIMUM_ATOMIC_ALIGNMENT
  25506. If defined, the smallest alignment, in bits, that can be given to
  25507. an object that can be referenced in one operation, without
  25508. disturbing any nearby object. Normally, this is 'BITS_PER_UNIT',
  25509. but may be larger on machines that don't have byte or half-word
  25510. store operations.
  25511. -- Macro: BIGGEST_FIELD_ALIGNMENT
  25512. Biggest alignment that any structure or union field can require on
  25513. this machine, in bits. If defined, this overrides
  25514. 'BIGGEST_ALIGNMENT' for structure and union fields only, unless the
  25515. field alignment has been set by the '__attribute__ ((aligned (N)))'
  25516. construct.
  25517. -- Macro: ADJUST_FIELD_ALIGN (FIELD, TYPE, COMPUTED)
  25518. An expression for the alignment of a structure field FIELD of type
  25519. TYPE if the alignment computed in the usual way (including applying
  25520. of 'BIGGEST_ALIGNMENT' and 'BIGGEST_FIELD_ALIGNMENT' to the
  25521. alignment) is COMPUTED. It overrides alignment only if the field
  25522. alignment has not been set by the '__attribute__ ((aligned (N)))'
  25523. construct. Note that FIELD may be 'NULL_TREE' in case we just
  25524. query for the minimum alignment of a field of type TYPE in
  25525. structure context.
  25526. -- Macro: MAX_STACK_ALIGNMENT
  25527. Biggest stack alignment guaranteed by the backend. Use this macro
  25528. to specify the maximum alignment of a variable on stack.
  25529. If not defined, the default value is 'STACK_BOUNDARY'.
  25530. -- Macro: MAX_OFILE_ALIGNMENT
  25531. Biggest alignment supported by the object file format of this
  25532. machine. Use this macro to limit the alignment which can be
  25533. specified using the '__attribute__ ((aligned (N)))' construct for
  25534. functions and objects with static storage duration. The alignment
  25535. of automatic objects may exceed the object file format maximum up
  25536. to the maximum supported by GCC. If not defined, the default value
  25537. is 'BIGGEST_ALIGNMENT'.
  25538. On systems that use ELF, the default (in 'config/elfos.h') is the
  25539. largest supported 32-bit ELF section alignment representable on a
  25540. 32-bit host e.g. '(((uint64_t) 1 << 28) * 8)'. On 32-bit ELF the
  25541. largest supported section alignment in bits is '(0x80000000 * 8)',
  25542. but this is not representable on 32-bit hosts.
  25543. -- Target Hook: HOST_WIDE_INT TARGET_STATIC_RTX_ALIGNMENT (machine_mode
  25544. MODE)
  25545. This hook returns the preferred alignment in bits for a
  25546. statically-allocated rtx, such as a constant pool entry. MODE is
  25547. the mode of the rtx. The default implementation returns
  25548. 'GET_MODE_ALIGNMENT (MODE)'.
  25549. -- Macro: DATA_ALIGNMENT (TYPE, BASIC-ALIGN)
  25550. If defined, a C expression to compute the alignment for a variable
  25551. in the static store. TYPE is the data type, and BASIC-ALIGN is the
  25552. alignment that the object would ordinarily have. The value of this
  25553. macro is used instead of that alignment to align the object.
  25554. If this macro is not defined, then BASIC-ALIGN is used.
  25555. One use of this macro is to increase alignment of medium-size data
  25556. to make it all fit in fewer cache lines. Another is to cause
  25557. character arrays to be word-aligned so that 'strcpy' calls that
  25558. copy constants to character arrays can be done inline.
  25559. -- Macro: DATA_ABI_ALIGNMENT (TYPE, BASIC-ALIGN)
  25560. Similar to 'DATA_ALIGNMENT', but for the cases where the ABI
  25561. mandates some alignment increase, instead of optimization only
  25562. purposes. E.g. AMD x86-64 psABI says that variables with array
  25563. type larger than 15 bytes must be aligned to 16 byte boundaries.
  25564. If this macro is not defined, then BASIC-ALIGN is used.
  25565. -- Target Hook: HOST_WIDE_INT TARGET_CONSTANT_ALIGNMENT (const_tree
  25566. CONSTANT, HOST_WIDE_INT BASIC_ALIGN)
  25567. This hook returns the alignment in bits of a constant that is being
  25568. placed in memory. CONSTANT is the constant and BASIC_ALIGN is the
  25569. alignment that the object would ordinarily have.
  25570. The default definition just returns BASIC_ALIGN.
  25571. The typical use of this hook is to increase alignment for string
  25572. constants to be word aligned so that 'strcpy' calls that copy
  25573. constants can be done inline. The function
  25574. 'constant_alignment_word_strings' provides such a definition.
  25575. -- Macro: LOCAL_ALIGNMENT (TYPE, BASIC-ALIGN)
  25576. If defined, a C expression to compute the alignment for a variable
  25577. in the local store. TYPE is the data type, and BASIC-ALIGN is the
  25578. alignment that the object would ordinarily have. The value of this
  25579. macro is used instead of that alignment to align the object.
  25580. If this macro is not defined, then BASIC-ALIGN is used.
  25581. One use of this macro is to increase alignment of medium-size data
  25582. to make it all fit in fewer cache lines.
  25583. If the value of this macro has a type, it should be an unsigned
  25584. type.
  25585. -- Target Hook: HOST_WIDE_INT TARGET_VECTOR_ALIGNMENT (const_tree TYPE)
  25586. This hook can be used to define the alignment for a vector of type
  25587. TYPE, in order to comply with a platform ABI. The default is to
  25588. require natural alignment for vector types. The alignment returned
  25589. by this hook must be a power-of-two multiple of the default
  25590. alignment of the vector element type.
  25591. -- Macro: STACK_SLOT_ALIGNMENT (TYPE, MODE, BASIC-ALIGN)
  25592. If defined, a C expression to compute the alignment for stack slot.
  25593. TYPE is the data type, MODE is the widest mode available, and
  25594. BASIC-ALIGN is the alignment that the slot would ordinarily have.
  25595. The value of this macro is used instead of that alignment to align
  25596. the slot.
  25597. If this macro is not defined, then BASIC-ALIGN is used when TYPE is
  25598. 'NULL'. Otherwise, 'LOCAL_ALIGNMENT' will be used.
  25599. This macro is to set alignment of stack slot to the maximum
  25600. alignment of all possible modes which the slot may have.
  25601. If the value of this macro has a type, it should be an unsigned
  25602. type.
  25603. -- Macro: LOCAL_DECL_ALIGNMENT (DECL)
  25604. If defined, a C expression to compute the alignment for a local
  25605. variable DECL.
  25606. If this macro is not defined, then 'LOCAL_ALIGNMENT (TREE_TYPE
  25607. (DECL), DECL_ALIGN (DECL))' is used.
  25608. One use of this macro is to increase alignment of medium-size data
  25609. to make it all fit in fewer cache lines.
  25610. If the value of this macro has a type, it should be an unsigned
  25611. type.
  25612. -- Macro: MINIMUM_ALIGNMENT (EXP, MODE, ALIGN)
  25613. If defined, a C expression to compute the minimum required
  25614. alignment for dynamic stack realignment purposes for EXP (a type or
  25615. decl), MODE, assuming normal alignment ALIGN.
  25616. If this macro is not defined, then ALIGN will be used.
  25617. -- Macro: EMPTY_FIELD_BOUNDARY
  25618. Alignment in bits to be given to a structure bit-field that follows
  25619. an empty field such as 'int : 0;'.
  25620. If 'PCC_BITFIELD_TYPE_MATTERS' is true, it overrides this macro.
  25621. -- Macro: STRUCTURE_SIZE_BOUNDARY
  25622. Number of bits which any structure or union's size must be a
  25623. multiple of. Each structure or union's size is rounded up to a
  25624. multiple of this.
  25625. If you do not define this macro, the default is the same as
  25626. 'BITS_PER_UNIT'.
  25627. -- Macro: STRICT_ALIGNMENT
  25628. Define this macro to be the value 1 if instructions will fail to
  25629. work if given data not on the nominal alignment. If instructions
  25630. will merely go slower in that case, define this macro as 0.
  25631. -- Macro: PCC_BITFIELD_TYPE_MATTERS
  25632. Define this if you wish to imitate the way many other C compilers
  25633. handle alignment of bit-fields and the structures that contain
  25634. them.
  25635. The behavior is that the type written for a named bit-field ('int',
  25636. 'short', or other integer type) imposes an alignment for the entire
  25637. structure, as if the structure really did contain an ordinary field
  25638. of that type. In addition, the bit-field is placed within the
  25639. structure so that it would fit within such a field, not crossing a
  25640. boundary for it.
  25641. Thus, on most machines, a named bit-field whose type is written as
  25642. 'int' would not cross a four-byte boundary, and would force
  25643. four-byte alignment for the whole structure. (The alignment used
  25644. may not be four bytes; it is controlled by the other alignment
  25645. parameters.)
  25646. An unnamed bit-field will not affect the alignment of the
  25647. containing structure.
  25648. If the macro is defined, its definition should be a C expression; a
  25649. nonzero value for the expression enables this behavior.
  25650. Note that if this macro is not defined, or its value is zero, some
  25651. bit-fields may cross more than one alignment boundary. The
  25652. compiler can support such references if there are 'insv', 'extv',
  25653. and 'extzv' insns that can directly reference memory.
  25654. The other known way of making bit-fields work is to define
  25655. 'STRUCTURE_SIZE_BOUNDARY' as large as 'BIGGEST_ALIGNMENT'. Then
  25656. every structure can be accessed with fullwords.
  25657. Unless the machine has bit-field instructions or you define
  25658. 'STRUCTURE_SIZE_BOUNDARY' that way, you must define
  25659. 'PCC_BITFIELD_TYPE_MATTERS' to have a nonzero value.
  25660. If your aim is to make GCC use the same conventions for laying out
  25661. bit-fields as are used by another compiler, here is how to
  25662. investigate what the other compiler does. Compile and run this
  25663. program:
  25664. struct foo1
  25665. {
  25666. char x;
  25667. char :0;
  25668. char y;
  25669. };
  25670. struct foo2
  25671. {
  25672. char x;
  25673. int :0;
  25674. char y;
  25675. };
  25676. main ()
  25677. {
  25678. printf ("Size of foo1 is %d\n",
  25679. sizeof (struct foo1));
  25680. printf ("Size of foo2 is %d\n",
  25681. sizeof (struct foo2));
  25682. exit (0);
  25683. }
  25684. If this prints 2 and 5, then the compiler's behavior is what you
  25685. would get from 'PCC_BITFIELD_TYPE_MATTERS'.
  25686. -- Macro: BITFIELD_NBYTES_LIMITED
  25687. Like 'PCC_BITFIELD_TYPE_MATTERS' except that its effect is limited
  25688. to aligning a bit-field within the structure.
  25689. -- Target Hook: bool TARGET_ALIGN_ANON_BITFIELD (void)
  25690. When 'PCC_BITFIELD_TYPE_MATTERS' is true this hook will determine
  25691. whether unnamed bitfields affect the alignment of the containing
  25692. structure. The hook should return true if the structure should
  25693. inherit the alignment requirements of an unnamed bitfield's type.
  25694. -- Target Hook: bool TARGET_NARROW_VOLATILE_BITFIELD (void)
  25695. This target hook should return 'true' if accesses to volatile
  25696. bitfields should use the narrowest mode possible. It should return
  25697. 'false' if these accesses should use the bitfield container type.
  25698. The default is 'false'.
  25699. -- Target Hook: bool TARGET_MEMBER_TYPE_FORCES_BLK (const_tree FIELD,
  25700. machine_mode MODE)
  25701. Return true if a structure, union or array containing FIELD should
  25702. be accessed using 'BLKMODE'.
  25703. If FIELD is the only field in the structure, MODE is its mode,
  25704. otherwise MODE is VOIDmode. MODE is provided in the case where
  25705. structures of one field would require the structure's mode to
  25706. retain the field's mode.
  25707. Normally, this is not needed.
  25708. -- Macro: ROUND_TYPE_ALIGN (TYPE, COMPUTED, SPECIFIED)
  25709. Define this macro as an expression for the alignment of a type
  25710. (given by TYPE as a tree node) if the alignment computed in the
  25711. usual way is COMPUTED and the alignment explicitly specified was
  25712. SPECIFIED.
  25713. The default is to use SPECIFIED if it is larger; otherwise, use the
  25714. smaller of COMPUTED and 'BIGGEST_ALIGNMENT'
  25715. -- Macro: MAX_FIXED_MODE_SIZE
  25716. An integer expression for the size in bits of the largest integer
  25717. machine mode that should actually be used. All integer machine
  25718. modes of this size or smaller can be used for structures and unions
  25719. with the appropriate sizes. If this macro is undefined,
  25720. 'GET_MODE_BITSIZE (DImode)' is assumed.
  25721. -- Macro: STACK_SAVEAREA_MODE (SAVE_LEVEL)
  25722. If defined, an expression of type 'machine_mode' that specifies the
  25723. mode of the save area operand of a 'save_stack_LEVEL' named pattern
  25724. (*note Standard Names::). SAVE_LEVEL is one of 'SAVE_BLOCK',
  25725. 'SAVE_FUNCTION', or 'SAVE_NONLOCAL' and selects which of the three
  25726. named patterns is having its mode specified.
  25727. You need not define this macro if it always returns 'Pmode'. You
  25728. would most commonly define this macro if the 'save_stack_LEVEL'
  25729. patterns need to support both a 32- and a 64-bit mode.
  25730. -- Macro: STACK_SIZE_MODE
  25731. If defined, an expression of type 'machine_mode' that specifies the
  25732. mode of the size increment operand of an 'allocate_stack' named
  25733. pattern (*note Standard Names::).
  25734. You need not define this macro if it always returns 'word_mode'.
  25735. You would most commonly define this macro if the 'allocate_stack'
  25736. pattern needs to support both a 32- and a 64-bit mode.
  25737. -- Target Hook: scalar_int_mode TARGET_LIBGCC_CMP_RETURN_MODE (void)
  25738. This target hook should return the mode to be used for the return
  25739. value of compare instructions expanded to libgcc calls. If not
  25740. defined 'word_mode' is returned which is the right choice for a
  25741. majority of targets.
  25742. -- Target Hook: scalar_int_mode TARGET_LIBGCC_SHIFT_COUNT_MODE (void)
  25743. This target hook should return the mode to be used for the shift
  25744. count operand of shift instructions expanded to libgcc calls. If
  25745. not defined 'word_mode' is returned which is the right choice for a
  25746. majority of targets.
  25747. -- Target Hook: scalar_int_mode TARGET_UNWIND_WORD_MODE (void)
  25748. Return machine mode to be used for '_Unwind_Word' type. The
  25749. default is to use 'word_mode'.
  25750. -- Target Hook: bool TARGET_MS_BITFIELD_LAYOUT_P (const_tree
  25751. RECORD_TYPE)
  25752. This target hook returns 'true' if bit-fields in the given
  25753. RECORD_TYPE are to be laid out following the rules of Microsoft
  25754. Visual C/C++, namely: (i) a bit-field won't share the same storage
  25755. unit with the previous bit-field if their underlying types have
  25756. different sizes, and the bit-field will be aligned to the highest
  25757. alignment of the underlying types of itself and of the previous
  25758. bit-field; (ii) a zero-sized bit-field will affect the alignment of
  25759. the whole enclosing structure, even if it is unnamed; except that
  25760. (iii) a zero-sized bit-field will be disregarded unless it follows
  25761. another bit-field of nonzero size. If this hook returns 'true',
  25762. other macros that control bit-field layout are ignored.
  25763. When a bit-field is inserted into a packed record, the whole size
  25764. of the underlying type is used by one or more same-size adjacent
  25765. bit-fields (that is, if its long:3, 32 bits is used in the record,
  25766. and any additional adjacent long bit-fields are packed into the
  25767. same chunk of 32 bits. However, if the size changes, a new field
  25768. of that size is allocated). In an unpacked record, this is the
  25769. same as using alignment, but not equivalent when packing.
  25770. If both MS bit-fields and '__attribute__((packed))' are used, the
  25771. latter will take precedence. If '__attribute__((packed))' is used
  25772. on a single field when MS bit-fields are in use, it will take
  25773. precedence for that field, but the alignment of the rest of the
  25774. structure may affect its placement.
  25775. -- Target Hook: bool TARGET_DECIMAL_FLOAT_SUPPORTED_P (void)
  25776. Returns true if the target supports decimal floating point.
  25777. -- Target Hook: bool TARGET_FIXED_POINT_SUPPORTED_P (void)
  25778. Returns true if the target supports fixed-point arithmetic.
  25779. -- Target Hook: void TARGET_EXPAND_TO_RTL_HOOK (void)
  25780. This hook is called just before expansion into rtl, allowing the
  25781. target to perform additional initializations or analysis before the
  25782. expansion. For example, the rs6000 port uses it to allocate a
  25783. scratch stack slot for use in copying SDmode values between memory
  25784. and floating point registers whenever the function being expanded
  25785. has any SDmode usage.
  25786. -- Target Hook: void TARGET_INSTANTIATE_DECLS (void)
  25787. This hook allows the backend to perform additional instantiations
  25788. on rtl that are not actually in any insns yet, but will be later.
  25789. -- Target Hook: const char * TARGET_MANGLE_TYPE (const_tree TYPE)
  25790. If your target defines any fundamental types, or any types your
  25791. target uses should be mangled differently from the default, define
  25792. this hook to return the appropriate encoding for these types as
  25793. part of a C++ mangled name. The TYPE argument is the tree
  25794. structure representing the type to be mangled. The hook may be
  25795. applied to trees which are not target-specific fundamental types;
  25796. it should return 'NULL' for all such types, as well as arguments it
  25797. does not recognize. If the return value is not 'NULL', it must
  25798. point to a statically-allocated string constant.
  25799. Target-specific fundamental types might be new fundamental types or
  25800. qualified versions of ordinary fundamental types. Encode new
  25801. fundamental types as 'u N NAME', where NAME is the name used for
  25802. the type in source code, and N is the length of NAME in decimal.
  25803. Encode qualified versions of ordinary types as 'U N NAME CODE',
  25804. where NAME is the name used for the type qualifier in source code,
  25805. N is the length of NAME as above, and CODE is the code used to
  25806. represent the unqualified version of this type. (See
  25807. 'write_builtin_type' in 'cp/mangle.c' for the list of codes.) In
  25808. both cases the spaces are for clarity; do not include any spaces in
  25809. your string.
  25810. This hook is applied to types prior to typedef resolution. If the
  25811. mangled name for a particular type depends only on that type's main
  25812. variant, you can perform typedef resolution yourself using
  25813. 'TYPE_MAIN_VARIANT' before mangling.
  25814. The default version of this hook always returns 'NULL', which is
  25815. appropriate for a target that does not define any new fundamental
  25816. types.
  25817. 
  25818. File: gccint.info, Node: Type Layout, Next: Registers, Prev: Storage Layout, Up: Target Macros
  25819. 18.6 Layout of Source Language Data Types
  25820. =========================================
  25821. These macros define the sizes and other characteristics of the standard
  25822. basic data types used in programs being compiled. Unlike the macros in
  25823. the previous section, these apply to specific features of C and related
  25824. languages, rather than to fundamental aspects of storage layout.
  25825. -- Macro: INT_TYPE_SIZE
  25826. A C expression for the size in bits of the type 'int' on the target
  25827. machine. If you don't define this, the default is one word.
  25828. -- Macro: SHORT_TYPE_SIZE
  25829. A C expression for the size in bits of the type 'short' on the
  25830. target machine. If you don't define this, the default is half a
  25831. word. (If this would be less than one storage unit, it is rounded
  25832. up to one unit.)
  25833. -- Macro: LONG_TYPE_SIZE
  25834. A C expression for the size in bits of the type 'long' on the
  25835. target machine. If you don't define this, the default is one word.
  25836. -- Macro: ADA_LONG_TYPE_SIZE
  25837. On some machines, the size used for the Ada equivalent of the type
  25838. 'long' by a native Ada compiler differs from that used by C. In
  25839. that situation, define this macro to be a C expression to be used
  25840. for the size of that type. If you don't define this, the default
  25841. is the value of 'LONG_TYPE_SIZE'.
  25842. -- Macro: LONG_LONG_TYPE_SIZE
  25843. A C expression for the size in bits of the type 'long long' on the
  25844. target machine. If you don't define this, the default is two
  25845. words. If you want to support GNU Ada on your machine, the value
  25846. of this macro must be at least 64.
  25847. -- Macro: CHAR_TYPE_SIZE
  25848. A C expression for the size in bits of the type 'char' on the
  25849. target machine. If you don't define this, the default is
  25850. 'BITS_PER_UNIT'.
  25851. -- Macro: BOOL_TYPE_SIZE
  25852. A C expression for the size in bits of the C++ type 'bool' and C99
  25853. type '_Bool' on the target machine. If you don't define this, and
  25854. you probably shouldn't, the default is 'CHAR_TYPE_SIZE'.
  25855. -- Macro: FLOAT_TYPE_SIZE
  25856. A C expression for the size in bits of the type 'float' on the
  25857. target machine. If you don't define this, the default is one word.
  25858. -- Macro: DOUBLE_TYPE_SIZE
  25859. A C expression for the size in bits of the type 'double' on the
  25860. target machine. If you don't define this, the default is two
  25861. words.
  25862. -- Macro: LONG_DOUBLE_TYPE_SIZE
  25863. A C expression for the size in bits of the type 'long double' on
  25864. the target machine. If you don't define this, the default is two
  25865. words.
  25866. -- Macro: SHORT_FRACT_TYPE_SIZE
  25867. A C expression for the size in bits of the type 'short _Fract' on
  25868. the target machine. If you don't define this, the default is
  25869. 'BITS_PER_UNIT'.
  25870. -- Macro: FRACT_TYPE_SIZE
  25871. A C expression for the size in bits of the type '_Fract' on the
  25872. target machine. If you don't define this, the default is
  25873. 'BITS_PER_UNIT * 2'.
  25874. -- Macro: LONG_FRACT_TYPE_SIZE
  25875. A C expression for the size in bits of the type 'long _Fract' on
  25876. the target machine. If you don't define this, the default is
  25877. 'BITS_PER_UNIT * 4'.
  25878. -- Macro: LONG_LONG_FRACT_TYPE_SIZE
  25879. A C expression for the size in bits of the type 'long long _Fract'
  25880. on the target machine. If you don't define this, the default is
  25881. 'BITS_PER_UNIT * 8'.
  25882. -- Macro: SHORT_ACCUM_TYPE_SIZE
  25883. A C expression for the size in bits of the type 'short _Accum' on
  25884. the target machine. If you don't define this, the default is
  25885. 'BITS_PER_UNIT * 2'.
  25886. -- Macro: ACCUM_TYPE_SIZE
  25887. A C expression for the size in bits of the type '_Accum' on the
  25888. target machine. If you don't define this, the default is
  25889. 'BITS_PER_UNIT * 4'.
  25890. -- Macro: LONG_ACCUM_TYPE_SIZE
  25891. A C expression for the size in bits of the type 'long _Accum' on
  25892. the target machine. If you don't define this, the default is
  25893. 'BITS_PER_UNIT * 8'.
  25894. -- Macro: LONG_LONG_ACCUM_TYPE_SIZE
  25895. A C expression for the size in bits of the type 'long long _Accum'
  25896. on the target machine. If you don't define this, the default is
  25897. 'BITS_PER_UNIT * 16'.
  25898. -- Macro: LIBGCC2_GNU_PREFIX
  25899. This macro corresponds to the 'TARGET_LIBFUNC_GNU_PREFIX' target
  25900. hook and should be defined if that hook is overriden to be true.
  25901. It causes function names in libgcc to be changed to use a '__gnu_'
  25902. prefix for their name rather than the default '__'. A port which
  25903. uses this macro should also arrange to use 't-gnu-prefix' in the
  25904. libgcc 'config.host'.
  25905. -- Macro: WIDEST_HARDWARE_FP_SIZE
  25906. A C expression for the size in bits of the widest floating-point
  25907. format supported by the hardware. If you define this macro, you
  25908. must specify a value less than or equal to the value of
  25909. 'LONG_DOUBLE_TYPE_SIZE'. If you do not define this macro, the
  25910. value of 'LONG_DOUBLE_TYPE_SIZE' is the default.
  25911. -- Macro: DEFAULT_SIGNED_CHAR
  25912. An expression whose value is 1 or 0, according to whether the type
  25913. 'char' should be signed or unsigned by default. The user can
  25914. always override this default with the options '-fsigned-char' and
  25915. '-funsigned-char'.
  25916. -- Target Hook: bool TARGET_DEFAULT_SHORT_ENUMS (void)
  25917. This target hook should return true if the compiler should give an
  25918. 'enum' type only as many bytes as it takes to represent the range
  25919. of possible values of that type. It should return false if all
  25920. 'enum' types should be allocated like 'int'.
  25921. The default is to return false.
  25922. -- Macro: SIZE_TYPE
  25923. A C expression for a string describing the name of the data type to
  25924. use for size values. The typedef name 'size_t' is defined using
  25925. the contents of the string.
  25926. The string can contain more than one keyword. If so, separate them
  25927. with spaces, and write first any length keyword, then 'unsigned' if
  25928. appropriate, and finally 'int'. The string must exactly match one
  25929. of the data type names defined in the function
  25930. 'c_common_nodes_and_builtins' in the file 'c-family/c-common.c'.
  25931. You may not omit 'int' or change the order--that would cause the
  25932. compiler to crash on startup.
  25933. If you don't define this macro, the default is '"long unsigned
  25934. int"'.
  25935. -- Macro: SIZETYPE
  25936. GCC defines internal types ('sizetype', 'ssizetype', 'bitsizetype'
  25937. and 'sbitsizetype') for expressions dealing with size. This macro
  25938. is a C expression for a string describing the name of the data type
  25939. from which the precision of 'sizetype' is extracted.
  25940. The string has the same restrictions as 'SIZE_TYPE' string.
  25941. If you don't define this macro, the default is 'SIZE_TYPE'.
  25942. -- Macro: PTRDIFF_TYPE
  25943. A C expression for a string describing the name of the data type to
  25944. use for the result of subtracting two pointers. The typedef name
  25945. 'ptrdiff_t' is defined using the contents of the string. See
  25946. 'SIZE_TYPE' above for more information.
  25947. If you don't define this macro, the default is '"long int"'.
  25948. -- Macro: WCHAR_TYPE
  25949. A C expression for a string describing the name of the data type to
  25950. use for wide characters. The typedef name 'wchar_t' is defined
  25951. using the contents of the string. See 'SIZE_TYPE' above for more
  25952. information.
  25953. If you don't define this macro, the default is '"int"'.
  25954. -- Macro: WCHAR_TYPE_SIZE
  25955. A C expression for the size in bits of the data type for wide
  25956. characters. This is used in 'cpp', which cannot make use of
  25957. 'WCHAR_TYPE'.
  25958. -- Macro: WINT_TYPE
  25959. A C expression for a string describing the name of the data type to
  25960. use for wide characters passed to 'printf' and returned from
  25961. 'getwc'. The typedef name 'wint_t' is defined using the contents
  25962. of the string. See 'SIZE_TYPE' above for more information.
  25963. If you don't define this macro, the default is '"unsigned int"'.
  25964. -- Macro: INTMAX_TYPE
  25965. A C expression for a string describing the name of the data type
  25966. that can represent any value of any standard or extended signed
  25967. integer type. The typedef name 'intmax_t' is defined using the
  25968. contents of the string. See 'SIZE_TYPE' above for more
  25969. information.
  25970. If you don't define this macro, the default is the first of
  25971. '"int"', '"long int"', or '"long long int"' that has as much
  25972. precision as 'long long int'.
  25973. -- Macro: UINTMAX_TYPE
  25974. A C expression for a string describing the name of the data type
  25975. that can represent any value of any standard or extended unsigned
  25976. integer type. The typedef name 'uintmax_t' is defined using the
  25977. contents of the string. See 'SIZE_TYPE' above for more
  25978. information.
  25979. If you don't define this macro, the default is the first of
  25980. '"unsigned int"', '"long unsigned int"', or '"long long unsigned
  25981. int"' that has as much precision as 'long long unsigned int'.
  25982. -- Macro: SIG_ATOMIC_TYPE
  25983. -- Macro: INT8_TYPE
  25984. -- Macro: INT16_TYPE
  25985. -- Macro: INT32_TYPE
  25986. -- Macro: INT64_TYPE
  25987. -- Macro: UINT8_TYPE
  25988. -- Macro: UINT16_TYPE
  25989. -- Macro: UINT32_TYPE
  25990. -- Macro: UINT64_TYPE
  25991. -- Macro: INT_LEAST8_TYPE
  25992. -- Macro: INT_LEAST16_TYPE
  25993. -- Macro: INT_LEAST32_TYPE
  25994. -- Macro: INT_LEAST64_TYPE
  25995. -- Macro: UINT_LEAST8_TYPE
  25996. -- Macro: UINT_LEAST16_TYPE
  25997. -- Macro: UINT_LEAST32_TYPE
  25998. -- Macro: UINT_LEAST64_TYPE
  25999. -- Macro: INT_FAST8_TYPE
  26000. -- Macro: INT_FAST16_TYPE
  26001. -- Macro: INT_FAST32_TYPE
  26002. -- Macro: INT_FAST64_TYPE
  26003. -- Macro: UINT_FAST8_TYPE
  26004. -- Macro: UINT_FAST16_TYPE
  26005. -- Macro: UINT_FAST32_TYPE
  26006. -- Macro: UINT_FAST64_TYPE
  26007. -- Macro: INTPTR_TYPE
  26008. -- Macro: UINTPTR_TYPE
  26009. C expressions for the standard types 'sig_atomic_t', 'int8_t',
  26010. 'int16_t', 'int32_t', 'int64_t', 'uint8_t', 'uint16_t', 'uint32_t',
  26011. 'uint64_t', 'int_least8_t', 'int_least16_t', 'int_least32_t',
  26012. 'int_least64_t', 'uint_least8_t', 'uint_least16_t',
  26013. 'uint_least32_t', 'uint_least64_t', 'int_fast8_t', 'int_fast16_t',
  26014. 'int_fast32_t', 'int_fast64_t', 'uint_fast8_t', 'uint_fast16_t',
  26015. 'uint_fast32_t', 'uint_fast64_t', 'intptr_t', and 'uintptr_t'. See
  26016. 'SIZE_TYPE' above for more information.
  26017. If any of these macros evaluates to a null pointer, the
  26018. corresponding type is not supported; if GCC is configured to
  26019. provide '<stdint.h>' in such a case, the header provided may not
  26020. conform to C99, depending on the type in question. The defaults
  26021. for all of these macros are null pointers.
  26022. -- Macro: TARGET_PTRMEMFUNC_VBIT_LOCATION
  26023. The C++ compiler represents a pointer-to-member-function with a
  26024. struct that looks like:
  26025. struct {
  26026. union {
  26027. void (*fn)();
  26028. ptrdiff_t vtable_index;
  26029. };
  26030. ptrdiff_t delta;
  26031. };
  26032. The C++ compiler must use one bit to indicate whether the function
  26033. that will be called through a pointer-to-member-function is
  26034. virtual. Normally, we assume that the low-order bit of a function
  26035. pointer must always be zero. Then, by ensuring that the
  26036. vtable_index is odd, we can distinguish which variant of the union
  26037. is in use. But, on some platforms function pointers can be odd,
  26038. and so this doesn't work. In that case, we use the low-order bit
  26039. of the 'delta' field, and shift the remainder of the 'delta' field
  26040. to the left.
  26041. GCC will automatically make the right selection about where to
  26042. store this bit using the 'FUNCTION_BOUNDARY' setting for your
  26043. platform. However, some platforms such as ARM/Thumb have
  26044. 'FUNCTION_BOUNDARY' set such that functions always start at even
  26045. addresses, but the lowest bit of pointers to functions indicate
  26046. whether the function at that address is in ARM or Thumb mode. If
  26047. this is the case of your architecture, you should define this macro
  26048. to 'ptrmemfunc_vbit_in_delta'.
  26049. In general, you should not have to define this macro. On
  26050. architectures in which function addresses are always even,
  26051. according to 'FUNCTION_BOUNDARY', GCC will automatically define
  26052. this macro to 'ptrmemfunc_vbit_in_pfn'.
  26053. -- Macro: TARGET_VTABLE_USES_DESCRIPTORS
  26054. Normally, the C++ compiler uses function pointers in vtables. This
  26055. macro allows the target to change to use "function descriptors"
  26056. instead. Function descriptors are found on targets for whom a
  26057. function pointer is actually a small data structure. Normally the
  26058. data structure consists of the actual code address plus a data
  26059. pointer to which the function's data is relative.
  26060. If vtables are used, the value of this macro should be the number
  26061. of words that the function descriptor occupies.
  26062. -- Macro: TARGET_VTABLE_ENTRY_ALIGN
  26063. By default, the vtable entries are void pointers, the so the
  26064. alignment is the same as pointer alignment. The value of this
  26065. macro specifies the alignment of the vtable entry in bits. It
  26066. should be defined only when special alignment is necessary. */
  26067. -- Macro: TARGET_VTABLE_DATA_ENTRY_DISTANCE
  26068. There are a few non-descriptor entries in the vtable at offsets
  26069. below zero. If these entries must be padded (say, to preserve the
  26070. alignment specified by 'TARGET_VTABLE_ENTRY_ALIGN'), set this to
  26071. the number of words in each data entry.
  26072. 
  26073. File: gccint.info, Node: Registers, Next: Register Classes, Prev: Type Layout, Up: Target Macros
  26074. 18.7 Register Usage
  26075. ===================
  26076. This section explains how to describe what registers the target machine
  26077. has, and how (in general) they can be used.
  26078. The description of which registers a specific instruction can use is
  26079. done with register classes; see *note Register Classes::. For
  26080. information on using registers to access a stack frame, see *note Frame
  26081. Registers::. For passing values in registers, see *note Register
  26082. Arguments::. For returning values in registers, see *note Scalar
  26083. Return::.
  26084. * Menu:
  26085. * Register Basics:: Number and kinds of registers.
  26086. * Allocation Order:: Order in which registers are allocated.
  26087. * Values in Registers:: What kinds of values each reg can hold.
  26088. * Leaf Functions:: Renumbering registers for leaf functions.
  26089. * Stack Registers:: Handling a register stack such as 80387.
  26090. 
  26091. File: gccint.info, Node: Register Basics, Next: Allocation Order, Up: Registers
  26092. 18.7.1 Basic Characteristics of Registers
  26093. -----------------------------------------
  26094. Registers have various characteristics.
  26095. -- Macro: FIRST_PSEUDO_REGISTER
  26096. Number of hardware registers known to the compiler. They receive
  26097. numbers 0 through 'FIRST_PSEUDO_REGISTER-1'; thus, the first pseudo
  26098. register's number really is assigned the number
  26099. 'FIRST_PSEUDO_REGISTER'.
  26100. -- Macro: FIXED_REGISTERS
  26101. An initializer that says which registers are used for fixed
  26102. purposes all throughout the compiled code and are therefore not
  26103. available for general allocation. These would include the stack
  26104. pointer, the frame pointer (except on machines where that can be
  26105. used as a general register when no frame pointer is needed), the
  26106. program counter on machines where that is considered one of the
  26107. addressable registers, and any other numbered register with a
  26108. standard use.
  26109. This information is expressed as a sequence of numbers, separated
  26110. by commas and surrounded by braces. The Nth number is 1 if
  26111. register N is fixed, 0 otherwise.
  26112. The table initialized from this macro, and the table initialized by
  26113. the following one, may be overridden at run time either
  26114. automatically, by the actions of the macro
  26115. 'CONDITIONAL_REGISTER_USAGE', or by the user with the command
  26116. options '-ffixed-REG', '-fcall-used-REG' and '-fcall-saved-REG'.
  26117. -- Macro: CALL_USED_REGISTERS
  26118. Like 'FIXED_REGISTERS' but has 1 for each register that is
  26119. clobbered (in general) by function calls as well as for fixed
  26120. registers. This macro therefore identifies the registers that are
  26121. not available for general allocation of values that must live
  26122. across function calls.
  26123. If a register has 0 in 'CALL_USED_REGISTERS', the compiler
  26124. automatically saves it on function entry and restores it on
  26125. function exit, if the register is used within the function.
  26126. Exactly one of 'CALL_USED_REGISTERS' and
  26127. 'CALL_REALLY_USED_REGISTERS' must be defined. Modern ports should
  26128. define 'CALL_REALLY_USED_REGISTERS'.
  26129. -- Macro: CALL_REALLY_USED_REGISTERS
  26130. Like 'CALL_USED_REGISTERS' except this macro doesn't require that
  26131. the entire set of 'FIXED_REGISTERS' be included.
  26132. ('CALL_USED_REGISTERS' must be a superset of 'FIXED_REGISTERS').
  26133. Exactly one of 'CALL_USED_REGISTERS' and
  26134. 'CALL_REALLY_USED_REGISTERS' must be defined. Modern ports should
  26135. define 'CALL_REALLY_USED_REGISTERS'.
  26136. -- Target Hook: const predefined_function_abi & TARGET_FNTYPE_ABI
  26137. (const_tree TYPE)
  26138. Return the ABI used by a function with type TYPE; see the
  26139. definition of 'predefined_function_abi' for details of the ABI
  26140. descriptor. Targets only need to define this hook if they support
  26141. interoperability between several ABIs in the same translation unit.
  26142. -- Target Hook: const predefined_function_abi & TARGET_INSN_CALLEE_ABI
  26143. (const rtx_insn *INSN)
  26144. This hook returns a description of the ABI used by the target of
  26145. call instruction INSN; see the definition of
  26146. 'predefined_function_abi' for details of the ABI descriptor. Only
  26147. the global function 'insn_callee_abi' should call this hook
  26148. directly.
  26149. Targets only need to define this hook if they support
  26150. interoperability between several ABIs in the same translation unit.
  26151. -- Target Hook: bool TARGET_HARD_REGNO_CALL_PART_CLOBBERED (unsigned
  26152. int ABI_ID, unsigned int REGNO, machine_mode MODE)
  26153. ABIs usually specify that calls must preserve the full contents of
  26154. a particular register, or that calls can alter any part of a
  26155. particular register. This information is captured by the target
  26156. macro 'CALL_REALLY_USED_REGISTERS'. However, some ABIs specify
  26157. that calls must preserve certain bits of a particular register but
  26158. can alter others. This hook should return true if this applies to
  26159. at least one of the registers in '(reg:MODE REGNO)', and if as a
  26160. result the call would alter part of the MODE value. For example,
  26161. if a call preserves the low 32 bits of a 64-bit hard register REGNO
  26162. but can clobber the upper 32 bits, this hook should return true for
  26163. a 64-bit mode but false for a 32-bit mode.
  26164. The value of ABI_ID comes from the 'predefined_function_abi'
  26165. structure that describes the ABI of the call; see the definition of
  26166. the structure for more details. If (as is usual) the target uses
  26167. the same ABI for all functions in a translation unit, ABI_ID is
  26168. always 0.
  26169. The default implementation returns false, which is correct for
  26170. targets that don't have partly call-clobbered registers.
  26171. -- Target Hook: const char * TARGET_GET_MULTILIB_ABI_NAME (void)
  26172. This hook returns name of multilib ABI name.
  26173. -- Target Hook: void TARGET_CONDITIONAL_REGISTER_USAGE (void)
  26174. This hook may conditionally modify five variables 'fixed_regs',
  26175. 'call_used_regs', 'global_regs', 'reg_names', and
  26176. 'reg_class_contents', to take into account any dependence of these
  26177. register sets on target flags. The first three of these are of
  26178. type 'char []' (interpreted as boolean vectors). 'global_regs' is
  26179. a 'const char *[]', and 'reg_class_contents' is a 'HARD_REG_SET'.
  26180. Before the macro is called, 'fixed_regs', 'call_used_regs',
  26181. 'reg_class_contents', and 'reg_names' have been initialized from
  26182. 'FIXED_REGISTERS', 'CALL_USED_REGISTERS', 'REG_CLASS_CONTENTS', and
  26183. 'REGISTER_NAMES', respectively. 'global_regs' has been cleared,
  26184. and any '-ffixed-REG', '-fcall-used-REG' and '-fcall-saved-REG'
  26185. command options have been applied.
  26186. If the usage of an entire class of registers depends on the target
  26187. flags, you may indicate this to GCC by using this macro to modify
  26188. 'fixed_regs' and 'call_used_regs' to 1 for each of the registers in
  26189. the classes which should not be used by GCC. Also make
  26190. 'define_register_constraint's return 'NO_REGS' for constraints that
  26191. shouldn't be used.
  26192. (However, if this class is not included in 'GENERAL_REGS' and all
  26193. of the insn patterns whose constraints permit this class are
  26194. controlled by target switches, then GCC will automatically avoid
  26195. using these registers when the target switches are opposed to
  26196. them.)
  26197. -- Macro: INCOMING_REGNO (OUT)
  26198. Define this macro if the target machine has register windows. This
  26199. C expression returns the register number as seen by the called
  26200. function corresponding to the register number OUT as seen by the
  26201. calling function. Return OUT if register number OUT is not an
  26202. outbound register.
  26203. -- Macro: OUTGOING_REGNO (IN)
  26204. Define this macro if the target machine has register windows. This
  26205. C expression returns the register number as seen by the calling
  26206. function corresponding to the register number IN as seen by the
  26207. called function. Return IN if register number IN is not an inbound
  26208. register.
  26209. -- Macro: LOCAL_REGNO (REGNO)
  26210. Define this macro if the target machine has register windows. This
  26211. C expression returns true if the register is call-saved but is in
  26212. the register window. Unlike most call-saved registers, such
  26213. registers need not be explicitly restored on function exit or
  26214. during non-local gotos.
  26215. -- Macro: PC_REGNUM
  26216. If the program counter has a register number, define this as that
  26217. register number. Otherwise, do not define it.
  26218. 
  26219. File: gccint.info, Node: Allocation Order, Next: Values in Registers, Prev: Register Basics, Up: Registers
  26220. 18.7.2 Order of Allocation of Registers
  26221. ---------------------------------------
  26222. Registers are allocated in order.
  26223. -- Macro: REG_ALLOC_ORDER
  26224. If defined, an initializer for a vector of integers, containing the
  26225. numbers of hard registers in the order in which GCC should prefer
  26226. to use them (from most preferred to least).
  26227. If this macro is not defined, registers are used lowest numbered
  26228. first (all else being equal).
  26229. One use of this macro is on machines where the highest numbered
  26230. registers must always be saved and the save-multiple-registers
  26231. instruction supports only sequences of consecutive registers. On
  26232. such machines, define 'REG_ALLOC_ORDER' to be an initializer that
  26233. lists the highest numbered allocable register first.
  26234. -- Macro: ADJUST_REG_ALLOC_ORDER
  26235. A C statement (sans semicolon) to choose the order in which to
  26236. allocate hard registers for pseudo-registers local to a basic
  26237. block.
  26238. Store the desired register order in the array 'reg_alloc_order'.
  26239. Element 0 should be the register to allocate first; element 1, the
  26240. next register; and so on.
  26241. The macro body should not assume anything about the contents of
  26242. 'reg_alloc_order' before execution of the macro.
  26243. On most machines, it is not necessary to define this macro.
  26244. -- Macro: HONOR_REG_ALLOC_ORDER
  26245. Normally, IRA tries to estimate the costs for saving a register in
  26246. the prologue and restoring it in the epilogue. This discourages it
  26247. from using call-saved registers. If a machine wants to ensure that
  26248. IRA allocates registers in the order given by REG_ALLOC_ORDER even
  26249. if some call-saved registers appear earlier than call-used ones,
  26250. then define this macro as a C expression to nonzero. Default is 0.
  26251. -- Macro: IRA_HARD_REGNO_ADD_COST_MULTIPLIER (REGNO)
  26252. In some case register allocation order is not enough for the
  26253. Integrated Register Allocator (IRA) to generate a good code. If
  26254. this macro is defined, it should return a floating point value
  26255. based on REGNO. The cost of using REGNO for a pseudo will be
  26256. increased by approximately the pseudo's usage frequency times the
  26257. value returned by this macro. Not defining this macro is
  26258. equivalent to having it always return '0.0'.
  26259. On most machines, it is not necessary to define this macro.
  26260. 
  26261. File: gccint.info, Node: Values in Registers, Next: Leaf Functions, Prev: Allocation Order, Up: Registers
  26262. 18.7.3 How Values Fit in Registers
  26263. ----------------------------------
  26264. This section discusses the macros that describe which kinds of values
  26265. (specifically, which machine modes) each register can hold, and how many
  26266. consecutive registers are needed for a given mode.
  26267. -- Target Hook: unsigned int TARGET_HARD_REGNO_NREGS (unsigned int
  26268. REGNO, machine_mode MODE)
  26269. This hook returns the number of consecutive hard registers,
  26270. starting at register number REGNO, required to hold a value of mode
  26271. MODE. This hook must never return zero, even if a register cannot
  26272. hold the requested mode - indicate that with
  26273. 'TARGET_HARD_REGNO_MODE_OK' and/or 'TARGET_CAN_CHANGE_MODE_CLASS'
  26274. instead.
  26275. The default definition returns the number of words in MODE.
  26276. -- Macro: HARD_REGNO_NREGS_HAS_PADDING (REGNO, MODE)
  26277. A C expression that is nonzero if a value of mode MODE, stored in
  26278. memory, ends with padding that causes it to take up more space than
  26279. in registers starting at register number REGNO (as determined by
  26280. multiplying GCC's notion of the size of the register when
  26281. containing this mode by the number of registers returned by
  26282. 'TARGET_HARD_REGNO_NREGS'). By default this is zero.
  26283. For example, if a floating-point value is stored in three 32-bit
  26284. registers but takes up 128 bits in memory, then this would be
  26285. nonzero.
  26286. This macros only needs to be defined if there are cases where
  26287. 'subreg_get_info' would otherwise wrongly determine that a 'subreg'
  26288. can be represented by an offset to the register number, when in
  26289. fact such a 'subreg' would contain some of the padding not stored
  26290. in registers and so not be representable.
  26291. -- Macro: HARD_REGNO_NREGS_WITH_PADDING (REGNO, MODE)
  26292. For values of REGNO and MODE for which
  26293. 'HARD_REGNO_NREGS_HAS_PADDING' returns nonzero, a C expression
  26294. returning the greater number of registers required to hold the
  26295. value including any padding. In the example above, the value would
  26296. be four.
  26297. -- Macro: REGMODE_NATURAL_SIZE (MODE)
  26298. Define this macro if the natural size of registers that hold values
  26299. of mode MODE is not the word size. It is a C expression that
  26300. should give the natural size in bytes for the specified mode. It
  26301. is used by the register allocator to try to optimize its results.
  26302. This happens for example on SPARC 64-bit where the natural size of
  26303. floating-point registers is still 32-bit.
  26304. -- Target Hook: bool TARGET_HARD_REGNO_MODE_OK (unsigned int REGNO,
  26305. machine_mode MODE)
  26306. This hook returns true if it is permissible to store a value of
  26307. mode MODE in hard register number REGNO (or in several registers
  26308. starting with that one). The default definition returns true
  26309. unconditionally.
  26310. You need not include code to check for the numbers of fixed
  26311. registers, because the allocation mechanism considers them to be
  26312. always occupied.
  26313. On some machines, double-precision values must be kept in even/odd
  26314. register pairs. You can implement that by defining this hook to
  26315. reject odd register numbers for such modes.
  26316. The minimum requirement for a mode to be OK in a register is that
  26317. the 'movMODE' instruction pattern support moves between the
  26318. register and other hard register in the same class and that moving
  26319. a value into the register and back out not alter it.
  26320. Since the same instruction used to move 'word_mode' will work for
  26321. all narrower integer modes, it is not necessary on any machine for
  26322. this hook to distinguish between these modes, provided you define
  26323. patterns 'movhi', etc., to take advantage of this. This is useful
  26324. because of the interaction between 'TARGET_HARD_REGNO_MODE_OK' and
  26325. 'TARGET_MODES_TIEABLE_P'; it is very desirable for all integer
  26326. modes to be tieable.
  26327. Many machines have special registers for floating point arithmetic.
  26328. Often people assume that floating point machine modes are allowed
  26329. only in floating point registers. This is not true. Any registers
  26330. that can hold integers can safely _hold_ a floating point machine
  26331. mode, whether or not floating arithmetic can be done on it in those
  26332. registers. Integer move instructions can be used to move the
  26333. values.
  26334. On some machines, though, the converse is true: fixed-point machine
  26335. modes may not go in floating registers. This is true if the
  26336. floating registers normalize any value stored in them, because
  26337. storing a non-floating value there would garble it. In this case,
  26338. 'TARGET_HARD_REGNO_MODE_OK' should reject fixed-point machine modes
  26339. in floating registers. But if the floating registers do not
  26340. automatically normalize, if you can store any bit pattern in one
  26341. and retrieve it unchanged without a trap, then any machine mode may
  26342. go in a floating register, so you can define this hook to say so.
  26343. The primary significance of special floating registers is rather
  26344. that they are the registers acceptable in floating point arithmetic
  26345. instructions. However, this is of no concern to
  26346. 'TARGET_HARD_REGNO_MODE_OK'. You handle it by writing the proper
  26347. constraints for those instructions.
  26348. On some machines, the floating registers are especially slow to
  26349. access, so that it is better to store a value in a stack frame than
  26350. in such a register if floating point arithmetic is not being done.
  26351. As long as the floating registers are not in class 'GENERAL_REGS',
  26352. they will not be used unless some pattern's constraint asks for
  26353. one.
  26354. -- Macro: HARD_REGNO_RENAME_OK (FROM, TO)
  26355. A C expression that is nonzero if it is OK to rename a hard
  26356. register FROM to another hard register TO.
  26357. One common use of this macro is to prevent renaming of a register
  26358. to another register that is not saved by a prologue in an interrupt
  26359. handler.
  26360. The default is always nonzero.
  26361. -- Target Hook: bool TARGET_MODES_TIEABLE_P (machine_mode MODE1,
  26362. machine_mode MODE2)
  26363. This hook returns true if a value of mode MODE1 is accessible in
  26364. mode MODE2 without copying.
  26365. If 'TARGET_HARD_REGNO_MODE_OK (R, MODE1)' and
  26366. 'TARGET_HARD_REGNO_MODE_OK (R, MODE2)' are always the same for any
  26367. R, then 'TARGET_MODES_TIEABLE_P (MODE1, MODE2)' should be true. If
  26368. they differ for any R, you should define this hook to return false
  26369. unless some other mechanism ensures the accessibility of the value
  26370. in a narrower mode.
  26371. You should define this hook to return true in as many cases as
  26372. possible since doing so will allow GCC to perform better register
  26373. allocation. The default definition returns true unconditionally.
  26374. -- Target Hook: bool TARGET_HARD_REGNO_SCRATCH_OK (unsigned int REGNO)
  26375. This target hook should return 'true' if it is OK to use a hard
  26376. register REGNO as scratch reg in peephole2.
  26377. One common use of this macro is to prevent using of a register that
  26378. is not saved by a prologue in an interrupt handler.
  26379. The default version of this hook always returns 'true'.
  26380. -- Macro: AVOID_CCMODE_COPIES
  26381. Define this macro if the compiler should avoid copies to/from
  26382. 'CCmode' registers. You should only define this macro if support
  26383. for copying to/from 'CCmode' is incomplete.
  26384. 
  26385. File: gccint.info, Node: Leaf Functions, Next: Stack Registers, Prev: Values in Registers, Up: Registers
  26386. 18.7.4 Handling Leaf Functions
  26387. ------------------------------
  26388. On some machines, a leaf function (i.e., one which makes no calls) can
  26389. run more efficiently if it does not make its own register window. Often
  26390. this means it is required to receive its arguments in the registers
  26391. where they are passed by the caller, instead of the registers where they
  26392. would normally arrive.
  26393. The special treatment for leaf functions generally applies only when
  26394. other conditions are met; for example, often they may use only those
  26395. registers for its own variables and temporaries. We use the term "leaf
  26396. function" to mean a function that is suitable for this special handling,
  26397. so that functions with no calls are not necessarily "leaf functions".
  26398. GCC assigns register numbers before it knows whether the function is
  26399. suitable for leaf function treatment. So it needs to renumber the
  26400. registers in order to output a leaf function. The following macros
  26401. accomplish this.
  26402. -- Macro: LEAF_REGISTERS
  26403. Name of a char vector, indexed by hard register number, which
  26404. contains 1 for a register that is allowable in a candidate for leaf
  26405. function treatment.
  26406. If leaf function treatment involves renumbering the registers, then
  26407. the registers marked here should be the ones before
  26408. renumbering--those that GCC would ordinarily allocate. The
  26409. registers which will actually be used in the assembler code, after
  26410. renumbering, should not be marked with 1 in this vector.
  26411. Define this macro only if the target machine offers a way to
  26412. optimize the treatment of leaf functions.
  26413. -- Macro: LEAF_REG_REMAP (REGNO)
  26414. A C expression whose value is the register number to which REGNO
  26415. should be renumbered, when a function is treated as a leaf
  26416. function.
  26417. If REGNO is a register number which should not appear in a leaf
  26418. function before renumbering, then the expression should yield -1,
  26419. which will cause the compiler to abort.
  26420. Define this macro only if the target machine offers a way to
  26421. optimize the treatment of leaf functions, and registers need to be
  26422. renumbered to do this.
  26423. 'TARGET_ASM_FUNCTION_PROLOGUE' and 'TARGET_ASM_FUNCTION_EPILOGUE' must
  26424. usually treat leaf functions specially. They can test the C variable
  26425. 'current_function_is_leaf' which is nonzero for leaf functions.
  26426. 'current_function_is_leaf' is set prior to local register allocation and
  26427. is valid for the remaining compiler passes. They can also test the C
  26428. variable 'current_function_uses_only_leaf_regs' which is nonzero for
  26429. leaf functions which only use leaf registers.
  26430. 'current_function_uses_only_leaf_regs' is valid after all passes that
  26431. modify the instructions have been run and is only useful if
  26432. 'LEAF_REGISTERS' is defined.
  26433. 
  26434. File: gccint.info, Node: Stack Registers, Prev: Leaf Functions, Up: Registers
  26435. 18.7.5 Registers That Form a Stack
  26436. ----------------------------------
  26437. There are special features to handle computers where some of the
  26438. "registers" form a stack. Stack registers are normally written by
  26439. pushing onto the stack, and are numbered relative to the top of the
  26440. stack.
  26441. Currently, GCC can only handle one group of stack-like registers, and
  26442. they must be consecutively numbered. Furthermore, the existing support
  26443. for stack-like registers is specific to the 80387 floating point
  26444. coprocessor. If you have a new architecture that uses stack-like
  26445. registers, you will need to do substantial work on 'reg-stack.c' and
  26446. write your machine description to cooperate with it, as well as defining
  26447. these macros.
  26448. -- Macro: STACK_REGS
  26449. Define this if the machine has any stack-like registers.
  26450. -- Macro: STACK_REG_COVER_CLASS
  26451. This is a cover class containing the stack registers. Define this
  26452. if the machine has any stack-like registers.
  26453. -- Macro: FIRST_STACK_REG
  26454. The number of the first stack-like register. This one is the top
  26455. of the stack.
  26456. -- Macro: LAST_STACK_REG
  26457. The number of the last stack-like register. This one is the bottom
  26458. of the stack.
  26459. 
  26460. File: gccint.info, Node: Register Classes, Next: Stack and Calling, Prev: Registers, Up: Target Macros
  26461. 18.8 Register Classes
  26462. =====================
  26463. On many machines, the numbered registers are not all equivalent. For
  26464. example, certain registers may not be allowed for indexed addressing;
  26465. certain registers may not be allowed in some instructions. These
  26466. machine restrictions are described to the compiler using "register
  26467. classes".
  26468. You define a number of register classes, giving each one a name and
  26469. saying which of the registers belong to it. Then you can specify
  26470. register classes that are allowed as operands to particular instruction
  26471. patterns.
  26472. In general, each register will belong to several classes. In fact, one
  26473. class must be named 'ALL_REGS' and contain all the registers. Another
  26474. class must be named 'NO_REGS' and contain no registers. Often the union
  26475. of two classes will be another class; however, this is not required.
  26476. One of the classes must be named 'GENERAL_REGS'. There is nothing
  26477. terribly special about the name, but the operand constraint letters 'r'
  26478. and 'g' specify this class. If 'GENERAL_REGS' is the same as
  26479. 'ALL_REGS', just define it as a macro which expands to 'ALL_REGS'.
  26480. Order the classes so that if class X is contained in class Y then X has
  26481. a lower class number than Y.
  26482. The way classes other than 'GENERAL_REGS' are specified in operand
  26483. constraints is through machine-dependent operand constraint letters.
  26484. You can define such letters to correspond to various classes, then use
  26485. them in operand constraints.
  26486. You must define the narrowest register classes for allocatable
  26487. registers, so that each class either has no subclasses, or that for some
  26488. mode, the move cost between registers within the class is cheaper than
  26489. moving a register in the class to or from memory (*note Costs::).
  26490. You should define a class for the union of two classes whenever some
  26491. instruction allows both classes. For example, if an instruction allows
  26492. either a floating point (coprocessor) register or a general register for
  26493. a certain operand, you should define a class 'FLOAT_OR_GENERAL_REGS'
  26494. which includes both of them. Otherwise you will get suboptimal code, or
  26495. even internal compiler errors when reload cannot find a register in the
  26496. class computed via 'reg_class_subunion'.
  26497. You must also specify certain redundant information about the register
  26498. classes: for each class, which classes contain it and which ones are
  26499. contained in it; for each pair of classes, the largest class contained
  26500. in their union.
  26501. When a value occupying several consecutive registers is expected in a
  26502. certain class, all the registers used must belong to that class.
  26503. Therefore, register classes cannot be used to enforce a requirement for
  26504. a register pair to start with an even-numbered register. The way to
  26505. specify this requirement is with 'TARGET_HARD_REGNO_MODE_OK'.
  26506. Register classes used for input-operands of bitwise-and or shift
  26507. instructions have a special requirement: each such class must have, for
  26508. each fixed-point machine mode, a subclass whose registers can transfer
  26509. that mode to or from memory. For example, on some machines, the
  26510. operations for single-byte values ('QImode') are limited to certain
  26511. registers. When this is so, each register class that is used in a
  26512. bitwise-and or shift instruction must have a subclass consisting of
  26513. registers from which single-byte values can be loaded or stored. This
  26514. is so that 'PREFERRED_RELOAD_CLASS' can always have a possible value to
  26515. return.
  26516. -- Data type: enum reg_class
  26517. An enumerated type that must be defined with all the register class
  26518. names as enumerated values. 'NO_REGS' must be first. 'ALL_REGS'
  26519. must be the last register class, followed by one more enumerated
  26520. value, 'LIM_REG_CLASSES', which is not a register class but rather
  26521. tells how many classes there are.
  26522. Each register class has a number, which is the value of casting the
  26523. class name to type 'int'. The number serves as an index in many of
  26524. the tables described below.
  26525. -- Macro: N_REG_CLASSES
  26526. The number of distinct register classes, defined as follows:
  26527. #define N_REG_CLASSES (int) LIM_REG_CLASSES
  26528. -- Macro: REG_CLASS_NAMES
  26529. An initializer containing the names of the register classes as C
  26530. string constants. These names are used in writing some of the
  26531. debugging dumps.
  26532. -- Macro: REG_CLASS_CONTENTS
  26533. An initializer containing the contents of the register classes, as
  26534. integers which are bit masks. The Nth integer specifies the
  26535. contents of class N. The way the integer MASK is interpreted is
  26536. that register R is in the class if 'MASK & (1 << R)' is 1.
  26537. When the machine has more than 32 registers, an integer does not
  26538. suffice. Then the integers are replaced by sub-initializers,
  26539. braced groupings containing several integers. Each sub-initializer
  26540. must be suitable as an initializer for the type 'HARD_REG_SET'
  26541. which is defined in 'hard-reg-set.h'. In this situation, the first
  26542. integer in each sub-initializer corresponds to registers 0 through
  26543. 31, the second integer to registers 32 through 63, and so on.
  26544. -- Macro: REGNO_REG_CLASS (REGNO)
  26545. A C expression whose value is a register class containing hard
  26546. register REGNO. In general there is more than one such class;
  26547. choose a class which is "minimal", meaning that no smaller class
  26548. also contains the register.
  26549. -- Macro: BASE_REG_CLASS
  26550. A macro whose definition is the name of the class to which a valid
  26551. base register must belong. A base register is one used in an
  26552. address which is the register value plus a displacement.
  26553. -- Macro: MODE_BASE_REG_CLASS (MODE)
  26554. This is a variation of the 'BASE_REG_CLASS' macro which allows the
  26555. selection of a base register in a mode dependent manner. If MODE
  26556. is VOIDmode then it should return the same value as
  26557. 'BASE_REG_CLASS'.
  26558. -- Macro: MODE_BASE_REG_REG_CLASS (MODE)
  26559. A C expression whose value is the register class to which a valid
  26560. base register must belong in order to be used in a base plus index
  26561. register address. You should define this macro if base plus index
  26562. addresses have different requirements than other base register
  26563. uses.
  26564. -- Macro: MODE_CODE_BASE_REG_CLASS (MODE, ADDRESS_SPACE, OUTER_CODE,
  26565. INDEX_CODE)
  26566. A C expression whose value is the register class to which a valid
  26567. base register for a memory reference in mode MODE to address space
  26568. ADDRESS_SPACE must belong. OUTER_CODE and INDEX_CODE define the
  26569. context in which the base register occurs. OUTER_CODE is the code
  26570. of the immediately enclosing expression ('MEM' for the top level of
  26571. an address, 'ADDRESS' for something that occurs in an
  26572. 'address_operand'). INDEX_CODE is the code of the corresponding
  26573. index expression if OUTER_CODE is 'PLUS'; 'SCRATCH' otherwise.
  26574. -- Macro: INDEX_REG_CLASS
  26575. A macro whose definition is the name of the class to which a valid
  26576. index register must belong. An index register is one used in an
  26577. address where its value is either multiplied by a scale factor or
  26578. added to another register (as well as added to a displacement).
  26579. -- Macro: REGNO_OK_FOR_BASE_P (NUM)
  26580. A C expression which is nonzero if register number NUM is suitable
  26581. for use as a base register in operand addresses.
  26582. -- Macro: REGNO_MODE_OK_FOR_BASE_P (NUM, MODE)
  26583. A C expression that is just like 'REGNO_OK_FOR_BASE_P', except that
  26584. that expression may examine the mode of the memory reference in
  26585. MODE. You should define this macro if the mode of the memory
  26586. reference affects whether a register may be used as a base
  26587. register. If you define this macro, the compiler will use it
  26588. instead of 'REGNO_OK_FOR_BASE_P'. The mode may be 'VOIDmode' for
  26589. addresses that appear outside a 'MEM', i.e., as an
  26590. 'address_operand'.
  26591. -- Macro: REGNO_MODE_OK_FOR_REG_BASE_P (NUM, MODE)
  26592. A C expression which is nonzero if register number NUM is suitable
  26593. for use as a base register in base plus index operand addresses,
  26594. accessing memory in mode MODE. It may be either a suitable hard
  26595. register or a pseudo register that has been allocated such a hard
  26596. register. You should define this macro if base plus index
  26597. addresses have different requirements than other base register
  26598. uses.
  26599. Use of this macro is deprecated; please use the more general
  26600. 'REGNO_MODE_CODE_OK_FOR_BASE_P'.
  26601. -- Macro: REGNO_MODE_CODE_OK_FOR_BASE_P (NUM, MODE, ADDRESS_SPACE,
  26602. OUTER_CODE, INDEX_CODE)
  26603. A C expression which is nonzero if register number NUM is suitable
  26604. for use as a base register in operand addresses, accessing memory
  26605. in mode MODE in address space ADDRESS_SPACE. This is similar to
  26606. 'REGNO_MODE_OK_FOR_BASE_P', except that that expression may examine
  26607. the context in which the register appears in the memory reference.
  26608. OUTER_CODE is the code of the immediately enclosing expression
  26609. ('MEM' if at the top level of the address, 'ADDRESS' for something
  26610. that occurs in an 'address_operand'). INDEX_CODE is the code of
  26611. the corresponding index expression if OUTER_CODE is 'PLUS';
  26612. 'SCRATCH' otherwise. The mode may be 'VOIDmode' for addresses that
  26613. appear outside a 'MEM', i.e., as an 'address_operand'.
  26614. -- Macro: REGNO_OK_FOR_INDEX_P (NUM)
  26615. A C expression which is nonzero if register number NUM is suitable
  26616. for use as an index register in operand addresses. It may be
  26617. either a suitable hard register or a pseudo register that has been
  26618. allocated such a hard register.
  26619. The difference between an index register and a base register is
  26620. that the index register may be scaled. If an address involves the
  26621. sum of two registers, neither one of them scaled, then either one
  26622. may be labeled the "base" and the other the "index"; but whichever
  26623. labeling is used must fit the machine's constraints of which
  26624. registers may serve in each capacity. The compiler will try both
  26625. labelings, looking for one that is valid, and will reload one or
  26626. both registers only if neither labeling works.
  26627. -- Target Hook: reg_class_t TARGET_PREFERRED_RENAME_CLASS (reg_class_t
  26628. RCLASS)
  26629. A target hook that places additional preference on the register
  26630. class to use when it is necessary to rename a register in class
  26631. RCLASS to another class, or perhaps NO_REGS, if no preferred
  26632. register class is found or hook 'preferred_rename_class' is not
  26633. implemented. Sometimes returning a more restrictive class makes
  26634. better code. For example, on ARM, thumb-2 instructions using
  26635. 'LO_REGS' may be smaller than instructions using 'GENERIC_REGS'.
  26636. By returning 'LO_REGS' from 'preferred_rename_class', code size can
  26637. be reduced.
  26638. -- Target Hook: reg_class_t TARGET_PREFERRED_RELOAD_CLASS (rtx X,
  26639. reg_class_t RCLASS)
  26640. A target hook that places additional restrictions on the register
  26641. class to use when it is necessary to copy value X into a register
  26642. in class RCLASS. The value is a register class; perhaps RCLASS, or
  26643. perhaps another, smaller class.
  26644. The default version of this hook always returns value of 'rclass'
  26645. argument.
  26646. Sometimes returning a more restrictive class makes better code.
  26647. For example, on the 68000, when X is an integer constant that is in
  26648. range for a 'moveq' instruction, the value of this macro is always
  26649. 'DATA_REGS' as long as RCLASS includes the data registers.
  26650. Requiring a data register guarantees that a 'moveq' will be used.
  26651. One case where 'TARGET_PREFERRED_RELOAD_CLASS' must not return
  26652. RCLASS is if X is a legitimate constant which cannot be loaded into
  26653. some register class. By returning 'NO_REGS' you can force X into a
  26654. memory location. For example, rs6000 can load immediate values
  26655. into general-purpose registers, but does not have an instruction
  26656. for loading an immediate value into a floating-point register, so
  26657. 'TARGET_PREFERRED_RELOAD_CLASS' returns 'NO_REGS' when X is a
  26658. floating-point constant. If the constant can't be loaded into any
  26659. kind of register, code generation will be better if
  26660. 'TARGET_LEGITIMATE_CONSTANT_P' makes the constant illegitimate
  26661. instead of using 'TARGET_PREFERRED_RELOAD_CLASS'.
  26662. If an insn has pseudos in it after register allocation, reload will
  26663. go through the alternatives and call repeatedly
  26664. 'TARGET_PREFERRED_RELOAD_CLASS' to find the best one. Returning
  26665. 'NO_REGS', in this case, makes reload add a '!' in front of the
  26666. constraint: the x86 back-end uses this feature to discourage usage
  26667. of 387 registers when math is done in the SSE registers (and vice
  26668. versa).
  26669. -- Macro: PREFERRED_RELOAD_CLASS (X, CLASS)
  26670. A C expression that places additional restrictions on the register
  26671. class to use when it is necessary to copy value X into a register
  26672. in class CLASS. The value is a register class; perhaps CLASS, or
  26673. perhaps another, smaller class. On many machines, the following
  26674. definition is safe:
  26675. #define PREFERRED_RELOAD_CLASS(X,CLASS) CLASS
  26676. Sometimes returning a more restrictive class makes better code.
  26677. For example, on the 68000, when X is an integer constant that is in
  26678. range for a 'moveq' instruction, the value of this macro is always
  26679. 'DATA_REGS' as long as CLASS includes the data registers.
  26680. Requiring a data register guarantees that a 'moveq' will be used.
  26681. One case where 'PREFERRED_RELOAD_CLASS' must not return CLASS is if
  26682. X is a legitimate constant which cannot be loaded into some
  26683. register class. By returning 'NO_REGS' you can force X into a
  26684. memory location. For example, rs6000 can load immediate values
  26685. into general-purpose registers, but does not have an instruction
  26686. for loading an immediate value into a floating-point register, so
  26687. 'PREFERRED_RELOAD_CLASS' returns 'NO_REGS' when X is a
  26688. floating-point constant. If the constant cannot be loaded into any
  26689. kind of register, code generation will be better if
  26690. 'TARGET_LEGITIMATE_CONSTANT_P' makes the constant illegitimate
  26691. instead of using 'TARGET_PREFERRED_RELOAD_CLASS'.
  26692. If an insn has pseudos in it after register allocation, reload will
  26693. go through the alternatives and call repeatedly
  26694. 'PREFERRED_RELOAD_CLASS' to find the best one. Returning
  26695. 'NO_REGS', in this case, makes reload add a '!' in front of the
  26696. constraint: the x86 back-end uses this feature to discourage usage
  26697. of 387 registers when math is done in the SSE registers (and vice
  26698. versa).
  26699. -- Target Hook: reg_class_t TARGET_PREFERRED_OUTPUT_RELOAD_CLASS (rtx
  26700. X, reg_class_t RCLASS)
  26701. Like 'TARGET_PREFERRED_RELOAD_CLASS', but for output reloads
  26702. instead of input reloads.
  26703. The default version of this hook always returns value of 'rclass'
  26704. argument.
  26705. You can also use 'TARGET_PREFERRED_OUTPUT_RELOAD_CLASS' to
  26706. discourage reload from using some alternatives, like
  26707. 'TARGET_PREFERRED_RELOAD_CLASS'.
  26708. -- Macro: LIMIT_RELOAD_CLASS (MODE, CLASS)
  26709. A C expression that places additional restrictions on the register
  26710. class to use when it is necessary to be able to hold a value of
  26711. mode MODE in a reload register for which class CLASS would
  26712. ordinarily be used.
  26713. Unlike 'PREFERRED_RELOAD_CLASS', this macro should be used when
  26714. there are certain modes that simply cannot go in certain reload
  26715. classes.
  26716. The value is a register class; perhaps CLASS, or perhaps another,
  26717. smaller class.
  26718. Don't define this macro unless the target machine has limitations
  26719. which require the macro to do something nontrivial.
  26720. -- Target Hook: reg_class_t TARGET_SECONDARY_RELOAD (bool IN_P, rtx X,
  26721. reg_class_t RELOAD_CLASS, machine_mode RELOAD_MODE,
  26722. secondary_reload_info *SRI)
  26723. Many machines have some registers that cannot be copied directly to
  26724. or from memory or even from other types of registers. An example
  26725. is the 'MQ' register, which on most machines, can only be copied to
  26726. or from general registers, but not memory. Below, we shall be
  26727. using the term 'intermediate register' when a move operation cannot
  26728. be performed directly, but has to be done by copying the source
  26729. into the intermediate register first, and then copying the
  26730. intermediate register to the destination. An intermediate register
  26731. always has the same mode as source and destination. Since it holds
  26732. the actual value being copied, reload might apply optimizations to
  26733. re-use an intermediate register and eliding the copy from the
  26734. source when it can determine that the intermediate register still
  26735. holds the required value.
  26736. Another kind of secondary reload is required on some machines which
  26737. allow copying all registers to and from memory, but require a
  26738. scratch register for stores to some memory locations (e.g., those
  26739. with symbolic address on the RT, and those with certain symbolic
  26740. address on the SPARC when compiling PIC). Scratch registers need
  26741. not have the same mode as the value being copied, and usually hold
  26742. a different value than that being copied. Special patterns in the
  26743. md file are needed to describe how the copy is performed with the
  26744. help of the scratch register; these patterns also describe the
  26745. number, register class(es) and mode(s) of the scratch register(s).
  26746. In some cases, both an intermediate and a scratch register are
  26747. required.
  26748. For input reloads, this target hook is called with nonzero IN_P,
  26749. and X is an rtx that needs to be copied to a register of class
  26750. RELOAD_CLASS in RELOAD_MODE. For output reloads, this target hook
  26751. is called with zero IN_P, and a register of class RELOAD_CLASS
  26752. needs to be copied to rtx X in RELOAD_MODE.
  26753. If copying a register of RELOAD_CLASS from/to X requires an
  26754. intermediate register, the hook 'secondary_reload' should return
  26755. the register class required for this intermediate register. If no
  26756. intermediate register is required, it should return NO_REGS. If
  26757. more than one intermediate register is required, describe the one
  26758. that is closest in the copy chain to the reload register.
  26759. If scratch registers are needed, you also have to describe how to
  26760. perform the copy from/to the reload register to/from this closest
  26761. intermediate register. Or if no intermediate register is required,
  26762. but still a scratch register is needed, describe the copy from/to
  26763. the reload register to/from the reload operand X.
  26764. You do this by setting 'sri->icode' to the instruction code of a
  26765. pattern in the md file which performs the move. Operands 0 and 1
  26766. are the output and input of this copy, respectively. Operands from
  26767. operand 2 onward are for scratch operands. These scratch operands
  26768. must have a mode, and a single-register-class output constraint.
  26769. When an intermediate register is used, the 'secondary_reload' hook
  26770. will be called again to determine how to copy the intermediate
  26771. register to/from the reload operand X, so your hook must also have
  26772. code to handle the register class of the intermediate operand.
  26773. X might be a pseudo-register or a 'subreg' of a pseudo-register,
  26774. which could either be in a hard register or in memory. Use
  26775. 'true_regnum' to find out; it will return -1 if the pseudo is in
  26776. memory and the hard register number if it is in a register.
  26777. Scratch operands in memory (constraint '"=m"' / '"=&m"') are
  26778. currently not supported. For the time being, you will have to
  26779. continue to use 'TARGET_SECONDARY_MEMORY_NEEDED' for that purpose.
  26780. 'copy_cost' also uses this target hook to find out how values are
  26781. copied. If you want it to include some extra cost for the need to
  26782. allocate (a) scratch register(s), set 'sri->extra_cost' to the
  26783. additional cost. Or if two dependent moves are supposed to have a
  26784. lower cost than the sum of the individual moves due to expected
  26785. fortuitous scheduling and/or special forwarding logic, you can set
  26786. 'sri->extra_cost' to a negative amount.
  26787. -- Macro: SECONDARY_RELOAD_CLASS (CLASS, MODE, X)
  26788. -- Macro: SECONDARY_INPUT_RELOAD_CLASS (CLASS, MODE, X)
  26789. -- Macro: SECONDARY_OUTPUT_RELOAD_CLASS (CLASS, MODE, X)
  26790. These macros are obsolete, new ports should use the target hook
  26791. 'TARGET_SECONDARY_RELOAD' instead.
  26792. These are obsolete macros, replaced by the
  26793. 'TARGET_SECONDARY_RELOAD' target hook. Older ports still define
  26794. these macros to indicate to the reload phase that it may need to
  26795. allocate at least one register for a reload in addition to the
  26796. register to contain the data. Specifically, if copying X to a
  26797. register CLASS in MODE requires an intermediate register, you were
  26798. supposed to define 'SECONDARY_INPUT_RELOAD_CLASS' to return the
  26799. largest register class all of whose registers can be used as
  26800. intermediate registers or scratch registers.
  26801. If copying a register CLASS in MODE to X requires an intermediate
  26802. or scratch register, 'SECONDARY_OUTPUT_RELOAD_CLASS' was supposed
  26803. to be defined be defined to return the largest register class
  26804. required. If the requirements for input and output reloads were
  26805. the same, the macro 'SECONDARY_RELOAD_CLASS' should have been used
  26806. instead of defining both macros identically.
  26807. The values returned by these macros are often 'GENERAL_REGS'.
  26808. Return 'NO_REGS' if no spare register is needed; i.e., if X can be
  26809. directly copied to or from a register of CLASS in MODE without
  26810. requiring a scratch register. Do not define this macro if it would
  26811. always return 'NO_REGS'.
  26812. If a scratch register is required (either with or without an
  26813. intermediate register), you were supposed to define patterns for
  26814. 'reload_inM' or 'reload_outM', as required (*note Standard Names::.
  26815. These patterns, which were normally implemented with a
  26816. 'define_expand', should be similar to the 'movM' patterns, except
  26817. that operand 2 is the scratch register.
  26818. These patterns need constraints for the reload register and scratch
  26819. register that contain a single register class. If the original
  26820. reload register (whose class is CLASS) can meet the constraint
  26821. given in the pattern, the value returned by these macros is used
  26822. for the class of the scratch register. Otherwise, two additional
  26823. reload registers are required. Their classes are obtained from the
  26824. constraints in the insn pattern.
  26825. X might be a pseudo-register or a 'subreg' of a pseudo-register,
  26826. which could either be in a hard register or in memory. Use
  26827. 'true_regnum' to find out; it will return -1 if the pseudo is in
  26828. memory and the hard register number if it is in a register.
  26829. These macros should not be used in the case where a particular
  26830. class of registers can only be copied to memory and not to another
  26831. class of registers. In that case, secondary reload registers are
  26832. not needed and would not be helpful. Instead, a stack location
  26833. must be used to perform the copy and the 'movM' pattern should use
  26834. memory as an intermediate storage. This case often occurs between
  26835. floating-point and general registers.
  26836. -- Target Hook: bool TARGET_SECONDARY_MEMORY_NEEDED (machine_mode MODE,
  26837. reg_class_t CLASS1, reg_class_t CLASS2)
  26838. Certain machines have the property that some registers cannot be
  26839. copied to some other registers without using memory. Define this
  26840. hook on those machines to return true if objects of mode M in
  26841. registers of CLASS1 can only be copied to registers of class CLASS2
  26842. by storing a register of CLASS1 into memory and loading that memory
  26843. location into a register of CLASS2. The default definition returns
  26844. false for all inputs.
  26845. -- Macro: SECONDARY_MEMORY_NEEDED_RTX (MODE)
  26846. Normally when 'TARGET_SECONDARY_MEMORY_NEEDED' is defined, the
  26847. compiler allocates a stack slot for a memory location needed for
  26848. register copies. If this macro is defined, the compiler instead
  26849. uses the memory location defined by this macro.
  26850. Do not define this macro if you do not define
  26851. 'TARGET_SECONDARY_MEMORY_NEEDED'.
  26852. -- Target Hook: machine_mode TARGET_SECONDARY_MEMORY_NEEDED_MODE
  26853. (machine_mode MODE)
  26854. If 'TARGET_SECONDARY_MEMORY_NEEDED' tells the compiler to use
  26855. memory when moving between two particular registers of mode MODE,
  26856. this hook specifies the mode that the memory should have.
  26857. The default depends on 'TARGET_LRA_P'. Without LRA, the default is
  26858. to use a word-sized mode for integral modes that are smaller than a
  26859. a word. This is right thing to do on most machines because it
  26860. ensures that all bits of the register are copied and prevents
  26861. accesses to the registers in a narrower mode, which some machines
  26862. prohibit for floating-point registers.
  26863. However, this default behavior is not correct on some machines,
  26864. such as the DEC Alpha, that store short integers in floating-point
  26865. registers differently than in integer registers. On those
  26866. machines, the default widening will not work correctly and you must
  26867. define this hook to suppress that widening in some cases. See the
  26868. file 'alpha.c' for details.
  26869. With LRA, the default is to use MODE unmodified.
  26870. -- Target Hook: void TARGET_SELECT_EARLY_REMAT_MODES (sbitmap MODES)
  26871. On some targets, certain modes cannot be held in registers around a
  26872. standard ABI call and are relatively expensive to spill to the
  26873. stack. The early rematerialization pass can help in such cases by
  26874. aggressively recomputing values after calls, so that they don't
  26875. need to be spilled.
  26876. This hook returns the set of such modes by setting the associated
  26877. bits in MODES. The default implementation selects no modes, which
  26878. has the effect of disabling the early rematerialization pass.
  26879. -- Target Hook: bool TARGET_CLASS_LIKELY_SPILLED_P (reg_class_t RCLASS)
  26880. A target hook which returns 'true' if pseudos that have been
  26881. assigned to registers of class RCLASS would likely be spilled
  26882. because registers of RCLASS are needed for spill registers.
  26883. The default version of this target hook returns 'true' if RCLASS
  26884. has exactly one register and 'false' otherwise. On most machines,
  26885. this default should be used. For generally register-starved
  26886. machines, such as i386, or machines with right register
  26887. constraints, such as SH, this hook can be used to avoid excessive
  26888. spilling.
  26889. This hook is also used by some of the global intra-procedural code
  26890. transformations to throtle code motion, to avoid increasing
  26891. register pressure.
  26892. -- Target Hook: unsigned char TARGET_CLASS_MAX_NREGS (reg_class_t
  26893. RCLASS, machine_mode MODE)
  26894. A target hook returns the maximum number of consecutive registers
  26895. of class RCLASS needed to hold a value of mode MODE.
  26896. This is closely related to the macro 'TARGET_HARD_REGNO_NREGS'. In
  26897. fact, the value returned by 'TARGET_CLASS_MAX_NREGS (RCLASS, MODE)'
  26898. target hook should be the maximum value of 'TARGET_HARD_REGNO_NREGS
  26899. (REGNO, MODE)' for all REGNO values in the class RCLASS.
  26900. This target hook helps control the handling of multiple-word values
  26901. in the reload pass.
  26902. The default version of this target hook returns the size of MODE in
  26903. words.
  26904. -- Macro: CLASS_MAX_NREGS (CLASS, MODE)
  26905. A C expression for the maximum number of consecutive registers of
  26906. class CLASS needed to hold a value of mode MODE.
  26907. This is closely related to the macro 'TARGET_HARD_REGNO_NREGS'. In
  26908. fact, the value of the macro 'CLASS_MAX_NREGS (CLASS, MODE)' should
  26909. be the maximum value of 'TARGET_HARD_REGNO_NREGS (REGNO, MODE)' for
  26910. all REGNO values in the class CLASS.
  26911. This macro helps control the handling of multiple-word values in
  26912. the reload pass.
  26913. -- Target Hook: bool TARGET_CAN_CHANGE_MODE_CLASS (machine_mode FROM,
  26914. machine_mode TO, reg_class_t RCLASS)
  26915. This hook returns true if it is possible to bitcast values held in
  26916. registers of class RCLASS from mode FROM to mode TO and if doing so
  26917. preserves the low-order bits that are common to both modes. The
  26918. result is only meaningful if RCLASS has registers that can hold
  26919. both 'from' and 'to'. The default implementation returns true.
  26920. As an example of when such bitcasting is invalid, loading 32-bit
  26921. integer or floating-point objects into floating-point registers on
  26922. Alpha extends them to 64 bits. Therefore loading a 64-bit object
  26923. and then storing it as a 32-bit object does not store the low-order
  26924. 32 bits, as would be the case for a normal register. Therefore,
  26925. 'alpha.h' defines 'TARGET_CAN_CHANGE_MODE_CLASS' to return:
  26926. (GET_MODE_SIZE (from) == GET_MODE_SIZE (to)
  26927. || !reg_classes_intersect_p (FLOAT_REGS, rclass))
  26928. Even if storing from a register in mode TO would be valid, if both
  26929. FROM and 'raw_reg_mode' for RCLASS are wider than 'word_mode', then
  26930. we must prevent TO narrowing the mode. This happens when the
  26931. middle-end assumes that it can load or store pieces of an N-word
  26932. pseudo, and that the pseudo will eventually be allocated to N
  26933. 'word_mode' hard registers. Failure to prevent this kind of mode
  26934. change will result in the entire 'raw_reg_mode' being modified
  26935. instead of the partial value that the middle-end intended.
  26936. -- Target Hook: reg_class_t TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS
  26937. (int, REG_CLASS_T, REG_CLASS_T)
  26938. A target hook which can change allocno class for given pseudo from
  26939. allocno and best class calculated by IRA.
  26940. The default version of this target hook always returns given class.
  26941. -- Target Hook: bool TARGET_LRA_P (void)
  26942. A target hook which returns true if we use LRA instead of reload
  26943. pass. The default version of this target hook returns true. New
  26944. ports should use LRA, and existing ports are encouraged to convert.
  26945. -- Target Hook: int TARGET_REGISTER_PRIORITY (int)
  26946. A target hook which returns the register priority number to which
  26947. the register HARD_REGNO belongs to. The bigger the number, the
  26948. more preferable the hard register usage (when all other conditions
  26949. are the same). This hook can be used to prefer some hard register
  26950. over others in LRA. For example, some x86-64 register usage needs
  26951. additional prefix which makes instructions longer. The hook can
  26952. return lower priority number for such registers make them less
  26953. favorable and as result making the generated code smaller. The
  26954. default version of this target hook returns always zero.
  26955. -- Target Hook: bool TARGET_REGISTER_USAGE_LEVELING_P (void)
  26956. A target hook which returns true if we need register usage
  26957. leveling. That means if a few hard registers are equally good for
  26958. the assignment, we choose the least used hard register. The
  26959. register usage leveling may be profitable for some targets. Don't
  26960. use the usage leveling for targets with conditional execution or
  26961. targets with big register files as it hurts if-conversion and
  26962. cross-jumping optimizations. The default version of this target
  26963. hook returns always false.
  26964. -- Target Hook: bool TARGET_DIFFERENT_ADDR_DISPLACEMENT_P (void)
  26965. A target hook which returns true if an address with the same
  26966. structure can have different maximal legitimate displacement. For
  26967. example, the displacement can depend on memory mode or on operand
  26968. combinations in the insn. The default version of this target hook
  26969. returns always false.
  26970. -- Target Hook: bool TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P (rtx SUBST)
  26971. A target hook which returns 'true' if SUBST can't substitute safely
  26972. pseudos with equivalent memory values during register allocation.
  26973. The default version of this target hook returns 'false'. On most
  26974. machines, this default should be used. For generally machines with
  26975. non orthogonal register usage for addressing, such as SH, this hook
  26976. can be used to avoid excessive spilling.
  26977. -- Target Hook: bool TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT (rtx
  26978. *OFFSET1, rtx *OFFSET2, poly_int64 ORIG_OFFSET, machine_mode
  26979. MODE)
  26980. This hook tries to split address offset ORIG_OFFSET into two parts:
  26981. one that should be added to the base address to create a local
  26982. anchor point, and an additional offset that can be applied to the
  26983. anchor to address a value of mode MODE. The idea is that the local
  26984. anchor could be shared by other accesses to nearby locations.
  26985. The hook returns true if it succeeds, storing the offset of the
  26986. anchor from the base in OFFSET1 and the offset of the final address
  26987. from the anchor in OFFSET2. The default implementation returns
  26988. false.
  26989. -- Target Hook: reg_class_t TARGET_SPILL_CLASS (reg_class_t,
  26990. MACHINE_MODE)
  26991. This hook defines a class of registers which could be used for
  26992. spilling pseudos of the given mode and class, or 'NO_REGS' if only
  26993. memory should be used. Not defining this hook is equivalent to
  26994. returning 'NO_REGS' for all inputs.
  26995. -- Target Hook: bool TARGET_ADDITIONAL_ALLOCNO_CLASS_P (reg_class_t)
  26996. This hook should return 'true' if given class of registers should
  26997. be an allocno class in any way. Usually RA uses only one register
  26998. class from all classes containing the same register set. In some
  26999. complicated cases, you need to have two or more such classes as
  27000. allocno ones for RA correct work. Not defining this hook is
  27001. equivalent to returning 'false' for all inputs.
  27002. -- Target Hook: scalar_int_mode TARGET_CSTORE_MODE (enum insn_code
  27003. ICODE)
  27004. This hook defines the machine mode to use for the boolean result of
  27005. conditional store patterns. The ICODE argument is the instruction
  27006. code for the cstore being performed. Not definiting this hook is
  27007. the same as accepting the mode encoded into operand 0 of the cstore
  27008. expander patterns.
  27009. -- Target Hook: int TARGET_COMPUTE_PRESSURE_CLASSES (enum reg_class
  27010. *PRESSURE_CLASSES)
  27011. A target hook which lets a backend compute the set of pressure
  27012. classes to be used by those optimization passes which take register
  27013. pressure into account, as opposed to letting IRA compute them. It
  27014. returns the number of register classes stored in the array
  27015. PRESSURE_CLASSES.
  27016. 
  27017. File: gccint.info, Node: Stack and Calling, Next: Varargs, Prev: Register Classes, Up: Target Macros
  27018. 18.9 Stack Layout and Calling Conventions
  27019. =========================================
  27020. This describes the stack layout and calling conventions.
  27021. * Menu:
  27022. * Frame Layout::
  27023. * Exception Handling::
  27024. * Stack Checking::
  27025. * Frame Registers::
  27026. * Elimination::
  27027. * Stack Arguments::
  27028. * Register Arguments::
  27029. * Scalar Return::
  27030. * Aggregate Return::
  27031. * Caller Saves::
  27032. * Function Entry::
  27033. * Profiling::
  27034. * Tail Calls::
  27035. * Shrink-wrapping separate components::
  27036. * Stack Smashing Protection::
  27037. * Miscellaneous Register Hooks::
  27038. 
  27039. File: gccint.info, Node: Frame Layout, Next: Exception Handling, Up: Stack and Calling
  27040. 18.9.1 Basic Stack Layout
  27041. -------------------------
  27042. Here is the basic stack layout.
  27043. -- Macro: STACK_GROWS_DOWNWARD
  27044. Define this macro to be true if pushing a word onto the stack moves
  27045. the stack pointer to a smaller address, and false otherwise.
  27046. -- Macro: STACK_PUSH_CODE
  27047. This macro defines the operation used when something is pushed on
  27048. the stack. In RTL, a push operation will be '(set (mem
  27049. (STACK_PUSH_CODE (reg sp))) ...)'
  27050. The choices are 'PRE_DEC', 'POST_DEC', 'PRE_INC', and 'POST_INC'.
  27051. Which of these is correct depends on the stack direction and on
  27052. whether the stack pointer points to the last item on the stack or
  27053. whether it points to the space for the next item on the stack.
  27054. The default is 'PRE_DEC' when 'STACK_GROWS_DOWNWARD' is true, which
  27055. is almost always right, and 'PRE_INC' otherwise, which is often
  27056. wrong.
  27057. -- Macro: FRAME_GROWS_DOWNWARD
  27058. Define this macro to nonzero value if the addresses of local
  27059. variable slots are at negative offsets from the frame pointer.
  27060. -- Macro: ARGS_GROW_DOWNWARD
  27061. Define this macro if successive arguments to a function occupy
  27062. decreasing addresses on the stack.
  27063. -- Target Hook: HOST_WIDE_INT TARGET_STARTING_FRAME_OFFSET (void)
  27064. This hook returns the offset from the frame pointer to the first
  27065. local variable slot to be allocated. If 'FRAME_GROWS_DOWNWARD', it
  27066. is the offset to _end_ of the first slot allocated, otherwise it is
  27067. the offset to _beginning_ of the first slot allocated. The default
  27068. implementation returns 0.
  27069. -- Macro: STACK_ALIGNMENT_NEEDED
  27070. Define to zero to disable final alignment of the stack during
  27071. reload. The nonzero default for this macro is suitable for most
  27072. ports.
  27073. On ports where 'TARGET_STARTING_FRAME_OFFSET' is nonzero or where
  27074. there is a register save block following the local block that
  27075. doesn't require alignment to 'STACK_BOUNDARY', it may be beneficial
  27076. to disable stack alignment and do it in the backend.
  27077. -- Macro: STACK_POINTER_OFFSET
  27078. Offset from the stack pointer register to the first location at
  27079. which outgoing arguments are placed. If not specified, the default
  27080. value of zero is used. This is the proper value for most machines.
  27081. If 'ARGS_GROW_DOWNWARD', this is the offset to the location above
  27082. the first location at which outgoing arguments are placed.
  27083. -- Macro: FIRST_PARM_OFFSET (FUNDECL)
  27084. Offset from the argument pointer register to the first argument's
  27085. address. On some machines it may depend on the data type of the
  27086. function.
  27087. If 'ARGS_GROW_DOWNWARD', this is the offset to the location above
  27088. the first argument's address.
  27089. -- Macro: STACK_DYNAMIC_OFFSET (FUNDECL)
  27090. Offset from the stack pointer register to an item dynamically
  27091. allocated on the stack, e.g., by 'alloca'.
  27092. The default value for this macro is 'STACK_POINTER_OFFSET' plus the
  27093. length of the outgoing arguments. The default is correct for most
  27094. machines. See 'function.c' for details.
  27095. -- Macro: INITIAL_FRAME_ADDRESS_RTX
  27096. A C expression whose value is RTL representing the address of the
  27097. initial stack frame. This address is passed to 'RETURN_ADDR_RTX'
  27098. and 'DYNAMIC_CHAIN_ADDRESS'. If you don't define this macro, a
  27099. reasonable default value will be used. Define this macro in order
  27100. to make frame pointer elimination work in the presence of
  27101. '__builtin_frame_address (count)' and '__builtin_return_address
  27102. (count)' for 'count' not equal to zero.
  27103. -- Macro: DYNAMIC_CHAIN_ADDRESS (FRAMEADDR)
  27104. A C expression whose value is RTL representing the address in a
  27105. stack frame where the pointer to the caller's frame is stored.
  27106. Assume that FRAMEADDR is an RTL expression for the address of the
  27107. stack frame itself.
  27108. If you don't define this macro, the default is to return the value
  27109. of FRAMEADDR--that is, the stack frame address is also the address
  27110. of the stack word that points to the previous frame.
  27111. -- Macro: SETUP_FRAME_ADDRESSES
  27112. A C expression that produces the machine-specific code to setup the
  27113. stack so that arbitrary frames can be accessed. For example, on
  27114. the SPARC, we must flush all of the register windows to the stack
  27115. before we can access arbitrary stack frames. You will seldom need
  27116. to define this macro. The default is to do nothing.
  27117. -- Target Hook: rtx TARGET_BUILTIN_SETJMP_FRAME_VALUE (void)
  27118. This target hook should return an rtx that is used to store the
  27119. address of the current frame into the built in 'setjmp' buffer.
  27120. The default value, 'virtual_stack_vars_rtx', is correct for most
  27121. machines. One reason you may need to define this target hook is if
  27122. 'hard_frame_pointer_rtx' is the appropriate value on your machine.
  27123. -- Macro: FRAME_ADDR_RTX (FRAMEADDR)
  27124. A C expression whose value is RTL representing the value of the
  27125. frame address for the current frame. FRAMEADDR is the frame
  27126. pointer of the current frame. This is used for
  27127. __builtin_frame_address. You need only define this macro if the
  27128. frame address is not the same as the frame pointer. Most machines
  27129. do not need to define it.
  27130. -- Macro: RETURN_ADDR_RTX (COUNT, FRAMEADDR)
  27131. A C expression whose value is RTL representing the value of the
  27132. return address for the frame COUNT steps up from the current frame,
  27133. after the prologue. FRAMEADDR is the frame pointer of the COUNT
  27134. frame, or the frame pointer of the COUNT - 1 frame if
  27135. 'RETURN_ADDR_IN_PREVIOUS_FRAME' is nonzero.
  27136. The value of the expression must always be the correct address when
  27137. COUNT is zero, but may be 'NULL_RTX' if there is no way to
  27138. determine the return address of other frames.
  27139. -- Macro: RETURN_ADDR_IN_PREVIOUS_FRAME
  27140. Define this macro to nonzero value if the return address of a
  27141. particular stack frame is accessed from the frame pointer of the
  27142. previous stack frame. The zero default for this macro is suitable
  27143. for most ports.
  27144. -- Macro: INCOMING_RETURN_ADDR_RTX
  27145. A C expression whose value is RTL representing the location of the
  27146. incoming return address at the beginning of any function, before
  27147. the prologue. This RTL is either a 'REG', indicating that the
  27148. return value is saved in 'REG', or a 'MEM' representing a location
  27149. in the stack.
  27150. You only need to define this macro if you want to support call
  27151. frame debugging information like that provided by DWARF 2.
  27152. If this RTL is a 'REG', you should also define
  27153. 'DWARF_FRAME_RETURN_COLUMN' to 'DWARF_FRAME_REGNUM (REGNO)'.
  27154. -- Macro: DWARF_ALT_FRAME_RETURN_COLUMN
  27155. A C expression whose value is an integer giving a DWARF 2 column
  27156. number that may be used as an alternative return column. The
  27157. column must not correspond to any gcc hard register (that is, it
  27158. must not be in the range of 'DWARF_FRAME_REGNUM').
  27159. This macro can be useful if 'DWARF_FRAME_RETURN_COLUMN' is set to a
  27160. general register, but an alternative column needs to be used for
  27161. signal frames. Some targets have also used different frame return
  27162. columns over time.
  27163. -- Macro: DWARF_ZERO_REG
  27164. A C expression whose value is an integer giving a DWARF 2 register
  27165. number that is considered to always have the value zero. This
  27166. should only be defined if the target has an architected zero
  27167. register, and someone decided it was a good idea to use that
  27168. register number to terminate the stack backtrace. New ports should
  27169. avoid this.
  27170. -- Target Hook: void TARGET_DWARF_HANDLE_FRAME_UNSPEC (const char
  27171. *LABEL, rtx PATTERN, int INDEX)
  27172. This target hook allows the backend to emit frame-related insns
  27173. that contain UNSPECs or UNSPEC_VOLATILEs. The DWARF 2 call frame
  27174. debugging info engine will invoke it on insns of the form
  27175. (set (reg) (unspec [...] UNSPEC_INDEX))
  27176. and
  27177. (set (reg) (unspec_volatile [...] UNSPECV_INDEX)).
  27178. to let the backend emit the call frame instructions. LABEL is the
  27179. CFI label attached to the insn, PATTERN is the pattern of the insn
  27180. and INDEX is 'UNSPEC_INDEX' or 'UNSPECV_INDEX'.
  27181. -- Target Hook: unsigned int TARGET_DWARF_POLY_INDETERMINATE_VALUE
  27182. (unsigned int I, unsigned int *FACTOR, int *OFFSET)
  27183. Express the value of 'poly_int' indeterminate I as a DWARF
  27184. expression, with I counting from 1. Return the number of a DWARF
  27185. register R and set '*FACTOR' and '*OFFSET' such that the value of
  27186. the indeterminate is:
  27187. value_of(R) / FACTOR - OFFSET
  27188. A target only needs to define this hook if it sets
  27189. 'NUM_POLY_INT_COEFFS' to a value greater than 1.
  27190. -- Macro: INCOMING_FRAME_SP_OFFSET
  27191. A C expression whose value is an integer giving the offset, in
  27192. bytes, from the value of the stack pointer register to the top of
  27193. the stack frame at the beginning of any function, before the
  27194. prologue. The top of the frame is defined to be the value of the
  27195. stack pointer in the previous frame, just before the call
  27196. instruction.
  27197. You only need to define this macro if you want to support call
  27198. frame debugging information like that provided by DWARF 2.
  27199. -- Macro: DEFAULT_INCOMING_FRAME_SP_OFFSET
  27200. Like 'INCOMING_FRAME_SP_OFFSET', but must be the same for all
  27201. functions of the same ABI, and when using GAS '.cfi_*' directives
  27202. must also agree with the default CFI GAS emits. Define this macro
  27203. only if 'INCOMING_FRAME_SP_OFFSET' can have different values
  27204. between different functions of the same ABI or when
  27205. 'INCOMING_FRAME_SP_OFFSET' does not agree with GAS default CFI.
  27206. -- Macro: ARG_POINTER_CFA_OFFSET (FUNDECL)
  27207. A C expression whose value is an integer giving the offset, in
  27208. bytes, from the argument pointer to the canonical frame address
  27209. (cfa). The final value should coincide with that calculated by
  27210. 'INCOMING_FRAME_SP_OFFSET'. Which is unfortunately not usable
  27211. during virtual register instantiation.
  27212. The default value for this macro is 'FIRST_PARM_OFFSET (fundecl) +
  27213. crtl->args.pretend_args_size', which is correct for most machines;
  27214. in general, the arguments are found immediately before the stack
  27215. frame. Note that this is not the case on some targets that save
  27216. registers into the caller's frame, such as SPARC and rs6000, and so
  27217. such targets need to define this macro.
  27218. You only need to define this macro if the default is incorrect, and
  27219. you want to support call frame debugging information like that
  27220. provided by DWARF 2.
  27221. -- Macro: FRAME_POINTER_CFA_OFFSET (FUNDECL)
  27222. If defined, a C expression whose value is an integer giving the
  27223. offset in bytes from the frame pointer to the canonical frame
  27224. address (cfa). The final value should coincide with that
  27225. calculated by 'INCOMING_FRAME_SP_OFFSET'.
  27226. Normally the CFA is calculated as an offset from the argument
  27227. pointer, via 'ARG_POINTER_CFA_OFFSET', but if the argument pointer
  27228. is variable due to the ABI, this may not be possible. If this
  27229. macro is defined, it implies that the virtual register
  27230. instantiation should be based on the frame pointer instead of the
  27231. argument pointer. Only one of 'FRAME_POINTER_CFA_OFFSET' and
  27232. 'ARG_POINTER_CFA_OFFSET' should be defined.
  27233. -- Macro: CFA_FRAME_BASE_OFFSET (FUNDECL)
  27234. If defined, a C expression whose value is an integer giving the
  27235. offset in bytes from the canonical frame address (cfa) to the frame
  27236. base used in DWARF 2 debug information. The default is zero. A
  27237. different value may reduce the size of debug information on some
  27238. ports.
  27239. 
  27240. File: gccint.info, Node: Exception Handling, Next: Stack Checking, Prev: Frame Layout, Up: Stack and Calling
  27241. 18.9.2 Exception Handling Support
  27242. ---------------------------------
  27243. -- Macro: EH_RETURN_DATA_REGNO (N)
  27244. A C expression whose value is the Nth register number used for data
  27245. by exception handlers, or 'INVALID_REGNUM' if fewer than N
  27246. registers are usable.
  27247. The exception handling library routines communicate with the
  27248. exception handlers via a set of agreed upon registers. Ideally
  27249. these registers should be call-clobbered; it is possible to use
  27250. call-saved registers, but may negatively impact code size. The
  27251. target must support at least 2 data registers, but should define 4
  27252. if there are enough free registers.
  27253. You must define this macro if you want to support call frame
  27254. exception handling like that provided by DWARF 2.
  27255. -- Macro: EH_RETURN_STACKADJ_RTX
  27256. A C expression whose value is RTL representing a location in which
  27257. to store a stack adjustment to be applied before function return.
  27258. This is used to unwind the stack to an exception handler's call
  27259. frame. It will be assigned zero on code paths that return
  27260. normally.
  27261. Typically this is a call-clobbered hard register that is otherwise
  27262. untouched by the epilogue, but could also be a stack slot.
  27263. Do not define this macro if the stack pointer is saved and restored
  27264. by the regular prolog and epilog code in the call frame itself; in
  27265. this case, the exception handling library routines will update the
  27266. stack location to be restored in place. Otherwise, you must define
  27267. this macro if you want to support call frame exception handling
  27268. like that provided by DWARF 2.
  27269. -- Macro: EH_RETURN_HANDLER_RTX
  27270. A C expression whose value is RTL representing a location in which
  27271. to store the address of an exception handler to which we should
  27272. return. It will not be assigned on code paths that return
  27273. normally.
  27274. Typically this is the location in the call frame at which the
  27275. normal return address is stored. For targets that return by
  27276. popping an address off the stack, this might be a memory address
  27277. just below the _target_ call frame rather than inside the current
  27278. call frame. If defined, 'EH_RETURN_STACKADJ_RTX' will have already
  27279. been assigned, so it may be used to calculate the location of the
  27280. target call frame.
  27281. Some targets have more complex requirements than storing to an
  27282. address calculable during initial code generation. In that case
  27283. the 'eh_return' instruction pattern should be used instead.
  27284. If you want to support call frame exception handling, you must
  27285. define either this macro or the 'eh_return' instruction pattern.
  27286. -- Macro: RETURN_ADDR_OFFSET
  27287. If defined, an integer-valued C expression for which rtl will be
  27288. generated to add it to the exception handler address before it is
  27289. searched in the exception handling tables, and to subtract it again
  27290. from the address before using it to return to the exception
  27291. handler.
  27292. -- Macro: ASM_PREFERRED_EH_DATA_FORMAT (CODE, GLOBAL)
  27293. This macro chooses the encoding of pointers embedded in the
  27294. exception handling sections. If at all possible, this should be
  27295. defined such that the exception handling section will not require
  27296. dynamic relocations, and so may be read-only.
  27297. CODE is 0 for data, 1 for code labels, 2 for function pointers.
  27298. GLOBAL is true if the symbol may be affected by dynamic
  27299. relocations. The macro should return a combination of the
  27300. 'DW_EH_PE_*' defines as found in 'dwarf2.h'.
  27301. If this macro is not defined, pointers will not be encoded but
  27302. represented directly.
  27303. -- Macro: ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX (FILE, ENCODING, SIZE,
  27304. ADDR, DONE)
  27305. This macro allows the target to emit whatever special magic is
  27306. required to represent the encoding chosen by
  27307. 'ASM_PREFERRED_EH_DATA_FORMAT'. Generic code takes care of
  27308. pc-relative and indirect encodings; this must be defined if the
  27309. target uses text-relative or data-relative encodings.
  27310. This is a C statement that branches to DONE if the format was
  27311. handled. ENCODING is the format chosen, SIZE is the number of
  27312. bytes that the format occupies, ADDR is the 'SYMBOL_REF' to be
  27313. emitted.
  27314. -- Macro: MD_FALLBACK_FRAME_STATE_FOR (CONTEXT, FS)
  27315. This macro allows the target to add CPU and operating system
  27316. specific code to the call-frame unwinder for use when there is no
  27317. unwind data available. The most common reason to implement this
  27318. macro is to unwind through signal frames.
  27319. This macro is called from 'uw_frame_state_for' in 'unwind-dw2.c',
  27320. 'unwind-dw2-xtensa.c' and 'unwind-ia64.c'. CONTEXT is an
  27321. '_Unwind_Context'; FS is an '_Unwind_FrameState'. Examine
  27322. 'context->ra' for the address of the code being executed and
  27323. 'context->cfa' for the stack pointer value. If the frame can be
  27324. decoded, the register save addresses should be updated in FS and
  27325. the macro should evaluate to '_URC_NO_REASON'. If the frame cannot
  27326. be decoded, the macro should evaluate to '_URC_END_OF_STACK'.
  27327. For proper signal handling in Java this macro is accompanied by
  27328. 'MAKE_THROW_FRAME', defined in 'libjava/include/*-signal.h'
  27329. headers.
  27330. -- Macro: MD_HANDLE_UNWABI (CONTEXT, FS)
  27331. This macro allows the target to add operating system specific code
  27332. to the call-frame unwinder to handle the IA-64 '.unwabi' unwinding
  27333. directive, usually used for signal or interrupt frames.
  27334. This macro is called from 'uw_update_context' in libgcc's
  27335. 'unwind-ia64.c'. CONTEXT is an '_Unwind_Context'; FS is an
  27336. '_Unwind_FrameState'. Examine 'fs->unwabi' for the abi and context
  27337. in the '.unwabi' directive. If the '.unwabi' directive can be
  27338. handled, the register save addresses should be updated in FS.
  27339. -- Macro: TARGET_USES_WEAK_UNWIND_INFO
  27340. A C expression that evaluates to true if the target requires unwind
  27341. info to be given comdat linkage. Define it to be '1' if comdat
  27342. linkage is necessary. The default is '0'.
  27343. 
  27344. File: gccint.info, Node: Stack Checking, Next: Frame Registers, Prev: Exception Handling, Up: Stack and Calling
  27345. 18.9.3 Specifying How Stack Checking is Done
  27346. --------------------------------------------
  27347. GCC will check that stack references are within the boundaries of the
  27348. stack, if the option '-fstack-check' is specified, in one of three ways:
  27349. 1. If the value of the 'STACK_CHECK_BUILTIN' macro is nonzero, GCC
  27350. will assume that you have arranged for full stack checking to be
  27351. done at appropriate places in the configuration files. GCC will
  27352. not do other special processing.
  27353. 2. If 'STACK_CHECK_BUILTIN' is zero and the value of the
  27354. 'STACK_CHECK_STATIC_BUILTIN' macro is nonzero, GCC will assume that
  27355. you have arranged for static stack checking (checking of the static
  27356. stack frame of functions) to be done at appropriate places in the
  27357. configuration files. GCC will only emit code to do dynamic stack
  27358. checking (checking on dynamic stack allocations) using the third
  27359. approach below.
  27360. 3. If neither of the above are true, GCC will generate code to
  27361. periodically "probe" the stack pointer using the values of the
  27362. macros defined below.
  27363. If neither STACK_CHECK_BUILTIN nor STACK_CHECK_STATIC_BUILTIN is
  27364. defined, GCC will change its allocation strategy for large objects if
  27365. the option '-fstack-check' is specified: they will always be allocated
  27366. dynamically if their size exceeds 'STACK_CHECK_MAX_VAR_SIZE' bytes.
  27367. -- Macro: STACK_CHECK_BUILTIN
  27368. A nonzero value if stack checking is done by the configuration
  27369. files in a machine-dependent manner. You should define this macro
  27370. if stack checking is required by the ABI of your machine or if you
  27371. would like to do stack checking in some more efficient way than the
  27372. generic approach. The default value of this macro is zero.
  27373. -- Macro: STACK_CHECK_STATIC_BUILTIN
  27374. A nonzero value if static stack checking is done by the
  27375. configuration files in a machine-dependent manner. You should
  27376. define this macro if you would like to do static stack checking in
  27377. some more efficient way than the generic approach. The default
  27378. value of this macro is zero.
  27379. -- Macro: STACK_CHECK_PROBE_INTERVAL_EXP
  27380. An integer specifying the interval at which GCC must generate stack
  27381. probe instructions, defined as 2 raised to this integer. You will
  27382. normally define this macro so that the interval be no larger than
  27383. the size of the "guard pages" at the end of a stack area. The
  27384. default value of 12 (4096-byte interval) is suitable for most
  27385. systems.
  27386. -- Macro: STACK_CHECK_MOVING_SP
  27387. An integer which is nonzero if GCC should move the stack pointer
  27388. page by page when doing probes. This can be necessary on systems
  27389. where the stack pointer contains the bottom address of the memory
  27390. area accessible to the executing thread at any point in time. In
  27391. this situation an alternate signal stack is required in order to be
  27392. able to recover from a stack overflow. The default value of this
  27393. macro is zero.
  27394. -- Macro: STACK_CHECK_PROTECT
  27395. The number of bytes of stack needed to recover from a stack
  27396. overflow, for languages where such a recovery is supported. The
  27397. default value of 4KB/8KB with the 'setjmp'/'longjmp'-based
  27398. exception handling mechanism and 8KB/12KB with other exception
  27399. handling mechanisms should be adequate for most architectures and
  27400. operating systems.
  27401. The following macros are relevant only if neither STACK_CHECK_BUILTIN
  27402. nor STACK_CHECK_STATIC_BUILTIN is defined; you can omit them altogether
  27403. in the opposite case.
  27404. -- Macro: STACK_CHECK_MAX_FRAME_SIZE
  27405. The maximum size of a stack frame, in bytes. GCC will generate
  27406. probe instructions in non-leaf functions to ensure at least this
  27407. many bytes of stack are available. If a stack frame is larger than
  27408. this size, stack checking will not be reliable and GCC will issue a
  27409. warning. The default is chosen so that GCC only generates one
  27410. instruction on most systems. You should normally not change the
  27411. default value of this macro.
  27412. -- Macro: STACK_CHECK_FIXED_FRAME_SIZE
  27413. GCC uses this value to generate the above warning message. It
  27414. represents the amount of fixed frame used by a function, not
  27415. including space for any callee-saved registers, temporaries and
  27416. user variables. You need only specify an upper bound for this
  27417. amount and will normally use the default of four words.
  27418. -- Macro: STACK_CHECK_MAX_VAR_SIZE
  27419. The maximum size, in bytes, of an object that GCC will place in the
  27420. fixed area of the stack frame when the user specifies
  27421. '-fstack-check'. GCC computed the default from the values of the
  27422. above macros and you will normally not need to override that
  27423. default.
  27424. -- Target Hook: HOST_WIDE_INT
  27425. TARGET_STACK_CLASH_PROTECTION_ALLOCA_PROBE_RANGE (void)
  27426. Some targets have an ABI defined interval for which no probing
  27427. needs to be done. When a probe does need to be done this same
  27428. interval is used as the probe distance up when doing stack clash
  27429. protection for alloca. On such targets this value can be set to
  27430. override the default probing up interval. Define this variable to
  27431. return nonzero if such a probe range is required or zero otherwise.
  27432. Defining this hook also requires your functions which make use of
  27433. alloca to have at least 8 byesof outgoing arguments. If this is
  27434. not the case the stack will be corrupted. You need not define this
  27435. macro if it would always have the value zero.
  27436. 
  27437. File: gccint.info, Node: Frame Registers, Next: Elimination, Prev: Stack Checking, Up: Stack and Calling
  27438. 18.9.4 Registers That Address the Stack Frame
  27439. ---------------------------------------------
  27440. This discusses registers that address the stack frame.
  27441. -- Macro: STACK_POINTER_REGNUM
  27442. The register number of the stack pointer register, which must also
  27443. be a fixed register according to 'FIXED_REGISTERS'. On most
  27444. machines, the hardware determines which register this is.
  27445. -- Macro: FRAME_POINTER_REGNUM
  27446. The register number of the frame pointer register, which is used to
  27447. access automatic variables in the stack frame. On some machines,
  27448. the hardware determines which register this is. On other machines,
  27449. you can choose any register you wish for this purpose.
  27450. -- Macro: HARD_FRAME_POINTER_REGNUM
  27451. On some machines the offset between the frame pointer and starting
  27452. offset of the automatic variables is not known until after register
  27453. allocation has been done (for example, because the saved registers
  27454. are between these two locations). On those machines, define
  27455. 'FRAME_POINTER_REGNUM' the number of a special, fixed register to
  27456. be used internally until the offset is known, and define
  27457. 'HARD_FRAME_POINTER_REGNUM' to be the actual hard register number
  27458. used for the frame pointer.
  27459. You should define this macro only in the very rare circumstances
  27460. when it is not possible to calculate the offset between the frame
  27461. pointer and the automatic variables until after register allocation
  27462. has been completed. When this macro is defined, you must also
  27463. indicate in your definition of 'ELIMINABLE_REGS' how to eliminate
  27464. 'FRAME_POINTER_REGNUM' into either 'HARD_FRAME_POINTER_REGNUM' or
  27465. 'STACK_POINTER_REGNUM'.
  27466. Do not define this macro if it would be the same as
  27467. 'FRAME_POINTER_REGNUM'.
  27468. -- Macro: ARG_POINTER_REGNUM
  27469. The register number of the arg pointer register, which is used to
  27470. access the function's argument list. On some machines, this is the
  27471. same as the frame pointer register. On some machines, the hardware
  27472. determines which register this is. On other machines, you can
  27473. choose any register you wish for this purpose. If this is not the
  27474. same register as the frame pointer register, then you must mark it
  27475. as a fixed register according to 'FIXED_REGISTERS', or arrange to
  27476. be able to eliminate it (*note Elimination::).
  27477. -- Macro: HARD_FRAME_POINTER_IS_FRAME_POINTER
  27478. Define this to a preprocessor constant that is nonzero if
  27479. 'hard_frame_pointer_rtx' and 'frame_pointer_rtx' should be the
  27480. same. The default definition is '(HARD_FRAME_POINTER_REGNUM ==
  27481. FRAME_POINTER_REGNUM)'; you only need to define this macro if that
  27482. definition is not suitable for use in preprocessor conditionals.
  27483. -- Macro: HARD_FRAME_POINTER_IS_ARG_POINTER
  27484. Define this to a preprocessor constant that is nonzero if
  27485. 'hard_frame_pointer_rtx' and 'arg_pointer_rtx' should be the same.
  27486. The default definition is '(HARD_FRAME_POINTER_REGNUM ==
  27487. ARG_POINTER_REGNUM)'; you only need to define this macro if that
  27488. definition is not suitable for use in preprocessor conditionals.
  27489. -- Macro: RETURN_ADDRESS_POINTER_REGNUM
  27490. The register number of the return address pointer register, which
  27491. is used to access the current function's return address from the
  27492. stack. On some machines, the return address is not at a fixed
  27493. offset from the frame pointer or stack pointer or argument pointer.
  27494. This register can be defined to point to the return address on the
  27495. stack, and then be converted by 'ELIMINABLE_REGS' into either the
  27496. frame pointer or stack pointer.
  27497. Do not define this macro unless there is no other way to get the
  27498. return address from the stack.
  27499. -- Macro: STATIC_CHAIN_REGNUM
  27500. -- Macro: STATIC_CHAIN_INCOMING_REGNUM
  27501. Register numbers used for passing a function's static chain
  27502. pointer. If register windows are used, the register number as seen
  27503. by the called function is 'STATIC_CHAIN_INCOMING_REGNUM', while the
  27504. register number as seen by the calling function is
  27505. 'STATIC_CHAIN_REGNUM'. If these registers are the same,
  27506. 'STATIC_CHAIN_INCOMING_REGNUM' need not be defined.
  27507. The static chain register need not be a fixed register.
  27508. If the static chain is passed in memory, these macros should not be
  27509. defined; instead, the 'TARGET_STATIC_CHAIN' hook should be used.
  27510. -- Target Hook: rtx TARGET_STATIC_CHAIN (const_tree FNDECL_OR_TYPE,
  27511. bool INCOMING_P)
  27512. This hook replaces the use of 'STATIC_CHAIN_REGNUM' et al for
  27513. targets that may use different static chain locations for different
  27514. nested functions. This may be required if the target has function
  27515. attributes that affect the calling conventions of the function and
  27516. those calling conventions use different static chain locations.
  27517. The default version of this hook uses 'STATIC_CHAIN_REGNUM' et al.
  27518. If the static chain is passed in memory, this hook should be used
  27519. to provide rtx giving 'mem' expressions that denote where they are
  27520. stored. Often the 'mem' expression as seen by the caller will be
  27521. at an offset from the stack pointer and the 'mem' expression as
  27522. seen by the callee will be at an offset from the frame pointer.
  27523. The variables 'stack_pointer_rtx', 'frame_pointer_rtx', and
  27524. 'arg_pointer_rtx' will have been initialized and should be used to
  27525. refer to those items.
  27526. -- Macro: DWARF_FRAME_REGISTERS
  27527. This macro specifies the maximum number of hard registers that can
  27528. be saved in a call frame. This is used to size data structures
  27529. used in DWARF2 exception handling.
  27530. Prior to GCC 3.0, this macro was needed in order to establish a
  27531. stable exception handling ABI in the face of adding new hard
  27532. registers for ISA extensions. In GCC 3.0 and later, the EH ABI is
  27533. insulated from changes in the number of hard registers.
  27534. Nevertheless, this macro can still be used to reduce the runtime
  27535. memory requirements of the exception handling routines, which can
  27536. be substantial if the ISA contains a lot of registers that are not
  27537. call-saved.
  27538. If this macro is not defined, it defaults to
  27539. 'FIRST_PSEUDO_REGISTER'.
  27540. -- Macro: PRE_GCC3_DWARF_FRAME_REGISTERS
  27541. This macro is similar to 'DWARF_FRAME_REGISTERS', but is provided
  27542. for backward compatibility in pre GCC 3.0 compiled code.
  27543. If this macro is not defined, it defaults to
  27544. 'DWARF_FRAME_REGISTERS'.
  27545. -- Macro: DWARF_REG_TO_UNWIND_COLUMN (REGNO)
  27546. Define this macro if the target's representation for dwarf
  27547. registers is different than the internal representation for unwind
  27548. column. Given a dwarf register, this macro should return the
  27549. internal unwind column number to use instead.
  27550. -- Macro: DWARF_FRAME_REGNUM (REGNO)
  27551. Define this macro if the target's representation for dwarf
  27552. registers used in .eh_frame or .debug_frame is different from that
  27553. used in other debug info sections. Given a GCC hard register
  27554. number, this macro should return the .eh_frame register number.
  27555. The default is 'DBX_REGISTER_NUMBER (REGNO)'.
  27556. -- Macro: DWARF2_FRAME_REG_OUT (REGNO, FOR_EH)
  27557. Define this macro to map register numbers held in the call frame
  27558. info that GCC has collected using 'DWARF_FRAME_REGNUM' to those
  27559. that should be output in .debug_frame ('FOR_EH' is zero) and
  27560. .eh_frame ('FOR_EH' is nonzero). The default is to return 'REGNO'.
  27561. -- Macro: REG_VALUE_IN_UNWIND_CONTEXT
  27562. Define this macro if the target stores register values as
  27563. '_Unwind_Word' type in unwind context. It should be defined if
  27564. target register size is larger than the size of 'void *'. The
  27565. default is to store register values as 'void *' type.
  27566. -- Macro: ASSUME_EXTENDED_UNWIND_CONTEXT
  27567. Define this macro to be 1 if the target always uses extended unwind
  27568. context with version, args_size and by_value fields. If it is
  27569. undefined, it will be defined to 1 when
  27570. 'REG_VALUE_IN_UNWIND_CONTEXT' is defined and 0 otherwise.
  27571. -- Macro: DWARF_LAZY_REGISTER_VALUE (REGNO, VALUE)
  27572. Define this macro if the target has pseudo DWARF registers whose
  27573. values need to be computed lazily on demand by the unwinder (such
  27574. as when referenced in a CFA expression). The macro returns true if
  27575. REGNO is such a register and stores its value in '*VALUE' if so.
  27576. 
  27577. File: gccint.info, Node: Elimination, Next: Stack Arguments, Prev: Frame Registers, Up: Stack and Calling
  27578. 18.9.5 Eliminating Frame Pointer and Arg Pointer
  27579. ------------------------------------------------
  27580. This is about eliminating the frame pointer and arg pointer.
  27581. -- Target Hook: bool TARGET_FRAME_POINTER_REQUIRED (void)
  27582. This target hook should return 'true' if a function must have and
  27583. use a frame pointer. This target hook is called in the reload
  27584. pass. If its return value is 'true' the function will have a frame
  27585. pointer.
  27586. This target hook can in principle examine the current function and
  27587. decide according to the facts, but on most machines the constant
  27588. 'false' or the constant 'true' suffices. Use 'false' when the
  27589. machine allows code to be generated with no frame pointer, and
  27590. doing so saves some time or space. Use 'true' when there is no
  27591. possible advantage to avoiding a frame pointer.
  27592. In certain cases, the compiler does not know how to produce valid
  27593. code without a frame pointer. The compiler recognizes those cases
  27594. and automatically gives the function a frame pointer regardless of
  27595. what 'targetm.frame_pointer_required' returns. You don't need to
  27596. worry about them.
  27597. In a function that does not require a frame pointer, the frame
  27598. pointer register can be allocated for ordinary usage, unless you
  27599. mark it as a fixed register. See 'FIXED_REGISTERS' for more
  27600. information.
  27601. Default return value is 'false'.
  27602. -- Macro: ELIMINABLE_REGS
  27603. This macro specifies a table of register pairs used to eliminate
  27604. unneeded registers that point into the stack frame.
  27605. The definition of this macro is a list of structure
  27606. initializations, each of which specifies an original and
  27607. replacement register.
  27608. On some machines, the position of the argument pointer is not known
  27609. until the compilation is completed. In such a case, a separate
  27610. hard register must be used for the argument pointer. This register
  27611. can be eliminated by replacing it with either the frame pointer or
  27612. the argument pointer, depending on whether or not the frame pointer
  27613. has been eliminated.
  27614. In this case, you might specify:
  27615. #define ELIMINABLE_REGS \
  27616. {{ARG_POINTER_REGNUM, STACK_POINTER_REGNUM}, \
  27617. {ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM}, \
  27618. {FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}}
  27619. Note that the elimination of the argument pointer with the stack
  27620. pointer is specified first since that is the preferred elimination.
  27621. -- Target Hook: bool TARGET_CAN_ELIMINATE (const int FROM_REG, const
  27622. int TO_REG)
  27623. This target hook should return 'true' if the compiler is allowed to
  27624. try to replace register number FROM_REG with register number
  27625. TO_REG. This target hook will usually be 'true', since most of the
  27626. cases preventing register elimination are things that the compiler
  27627. already knows about.
  27628. Default return value is 'true'.
  27629. -- Macro: INITIAL_ELIMINATION_OFFSET (FROM-REG, TO-REG, OFFSET-VAR)
  27630. This macro returns the initial difference between the specified
  27631. pair of registers. The value would be computed from information
  27632. such as the result of 'get_frame_size ()' and the tables of
  27633. registers 'df_regs_ever_live_p' and 'call_used_regs'.
  27634. -- Target Hook: void TARGET_COMPUTE_FRAME_LAYOUT (void)
  27635. This target hook is called once each time the frame layout needs to
  27636. be recalculated. The calculations can be cached by the target and
  27637. can then be used by 'INITIAL_ELIMINATION_OFFSET' instead of
  27638. re-computing the layout on every invocation of that hook. This is
  27639. particularly useful for targets that have an expensive frame layout
  27640. function. Implementing this callback is optional.
  27641. 
  27642. File: gccint.info, Node: Stack Arguments, Next: Register Arguments, Prev: Elimination, Up: Stack and Calling
  27643. 18.9.6 Passing Function Arguments on the Stack
  27644. ----------------------------------------------
  27645. The macros in this section control how arguments are passed on the
  27646. stack. See the following section for other macros that control passing
  27647. certain arguments in registers.
  27648. -- Target Hook: bool TARGET_PROMOTE_PROTOTYPES (const_tree FNTYPE)
  27649. This target hook returns 'true' if an argument declared in a
  27650. prototype as an integral type smaller than 'int' should actually be
  27651. passed as an 'int'. In addition to avoiding errors in certain
  27652. cases of mismatch, it also makes for better code on certain
  27653. machines. The default is to not promote prototypes.
  27654. -- Macro: PUSH_ARGS
  27655. A C expression. If nonzero, push insns will be used to pass
  27656. outgoing arguments. If the target machine does not have a push
  27657. instruction, set it to zero. That directs GCC to use an alternate
  27658. strategy: to allocate the entire argument block and then store the
  27659. arguments into it. When 'PUSH_ARGS' is nonzero, 'PUSH_ROUNDING'
  27660. must be defined too.
  27661. -- Macro: PUSH_ARGS_REVERSED
  27662. A C expression. If nonzero, function arguments will be evaluated
  27663. from last to first, rather than from first to last. If this macro
  27664. is not defined, it defaults to 'PUSH_ARGS' on targets where the
  27665. stack and args grow in opposite directions, and 0 otherwise.
  27666. -- Macro: PUSH_ROUNDING (NPUSHED)
  27667. A C expression that is the number of bytes actually pushed onto the
  27668. stack when an instruction attempts to push NPUSHED bytes.
  27669. On some machines, the definition
  27670. #define PUSH_ROUNDING(BYTES) (BYTES)
  27671. will suffice. But on other machines, instructions that appear to
  27672. push one byte actually push two bytes in an attempt to maintain
  27673. alignment. Then the definition should be
  27674. #define PUSH_ROUNDING(BYTES) (((BYTES) + 1) & ~1)
  27675. If the value of this macro has a type, it should be an unsigned
  27676. type.
  27677. -- Macro: ACCUMULATE_OUTGOING_ARGS
  27678. A C expression. If nonzero, the maximum amount of space required
  27679. for outgoing arguments will be computed and placed into
  27680. 'crtl->outgoing_args_size'. No space will be pushed onto the stack
  27681. for each call; instead, the function prologue should increase the
  27682. stack frame size by this amount.
  27683. Setting both 'PUSH_ARGS' and 'ACCUMULATE_OUTGOING_ARGS' is not
  27684. proper.
  27685. -- Macro: REG_PARM_STACK_SPACE (FNDECL)
  27686. Define this macro if functions should assume that stack space has
  27687. been allocated for arguments even when their values are passed in
  27688. registers.
  27689. The value of this macro is the size, in bytes, of the area reserved
  27690. for arguments passed in registers for the function represented by
  27691. FNDECL, which can be zero if GCC is calling a library function.
  27692. The argument FNDECL can be the FUNCTION_DECL, or the type itself of
  27693. the function.
  27694. This space can be allocated by the caller, or be a part of the
  27695. machine-dependent stack frame: 'OUTGOING_REG_PARM_STACK_SPACE' says
  27696. which.
  27697. -- Macro: INCOMING_REG_PARM_STACK_SPACE (FNDECL)
  27698. Like 'REG_PARM_STACK_SPACE', but for incoming register arguments.
  27699. Define this macro if space guaranteed when compiling a function
  27700. body is different to space required when making a call, a situation
  27701. that can arise with K&R style function definitions.
  27702. -- Macro: OUTGOING_REG_PARM_STACK_SPACE (FNTYPE)
  27703. Define this to a nonzero value if it is the responsibility of the
  27704. caller to allocate the area reserved for arguments passed in
  27705. registers when calling a function of FNTYPE. FNTYPE may be NULL if
  27706. the function called is a library function.
  27707. If 'ACCUMULATE_OUTGOING_ARGS' is defined, this macro controls
  27708. whether the space for these arguments counts in the value of
  27709. 'crtl->outgoing_args_size'.
  27710. -- Macro: STACK_PARMS_IN_REG_PARM_AREA
  27711. Define this macro if 'REG_PARM_STACK_SPACE' is defined, but the
  27712. stack parameters don't skip the area specified by it.
  27713. Normally, when a parameter is not passed in registers, it is placed
  27714. on the stack beyond the 'REG_PARM_STACK_SPACE' area. Defining this
  27715. macro suppresses this behavior and causes the parameter to be
  27716. passed on the stack in its natural location.
  27717. -- Target Hook: poly_int64 TARGET_RETURN_POPS_ARGS (tree FUNDECL, tree
  27718. FUNTYPE, poly_int64 SIZE)
  27719. This target hook returns the number of bytes of its own arguments
  27720. that a function pops on returning, or 0 if the function pops no
  27721. arguments and the caller must therefore pop them all after the
  27722. function returns.
  27723. FUNDECL is a C variable whose value is a tree node that describes
  27724. the function in question. Normally it is a node of type
  27725. 'FUNCTION_DECL' that describes the declaration of the function.
  27726. From this you can obtain the 'DECL_ATTRIBUTES' of the function.
  27727. FUNTYPE is a C variable whose value is a tree node that describes
  27728. the function in question. Normally it is a node of type
  27729. 'FUNCTION_TYPE' that describes the data type of the function. From
  27730. this it is possible to obtain the data types of the value and
  27731. arguments (if known).
  27732. When a call to a library function is being considered, FUNDECL will
  27733. contain an identifier node for the library function. Thus, if you
  27734. need to distinguish among various library functions, you can do so
  27735. by their names. Note that "library function" in this context means
  27736. a function used to perform arithmetic, whose name is known
  27737. specially in the compiler and was not mentioned in the C code being
  27738. compiled.
  27739. SIZE is the number of bytes of arguments passed on the stack. If a
  27740. variable number of bytes is passed, it is zero, and argument
  27741. popping will always be the responsibility of the calling function.
  27742. On the VAX, all functions always pop their arguments, so the
  27743. definition of this macro is SIZE. On the 68000, using the standard
  27744. calling convention, no functions pop their arguments, so the value
  27745. of the macro is always 0 in this case. But an alternative calling
  27746. convention is available in which functions that take a fixed number
  27747. of arguments pop them but other functions (such as 'printf') pop
  27748. nothing (the caller pops all). When this convention is in use,
  27749. FUNTYPE is examined to determine whether a function takes a fixed
  27750. number of arguments.
  27751. -- Macro: CALL_POPS_ARGS (CUM)
  27752. A C expression that should indicate the number of bytes a call
  27753. sequence pops off the stack. It is added to the value of
  27754. 'RETURN_POPS_ARGS' when compiling a function call.
  27755. CUM is the variable in which all arguments to the called function
  27756. have been accumulated.
  27757. On certain architectures, such as the SH5, a call trampoline is
  27758. used that pops certain registers off the stack, depending on the
  27759. arguments that have been passed to the function. Since this is a
  27760. property of the call site, not of the called function,
  27761. 'RETURN_POPS_ARGS' is not appropriate.
  27762. 
  27763. File: gccint.info, Node: Register Arguments, Next: Scalar Return, Prev: Stack Arguments, Up: Stack and Calling
  27764. 18.9.7 Passing Arguments in Registers
  27765. -------------------------------------
  27766. This section describes the macros which let you control how various
  27767. types of arguments are passed in registers or how they are arranged in
  27768. the stack.
  27769. -- Target Hook: rtx TARGET_FUNCTION_ARG (cumulative_args_t CA, const
  27770. function_arg_info &ARG)
  27771. Return an RTX indicating whether function argument ARG is passed in
  27772. a register and if so, which register. Argument CA summarizes all
  27773. the previous arguments.
  27774. The return value is usually either a 'reg' RTX for the hard
  27775. register in which to pass the argument, or zero to pass the
  27776. argument on the stack.
  27777. The return value can be a 'const_int' which means argument is
  27778. passed in a target specific slot with specified number. Target
  27779. hooks should be used to store or load argument in such case. See
  27780. 'TARGET_STORE_BOUNDS_FOR_ARG' and 'TARGET_LOAD_BOUNDS_FOR_ARG' for
  27781. more information.
  27782. The value of the expression can also be a 'parallel' RTX. This is
  27783. used when an argument is passed in multiple locations. The mode of
  27784. the 'parallel' should be the mode of the entire argument. The
  27785. 'parallel' holds any number of 'expr_list' pairs; each one
  27786. describes where part of the argument is passed. In each
  27787. 'expr_list' the first operand must be a 'reg' RTX for the hard
  27788. register in which to pass this part of the argument, and the mode
  27789. of the register RTX indicates how large this part of the argument
  27790. is. The second operand of the 'expr_list' is a 'const_int' which
  27791. gives the offset in bytes into the entire argument of where this
  27792. part starts. As a special exception the first 'expr_list' in the
  27793. 'parallel' RTX may have a first operand of zero. This indicates
  27794. that the entire argument is also stored on the stack.
  27795. The last time this hook is called, it is called with 'MODE ==
  27796. VOIDmode', and its result is passed to the 'call' or 'call_value'
  27797. pattern as operands 2 and 3 respectively.
  27798. The usual way to make the ISO library 'stdarg.h' work on a machine
  27799. where some arguments are usually passed in registers, is to cause
  27800. nameless arguments to be passed on the stack instead. This is done
  27801. by making 'TARGET_FUNCTION_ARG' return 0 whenever NAMED is 'false'.
  27802. You may use the hook 'targetm.calls.must_pass_in_stack' in the
  27803. definition of this macro to determine if this argument is of a type
  27804. that must be passed in the stack. If 'REG_PARM_STACK_SPACE' is not
  27805. defined and 'TARGET_FUNCTION_ARG' returns nonzero for such an
  27806. argument, the compiler will abort. If 'REG_PARM_STACK_SPACE' is
  27807. defined, the argument will be computed in the stack and then loaded
  27808. into a register.
  27809. -- Target Hook: bool TARGET_MUST_PASS_IN_STACK (const function_arg_info
  27810. &ARG)
  27811. This target hook should return 'true' if we should not pass ARG
  27812. solely in registers. The file 'expr.h' defines a definition that
  27813. is usually appropriate, refer to 'expr.h' for additional
  27814. documentation.
  27815. -- Target Hook: rtx TARGET_FUNCTION_INCOMING_ARG (cumulative_args_t CA,
  27816. const function_arg_info &ARG)
  27817. Define this hook if the caller and callee on the target have
  27818. different views of where arguments are passed. Also define this
  27819. hook if there are functions that are never directly called, but are
  27820. invoked by the hardware and which have nonstandard calling
  27821. conventions.
  27822. In this case 'TARGET_FUNCTION_ARG' computes the register in which
  27823. the caller passes the value, and 'TARGET_FUNCTION_INCOMING_ARG'
  27824. should be defined in a similar fashion to tell the function being
  27825. called where the arguments will arrive.
  27826. 'TARGET_FUNCTION_INCOMING_ARG' can also return arbitrary address
  27827. computation using hard register, which can be forced into a
  27828. register, so that it can be used to pass special arguments.
  27829. If 'TARGET_FUNCTION_INCOMING_ARG' is not defined,
  27830. 'TARGET_FUNCTION_ARG' serves both purposes.
  27831. -- Target Hook: bool TARGET_USE_PSEUDO_PIC_REG (void)
  27832. This hook should return 1 in case pseudo register should be created
  27833. for pic_offset_table_rtx during function expand.
  27834. -- Target Hook: void TARGET_INIT_PIC_REG (void)
  27835. Perform a target dependent initialization of pic_offset_table_rtx.
  27836. This hook is called at the start of register allocation.
  27837. -- Target Hook: int TARGET_ARG_PARTIAL_BYTES (cumulative_args_t CUM,
  27838. const function_arg_info &ARG)
  27839. This target hook returns the number of bytes at the beginning of an
  27840. argument that must be put in registers. The value must be zero for
  27841. arguments that are passed entirely in registers or that are
  27842. entirely pushed on the stack.
  27843. On some machines, certain arguments must be passed partially in
  27844. registers and partially in memory. On these machines, typically
  27845. the first few words of arguments are passed in registers, and the
  27846. rest on the stack. If a multi-word argument (a 'double' or a
  27847. structure) crosses that boundary, its first few words must be
  27848. passed in registers and the rest must be pushed. This macro tells
  27849. the compiler when this occurs, and how many bytes should go in
  27850. registers.
  27851. 'TARGET_FUNCTION_ARG' for these arguments should return the first
  27852. register to be used by the caller for this argument; likewise
  27853. 'TARGET_FUNCTION_INCOMING_ARG', for the called function.
  27854. -- Target Hook: bool TARGET_PASS_BY_REFERENCE (cumulative_args_t CUM,
  27855. const function_arg_info &ARG)
  27856. This target hook should return 'true' if argument ARG at the
  27857. position indicated by CUM should be passed by reference. This
  27858. predicate is queried after target independent reasons for being
  27859. passed by reference, such as 'TREE_ADDRESSABLE (ARG.type)'.
  27860. If the hook returns true, a copy of that argument is made in memory
  27861. and a pointer to the argument is passed instead of the argument
  27862. itself. The pointer is passed in whatever way is appropriate for
  27863. passing a pointer to that type.
  27864. -- Target Hook: bool TARGET_CALLEE_COPIES (cumulative_args_t CUM, const
  27865. function_arg_info &ARG)
  27866. The function argument described by the parameters to this hook is
  27867. known to be passed by reference. The hook should return true if
  27868. the function argument should be copied by the callee instead of
  27869. copied by the caller.
  27870. For any argument for which the hook returns true, if it can be
  27871. determined that the argument is not modified, then a copy need not
  27872. be generated.
  27873. The default version of this hook always returns false.
  27874. -- Macro: CUMULATIVE_ARGS
  27875. A C type for declaring a variable that is used as the first
  27876. argument of 'TARGET_FUNCTION_ARG' and other related values. For
  27877. some target machines, the type 'int' suffices and can hold the
  27878. number of bytes of argument so far.
  27879. There is no need to record in 'CUMULATIVE_ARGS' anything about the
  27880. arguments that have been passed on the stack. The compiler has
  27881. other variables to keep track of that. For target machines on
  27882. which all arguments are passed on the stack, there is no need to
  27883. store anything in 'CUMULATIVE_ARGS'; however, the data structure
  27884. must exist and should not be empty, so use 'int'.
  27885. -- Macro: OVERRIDE_ABI_FORMAT (FNDECL)
  27886. If defined, this macro is called before generating any code for a
  27887. function, but after the CFUN descriptor for the function has been
  27888. created. The back end may use this macro to update CFUN to reflect
  27889. an ABI other than that which would normally be used by default. If
  27890. the compiler is generating code for a compiler-generated function,
  27891. FNDECL may be 'NULL'.
  27892. -- Macro: INIT_CUMULATIVE_ARGS (CUM, FNTYPE, LIBNAME, FNDECL,
  27893. N_NAMED_ARGS)
  27894. A C statement (sans semicolon) for initializing the variable CUM
  27895. for the state at the beginning of the argument list. The variable
  27896. has type 'CUMULATIVE_ARGS'. The value of FNTYPE is the tree node
  27897. for the data type of the function which will receive the args, or 0
  27898. if the args are to a compiler support library function. For direct
  27899. calls that are not libcalls, FNDECL contain the declaration node of
  27900. the function. FNDECL is also set when 'INIT_CUMULATIVE_ARGS' is
  27901. used to find arguments for the function being compiled.
  27902. N_NAMED_ARGS is set to the number of named arguments, including a
  27903. structure return address if it is passed as a parameter, when
  27904. making a call. When processing incoming arguments, N_NAMED_ARGS is
  27905. set to -1.
  27906. When processing a call to a compiler support library function,
  27907. LIBNAME identifies which one. It is a 'symbol_ref' rtx which
  27908. contains the name of the function, as a string. LIBNAME is 0 when
  27909. an ordinary C function call is being processed. Thus, each time
  27910. this macro is called, either LIBNAME or FNTYPE is nonzero, but
  27911. never both of them at once.
  27912. -- Macro: INIT_CUMULATIVE_LIBCALL_ARGS (CUM, MODE, LIBNAME)
  27913. Like 'INIT_CUMULATIVE_ARGS' but only used for outgoing libcalls, it
  27914. gets a 'MODE' argument instead of FNTYPE, that would be 'NULL'.
  27915. INDIRECT would always be zero, too. If this macro is not defined,
  27916. 'INIT_CUMULATIVE_ARGS (cum, NULL_RTX, libname, 0)' is used instead.
  27917. -- Macro: INIT_CUMULATIVE_INCOMING_ARGS (CUM, FNTYPE, LIBNAME)
  27918. Like 'INIT_CUMULATIVE_ARGS' but overrides it for the purposes of
  27919. finding the arguments for the function being compiled. If this
  27920. macro is undefined, 'INIT_CUMULATIVE_ARGS' is used instead.
  27921. The value passed for LIBNAME is always 0, since library routines
  27922. with special calling conventions are never compiled with GCC. The
  27923. argument LIBNAME exists for symmetry with 'INIT_CUMULATIVE_ARGS'.
  27924. -- Target Hook: void TARGET_FUNCTION_ARG_ADVANCE (cumulative_args_t CA,
  27925. const function_arg_info &ARG)
  27926. This hook updates the summarizer variable pointed to by CA to
  27927. advance past argument ARG in the argument list. Once this is done,
  27928. the variable CUM is suitable for analyzing the _following_ argument
  27929. with 'TARGET_FUNCTION_ARG', etc.
  27930. This hook need not do anything if the argument in question was
  27931. passed on the stack. The compiler knows how to track the amount of
  27932. stack space used for arguments without any special help.
  27933. -- Target Hook: HOST_WIDE_INT TARGET_FUNCTION_ARG_OFFSET (machine_mode
  27934. MODE, const_tree TYPE)
  27935. This hook returns the number of bytes to add to the offset of an
  27936. argument of type TYPE and mode MODE when passed in memory. This is
  27937. needed for the SPU, which passes 'char' and 'short' arguments in
  27938. the preferred slot that is in the middle of the quad word instead
  27939. of starting at the top. The default implementation returns 0.
  27940. -- Target Hook: pad_direction TARGET_FUNCTION_ARG_PADDING (machine_mode
  27941. MODE, const_tree TYPE)
  27942. This hook determines whether, and in which direction, to pad out an
  27943. argument of mode MODE and type TYPE. It returns 'PAD_UPWARD' to
  27944. insert padding above the argument, 'PAD_DOWNWARD' to insert padding
  27945. below the argument, or 'PAD_NONE' to inhibit padding.
  27946. The _amount_ of padding is not controlled by this hook, but by
  27947. 'TARGET_FUNCTION_ARG_ROUND_BOUNDARY'. It is always just enough to
  27948. reach the next multiple of that boundary.
  27949. This hook has a default definition that is right for most systems.
  27950. For little-endian machines, the default is to pad upward. For
  27951. big-endian machines, the default is to pad downward for an argument
  27952. of constant size shorter than an 'int', and upward otherwise.
  27953. -- Macro: PAD_VARARGS_DOWN
  27954. If defined, a C expression which determines whether the default
  27955. implementation of va_arg will attempt to pad down before reading
  27956. the next argument, if that argument is smaller than its aligned
  27957. space as controlled by 'PARM_BOUNDARY'. If this macro is not
  27958. defined, all such arguments are padded down if 'BYTES_BIG_ENDIAN'
  27959. is true.
  27960. -- Macro: BLOCK_REG_PADDING (MODE, TYPE, FIRST)
  27961. Specify padding for the last element of a block move between
  27962. registers and memory. FIRST is nonzero if this is the only
  27963. element. Defining this macro allows better control of register
  27964. function parameters on big-endian machines, without using
  27965. 'PARALLEL' rtl. In particular, 'MUST_PASS_IN_STACK' need not test
  27966. padding and mode of types in registers, as there is no longer a
  27967. "wrong" part of a register; For example, a three byte aggregate may
  27968. be passed in the high part of a register if so required.
  27969. -- Target Hook: unsigned int TARGET_FUNCTION_ARG_BOUNDARY (machine_mode
  27970. MODE, const_tree TYPE)
  27971. This hook returns the alignment boundary, in bits, of an argument
  27972. with the specified mode and type. The default hook returns
  27973. 'PARM_BOUNDARY' for all arguments.
  27974. -- Target Hook: unsigned int TARGET_FUNCTION_ARG_ROUND_BOUNDARY
  27975. (machine_mode MODE, const_tree TYPE)
  27976. Normally, the size of an argument is rounded up to 'PARM_BOUNDARY',
  27977. which is the default value for this hook. You can define this hook
  27978. to return a different value if an argument size must be rounded to
  27979. a larger value.
  27980. -- Macro: FUNCTION_ARG_REGNO_P (REGNO)
  27981. A C expression that is nonzero if REGNO is the number of a hard
  27982. register in which function arguments are sometimes passed. This
  27983. does _not_ include implicit arguments such as the static chain and
  27984. the structure-value address. On many machines, no registers can be
  27985. used for this purpose since all function arguments are pushed on
  27986. the stack.
  27987. -- Target Hook: bool TARGET_SPLIT_COMPLEX_ARG (const_tree TYPE)
  27988. This hook should return true if parameter of type TYPE are passed
  27989. as two scalar parameters. By default, GCC will attempt to pack
  27990. complex arguments into the target's word size. Some ABIs require
  27991. complex arguments to be split and treated as their individual
  27992. components. For example, on AIX64, complex floats should be passed
  27993. in a pair of floating point registers, even though a complex float
  27994. would fit in one 64-bit floating point register.
  27995. The default value of this hook is 'NULL', which is treated as
  27996. always false.
  27997. -- Target Hook: tree TARGET_BUILD_BUILTIN_VA_LIST (void)
  27998. This hook returns a type node for 'va_list' for the target. The
  27999. default version of the hook returns 'void*'.
  28000. -- Target Hook: int TARGET_ENUM_VA_LIST_P (int IDX, const char **PNAME,
  28001. tree *PTREE)
  28002. This target hook is used in function 'c_common_nodes_and_builtins'
  28003. to iterate through the target specific builtin types for va_list.
  28004. The variable IDX is used as iterator. PNAME has to be a pointer to
  28005. a 'const char *' and PTREE a pointer to a 'tree' typed variable.
  28006. The arguments PNAME and PTREE are used to store the result of this
  28007. macro and are set to the name of the va_list builtin type and its
  28008. internal type. If the return value of this macro is zero, then
  28009. there is no more element. Otherwise the IDX should be increased
  28010. for the next call of this macro to iterate through all types.
  28011. -- Target Hook: tree TARGET_FN_ABI_VA_LIST (tree FNDECL)
  28012. This hook returns the va_list type of the calling convention
  28013. specified by FNDECL. The default version of this hook returns
  28014. 'va_list_type_node'.
  28015. -- Target Hook: tree TARGET_CANONICAL_VA_LIST_TYPE (tree TYPE)
  28016. This hook returns the va_list type of the calling convention
  28017. specified by the type of TYPE. If TYPE is not a valid va_list
  28018. type, it returns 'NULL_TREE'.
  28019. -- Target Hook: tree TARGET_GIMPLIFY_VA_ARG_EXPR (tree VALIST, tree
  28020. TYPE, gimple_seq *PRE_P, gimple_seq *POST_P)
  28021. This hook performs target-specific gimplification of 'VA_ARG_EXPR'.
  28022. The first two parameters correspond to the arguments to 'va_arg';
  28023. the latter two are as in 'gimplify.c:gimplify_expr'.
  28024. -- Target Hook: bool TARGET_VALID_POINTER_MODE (scalar_int_mode MODE)
  28025. Define this to return nonzero if the port can handle pointers with
  28026. machine mode MODE. The default version of this hook returns true
  28027. for both 'ptr_mode' and 'Pmode'.
  28028. -- Target Hook: bool TARGET_REF_MAY_ALIAS_ERRNO (ao_ref *REF)
  28029. Define this to return nonzero if the memory reference REF may alias
  28030. with the system C library errno location. The default version of
  28031. this hook assumes the system C library errno location is either a
  28032. declaration of type int or accessed by dereferencing a pointer to
  28033. int.
  28034. -- Target Hook: machine_mode TARGET_TRANSLATE_MODE_ATTRIBUTE
  28035. (machine_mode MODE)
  28036. Define this hook if during mode attribute processing, the port
  28037. should translate machine_mode MODE to another mode. For example,
  28038. rs6000's 'KFmode', when it is the same as 'TFmode'.
  28039. The default version of the hook returns that mode that was passed
  28040. in.
  28041. -- Target Hook: bool TARGET_SCALAR_MODE_SUPPORTED_P (scalar_mode MODE)
  28042. Define this to return nonzero if the port is prepared to handle
  28043. insns involving scalar mode MODE. For a scalar mode to be
  28044. considered supported, all the basic arithmetic and comparisons must
  28045. work.
  28046. The default version of this hook returns true for any mode required
  28047. to handle the basic C types (as defined by the port). Included
  28048. here are the double-word arithmetic supported by the code in
  28049. 'optabs.c'.
  28050. -- Target Hook: bool TARGET_VECTOR_MODE_SUPPORTED_P (machine_mode MODE)
  28051. Define this to return nonzero if the port is prepared to handle
  28052. insns involving vector mode MODE. At the very least, it must have
  28053. move patterns for this mode.
  28054. -- Target Hook: bool TARGET_COMPATIBLE_VECTOR_TYPES_P (const_tree
  28055. TYPE1, const_tree TYPE2)
  28056. Return true if there is no target-specific reason for treating
  28057. vector types TYPE1 and TYPE2 as distinct types. The caller has
  28058. already checked for target-independent reasons, meaning that the
  28059. types are known to have the same mode, to have the same number of
  28060. elements, and to have what the caller considers to be compatible
  28061. element types.
  28062. The main reason for defining this hook is to reject pairs of types
  28063. that are handled differently by the target's calling convention.
  28064. For example, when a new N-bit vector architecture is added to a
  28065. target, the target may want to handle normal N-bit 'VECTOR_TYPE'
  28066. arguments and return values in the same way as before, to maintain
  28067. backwards compatibility. However, it may also provide new,
  28068. architecture-specific 'VECTOR_TYPE's that are passed and returned
  28069. in a more efficient way. It is then important to maintain a
  28070. distinction between the "normal" 'VECTOR_TYPE's and the new
  28071. architecture-specific ones.
  28072. The default implementation returns true, which is correct for most
  28073. targets.
  28074. -- Target Hook: opt_machine_mode TARGET_ARRAY_MODE (machine_mode MODE,
  28075. unsigned HOST_WIDE_INT NELEMS)
  28076. Return the mode that GCC should use for an array that has NELEMS
  28077. elements, with each element having mode MODE. Return no mode if
  28078. the target has no special requirements. In the latter case, GCC
  28079. looks for an integer mode of the appropriate size if available and
  28080. uses BLKmode otherwise. Usually the search for the integer mode is
  28081. limited to 'MAX_FIXED_MODE_SIZE', but the
  28082. 'TARGET_ARRAY_MODE_SUPPORTED_P' hook allows a larger mode to be
  28083. used in specific cases.
  28084. The main use of this hook is to specify that an array of vectors
  28085. should also have a vector mode. The default implementation returns
  28086. no mode.
  28087. -- Target Hook: bool TARGET_ARRAY_MODE_SUPPORTED_P (machine_mode MODE,
  28088. unsigned HOST_WIDE_INT NELEMS)
  28089. Return true if GCC should try to use a scalar mode to store an
  28090. array of NELEMS elements, given that each element has mode MODE.
  28091. Returning true here overrides the usual 'MAX_FIXED_MODE' limit and
  28092. allows GCC to use any defined integer mode.
  28093. One use of this hook is to support vector load and store operations
  28094. that operate on several homogeneous vectors. For example, ARM NEON
  28095. has operations like:
  28096. int8x8x3_t vld3_s8 (const int8_t *)
  28097. where the return type is defined as:
  28098. typedef struct int8x8x3_t
  28099. {
  28100. int8x8_t val[3];
  28101. } int8x8x3_t;
  28102. If this hook allows 'val' to have a scalar mode, then 'int8x8x3_t'
  28103. can have the same mode. GCC can then store 'int8x8x3_t's in
  28104. registers rather than forcing them onto the stack.
  28105. -- Target Hook: bool TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P
  28106. (scalar_float_mode MODE)
  28107. Define this to return nonzero if libgcc provides support for the
  28108. floating-point mode MODE, which is known to pass
  28109. 'TARGET_SCALAR_MODE_SUPPORTED_P'. The default version of this hook
  28110. returns true for all of 'SFmode', 'DFmode', 'XFmode' and 'TFmode',
  28111. if such modes exist.
  28112. -- Target Hook: opt_scalar_float_mode TARGET_FLOATN_MODE (int N, bool
  28113. EXTENDED)
  28114. Define this to return the machine mode to use for the type
  28115. '_FloatN', if EXTENDED is false, or the type '_FloatNx', if
  28116. EXTENDED is true. If such a type is not supported, return
  28117. 'opt_scalar_float_mode ()'. The default version of this hook
  28118. returns 'SFmode' for '_Float32', 'DFmode' for '_Float64' and
  28119. '_Float32x' and 'TFmode' for '_Float128', if those modes exist and
  28120. satisfy the requirements for those types and pass
  28121. 'TARGET_SCALAR_MODE_SUPPORTED_P' and
  28122. 'TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P'; for '_Float64x', it
  28123. returns the first of 'XFmode' and 'TFmode' that exists and
  28124. satisfies the same requirements; for other types, it returns
  28125. 'opt_scalar_float_mode ()'. The hook is only called for values of
  28126. N and EXTENDED that are valid according to ISO/IEC TS 18661-3:2015;
  28127. that is, N is one of 32, 64, 128, or, if EXTENDED is false, 16 or
  28128. greater than 128 and a multiple of 32.
  28129. -- Target Hook: bool TARGET_FLOATN_BUILTIN_P (int FUNC)
  28130. Define this to return true if the '_FloatN' and '_FloatNx' built-in
  28131. functions should implicitly enable the built-in function without
  28132. the '__builtin_' prefix in addition to the normal built-in function
  28133. with the '__builtin_' prefix. The default is to only enable
  28134. built-in functions without the '__builtin_' prefix for the GNU C
  28135. langauge. In strict ANSI/ISO mode, the built-in function without
  28136. the '__builtin_' prefix is not enabled. The argument 'FUNC' is the
  28137. 'enum built_in_function' id of the function to be enabled.
  28138. -- Target Hook: bool TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P
  28139. (machine_mode MODE)
  28140. Define this to return nonzero for machine modes for which the port
  28141. has small register classes. If this target hook returns nonzero
  28142. for a given MODE, the compiler will try to minimize the lifetime of
  28143. registers in MODE. The hook may be called with 'VOIDmode' as
  28144. argument. In this case, the hook is expected to return nonzero if
  28145. it returns nonzero for any mode.
  28146. On some machines, it is risky to let hard registers live across
  28147. arbitrary insns. Typically, these machines have instructions that
  28148. require values to be in specific registers (like an accumulator),
  28149. and reload will fail if the required hard register is used for
  28150. another purpose across such an insn.
  28151. Passes before reload do not know which hard registers will be used
  28152. in an instruction, but the machine modes of the registers set or
  28153. used in the instruction are already known. And for some machines,
  28154. register classes are small for, say, integer registers but not for
  28155. floating point registers. For example, the AMD x86-64 architecture
  28156. requires specific registers for the legacy x86 integer
  28157. instructions, but there are many SSE registers for floating point
  28158. operations. On such targets, a good strategy may be to return
  28159. nonzero from this hook for 'INTEGRAL_MODE_P' machine modes but zero
  28160. for the SSE register classes.
  28161. The default version of this hook returns false for any mode. It is
  28162. always safe to redefine this hook to return with a nonzero value.
  28163. But if you unnecessarily define it, you will reduce the amount of
  28164. optimizations that can be performed in some cases. If you do not
  28165. define this hook to return a nonzero value when it is required, the
  28166. compiler will run out of spill registers and print a fatal error
  28167. message.
  28168. 
  28169. File: gccint.info, Node: Scalar Return, Next: Aggregate Return, Prev: Register Arguments, Up: Stack and Calling
  28170. 18.9.8 How Scalar Function Values Are Returned
  28171. ----------------------------------------------
  28172. This section discusses the macros that control returning scalars as
  28173. values--values that can fit in registers.
  28174. -- Target Hook: rtx TARGET_FUNCTION_VALUE (const_tree RET_TYPE,
  28175. const_tree FN_DECL_OR_TYPE, bool OUTGOING)
  28176. Define this to return an RTX representing the place where a
  28177. function returns or receives a value of data type RET_TYPE, a tree
  28178. node representing a data type. FN_DECL_OR_TYPE is a tree node
  28179. representing 'FUNCTION_DECL' or 'FUNCTION_TYPE' of a function being
  28180. called. If OUTGOING is false, the hook should compute the register
  28181. in which the caller will see the return value. Otherwise, the hook
  28182. should return an RTX representing the place where a function
  28183. returns a value.
  28184. On many machines, only 'TYPE_MODE (RET_TYPE)' is relevant.
  28185. (Actually, on most machines, scalar values are returned in the same
  28186. place regardless of mode.) The value of the expression is usually
  28187. a 'reg' RTX for the hard register where the return value is stored.
  28188. The value can also be a 'parallel' RTX, if the return value is in
  28189. multiple places. See 'TARGET_FUNCTION_ARG' for an explanation of
  28190. the 'parallel' form. Note that the callee will populate every
  28191. location specified in the 'parallel', but if the first element of
  28192. the 'parallel' contains the whole return value, callers will use
  28193. that element as the canonical location and ignore the others. The
  28194. m68k port uses this type of 'parallel' to return pointers in both
  28195. '%a0' (the canonical location) and '%d0'.
  28196. If 'TARGET_PROMOTE_FUNCTION_RETURN' returns true, you must apply
  28197. the same promotion rules specified in 'PROMOTE_MODE' if VALTYPE is
  28198. a scalar type.
  28199. If the precise function being called is known, FUNC is a tree node
  28200. ('FUNCTION_DECL') for it; otherwise, FUNC is a null pointer. This
  28201. makes it possible to use a different value-returning convention for
  28202. specific functions when all their calls are known.
  28203. Some target machines have "register windows" so that the register
  28204. in which a function returns its value is not the same as the one in
  28205. which the caller sees the value. For such machines, you should
  28206. return different RTX depending on OUTGOING.
  28207. 'TARGET_FUNCTION_VALUE' is not used for return values with
  28208. aggregate data types, because these are returned in another way.
  28209. See 'TARGET_STRUCT_VALUE_RTX' and related macros, below.
  28210. -- Macro: FUNCTION_VALUE (VALTYPE, FUNC)
  28211. This macro has been deprecated. Use 'TARGET_FUNCTION_VALUE' for a
  28212. new target instead.
  28213. -- Macro: LIBCALL_VALUE (MODE)
  28214. A C expression to create an RTX representing the place where a
  28215. library function returns a value of mode MODE.
  28216. Note that "library function" in this context means a compiler
  28217. support routine, used to perform arithmetic, whose name is known
  28218. specially by the compiler and was not mentioned in the C code being
  28219. compiled.
  28220. -- Target Hook: rtx TARGET_LIBCALL_VALUE (machine_mode MODE, const_rtx
  28221. FUN)
  28222. Define this hook if the back-end needs to know the name of the
  28223. libcall function in order to determine where the result should be
  28224. returned.
  28225. The mode of the result is given by MODE and the name of the called
  28226. library function is given by FUN. The hook should return an RTX
  28227. representing the place where the library function result will be
  28228. returned.
  28229. If this hook is not defined, then LIBCALL_VALUE will be used.
  28230. -- Macro: FUNCTION_VALUE_REGNO_P (REGNO)
  28231. A C expression that is nonzero if REGNO is the number of a hard
  28232. register in which the values of called function may come back.
  28233. A register whose use for returning values is limited to serving as
  28234. the second of a pair (for a value of type 'double', say) need not
  28235. be recognized by this macro. So for most machines, this definition
  28236. suffices:
  28237. #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0)
  28238. If the machine has register windows, so that the caller and the
  28239. called function use different registers for the return value, this
  28240. macro should recognize only the caller's register numbers.
  28241. This macro has been deprecated. Use
  28242. 'TARGET_FUNCTION_VALUE_REGNO_P' for a new target instead.
  28243. -- Target Hook: bool TARGET_FUNCTION_VALUE_REGNO_P (const unsigned int
  28244. REGNO)
  28245. A target hook that return 'true' if REGNO is the number of a hard
  28246. register in which the values of called function may come back.
  28247. A register whose use for returning values is limited to serving as
  28248. the second of a pair (for a value of type 'double', say) need not
  28249. be recognized by this target hook.
  28250. If the machine has register windows, so that the caller and the
  28251. called function use different registers for the return value, this
  28252. target hook should recognize only the caller's register numbers.
  28253. If this hook is not defined, then FUNCTION_VALUE_REGNO_P will be
  28254. used.
  28255. -- Macro: APPLY_RESULT_SIZE
  28256. Define this macro if 'untyped_call' and 'untyped_return' need more
  28257. space than is implied by 'FUNCTION_VALUE_REGNO_P' for saving and
  28258. restoring an arbitrary return value.
  28259. -- Target Hook: bool TARGET_OMIT_STRUCT_RETURN_REG
  28260. Normally, when a function returns a structure by memory, the
  28261. address is passed as an invisible pointer argument, but the
  28262. compiler also arranges to return the address from the function like
  28263. it would a normal pointer return value. Define this to true if
  28264. that behavior is undesirable on your target.
  28265. -- Target Hook: bool TARGET_RETURN_IN_MSB (const_tree TYPE)
  28266. This hook should return true if values of type TYPE are returned at
  28267. the most significant end of a register (in other words, if they are
  28268. padded at the least significant end). You can assume that TYPE is
  28269. returned in a register; the caller is required to check this.
  28270. Note that the register provided by 'TARGET_FUNCTION_VALUE' must be
  28271. able to hold the complete return value. For example, if a 1-, 2-
  28272. or 3-byte structure is returned at the most significant end of a
  28273. 4-byte register, 'TARGET_FUNCTION_VALUE' should provide an 'SImode'
  28274. rtx.
  28275. 
  28276. File: gccint.info, Node: Aggregate Return, Next: Caller Saves, Prev: Scalar Return, Up: Stack and Calling
  28277. 18.9.9 How Large Values Are Returned
  28278. ------------------------------------
  28279. When a function value's mode is 'BLKmode' (and in some other cases), the
  28280. value is not returned according to 'TARGET_FUNCTION_VALUE' (*note Scalar
  28281. Return::). Instead, the caller passes the address of a block of memory
  28282. in which the value should be stored. This address is called the
  28283. "structure value address".
  28284. This section describes how to control returning structure values in
  28285. memory.
  28286. -- Target Hook: bool TARGET_RETURN_IN_MEMORY (const_tree TYPE,
  28287. const_tree FNTYPE)
  28288. This target hook should return a nonzero value to say to return the
  28289. function value in memory, just as large structures are always
  28290. returned. Here TYPE will be the data type of the value, and FNTYPE
  28291. will be the type of the function doing the returning, or 'NULL' for
  28292. libcalls.
  28293. Note that values of mode 'BLKmode' must be explicitly handled by
  28294. this function. Also, the option '-fpcc-struct-return' takes effect
  28295. regardless of this macro. On most systems, it is possible to leave
  28296. the hook undefined; this causes a default definition to be used,
  28297. whose value is the constant 1 for 'BLKmode' values, and 0
  28298. otherwise.
  28299. Do not use this hook to indicate that structures and unions should
  28300. always be returned in memory. You should instead use
  28301. 'DEFAULT_PCC_STRUCT_RETURN' to indicate this.
  28302. -- Macro: DEFAULT_PCC_STRUCT_RETURN
  28303. Define this macro to be 1 if all structure and union return values
  28304. must be in memory. Since this results in slower code, this should
  28305. be defined only if needed for compatibility with other compilers or
  28306. with an ABI. If you define this macro to be 0, then the
  28307. conventions used for structure and union return values are decided
  28308. by the 'TARGET_RETURN_IN_MEMORY' target hook.
  28309. If not defined, this defaults to the value 1.
  28310. -- Target Hook: rtx TARGET_STRUCT_VALUE_RTX (tree FNDECL, int INCOMING)
  28311. This target hook should return the location of the structure value
  28312. address (normally a 'mem' or 'reg'), or 0 if the address is passed
  28313. as an "invisible" first argument. Note that FNDECL may be 'NULL',
  28314. for libcalls. You do not need to define this target hook if the
  28315. address is always passed as an "invisible" first argument.
  28316. On some architectures the place where the structure value address
  28317. is found by the called function is not the same place that the
  28318. caller put it. This can be due to register windows, or it could be
  28319. because the function prologue moves it to a different place.
  28320. INCOMING is '1' or '2' when the location is needed in the context
  28321. of the called function, and '0' in the context of the caller.
  28322. If INCOMING is nonzero and the address is to be found on the stack,
  28323. return a 'mem' which refers to the frame pointer. If INCOMING is
  28324. '2', the result is being used to fetch the structure value address
  28325. at the beginning of a function. If you need to emit adjusting
  28326. code, you should do it at this point.
  28327. -- Macro: PCC_STATIC_STRUCT_RETURN
  28328. Define this macro if the usual system convention on the target
  28329. machine for returning structures and unions is for the called
  28330. function to return the address of a static variable containing the
  28331. value.
  28332. Do not define this if the usual system convention is for the caller
  28333. to pass an address to the subroutine.
  28334. This macro has effect in '-fpcc-struct-return' mode, but it does
  28335. nothing when you use '-freg-struct-return' mode.
  28336. -- Target Hook: fixed_size_mode TARGET_GET_RAW_RESULT_MODE (int REGNO)
  28337. This target hook returns the mode to be used when accessing raw
  28338. return registers in '__builtin_return'. Define this macro if the
  28339. value in REG_RAW_MODE is not correct.
  28340. -- Target Hook: fixed_size_mode TARGET_GET_RAW_ARG_MODE (int REGNO)
  28341. This target hook returns the mode to be used when accessing raw
  28342. argument registers in '__builtin_apply_args'. Define this macro if
  28343. the value in REG_RAW_MODE is not correct.
  28344. -- Target Hook: bool TARGET_EMPTY_RECORD_P (const_tree TYPE)
  28345. This target hook returns true if the type is an empty record. The
  28346. default is to return 'false'.
  28347. -- Target Hook: void TARGET_WARN_PARAMETER_PASSING_ABI
  28348. (cumulative_args_t CA, tree TYPE)
  28349. This target hook warns about the change in empty class parameter
  28350. passing ABI.
  28351. 
  28352. File: gccint.info, Node: Caller Saves, Next: Function Entry, Prev: Aggregate Return, Up: Stack and Calling
  28353. 18.9.10 Caller-Saves Register Allocation
  28354. ----------------------------------------
  28355. If you enable it, GCC can save registers around function calls. This
  28356. makes it possible to use call-clobbered registers to hold variables that
  28357. must live across calls.
  28358. -- Macro: HARD_REGNO_CALLER_SAVE_MODE (REGNO, NREGS)
  28359. A C expression specifying which mode is required for saving NREGS
  28360. of a pseudo-register in call-clobbered hard register REGNO. If
  28361. REGNO is unsuitable for caller save, 'VOIDmode' should be returned.
  28362. For most machines this macro need not be defined since GCC will
  28363. select the smallest suitable mode.
  28364. 
  28365. File: gccint.info, Node: Function Entry, Next: Profiling, Prev: Caller Saves, Up: Stack and Calling
  28366. 18.9.11 Function Entry and Exit
  28367. -------------------------------
  28368. This section describes the macros that output function entry
  28369. ("prologue") and exit ("epilogue") code.
  28370. -- Target Hook: void TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY (FILE
  28371. *FILE, unsigned HOST_WIDE_INT PATCH_AREA_SIZE, bool RECORD_P)
  28372. Generate a patchable area at the function start, consisting of
  28373. PATCH_AREA_SIZE NOP instructions. If the target supports named
  28374. sections and if RECORD_P is true, insert a pointer to the current
  28375. location in the table of patchable functions. The default
  28376. implementation of the hook places the table of pointers in the
  28377. special section named '__patchable_function_entries'.
  28378. -- Target Hook: void TARGET_ASM_FUNCTION_PROLOGUE (FILE *FILE)
  28379. If defined, a function that outputs the assembler code for entry to
  28380. a function. The prologue is responsible for setting up the stack
  28381. frame, initializing the frame pointer register, saving registers
  28382. that must be saved, and allocating SIZE additional bytes of storage
  28383. for the local variables. FILE is a stdio stream to which the
  28384. assembler code should be output.
  28385. The label for the beginning of the function need not be output by
  28386. this macro. That has already been done when the macro is run.
  28387. To determine which registers to save, the macro can refer to the
  28388. array 'regs_ever_live': element R is nonzero if hard register R is
  28389. used anywhere within the function. This implies the function
  28390. prologue should save register R, provided it is not one of the
  28391. call-used registers. ('TARGET_ASM_FUNCTION_EPILOGUE' must likewise
  28392. use 'regs_ever_live'.)
  28393. On machines that have "register windows", the function entry code
  28394. does not save on the stack the registers that are in the windows,
  28395. even if they are supposed to be preserved by function calls;
  28396. instead it takes appropriate steps to "push" the register stack, if
  28397. any non-call-used registers are used in the function.
  28398. On machines where functions may or may not have frame-pointers, the
  28399. function entry code must vary accordingly; it must set up the frame
  28400. pointer if one is wanted, and not otherwise. To determine whether
  28401. a frame pointer is in wanted, the macro can refer to the variable
  28402. 'frame_pointer_needed'. The variable's value will be 1 at run time
  28403. in a function that needs a frame pointer. *Note Elimination::.
  28404. The function entry code is responsible for allocating any stack
  28405. space required for the function. This stack space consists of the
  28406. regions listed below. In most cases, these regions are allocated
  28407. in the order listed, with the last listed region closest to the top
  28408. of the stack (the lowest address if 'STACK_GROWS_DOWNWARD' is
  28409. defined, and the highest address if it is not defined). You can
  28410. use a different order for a machine if doing so is more convenient
  28411. or required for compatibility reasons. Except in cases where
  28412. required by standard or by a debugger, there is no reason why the
  28413. stack layout used by GCC need agree with that used by other
  28414. compilers for a machine.
  28415. -- Target Hook: void TARGET_ASM_FUNCTION_END_PROLOGUE (FILE *FILE)
  28416. If defined, a function that outputs assembler code at the end of a
  28417. prologue. This should be used when the function prologue is being
  28418. emitted as RTL, and you have some extra assembler that needs to be
  28419. emitted. *Note prologue instruction pattern::.
  28420. -- Target Hook: void TARGET_ASM_FUNCTION_BEGIN_EPILOGUE (FILE *FILE)
  28421. If defined, a function that outputs assembler code at the start of
  28422. an epilogue. This should be used when the function epilogue is
  28423. being emitted as RTL, and you have some extra assembler that needs
  28424. to be emitted. *Note epilogue instruction pattern::.
  28425. -- Target Hook: void TARGET_ASM_FUNCTION_EPILOGUE (FILE *FILE)
  28426. If defined, a function that outputs the assembler code for exit
  28427. from a function. The epilogue is responsible for restoring the
  28428. saved registers and stack pointer to their values when the function
  28429. was called, and returning control to the caller. This macro takes
  28430. the same argument as the macro 'TARGET_ASM_FUNCTION_PROLOGUE', and
  28431. the registers to restore are determined from 'regs_ever_live' and
  28432. 'CALL_USED_REGISTERS' in the same way.
  28433. On some machines, there is a single instruction that does all the
  28434. work of returning from the function. On these machines, give that
  28435. instruction the name 'return' and do not define the macro
  28436. 'TARGET_ASM_FUNCTION_EPILOGUE' at all.
  28437. Do not define a pattern named 'return' if you want the
  28438. 'TARGET_ASM_FUNCTION_EPILOGUE' to be used. If you want the target
  28439. switches to control whether return instructions or epilogues are
  28440. used, define a 'return' pattern with a validity condition that
  28441. tests the target switches appropriately. If the 'return' pattern's
  28442. validity condition is false, epilogues will be used.
  28443. On machines where functions may or may not have frame-pointers, the
  28444. function exit code must vary accordingly. Sometimes the code for
  28445. these two cases is completely different. To determine whether a
  28446. frame pointer is wanted, the macro can refer to the variable
  28447. 'frame_pointer_needed'. The variable's value will be 1 when
  28448. compiling a function that needs a frame pointer.
  28449. Normally, 'TARGET_ASM_FUNCTION_PROLOGUE' and
  28450. 'TARGET_ASM_FUNCTION_EPILOGUE' must treat leaf functions specially.
  28451. The C variable 'current_function_is_leaf' is nonzero for such a
  28452. function. *Note Leaf Functions::.
  28453. On some machines, some functions pop their arguments on exit while
  28454. others leave that for the caller to do. For example, the 68020
  28455. when given '-mrtd' pops arguments in functions that take a fixed
  28456. number of arguments.
  28457. Your definition of the macro 'RETURN_POPS_ARGS' decides which
  28458. functions pop their own arguments. 'TARGET_ASM_FUNCTION_EPILOGUE'
  28459. needs to know what was decided. The number of bytes of the current
  28460. function's arguments that this function should pop is available in
  28461. 'crtl->args.pops_args'. *Note Scalar Return::.
  28462. * A region of 'crtl->args.pretend_args_size' bytes of uninitialized
  28463. space just underneath the first argument arriving on the stack.
  28464. (This may not be at the very start of the allocated stack region if
  28465. the calling sequence has pushed anything else since pushing the
  28466. stack arguments. But usually, on such machines, nothing else has
  28467. been pushed yet, because the function prologue itself does all the
  28468. pushing.) This region is used on machines where an argument may be
  28469. passed partly in registers and partly in memory, and, in some cases
  28470. to support the features in '<stdarg.h>'.
  28471. * An area of memory used to save certain registers used by the
  28472. function. The size of this area, which may also include space for
  28473. such things as the return address and pointers to previous stack
  28474. frames, is machine-specific and usually depends on which registers
  28475. have been used in the function. Machines with register windows
  28476. often do not require a save area.
  28477. * A region of at least SIZE bytes, possibly rounded up to an
  28478. allocation boundary, to contain the local variables of the
  28479. function. On some machines, this region and the save area may
  28480. occur in the opposite order, with the save area closer to the top
  28481. of the stack.
  28482. * Optionally, when 'ACCUMULATE_OUTGOING_ARGS' is defined, a region of
  28483. 'crtl->outgoing_args_size' bytes to be used for outgoing argument
  28484. lists of the function. *Note Stack Arguments::.
  28485. -- Macro: EXIT_IGNORE_STACK
  28486. Define this macro as a C expression that is nonzero if the return
  28487. instruction or the function epilogue ignores the value of the stack
  28488. pointer; in other words, if it is safe to delete an instruction to
  28489. adjust the stack pointer before a return from the function. The
  28490. default is 0.
  28491. Note that this macro's value is relevant only for functions for
  28492. which frame pointers are maintained. It is never safe to delete a
  28493. final stack adjustment in a function that has no frame pointer, and
  28494. the compiler knows this regardless of 'EXIT_IGNORE_STACK'.
  28495. -- Macro: EPILOGUE_USES (REGNO)
  28496. Define this macro as a C expression that is nonzero for registers
  28497. that are used by the epilogue or the 'return' pattern. The stack
  28498. and frame pointer registers are already assumed to be used as
  28499. needed.
  28500. -- Macro: EH_USES (REGNO)
  28501. Define this macro as a C expression that is nonzero for registers
  28502. that are used by the exception handling mechanism, and so should be
  28503. considered live on entry to an exception edge.
  28504. -- Target Hook: void TARGET_ASM_OUTPUT_MI_THUNK (FILE *FILE, tree
  28505. THUNK_FNDECL, HOST_WIDE_INT DELTA, HOST_WIDE_INT VCALL_OFFSET,
  28506. tree FUNCTION)
  28507. A function that outputs the assembler code for a thunk function,
  28508. used to implement C++ virtual function calls with multiple
  28509. inheritance. The thunk acts as a wrapper around a virtual
  28510. function, adjusting the implicit object parameter before handing
  28511. control off to the real function.
  28512. First, emit code to add the integer DELTA to the location that
  28513. contains the incoming first argument. Assume that this argument
  28514. contains a pointer, and is the one used to pass the 'this' pointer
  28515. in C++. This is the incoming argument _before_ the function
  28516. prologue, e.g. '%o0' on a sparc. The addition must preserve the
  28517. values of all other incoming arguments.
  28518. Then, if VCALL_OFFSET is nonzero, an additional adjustment should
  28519. be made after adding 'delta'. In particular, if P is the adjusted
  28520. pointer, the following adjustment should be made:
  28521. p += (*((ptrdiff_t **)p))[vcall_offset/sizeof(ptrdiff_t)]
  28522. After the additions, emit code to jump to FUNCTION, which is a
  28523. 'FUNCTION_DECL'. This is a direct pure jump, not a call, and does
  28524. not touch the return address. Hence returning from FUNCTION will
  28525. return to whoever called the current 'thunk'.
  28526. The effect must be as if FUNCTION had been called directly with the
  28527. adjusted first argument. This macro is responsible for emitting
  28528. all of the code for a thunk function;
  28529. 'TARGET_ASM_FUNCTION_PROLOGUE' and 'TARGET_ASM_FUNCTION_EPILOGUE'
  28530. are not invoked.
  28531. The THUNK_FNDECL is redundant. (DELTA and FUNCTION have already
  28532. been extracted from it.) It might possibly be useful on some
  28533. targets, but probably not.
  28534. If you do not define this macro, the target-independent code in the
  28535. C++ front end will generate a less efficient heavyweight thunk that
  28536. calls FUNCTION instead of jumping to it. The generic approach does
  28537. not support varargs.
  28538. -- Target Hook: bool TARGET_ASM_CAN_OUTPUT_MI_THUNK (const_tree
  28539. THUNK_FNDECL, HOST_WIDE_INT DELTA, HOST_WIDE_INT VCALL_OFFSET,
  28540. const_tree FUNCTION)
  28541. A function that returns true if TARGET_ASM_OUTPUT_MI_THUNK would be
  28542. able to output the assembler code for the thunk function specified
  28543. by the arguments it is passed, and false otherwise. In the latter
  28544. case, the generic approach will be used by the C++ front end, with
  28545. the limitations previously exposed.
  28546. 
  28547. File: gccint.info, Node: Profiling, Next: Tail Calls, Prev: Function Entry, Up: Stack and Calling
  28548. 18.9.12 Generating Code for Profiling
  28549. -------------------------------------
  28550. These macros will help you generate code for profiling.
  28551. -- Macro: FUNCTION_PROFILER (FILE, LABELNO)
  28552. A C statement or compound statement to output to FILE some
  28553. assembler code to call the profiling subroutine 'mcount'.
  28554. The details of how 'mcount' expects to be called are determined by
  28555. your operating system environment, not by GCC. To figure them out,
  28556. compile a small program for profiling using the system's installed
  28557. C compiler and look at the assembler code that results.
  28558. Older implementations of 'mcount' expect the address of a counter
  28559. variable to be loaded into some register. The name of this
  28560. variable is 'LP' followed by the number LABELNO, so you would
  28561. generate the name using 'LP%d' in a 'fprintf'.
  28562. -- Macro: PROFILE_HOOK
  28563. A C statement or compound statement to output to FILE some assembly
  28564. code to call the profiling subroutine 'mcount' even the target does
  28565. not support profiling.
  28566. -- Macro: NO_PROFILE_COUNTERS
  28567. Define this macro to be an expression with a nonzero value if the
  28568. 'mcount' subroutine on your system does not need a counter variable
  28569. allocated for each function. This is true for almost all modern
  28570. implementations. If you define this macro, you must not use the
  28571. LABELNO argument to 'FUNCTION_PROFILER'.
  28572. -- Macro: PROFILE_BEFORE_PROLOGUE
  28573. Define this macro if the code for function profiling should come
  28574. before the function prologue. Normally, the profiling code comes
  28575. after.
  28576. -- Target Hook: bool TARGET_KEEP_LEAF_WHEN_PROFILED (void)
  28577. This target hook returns true if the target wants the leaf flag for
  28578. the current function to stay true even if it calls mcount. This
  28579. might make sense for targets using the leaf flag only to determine
  28580. whether a stack frame needs to be generated or not and for which
  28581. the call to mcount is generated before the function prologue.
  28582. 
  28583. File: gccint.info, Node: Tail Calls, Next: Shrink-wrapping separate components, Prev: Profiling, Up: Stack and Calling
  28584. 18.9.13 Permitting tail calls
  28585. -----------------------------
  28586. -- Target Hook: bool TARGET_FUNCTION_OK_FOR_SIBCALL (tree DECL, tree
  28587. EXP)
  28588. True if it is OK to do sibling call optimization for the specified
  28589. call expression EXP. DECL will be the called function, or 'NULL'
  28590. if this is an indirect call.
  28591. It is not uncommon for limitations of calling conventions to
  28592. prevent tail calls to functions outside the current unit of
  28593. translation, or during PIC compilation. The hook is used to
  28594. enforce these restrictions, as the 'sibcall' md pattern cannot
  28595. fail, or fall over to a "normal" call. The criteria for successful
  28596. sibling call optimization may vary greatly between different
  28597. architectures.
  28598. -- Target Hook: void TARGET_EXTRA_LIVE_ON_ENTRY (bitmap REGS)
  28599. Add any hard registers to REGS that are live on entry to the
  28600. function. This hook only needs to be defined to provide registers
  28601. that cannot be found by examination of FUNCTION_ARG_REGNO_P, the
  28602. callee saved registers, STATIC_CHAIN_INCOMING_REGNUM,
  28603. STATIC_CHAIN_REGNUM, TARGET_STRUCT_VALUE_RTX, FRAME_POINTER_REGNUM,
  28604. EH_USES, FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and the
  28605. PIC_OFFSET_TABLE_REGNUM.
  28606. -- Target Hook: void TARGET_SET_UP_BY_PROLOGUE (struct
  28607. hard_reg_set_container *)
  28608. This hook should add additional registers that are computed by the
  28609. prologue to the hard regset for shrink-wrapping optimization
  28610. purposes.
  28611. -- Target Hook: bool TARGET_WARN_FUNC_RETURN (tree)
  28612. True if a function's return statements should be checked for
  28613. matching the function's return type. This includes checking for
  28614. falling off the end of a non-void function. Return false if no
  28615. such check should be made.
  28616. 
  28617. File: gccint.info, Node: Shrink-wrapping separate components, Next: Stack Smashing Protection, Prev: Tail Calls, Up: Stack and Calling
  28618. 18.9.14 Shrink-wrapping separate components
  28619. -------------------------------------------
  28620. The prologue may perform a variety of target dependent tasks such as
  28621. saving callee-saved registers, saving the return address, aligning the
  28622. stack, creating a stack frame, initializing the PIC register, setting up
  28623. the static chain, etc.
  28624. On some targets some of these tasks may be independent of others and
  28625. thus may be shrink-wrapped separately. These independent tasks are
  28626. referred to as components and are handled generically by the target
  28627. independent parts of GCC.
  28628. Using the following hooks those prologue or epilogue components can be
  28629. shrink-wrapped separately, so that the initialization (and possibly
  28630. teardown) those components do is not done as frequently on execution
  28631. paths where this would unnecessary.
  28632. What exactly those components are is up to the target code; the generic
  28633. code treats them abstractly, as a bit in an 'sbitmap'. These 'sbitmap's
  28634. are allocated by the 'shrink_wrap.get_separate_components' and
  28635. 'shrink_wrap.components_for_bb' hooks, and deallocated by the generic
  28636. code.
  28637. -- Target Hook: sbitmap TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS
  28638. (void)
  28639. This hook should return an 'sbitmap' with the bits set for those
  28640. components that can be separately shrink-wrapped in the current
  28641. function. Return 'NULL' if the current function should not get any
  28642. separate shrink-wrapping. Don't define this hook if it would
  28643. always return 'NULL'. If it is defined, the other hooks in this
  28644. group have to be defined as well.
  28645. -- Target Hook: sbitmap TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB
  28646. (basic_block)
  28647. This hook should return an 'sbitmap' with the bits set for those
  28648. components where either the prologue component has to be executed
  28649. before the 'basic_block', or the epilogue component after it, or
  28650. both.
  28651. -- Target Hook: void TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS (sbitmap
  28652. COMPONENTS, edge E, sbitmap EDGE_COMPONENTS, bool IS_PROLOGUE)
  28653. This hook should clear the bits in the COMPONENTS bitmap for those
  28654. components in EDGE_COMPONENTS that the target cannot handle on edge
  28655. E, where IS_PROLOGUE says if this is for a prologue or an epilogue
  28656. instead.
  28657. -- Target Hook: void TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS
  28658. (sbitmap)
  28659. Emit prologue insns for the components indicated by the parameter.
  28660. -- Target Hook: void TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS
  28661. (sbitmap)
  28662. Emit epilogue insns for the components indicated by the parameter.
  28663. -- Target Hook: void TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS
  28664. (sbitmap)
  28665. Mark the components in the parameter as handled, so that the
  28666. 'prologue' and 'epilogue' named patterns know to ignore those
  28667. components. The target code should not hang on to the 'sbitmap',
  28668. it will be deleted after this call.
  28669. 
  28670. File: gccint.info, Node: Stack Smashing Protection, Next: Miscellaneous Register Hooks, Prev: Shrink-wrapping separate components, Up: Stack and Calling
  28671. 18.9.15 Stack smashing protection
  28672. ---------------------------------
  28673. -- Target Hook: tree TARGET_STACK_PROTECT_GUARD (void)
  28674. This hook returns a 'DECL' node for the external variable to use
  28675. for the stack protection guard. This variable is initialized by
  28676. the runtime to some random value and is used to initialize the
  28677. guard value that is placed at the top of the local stack frame.
  28678. The type of this variable must be 'ptr_type_node'.
  28679. The default version of this hook creates a variable called
  28680. '__stack_chk_guard', which is normally defined in 'libgcc2.c'.
  28681. -- Target Hook: tree TARGET_STACK_PROTECT_FAIL (void)
  28682. This hook returns a 'CALL_EXPR' that alerts the runtime that the
  28683. stack protect guard variable has been modified. This expression
  28684. should involve a call to a 'noreturn' function.
  28685. The default version of this hook invokes a function called
  28686. '__stack_chk_fail', taking no arguments. This function is normally
  28687. defined in 'libgcc2.c'.
  28688. -- Target Hook: bool TARGET_STACK_PROTECT_RUNTIME_ENABLED_P (void)
  28689. Returns true if the target wants GCC's default stack protect
  28690. runtime support, otherwise return false. The default
  28691. implementation always returns true.
  28692. -- Common Target Hook: bool TARGET_SUPPORTS_SPLIT_STACK (bool REPORT,
  28693. struct gcc_options *OPTS)
  28694. Whether this target supports splitting the stack when the options
  28695. described in OPTS have been passed. This is called after options
  28696. have been parsed, so the target may reject splitting the stack in
  28697. some configurations. The default version of this hook returns
  28698. false. If REPORT is true, this function may issue a warning or
  28699. error; if REPORT is false, it must simply return a value
  28700. -- Common Target Hook: vec<const char *> TARGET_GET_VALID_OPTION_VALUES
  28701. (int OPTION_CODE, const char *PREFIX)
  28702. The hook is used for options that have a non-trivial list of
  28703. possible option values. OPTION_CODE is option code of opt_code
  28704. enum type. PREFIX is used for bash completion and allows an
  28705. implementation to return more specific completion based on the
  28706. prefix. All string values should be allocated from heap memory and
  28707. consumers should release them. The result will be pruned to cases
  28708. with PREFIX if not NULL.
  28709. 
  28710. File: gccint.info, Node: Miscellaneous Register Hooks, Prev: Stack Smashing Protection, Up: Stack and Calling
  28711. 18.9.16 Miscellaneous register hooks
  28712. ------------------------------------
  28713. -- Target Hook: bool TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS
  28714. Set to true if each call that binds to a local definition
  28715. explicitly clobbers or sets all non-fixed registers modified by
  28716. performing the call. That is, by the call pattern itself, or by
  28717. code that might be inserted by the linker (e.g. stubs, veneers,
  28718. branch islands), but not including those modifiable by the callee.
  28719. The affected registers may be mentioned explicitly in the call
  28720. pattern, or included as clobbers in CALL_INSN_FUNCTION_USAGE. The
  28721. default version of this hook is set to false. The purpose of this
  28722. hook is to enable the fipa-ra optimization.
  28723. 
  28724. File: gccint.info, Node: Varargs, Next: Trampolines, Prev: Stack and Calling, Up: Target Macros
  28725. 18.10 Implementing the Varargs Macros
  28726. =====================================
  28727. GCC comes with an implementation of '<varargs.h>' and '<stdarg.h>' that
  28728. work without change on machines that pass arguments on the stack. Other
  28729. machines require their own implementations of varargs, and the two
  28730. machine independent header files must have conditionals to include it.
  28731. ISO '<stdarg.h>' differs from traditional '<varargs.h>' mainly in the
  28732. calling convention for 'va_start'. The traditional implementation takes
  28733. just one argument, which is the variable in which to store the argument
  28734. pointer. The ISO implementation of 'va_start' takes an additional
  28735. second argument. The user is supposed to write the last named argument
  28736. of the function here.
  28737. However, 'va_start' should not use this argument. The way to find the
  28738. end of the named arguments is with the built-in functions described
  28739. below.
  28740. -- Macro: __builtin_saveregs ()
  28741. Use this built-in function to save the argument registers in memory
  28742. so that the varargs mechanism can access them. Both ISO and
  28743. traditional versions of 'va_start' must use '__builtin_saveregs',
  28744. unless you use 'TARGET_SETUP_INCOMING_VARARGS' (see below) instead.
  28745. On some machines, '__builtin_saveregs' is open-coded under the
  28746. control of the target hook 'TARGET_EXPAND_BUILTIN_SAVEREGS'. On
  28747. other machines, it calls a routine written in assembler language,
  28748. found in 'libgcc2.c'.
  28749. Code generated for the call to '__builtin_saveregs' appears at the
  28750. beginning of the function, as opposed to where the call to
  28751. '__builtin_saveregs' is written, regardless of what the code is.
  28752. This is because the registers must be saved before the function
  28753. starts to use them for its own purposes.
  28754. -- Macro: __builtin_next_arg (LASTARG)
  28755. This builtin returns the address of the first anonymous stack
  28756. argument, as type 'void *'. If 'ARGS_GROW_DOWNWARD', it returns
  28757. the address of the location above the first anonymous stack
  28758. argument. Use it in 'va_start' to initialize the pointer for
  28759. fetching arguments from the stack. Also use it in 'va_start' to
  28760. verify that the second parameter LASTARG is the last named argument
  28761. of the current function.
  28762. -- Macro: __builtin_classify_type (OBJECT)
  28763. Since each machine has its own conventions for which data types are
  28764. passed in which kind of register, your implementation of 'va_arg'
  28765. has to embody these conventions. The easiest way to categorize the
  28766. specified data type is to use '__builtin_classify_type' together
  28767. with 'sizeof' and '__alignof__'.
  28768. '__builtin_classify_type' ignores the value of OBJECT, considering
  28769. only its data type. It returns an integer describing what kind of
  28770. type that is--integer, floating, pointer, structure, and so on.
  28771. The file 'typeclass.h' defines an enumeration that you can use to
  28772. interpret the values of '__builtin_classify_type'.
  28773. These machine description macros help implement varargs:
  28774. -- Target Hook: rtx TARGET_EXPAND_BUILTIN_SAVEREGS (void)
  28775. If defined, this hook produces the machine-specific code for a call
  28776. to '__builtin_saveregs'. This code will be moved to the very
  28777. beginning of the function, before any parameter access are made.
  28778. The return value of this function should be an RTX that contains
  28779. the value to use as the return of '__builtin_saveregs'.
  28780. -- Target Hook: void TARGET_SETUP_INCOMING_VARARGS (cumulative_args_t
  28781. ARGS_SO_FAR, const function_arg_info &ARG, int
  28782. *PRETEND_ARGS_SIZE, int SECOND_TIME)
  28783. This target hook offers an alternative to using
  28784. '__builtin_saveregs' and defining the hook
  28785. 'TARGET_EXPAND_BUILTIN_SAVEREGS'. Use it to store the anonymous
  28786. register arguments into the stack so that all the arguments appear
  28787. to have been passed consecutively on the stack. Once this is done,
  28788. you can use the standard implementation of varargs that works for
  28789. machines that pass all their arguments on the stack.
  28790. The argument ARGS_SO_FAR points to the 'CUMULATIVE_ARGS' data
  28791. structure, containing the values that are obtained after processing
  28792. the named arguments. The argument ARG describes the last of these
  28793. named arguments.
  28794. The target hook should do two things: first, push onto the stack
  28795. all the argument registers _not_ used for the named arguments, and
  28796. second, store the size of the data thus pushed into the
  28797. 'int'-valued variable pointed to by PRETEND_ARGS_SIZE. The value
  28798. that you store here will serve as additional offset for setting up
  28799. the stack frame.
  28800. Because you must generate code to push the anonymous arguments at
  28801. compile time without knowing their data types,
  28802. 'TARGET_SETUP_INCOMING_VARARGS' is only useful on machines that
  28803. have just a single category of argument register and use it
  28804. uniformly for all data types.
  28805. If the argument SECOND_TIME is nonzero, it means that the arguments
  28806. of the function are being analyzed for the second time. This
  28807. happens for an inline function, which is not actually compiled
  28808. until the end of the source file. The hook
  28809. 'TARGET_SETUP_INCOMING_VARARGS' should not generate any
  28810. instructions in this case.
  28811. -- Target Hook: bool TARGET_STRICT_ARGUMENT_NAMING (cumulative_args_t
  28812. CA)
  28813. Define this hook to return 'true' if the location where a function
  28814. argument is passed depends on whether or not it is a named
  28815. argument.
  28816. This hook controls how the NAMED argument to 'TARGET_FUNCTION_ARG'
  28817. is set for varargs and stdarg functions. If this hook returns
  28818. 'true', the NAMED argument is always true for named arguments, and
  28819. false for unnamed arguments. If it returns 'false', but
  28820. 'TARGET_PRETEND_OUTGOING_VARARGS_NAMED' returns 'true', then all
  28821. arguments are treated as named. Otherwise, all named arguments
  28822. except the last are treated as named.
  28823. You need not define this hook if it always returns 'false'.
  28824. -- Target Hook: void TARGET_CALL_ARGS (rtx, TREE)
  28825. While generating RTL for a function call, this target hook is
  28826. invoked once for each argument passed to the function, either a
  28827. register returned by 'TARGET_FUNCTION_ARG' or a memory location.
  28828. It is called just before the point where argument registers are
  28829. stored. The type of the function to be called is also passed as
  28830. the second argument; it is 'NULL_TREE' for libcalls. The
  28831. 'TARGET_END_CALL_ARGS' hook is invoked just after the code to copy
  28832. the return reg has been emitted. This functionality can be used to
  28833. perform special setup of call argument registers if a target needs
  28834. it. For functions without arguments, the hook is called once with
  28835. 'pc_rtx' passed instead of an argument register. Most ports do not
  28836. need to implement anything for this hook.
  28837. -- Target Hook: void TARGET_END_CALL_ARGS (void)
  28838. This target hook is invoked while generating RTL for a function
  28839. call, just after the point where the return reg is copied into a
  28840. pseudo. It signals that all the call argument and return registers
  28841. for the just emitted call are now no longer in use. Most ports do
  28842. not need to implement anything for this hook.
  28843. -- Target Hook: bool TARGET_PRETEND_OUTGOING_VARARGS_NAMED
  28844. (cumulative_args_t CA)
  28845. If you need to conditionally change ABIs so that one works with
  28846. 'TARGET_SETUP_INCOMING_VARARGS', but the other works like neither
  28847. 'TARGET_SETUP_INCOMING_VARARGS' nor 'TARGET_STRICT_ARGUMENT_NAMING'
  28848. was defined, then define this hook to return 'true' if
  28849. 'TARGET_SETUP_INCOMING_VARARGS' is used, 'false' otherwise.
  28850. Otherwise, you should not define this hook.
  28851. -- Target Hook: rtx TARGET_LOAD_BOUNDS_FOR_ARG (rtx SLOT, rtx ARG, rtx
  28852. SLOT_NO)
  28853. This hook is used by expand pass to emit insn to load bounds of ARG
  28854. passed in SLOT. Expand pass uses this hook in case bounds of ARG
  28855. are not passed in register. If SLOT is a memory, then bounds are
  28856. loaded as for regular pointer loaded from memory. If SLOT is not a
  28857. memory then SLOT_NO is an integer constant holding number of the
  28858. target dependent special slot which should be used to obtain
  28859. bounds. Hook returns RTX holding loaded bounds.
  28860. -- Target Hook: void TARGET_STORE_BOUNDS_FOR_ARG (rtx ARG, rtx SLOT,
  28861. rtx BOUNDS, rtx SLOT_NO)
  28862. This hook is used by expand pass to emit insns to store BOUNDS of
  28863. ARG passed in SLOT. Expand pass uses this hook in case BOUNDS of
  28864. ARG are not passed in register. If SLOT is a memory, then BOUNDS
  28865. are stored as for regular pointer stored in memory. If SLOT is not
  28866. a memory then SLOT_NO is an integer constant holding number of the
  28867. target dependent special slot which should be used to store BOUNDS.
  28868. -- Target Hook: rtx TARGET_LOAD_RETURNED_BOUNDS (rtx SLOT)
  28869. This hook is used by expand pass to emit insn to load bounds
  28870. returned by function call in SLOT. Hook returns RTX holding loaded
  28871. bounds.
  28872. -- Target Hook: void TARGET_STORE_RETURNED_BOUNDS (rtx SLOT, rtx
  28873. BOUNDS)
  28874. This hook is used by expand pass to emit insn to store BOUNDS
  28875. returned by function call into SLOT.
  28876. 
  28877. File: gccint.info, Node: Trampolines, Next: Library Calls, Prev: Varargs, Up: Target Macros
  28878. 18.11 Support for Nested Functions
  28879. ==================================
  28880. Taking the address of a nested function requires special compiler
  28881. handling to ensure that the static chain register is loaded when the
  28882. function is invoked via an indirect call.
  28883. GCC has traditionally supported nested functions by creating an
  28884. executable "trampoline" at run time when the address of a nested
  28885. function is taken. This is a small piece of code which normally resides
  28886. on the stack, in the stack frame of the containing function. The
  28887. trampoline loads the static chain register and then jumps to the real
  28888. address of the nested function.
  28889. The use of trampolines requires an executable stack, which is a
  28890. security risk. To avoid this problem, GCC also supports another
  28891. strategy: using descriptors for nested functions. Under this model,
  28892. taking the address of a nested function results in a pointer to a
  28893. non-executable function descriptor object. Initializing the static
  28894. chain from the descriptor is handled at indirect call sites.
  28895. On some targets, including HPPA and IA-64, function descriptors may be
  28896. mandated by the ABI or be otherwise handled in a target-specific way by
  28897. the back end in its code generation strategy for indirect calls. GCC
  28898. also provides its own generic descriptor implementation to support the
  28899. '-fno-trampolines' option. In this case runtime detection of function
  28900. descriptors at indirect call sites relies on descriptor pointers being
  28901. tagged with a bit that is never set in bare function addresses. Since
  28902. GCC's generic function descriptors are not ABI-compliant, this option is
  28903. typically used only on a per-language basis (notably by Ada) or when it
  28904. can otherwise be applied to the whole program.
  28905. Define the following hook if your backend either implements
  28906. ABI-specified descriptor support, or can use GCC's generic descriptor
  28907. implementation for nested functions.
  28908. -- Target Hook: int TARGET_CUSTOM_FUNCTION_DESCRIPTORS
  28909. If the target can use GCC's generic descriptor mechanism for nested
  28910. functions, define this hook to a power of 2 representing an unused
  28911. bit in function pointers which can be used to differentiate
  28912. descriptors at run time. This value gives the number of bytes by
  28913. which descriptor pointers are misaligned compared to function
  28914. pointers. For example, on targets that require functions to be
  28915. aligned to a 4-byte boundary, a value of either 1 or 2 is
  28916. appropriate unless the architecture already reserves the bit for
  28917. another purpose, such as on ARM.
  28918. Define this hook to 0 if the target implements ABI support for
  28919. function descriptors in its standard calling sequence, like for
  28920. example HPPA or IA-64.
  28921. Using descriptors for nested functions eliminates the need for
  28922. trampolines that reside on the stack and require it to be made
  28923. executable.
  28924. The following macros tell GCC how to generate code to allocate and
  28925. initialize an executable trampoline. You can also use this interface if
  28926. your back end needs to create ABI-specified non-executable descriptors;
  28927. in this case the "trampoline" created is the descriptor containing data
  28928. only.
  28929. The instructions in an executable trampoline must do two things: load a
  28930. constant address into the static chain register, and jump to the real
  28931. address of the nested function. On CISC machines such as the m68k, this
  28932. requires two instructions, a move immediate and a jump. Then the two
  28933. addresses exist in the trampoline as word-long immediate operands. On
  28934. RISC machines, it is often necessary to load each address into a
  28935. register in two parts. Then pieces of each address form separate
  28936. immediate operands.
  28937. The code generated to initialize the trampoline must store the variable
  28938. parts--the static chain value and the function address--into the
  28939. immediate operands of the instructions. On a CISC machine, this is
  28940. simply a matter of copying each address to a memory reference at the
  28941. proper offset from the start of the trampoline. On a RISC machine, it
  28942. may be necessary to take out pieces of the address and store them
  28943. separately.
  28944. -- Target Hook: void TARGET_ASM_TRAMPOLINE_TEMPLATE (FILE *F)
  28945. This hook is called by 'assemble_trampoline_template' to output, on
  28946. the stream F, assembler code for a block of data that contains the
  28947. constant parts of a trampoline. This code should not include a
  28948. label--the label is taken care of automatically.
  28949. If you do not define this hook, it means no template is needed for
  28950. the target. Do not define this hook on systems where the block
  28951. move code to copy the trampoline into place would be larger than
  28952. the code to generate it on the spot.
  28953. -- Macro: TRAMPOLINE_SECTION
  28954. Return the section into which the trampoline template is to be
  28955. placed (*note Sections::). The default value is
  28956. 'readonly_data_section'.
  28957. -- Macro: TRAMPOLINE_SIZE
  28958. A C expression for the size in bytes of the trampoline, as an
  28959. integer.
  28960. -- Macro: TRAMPOLINE_ALIGNMENT
  28961. Alignment required for trampolines, in bits.
  28962. If you don't define this macro, the value of 'FUNCTION_ALIGNMENT'
  28963. is used for aligning trampolines.
  28964. -- Target Hook: void TARGET_TRAMPOLINE_INIT (rtx M_TRAMP, tree FNDECL,
  28965. rtx STATIC_CHAIN)
  28966. This hook is called to initialize a trampoline. M_TRAMP is an RTX
  28967. for the memory block for the trampoline; FNDECL is the
  28968. 'FUNCTION_DECL' for the nested function; STATIC_CHAIN is an RTX for
  28969. the static chain value that should be passed to the function when
  28970. it is called.
  28971. If the target defines 'TARGET_ASM_TRAMPOLINE_TEMPLATE', then the
  28972. first thing this hook should do is emit a block move into M_TRAMP
  28973. from the memory block returned by 'assemble_trampoline_template'.
  28974. Note that the block move need only cover the constant parts of the
  28975. trampoline. If the target isolates the variable parts of the
  28976. trampoline to the end, not all 'TRAMPOLINE_SIZE' bytes need be
  28977. copied.
  28978. If the target requires any other actions, such as flushing caches
  28979. or enabling stack execution, these actions should be performed
  28980. after initializing the trampoline proper.
  28981. -- Target Hook: rtx TARGET_TRAMPOLINE_ADJUST_ADDRESS (rtx ADDR)
  28982. This hook should perform any machine-specific adjustment in the
  28983. address of the trampoline. Its argument contains the address of
  28984. the memory block that was passed to 'TARGET_TRAMPOLINE_INIT'. In
  28985. case the address to be used for a function call should be different
  28986. from the address at which the template was stored, the different
  28987. address should be returned; otherwise ADDR should be returned
  28988. unchanged. If this hook is not defined, ADDR will be used for
  28989. function calls.
  28990. Implementing trampolines is difficult on many machines because they
  28991. have separate instruction and data caches. Writing into a stack
  28992. location fails to clear the memory in the instruction cache, so when the
  28993. program jumps to that location, it executes the old contents.
  28994. Here are two possible solutions. One is to clear the relevant parts of
  28995. the instruction cache whenever a trampoline is set up. The other is to
  28996. make all trampolines identical, by having them jump to a standard
  28997. subroutine. The former technique makes trampoline execution faster; the
  28998. latter makes initialization faster.
  28999. To clear the instruction cache when a trampoline is initialized, define
  29000. the following macro.
  29001. -- Macro: CLEAR_INSN_CACHE (BEG, END)
  29002. If defined, expands to a C expression clearing the _instruction
  29003. cache_ in the specified interval. The definition of this macro
  29004. would typically be a series of 'asm' statements. Both BEG and END
  29005. are both pointer expressions.
  29006. To use a standard subroutine, define the following macro. In addition,
  29007. you must make sure that the instructions in a trampoline fill an entire
  29008. cache line with identical instructions, or else ensure that the
  29009. beginning of the trampoline code is always aligned at the same point in
  29010. its cache line. Look in 'm68k.h' as a guide.
  29011. -- Macro: TRANSFER_FROM_TRAMPOLINE
  29012. Define this macro if trampolines need a special subroutine to do
  29013. their work. The macro should expand to a series of 'asm'
  29014. statements which will be compiled with GCC. They go in a library
  29015. function named '__transfer_from_trampoline'.
  29016. If you need to avoid executing the ordinary prologue code of a
  29017. compiled C function when you jump to the subroutine, you can do so
  29018. by placing a special label of your own in the assembler code. Use
  29019. one 'asm' statement to generate an assembler label, and another to
  29020. make the label global. Then trampolines can use that label to jump
  29021. directly to your special assembler code.
  29022. 
  29023. File: gccint.info, Node: Library Calls, Next: Addressing Modes, Prev: Trampolines, Up: Target Macros
  29024. 18.12 Implicit Calls to Library Routines
  29025. ========================================
  29026. Here is an explanation of implicit calls to library routines.
  29027. -- Macro: DECLARE_LIBRARY_RENAMES
  29028. This macro, if defined, should expand to a piece of C code that
  29029. will get expanded when compiling functions for libgcc.a. It can be
  29030. used to provide alternate names for GCC's internal library
  29031. functions if there are ABI-mandated names that the compiler should
  29032. provide.
  29033. -- Target Hook: void TARGET_INIT_LIBFUNCS (void)
  29034. This hook should declare additional library routines or rename
  29035. existing ones, using the functions 'set_optab_libfunc' and
  29036. 'init_one_libfunc' defined in 'optabs.c'. 'init_optabs' calls this
  29037. macro after initializing all the normal library routines.
  29038. The default is to do nothing. Most ports don't need to define this
  29039. hook.
  29040. -- Target Hook: bool TARGET_LIBFUNC_GNU_PREFIX
  29041. If false (the default), internal library routines start with two
  29042. underscores. If set to true, these routines start with '__gnu_'
  29043. instead. E.g., '__muldi3' changes to '__gnu_muldi3'. This
  29044. currently only affects functions defined in 'libgcc2.c'. If this
  29045. is set to true, the 'tm.h' file must also '#define
  29046. LIBGCC2_GNU_PREFIX'.
  29047. -- Macro: FLOAT_LIB_COMPARE_RETURNS_BOOL (MODE, COMPARISON)
  29048. This macro should return 'true' if the library routine that
  29049. implements the floating point comparison operator COMPARISON in
  29050. mode MODE will return a boolean, and FALSE if it will return a
  29051. tristate.
  29052. GCC's own floating point libraries return tristates from the
  29053. comparison operators, so the default returns false always. Most
  29054. ports don't need to define this macro.
  29055. -- Macro: TARGET_LIB_INT_CMP_BIASED
  29056. This macro should evaluate to 'true' if the integer comparison
  29057. functions (like '__cmpdi2') return 0 to indicate that the first
  29058. operand is smaller than the second, 1 to indicate that they are
  29059. equal, and 2 to indicate that the first operand is greater than the
  29060. second. If this macro evaluates to 'false' the comparison
  29061. functions return -1, 0, and 1 instead of 0, 1, and 2. If the
  29062. target uses the routines in 'libgcc.a', you do not need to define
  29063. this macro.
  29064. -- Macro: TARGET_HAS_NO_HW_DIVIDE
  29065. This macro should be defined if the target has no hardware divide
  29066. instructions. If this macro is defined, GCC will use an algorithm
  29067. which make use of simple logical and arithmetic operations for
  29068. 64-bit division. If the macro is not defined, GCC will use an
  29069. algorithm which make use of a 64-bit by 32-bit divide primitive.
  29070. -- Macro: TARGET_EDOM
  29071. The value of 'EDOM' on the target machine, as a C integer constant
  29072. expression. If you don't define this macro, GCC does not attempt
  29073. to deposit the value of 'EDOM' into 'errno' directly. Look in
  29074. '/usr/include/errno.h' to find the value of 'EDOM' on your system.
  29075. If you do not define 'TARGET_EDOM', then compiled code reports
  29076. domain errors by calling the library function and letting it report
  29077. the error. If mathematical functions on your system use 'matherr'
  29078. when there is an error, then you should leave 'TARGET_EDOM'
  29079. undefined so that 'matherr' is used normally.
  29080. -- Macro: GEN_ERRNO_RTX
  29081. Define this macro as a C expression to create an rtl expression
  29082. that refers to the global "variable" 'errno'. (On certain systems,
  29083. 'errno' may not actually be a variable.) If you don't define this
  29084. macro, a reasonable default is used.
  29085. -- Target Hook: bool TARGET_LIBC_HAS_FUNCTION (enum function_class
  29086. FN_CLASS)
  29087. This hook determines whether a function from a class of functions
  29088. FN_CLASS is present in the target C library.
  29089. -- Target Hook: bool TARGET_LIBC_HAS_FAST_FUNCTION (int FCODE)
  29090. This hook determines whether a function from a class of functions
  29091. '(enum function_class)'FCODE has a fast implementation.
  29092. -- Macro: NEXT_OBJC_RUNTIME
  29093. Set this macro to 1 to use the "NeXT" Objective-C message sending
  29094. conventions by default. This calling convention involves passing
  29095. the object, the selector and the method arguments all at once to
  29096. the method-lookup library function. This is the usual setting when
  29097. targeting Darwin/Mac OS X systems, which have the NeXT runtime
  29098. installed.
  29099. If the macro is set to 0, the "GNU" Objective-C message sending
  29100. convention will be used by default. This convention passes just
  29101. the object and the selector to the method-lookup function, which
  29102. returns a pointer to the method.
  29103. In either case, it remains possible to select code-generation for
  29104. the alternate scheme, by means of compiler command line switches.
  29105. 
  29106. File: gccint.info, Node: Addressing Modes, Next: Anchored Addresses, Prev: Library Calls, Up: Target Macros
  29107. 18.13 Addressing Modes
  29108. ======================
  29109. This is about addressing modes.
  29110. -- Macro: HAVE_PRE_INCREMENT
  29111. -- Macro: HAVE_PRE_DECREMENT
  29112. -- Macro: HAVE_POST_INCREMENT
  29113. -- Macro: HAVE_POST_DECREMENT
  29114. A C expression that is nonzero if the machine supports
  29115. pre-increment, pre-decrement, post-increment, or post-decrement
  29116. addressing respectively.
  29117. -- Macro: HAVE_PRE_MODIFY_DISP
  29118. -- Macro: HAVE_POST_MODIFY_DISP
  29119. A C expression that is nonzero if the machine supports pre- or
  29120. post-address side-effect generation involving constants other than
  29121. the size of the memory operand.
  29122. -- Macro: HAVE_PRE_MODIFY_REG
  29123. -- Macro: HAVE_POST_MODIFY_REG
  29124. A C expression that is nonzero if the machine supports pre- or
  29125. post-address side-effect generation involving a register
  29126. displacement.
  29127. -- Macro: CONSTANT_ADDRESS_P (X)
  29128. A C expression that is 1 if the RTX X is a constant which is a
  29129. valid address. On most machines the default definition of
  29130. '(CONSTANT_P (X) && GET_CODE (X) != CONST_DOUBLE)' is acceptable,
  29131. but a few machines are more restrictive as to which constant
  29132. addresses are supported.
  29133. -- Macro: CONSTANT_P (X)
  29134. 'CONSTANT_P', which is defined by target-independent code, accepts
  29135. integer-values expressions whose values are not explicitly known,
  29136. such as 'symbol_ref', 'label_ref', and 'high' expressions and
  29137. 'const' arithmetic expressions, in addition to 'const_int' and
  29138. 'const_double' expressions.
  29139. -- Macro: MAX_REGS_PER_ADDRESS
  29140. A number, the maximum number of registers that can appear in a
  29141. valid memory address. Note that it is up to you to specify a value
  29142. equal to the maximum number that 'TARGET_LEGITIMATE_ADDRESS_P'
  29143. would ever accept.
  29144. -- Target Hook: bool TARGET_LEGITIMATE_ADDRESS_P (machine_mode MODE,
  29145. rtx X, bool STRICT)
  29146. A function that returns whether X (an RTX) is a legitimate memory
  29147. address on the target machine for a memory operand of mode MODE.
  29148. Legitimate addresses are defined in two variants: a strict variant
  29149. and a non-strict one. The STRICT parameter chooses which variant
  29150. is desired by the caller.
  29151. The strict variant is used in the reload pass. It must be defined
  29152. so that any pseudo-register that has not been allocated a hard
  29153. register is considered a memory reference. This is because in
  29154. contexts where some kind of register is required, a pseudo-register
  29155. with no hard register must be rejected. For non-hard registers,
  29156. the strict variant should look up the 'reg_renumber' array; it
  29157. should then proceed using the hard register number in the array, or
  29158. treat the pseudo as a memory reference if the array holds '-1'.
  29159. The non-strict variant is used in other passes. It must be defined
  29160. to accept all pseudo-registers in every context where some kind of
  29161. register is required.
  29162. Normally, constant addresses which are the sum of a 'symbol_ref'
  29163. and an integer are stored inside a 'const' RTX to mark them as
  29164. constant. Therefore, there is no need to recognize such sums
  29165. specifically as legitimate addresses. Normally you would simply
  29166. recognize any 'const' as legitimate.
  29167. Usually 'PRINT_OPERAND_ADDRESS' is not prepared to handle constant
  29168. sums that are not marked with 'const'. It assumes that a naked
  29169. 'plus' indicates indexing. If so, then you _must_ reject such
  29170. naked constant sums as illegitimate addresses, so that none of them
  29171. will be given to 'PRINT_OPERAND_ADDRESS'.
  29172. On some machines, whether a symbolic address is legitimate depends
  29173. on the section that the address refers to. On these machines,
  29174. define the target hook 'TARGET_ENCODE_SECTION_INFO' to store the
  29175. information into the 'symbol_ref', and then check for it here.
  29176. When you see a 'const', you will have to look inside it to find the
  29177. 'symbol_ref' in order to determine the section. *Note Assembler
  29178. Format::.
  29179. Some ports are still using a deprecated legacy substitute for this
  29180. hook, the 'GO_IF_LEGITIMATE_ADDRESS' macro. This macro has this
  29181. syntax:
  29182. #define GO_IF_LEGITIMATE_ADDRESS (MODE, X, LABEL)
  29183. and should 'goto LABEL' if the address X is a valid address on the
  29184. target machine for a memory operand of mode MODE.
  29185. Compiler source files that want to use the strict variant of this
  29186. macro define the macro 'REG_OK_STRICT'. You should use an '#ifdef
  29187. REG_OK_STRICT' conditional to define the strict variant in that
  29188. case and the non-strict variant otherwise.
  29189. Using the hook is usually simpler because it limits the number of
  29190. files that are recompiled when changes are made.
  29191. -- Macro: TARGET_MEM_CONSTRAINT
  29192. A single character to be used instead of the default ''m''
  29193. character for general memory addresses. This defines the
  29194. constraint letter which matches the memory addresses accepted by
  29195. 'TARGET_LEGITIMATE_ADDRESS_P'. Define this macro if you want to
  29196. support new address formats in your back end without changing the
  29197. semantics of the ''m'' constraint. This is necessary in order to
  29198. preserve functionality of inline assembly constructs using the
  29199. ''m'' constraint.
  29200. -- Macro: FIND_BASE_TERM (X)
  29201. A C expression to determine the base term of address X, or to
  29202. provide a simplified version of X from which 'alias.c' can easily
  29203. find the base term. This macro is used in only two places:
  29204. 'find_base_value' and 'find_base_term' in 'alias.c'.
  29205. It is always safe for this macro to not be defined. It exists so
  29206. that alias analysis can understand machine-dependent addresses.
  29207. The typical use of this macro is to handle addresses containing a
  29208. label_ref or symbol_ref within an UNSPEC.
  29209. -- Target Hook: rtx TARGET_LEGITIMIZE_ADDRESS (rtx X, rtx OLDX,
  29210. machine_mode MODE)
  29211. This hook is given an invalid memory address X for an operand of
  29212. mode MODE and should try to return a valid memory address.
  29213. X will always be the result of a call to 'break_out_memory_refs',
  29214. and OLDX will be the operand that was given to that function to
  29215. produce X.
  29216. The code of the hook should not alter the substructure of X. If it
  29217. transforms X into a more legitimate form, it should return the new
  29218. X.
  29219. It is not necessary for this hook to come up with a legitimate
  29220. address, with the exception of native TLS addresses (*note Emulated
  29221. TLS::). The compiler has standard ways of doing so in all cases.
  29222. In fact, if the target supports only emulated TLS, it is safe to
  29223. omit this hook or make it return X if it cannot find a valid way to
  29224. legitimize the address. But often a machine-dependent strategy can
  29225. generate better code.
  29226. -- Macro: LEGITIMIZE_RELOAD_ADDRESS (X, MODE, OPNUM, TYPE, IND_LEVELS,
  29227. WIN)
  29228. A C compound statement that attempts to replace X, which is an
  29229. address that needs reloading, with a valid memory address for an
  29230. operand of mode MODE. WIN will be a C statement label elsewhere in
  29231. the code. It is not necessary to define this macro, but it might
  29232. be useful for performance reasons.
  29233. For example, on the i386, it is sometimes possible to use a single
  29234. reload register instead of two by reloading a sum of two pseudo
  29235. registers into a register. On the other hand, for number of RISC
  29236. processors offsets are limited so that often an intermediate
  29237. address needs to be generated in order to address a stack slot. By
  29238. defining 'LEGITIMIZE_RELOAD_ADDRESS' appropriately, the
  29239. intermediate addresses generated for adjacent some stack slots can
  29240. be made identical, and thus be shared.
  29241. _Note_: This macro should be used with caution. It is necessary to
  29242. know something of how reload works in order to effectively use
  29243. this, and it is quite easy to produce macros that build in too much
  29244. knowledge of reload internals.
  29245. _Note_: This macro must be able to reload an address created by a
  29246. previous invocation of this macro. If it fails to handle such
  29247. addresses then the compiler may generate incorrect code or abort.
  29248. The macro definition should use 'push_reload' to indicate parts
  29249. that need reloading; OPNUM, TYPE and IND_LEVELS are usually
  29250. suitable to be passed unaltered to 'push_reload'.
  29251. The code generated by this macro must not alter the substructure of
  29252. X. If it transforms X into a more legitimate form, it should
  29253. assign X (which will always be a C variable) a new value. This
  29254. also applies to parts that you change indirectly by calling
  29255. 'push_reload'.
  29256. The macro definition may use 'strict_memory_address_p' to test if
  29257. the address has become legitimate.
  29258. If you want to change only a part of X, one standard way of doing
  29259. this is to use 'copy_rtx'. Note, however, that it unshares only a
  29260. single level of rtl. Thus, if the part to be changed is not at the
  29261. top level, you'll need to replace first the top level. It is not
  29262. necessary for this macro to come up with a legitimate address; but
  29263. often a machine-dependent strategy can generate better code.
  29264. -- Target Hook: bool TARGET_MODE_DEPENDENT_ADDRESS_P (const_rtx ADDR,
  29265. addr_space_t ADDRSPACE)
  29266. This hook returns 'true' if memory address ADDR in address space
  29267. ADDRSPACE can have different meanings depending on the machine mode
  29268. of the memory reference it is used for or if the address is valid
  29269. for some modes but not others.
  29270. Autoincrement and autodecrement addresses typically have
  29271. mode-dependent effects because the amount of the increment or
  29272. decrement is the size of the operand being addressed. Some
  29273. machines have other mode-dependent addresses. Many RISC machines
  29274. have no mode-dependent addresses.
  29275. You may assume that ADDR is a valid address for the machine.
  29276. The default version of this hook returns 'false'.
  29277. -- Target Hook: bool TARGET_LEGITIMATE_CONSTANT_P (machine_mode MODE,
  29278. rtx X)
  29279. This hook returns true if X is a legitimate constant for a
  29280. MODE-mode immediate operand on the target machine. You can assume
  29281. that X satisfies 'CONSTANT_P', so you need not check this.
  29282. The default definition returns true.
  29283. -- Target Hook: rtx TARGET_DELEGITIMIZE_ADDRESS (rtx X)
  29284. This hook is used to undo the possibly obfuscating effects of the
  29285. 'LEGITIMIZE_ADDRESS' and 'LEGITIMIZE_RELOAD_ADDRESS' target macros.
  29286. Some backend implementations of these macros wrap symbol references
  29287. inside an 'UNSPEC' rtx to represent PIC or similar addressing
  29288. modes. This target hook allows GCC's optimizers to understand the
  29289. semantics of these opaque 'UNSPEC's by converting them back into
  29290. their original form.
  29291. -- Target Hook: bool TARGET_CONST_NOT_OK_FOR_DEBUG_P (rtx X)
  29292. This hook should return true if X should not be emitted into debug
  29293. sections.
  29294. -- Target Hook: bool TARGET_CANNOT_FORCE_CONST_MEM (machine_mode MODE,
  29295. rtx X)
  29296. This hook should return true if X is of a form that cannot (or
  29297. should not) be spilled to the constant pool. MODE is the mode of
  29298. X.
  29299. The default version of this hook returns false.
  29300. The primary reason to define this hook is to prevent reload from
  29301. deciding that a non-legitimate constant would be better reloaded
  29302. from the constant pool instead of spilling and reloading a register
  29303. holding the constant. This restriction is often true of addresses
  29304. of TLS symbols for various targets.
  29305. -- Target Hook: bool TARGET_USE_BLOCKS_FOR_CONSTANT_P (machine_mode
  29306. MODE, const_rtx X)
  29307. This hook should return true if pool entries for constant X can be
  29308. placed in an 'object_block' structure. MODE is the mode of X.
  29309. The default version returns false for all constants.
  29310. -- Target Hook: bool TARGET_USE_BLOCKS_FOR_DECL_P (const_tree DECL)
  29311. This hook should return true if pool entries for DECL should be
  29312. placed in an 'object_block' structure.
  29313. The default version returns true for all decls.
  29314. -- Target Hook: tree TARGET_BUILTIN_RECIPROCAL (tree FNDECL)
  29315. This hook should return the DECL of a function that implements the
  29316. reciprocal of the machine-specific builtin function FNDECL, or
  29317. 'NULL_TREE' if such a function is not available.
  29318. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD (void)
  29319. This hook should return the DECL of a function F that given an
  29320. address ADDR as an argument returns a mask M that can be used to
  29321. extract from two vectors the relevant data that resides in ADDR in
  29322. case ADDR is not properly aligned.
  29323. The autovectorizer, when vectorizing a load operation from an
  29324. address ADDR that may be unaligned, will generate two vector loads
  29325. from the two aligned addresses around ADDR. It then generates a
  29326. 'REALIGN_LOAD' operation to extract the relevant data from the two
  29327. loaded vectors. The first two arguments to 'REALIGN_LOAD', V1 and
  29328. V2, are the two vectors, each of size VS, and the third argument,
  29329. OFF, defines how the data will be extracted from these two vectors:
  29330. if OFF is 0, then the returned vector is V2; otherwise, the
  29331. returned vector is composed from the last VS-OFF elements of V1
  29332. concatenated to the first OFF elements of V2.
  29333. If this hook is defined, the autovectorizer will generate a call to
  29334. F (using the DECL tree that this hook returns) and will use the
  29335. return value of F as the argument OFF to 'REALIGN_LOAD'.
  29336. Therefore, the mask M returned by F should comply with the
  29337. semantics expected by 'REALIGN_LOAD' described above. If this hook
  29338. is not defined, then ADDR will be used as the argument OFF to
  29339. 'REALIGN_LOAD', in which case the low log2(VS) - 1 bits of ADDR
  29340. will be considered.
  29341. -- Target Hook: int TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST (enum
  29342. vect_cost_for_stmt TYPE_OF_COST, tree VECTYPE, int MISALIGN)
  29343. Returns cost of different scalar or vector statements for
  29344. vectorization cost model. For vector memory operations the cost
  29345. may depend on type (VECTYPE) and misalignment value (MISALIGN).
  29346. -- Target Hook: poly_uint64 TARGET_VECTORIZE_PREFERRED_VECTOR_ALIGNMENT
  29347. (const_tree TYPE)
  29348. This hook returns the preferred alignment in bits for accesses to
  29349. vectors of type TYPE in vectorized code. This might be less than
  29350. or greater than the ABI-defined value returned by
  29351. 'TARGET_VECTOR_ALIGNMENT'. It can be equal to the alignment of a
  29352. single element, in which case the vectorizer will not try to
  29353. optimize for alignment.
  29354. The default hook returns 'TYPE_ALIGN (TYPE)', which is correct for
  29355. most targets.
  29356. -- Target Hook: bool TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
  29357. (const_tree TYPE, bool IS_PACKED)
  29358. Return true if vector alignment is reachable (by peeling N
  29359. iterations) for the given scalar type TYPE. IS_PACKED is false if
  29360. the scalar access using TYPE is known to be naturally aligned.
  29361. -- Target Hook: bool TARGET_VECTORIZE_VEC_PERM_CONST (machine_mode
  29362. MODE, rtx OUTPUT, rtx IN0, rtx IN1, const vec_perm_indices
  29363. &SEL)
  29364. This hook is used to test whether the target can permute up to two
  29365. vectors of mode MODE using the permutation vector 'sel', and also
  29366. to emit such a permutation. In the former case IN0, IN1 and OUT
  29367. are all null. In the latter case IN0 and IN1 are the source
  29368. vectors and OUT is the destination vector; all three are registers
  29369. of mode MODE. IN1 is the same as IN0 if SEL describes a
  29370. permutation on one vector instead of two.
  29371. Return true if the operation is possible, emitting instructions for
  29372. it if rtxes are provided.
  29373. If the hook returns false for a mode with multibyte elements, GCC
  29374. will try the equivalent byte operation. If that also fails, it
  29375. will try forcing the selector into a register and using the
  29376. VEC_PERMMODE instruction pattern. There is no need for the hook to
  29377. handle these two implementation approaches itself.
  29378. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION
  29379. (unsigned CODE, tree VEC_TYPE_OUT, tree VEC_TYPE_IN)
  29380. This hook should return the decl of a function that implements the
  29381. vectorized variant of the function with the 'combined_fn' code CODE
  29382. or 'NULL_TREE' if such a function is not available. The return
  29383. type of the vectorized function shall be of vector type
  29384. VEC_TYPE_OUT and the argument types should be VEC_TYPE_IN.
  29385. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION
  29386. (tree FNDECL, tree VEC_TYPE_OUT, tree VEC_TYPE_IN)
  29387. This hook should return the decl of a function that implements the
  29388. vectorized variant of target built-in function 'fndecl'. The
  29389. return type of the vectorized function shall be of vector type
  29390. VEC_TYPE_OUT and the argument types should be VEC_TYPE_IN.
  29391. -- Target Hook: bool TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
  29392. (machine_mode MODE, const_tree TYPE, int MISALIGNMENT, bool
  29393. IS_PACKED)
  29394. This hook should return true if the target supports misaligned
  29395. vector store/load of a specific factor denoted in the MISALIGNMENT
  29396. parameter. The vector store/load should be of machine mode MODE
  29397. and the elements in the vectors should be of type TYPE. IS_PACKED
  29398. parameter is true if the memory access is defined in a packed
  29399. struct.
  29400. -- Target Hook: machine_mode TARGET_VECTORIZE_PREFERRED_SIMD_MODE
  29401. (scalar_mode MODE)
  29402. This hook should return the preferred mode for vectorizing scalar
  29403. mode MODE. The default is equal to 'word_mode', because the
  29404. vectorizer can do some transformations even in absence of
  29405. specialized SIMD hardware.
  29406. -- Target Hook: machine_mode TARGET_VECTORIZE_SPLIT_REDUCTION
  29407. (machine_mode)
  29408. This hook should return the preferred mode to split the final
  29409. reduction step on MODE to. The reduction is then carried out
  29410. reducing upper against lower halves of vectors recursively until
  29411. the specified mode is reached. The default is MODE which means no
  29412. splitting.
  29413. -- Target Hook: unsigned int
  29414. TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES (vector_modes
  29415. *MODES, bool ALL)
  29416. If using the mode returned by
  29417. 'TARGET_VECTORIZE_PREFERRED_SIMD_MODE' is not the only approach
  29418. worth considering, this hook should add one mode to MODES for each
  29419. useful alternative approach. These modes are then passed to
  29420. 'TARGET_VECTORIZE_RELATED_MODE' to obtain the vector mode for a
  29421. given element mode.
  29422. The modes returned in MODES should use the smallest element mode
  29423. possible for the vectorization approach that they represent,
  29424. preferring integer modes over floating-poing modes in the event of
  29425. a tie. The first mode should be the
  29426. 'TARGET_VECTORIZE_PREFERRED_SIMD_MODE' for its element mode.
  29427. If ALL is true, add suitable vector modes even when they are
  29428. generally not expected to be worthwhile.
  29429. The hook returns a bitmask of flags that control how the modes in
  29430. MODES are used. The flags are:
  29431. 'VECT_COMPARE_COSTS'
  29432. Tells the loop vectorizer to try all the provided modes and
  29433. pick the one with the lowest cost. By default the vectorizer
  29434. will choose the first mode that works.
  29435. The hook does not need to do anything if the vector returned by
  29436. 'TARGET_VECTORIZE_PREFERRED_SIMD_MODE' is the only one relevant for
  29437. autovectorization. The default implementation adds no modes and
  29438. returns 0.
  29439. -- Target Hook: opt_machine_mode TARGET_VECTORIZE_RELATED_MODE
  29440. (machine_mode VECTOR_MODE, scalar_mode ELEMENT_MODE,
  29441. poly_uint64 NUNITS)
  29442. If a piece of code is using vector mode VECTOR_MODE and also wants
  29443. to operate on elements of mode ELEMENT_MODE, return the vector mode
  29444. it should use for those elements. If NUNITS is nonzero, ensure
  29445. that the mode has exactly NUNITS elements, otherwise pick whichever
  29446. vector size pairs the most naturally with VECTOR_MODE. Return an
  29447. empty 'opt_machine_mode' if there is no supported vector mode with
  29448. the required properties.
  29449. There is no prescribed way of handling the case in which NUNITS is
  29450. zero. One common choice is to pick a vector mode with the same
  29451. size as VECTOR_MODE; this is the natural choice if the target has a
  29452. fixed vector size. Another option is to choose a vector mode with
  29453. the same number of elements as VECTOR_MODE; this is the natural
  29454. choice if the target has a fixed number of elements.
  29455. Alternatively, the hook might choose a middle ground, such as
  29456. trying to keep the number of elements as similar as possible while
  29457. applying maximum and minimum vector sizes.
  29458. The default implementation uses 'mode_for_vector' to find the
  29459. requested mode, returning a mode with the same size as VECTOR_MODE
  29460. when NUNITS is zero. This is the correct behavior for most
  29461. targets.
  29462. -- Target Hook: opt_machine_mode TARGET_VECTORIZE_GET_MASK_MODE
  29463. (machine_mode MODE)
  29464. Return the mode to use for a vector mask that holds one boolean
  29465. result for each element of vector mode MODE. The returned mask
  29466. mode can be a vector of integers (class 'MODE_VECTOR_INT'), a
  29467. vector of booleans (class 'MODE_VECTOR_BOOL') or a scalar integer
  29468. (class 'MODE_INT'). Return an empty 'opt_machine_mode' if no such
  29469. mask mode exists.
  29470. The default implementation returns a 'MODE_VECTOR_INT' with the
  29471. same size and number of elements as MODE, if such a mode exists.
  29472. -- Target Hook: bool TARGET_VECTORIZE_EMPTY_MASK_IS_EXPENSIVE (unsigned
  29473. IFN)
  29474. This hook returns true if masked internal function IFN (really of
  29475. type 'internal_fn') should be considered expensive when the mask is
  29476. all zeros. GCC can then try to branch around the instruction
  29477. instead.
  29478. -- Target Hook: void * TARGET_VECTORIZE_INIT_COST (class loop
  29479. *LOOP_INFO)
  29480. This hook should initialize target-specific data structures in
  29481. preparation for modeling the costs of vectorizing a loop or basic
  29482. block. The default allocates three unsigned integers for
  29483. accumulating costs for the prologue, body, and epilogue of the loop
  29484. or basic block. If LOOP_INFO is non-NULL, it identifies the loop
  29485. being vectorized; otherwise a single block is being vectorized.
  29486. -- Target Hook: unsigned TARGET_VECTORIZE_ADD_STMT_COST (void *DATA,
  29487. int COUNT, enum vect_cost_for_stmt KIND, class _stmt_vec_info
  29488. *STMT_INFO, int MISALIGN, enum vect_cost_model_location WHERE)
  29489. This hook should update the target-specific DATA in response to
  29490. adding COUNT copies of the given KIND of statement to a loop or
  29491. basic block. The default adds the builtin vectorizer cost for the
  29492. copies of the statement to the accumulator specified by WHERE, (the
  29493. prologue, body, or epilogue) and returns the amount added. The
  29494. return value should be viewed as a tentative cost that may later be
  29495. revised.
  29496. -- Target Hook: void TARGET_VECTORIZE_FINISH_COST (void *DATA, unsigned
  29497. *PROLOGUE_COST, unsigned *BODY_COST, unsigned *EPILOGUE_COST)
  29498. This hook should complete calculations of the cost of vectorizing a
  29499. loop or basic block based on DATA, and return the prologue, body,
  29500. and epilogue costs as unsigned integers. The default returns the
  29501. value of the three accumulators.
  29502. -- Target Hook: void TARGET_VECTORIZE_DESTROY_COST_DATA (void *DATA)
  29503. This hook should release DATA and any related data structures
  29504. allocated by TARGET_VECTORIZE_INIT_COST. The default releases the
  29505. accumulator.
  29506. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_GATHER (const_tree
  29507. MEM_VECTYPE, const_tree INDEX_TYPE, int SCALE)
  29508. Target builtin that implements vector gather operation.
  29509. MEM_VECTYPE is the vector type of the load and INDEX_TYPE is scalar
  29510. type of the index, scaled by SCALE. The default is 'NULL_TREE'
  29511. which means to not vectorize gather loads.
  29512. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_SCATTER (const_tree
  29513. VECTYPE, const_tree INDEX_TYPE, int SCALE)
  29514. Target builtin that implements vector scatter operation. VECTYPE
  29515. is the vector type of the store and INDEX_TYPE is scalar type of
  29516. the index, scaled by SCALE. The default is 'NULL_TREE' which means
  29517. to not vectorize scatter stores.
  29518. -- Target Hook: int TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN
  29519. (struct cgraph_node *, struct cgraph_simd_clone *, TREE, INT)
  29520. This hook should set VECSIZE_MANGLE, VECSIZE_INT, VECSIZE_FLOAT
  29521. fields in SIMD_CLONE structure pointed by CLONE_INFO argument and
  29522. also SIMDLEN field if it was previously 0. The hook should return
  29523. 0 if SIMD clones shouldn't be emitted, or number of VECSIZE_MANGLE
  29524. variants that should be emitted.
  29525. -- Target Hook: void TARGET_SIMD_CLONE_ADJUST (struct cgraph_node *)
  29526. This hook should add implicit 'attribute(target("..."))' attribute
  29527. to SIMD clone NODE if needed.
  29528. -- Target Hook: int TARGET_SIMD_CLONE_USABLE (struct cgraph_node *)
  29529. This hook should return -1 if SIMD clone NODE shouldn't be used in
  29530. vectorized loops in current function, or non-negative number if it
  29531. is usable. In that case, the smaller the number is, the more
  29532. desirable it is to use it.
  29533. -- Target Hook: int TARGET_SIMT_VF (void)
  29534. Return number of threads in SIMT thread group on the target.
  29535. -- Target Hook: int TARGET_OMP_DEVICE_KIND_ARCH_ISA (enum
  29536. omp_device_kind_arch_isa TRAIT, const char *NAME)
  29537. Return 1 if TRAIT NAME is present in the OpenMP context's device
  29538. trait set, return 0 if not present in any OpenMP context in the
  29539. whole translation unit, or -1 if not present in the current OpenMP
  29540. context but might be present in another OpenMP context in the same
  29541. TU.
  29542. -- Target Hook: bool TARGET_GOACC_VALIDATE_DIMS (tree DECL, int *DIMS,
  29543. int FN_LEVEL, unsigned USED)
  29544. This hook should check the launch dimensions provided for an
  29545. OpenACC compute region, or routine. Defaulted values are
  29546. represented as -1 and non-constant values as 0. The FN_LEVEL is
  29547. negative for the function corresponding to the compute region. For
  29548. a routine it is the outermost level at which partitioned execution
  29549. may be spawned. The hook should verify non-default values. If
  29550. DECL is NULL, global defaults are being validated and unspecified
  29551. defaults should be filled in. Diagnostics should be issued as
  29552. appropriate. Return true, if changes have been made. You must
  29553. override this hook to provide dimensions larger than 1.
  29554. -- Target Hook: int TARGET_GOACC_DIM_LIMIT (int AXIS)
  29555. This hook should return the maximum size of a particular dimension,
  29556. or zero if unbounded.
  29557. -- Target Hook: bool TARGET_GOACC_FORK_JOIN (gcall *CALL, const int
  29558. *DIMS, bool IS_FORK)
  29559. This hook can be used to convert IFN_GOACC_FORK and IFN_GOACC_JOIN
  29560. function calls to target-specific gimple, or indicate whether they
  29561. should be retained. It is executed during the oacc_device_lower
  29562. pass. It should return true, if the call should be retained. It
  29563. should return false, if it is to be deleted (either because
  29564. target-specific gimple has been inserted before it, or there is no
  29565. need for it). The default hook returns false, if there are no RTL
  29566. expanders for them.
  29567. -- Target Hook: void TARGET_GOACC_REDUCTION (gcall *CALL)
  29568. This hook is used by the oacc_transform pass to expand calls to the
  29569. GOACC_REDUCTION internal function, into a sequence of gimple
  29570. instructions. CALL is gimple statement containing the call to the
  29571. function. This hook removes statement CALL after the expanded
  29572. sequence has been inserted. This hook is also responsible for
  29573. allocating any storage for reductions when necessary.
  29574. -- Target Hook: tree TARGET_PREFERRED_ELSE_VALUE (unsigned IFN, tree
  29575. TYPE, unsigned NOPS, tree *OPS)
  29576. This hook returns the target's preferred final argument for a call
  29577. to conditional internal function IFN (really of type
  29578. 'internal_fn'). TYPE specifies the return type of the function and
  29579. OPS are the operands to the conditional operation, of which there
  29580. are NOPS.
  29581. For example, if IFN is 'IFN_COND_ADD', the hook returns a value of
  29582. type TYPE that should be used when 'OPS[0]' and 'OPS[1]' are
  29583. conditionally added together.
  29584. This hook is only relevant if the target supports conditional
  29585. patterns like 'cond_addM'. The default implementation returns a
  29586. zero constant of type TYPE.
  29587. 
  29588. File: gccint.info, Node: Anchored Addresses, Next: Condition Code, Prev: Addressing Modes, Up: Target Macros
  29589. 18.14 Anchored Addresses
  29590. ========================
  29591. GCC usually addresses every static object as a separate entity. For
  29592. example, if we have:
  29593. static int a, b, c;
  29594. int foo (void) { return a + b + c; }
  29595. the code for 'foo' will usually calculate three separate symbolic
  29596. addresses: those of 'a', 'b' and 'c'. On some targets, it would be
  29597. better to calculate just one symbolic address and access the three
  29598. variables relative to it. The equivalent pseudocode would be something
  29599. like:
  29600. int foo (void)
  29601. {
  29602. register int *xr = &x;
  29603. return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
  29604. }
  29605. (which isn't valid C). We refer to shared addresses like 'x' as
  29606. "section anchors". Their use is controlled by '-fsection-anchors'.
  29607. The hooks below describe the target properties that GCC needs to know
  29608. in order to make effective use of section anchors. It won't use section
  29609. anchors at all unless either 'TARGET_MIN_ANCHOR_OFFSET' or
  29610. 'TARGET_MAX_ANCHOR_OFFSET' is set to a nonzero value.
  29611. -- Target Hook: HOST_WIDE_INT TARGET_MIN_ANCHOR_OFFSET
  29612. The minimum offset that should be applied to a section anchor. On
  29613. most targets, it should be the smallest offset that can be applied
  29614. to a base register while still giving a legitimate address for
  29615. every mode. The default value is 0.
  29616. -- Target Hook: HOST_WIDE_INT TARGET_MAX_ANCHOR_OFFSET
  29617. Like 'TARGET_MIN_ANCHOR_OFFSET', but the maximum (inclusive) offset
  29618. that should be applied to section anchors. The default value is 0.
  29619. -- Target Hook: void TARGET_ASM_OUTPUT_ANCHOR (rtx X)
  29620. Write the assembly code to define section anchor X, which is a
  29621. 'SYMBOL_REF' for which 'SYMBOL_REF_ANCHOR_P (X)' is true. The hook
  29622. is called with the assembly output position set to the beginning of
  29623. 'SYMBOL_REF_BLOCK (X)'.
  29624. If 'ASM_OUTPUT_DEF' is available, the hook's default definition
  29625. uses it to define the symbol as '. + SYMBOL_REF_BLOCK_OFFSET (X)'.
  29626. If 'ASM_OUTPUT_DEF' is not available, the hook's default definition
  29627. is 'NULL', which disables the use of section anchors altogether.
  29628. -- Target Hook: bool TARGET_USE_ANCHORS_FOR_SYMBOL_P (const_rtx X)
  29629. Return true if GCC should attempt to use anchors to access
  29630. 'SYMBOL_REF' X. You can assume 'SYMBOL_REF_HAS_BLOCK_INFO_P (X)'
  29631. and '!SYMBOL_REF_ANCHOR_P (X)'.
  29632. The default version is correct for most targets, but you might need
  29633. to intercept this hook to handle things like target-specific
  29634. attributes or target-specific sections.
  29635. 
  29636. File: gccint.info, Node: Condition Code, Next: Costs, Prev: Anchored Addresses, Up: Target Macros
  29637. 18.15 Condition Code Status
  29638. ===========================
  29639. The macros in this section can be split in two families, according to
  29640. the two ways of representing condition codes in GCC.
  29641. The first representation is the so called '(cc0)' representation (*note
  29642. Jump Patterns::), where all instructions can have an implicit clobber of
  29643. the condition codes. The second is the condition code register
  29644. representation, which provides better schedulability for architectures
  29645. that do have a condition code register, but on which most instructions
  29646. do not affect it. The latter category includes most RISC machines.
  29647. The implicit clobbering poses a strong restriction on the placement of
  29648. the definition and use of the condition code. In the past the
  29649. definition and use were always adjacent. However, recent changes to
  29650. support trapping arithmatic may result in the definition and user being
  29651. in different blocks. Thus, there may be a 'NOTE_INSN_BASIC_BLOCK'
  29652. between them. Additionally, the definition may be the source of
  29653. exception handling edges.
  29654. These restrictions can prevent important optimizations on some
  29655. machines. For example, on the IBM RS/6000, there is a delay for taken
  29656. branches unless the condition code register is set three instructions
  29657. earlier than the conditional branch. The instruction scheduler cannot
  29658. perform this optimization if it is not permitted to separate the
  29659. definition and use of the condition code register.
  29660. For this reason, it is possible and suggested to use a register to
  29661. represent the condition code for new ports. If there is a specific
  29662. condition code register in the machine, use a hard register. If the
  29663. condition code or comparison result can be placed in any general
  29664. register, or if there are multiple condition registers, use a pseudo
  29665. register. Registers used to store the condition code value will usually
  29666. have a mode that is in class 'MODE_CC'.
  29667. Alternatively, you can use 'BImode' if the comparison operator is
  29668. specified already in the compare instruction. In this case, you are not
  29669. interested in most macros in this section.
  29670. * Menu:
  29671. * CC0 Condition Codes:: Old style representation of condition codes.
  29672. * MODE_CC Condition Codes:: Modern representation of condition codes.
  29673. 
  29674. File: gccint.info, Node: CC0 Condition Codes, Next: MODE_CC Condition Codes, Up: Condition Code
  29675. 18.15.1 Representation of condition codes using '(cc0)'
  29676. -------------------------------------------------------
  29677. The file 'conditions.h' defines a variable 'cc_status' to describe how
  29678. the condition code was computed (in case the interpretation of the
  29679. condition code depends on the instruction that it was set by). This
  29680. variable contains the RTL expressions on which the condition code is
  29681. currently based, and several standard flags.
  29682. Sometimes additional machine-specific flags must be defined in the
  29683. machine description header file. It can also add additional
  29684. machine-specific information by defining 'CC_STATUS_MDEP'.
  29685. -- Macro: CC_STATUS_MDEP
  29686. C code for a data type which is used for declaring the 'mdep'
  29687. component of 'cc_status'. It defaults to 'int'.
  29688. This macro is not used on machines that do not use 'cc0'.
  29689. -- Macro: CC_STATUS_MDEP_INIT
  29690. A C expression to initialize the 'mdep' field to "empty". The
  29691. default definition does nothing, since most machines don't use the
  29692. field anyway. If you want to use the field, you should probably
  29693. define this macro to initialize it.
  29694. This macro is not used on machines that do not use 'cc0'.
  29695. -- Macro: NOTICE_UPDATE_CC (EXP, INSN)
  29696. A C compound statement to set the components of 'cc_status'
  29697. appropriately for an insn INSN whose body is EXP. It is this
  29698. macro's responsibility to recognize insns that set the condition
  29699. code as a byproduct of other activity as well as those that
  29700. explicitly set '(cc0)'.
  29701. This macro is not used on machines that do not use 'cc0'.
  29702. If there are insns that do not set the condition code but do alter
  29703. other machine registers, this macro must check to see whether they
  29704. invalidate the expressions that the condition code is recorded as
  29705. reflecting. For example, on the 68000, insns that store in address
  29706. registers do not set the condition code, which means that usually
  29707. 'NOTICE_UPDATE_CC' can leave 'cc_status' unaltered for such insns.
  29708. But suppose that the previous insn set the condition code based on
  29709. location 'a4@(102)' and the current insn stores a new value in
  29710. 'a4'. Although the condition code is not changed by this, it will
  29711. no longer be true that it reflects the contents of 'a4@(102)'.
  29712. Therefore, 'NOTICE_UPDATE_CC' must alter 'cc_status' in this case
  29713. to say that nothing is known about the condition code value.
  29714. The definition of 'NOTICE_UPDATE_CC' must be prepared to deal with
  29715. the results of peephole optimization: insns whose patterns are
  29716. 'parallel' RTXs containing various 'reg', 'mem' or constants which
  29717. are just the operands. The RTL structure of these insns is not
  29718. sufficient to indicate what the insns actually do. What
  29719. 'NOTICE_UPDATE_CC' should do when it sees one is just to run
  29720. 'CC_STATUS_INIT'.
  29721. A possible definition of 'NOTICE_UPDATE_CC' is to call a function
  29722. that looks at an attribute (*note Insn Attributes::) named, for
  29723. example, 'cc'. This avoids having detailed information about
  29724. patterns in two places, the 'md' file and in 'NOTICE_UPDATE_CC'.
  29725. 
  29726. File: gccint.info, Node: MODE_CC Condition Codes, Prev: CC0 Condition Codes, Up: Condition Code
  29727. 18.15.2 Representation of condition codes using registers
  29728. ---------------------------------------------------------
  29729. -- Macro: SELECT_CC_MODE (OP, X, Y)
  29730. On many machines, the condition code may be produced by other
  29731. instructions than compares, for example the branch can use directly
  29732. the condition code set by a subtract instruction. However, on some
  29733. machines when the condition code is set this way some bits (such as
  29734. the overflow bit) are not set in the same way as a test
  29735. instruction, so that a different branch instruction must be used
  29736. for some conditional branches. When this happens, use the machine
  29737. mode of the condition code register to record different formats of
  29738. the condition code register. Modes can also be used to record
  29739. which compare instruction (e.g. a signed or an unsigned comparison)
  29740. produced the condition codes.
  29741. If other modes than 'CCmode' are required, add them to
  29742. 'MACHINE-modes.def' and define 'SELECT_CC_MODE' to choose a mode
  29743. given an operand of a compare. This is needed because the modes
  29744. have to be chosen not only during RTL generation but also, for
  29745. example, by instruction combination. The result of
  29746. 'SELECT_CC_MODE' should be consistent with the mode used in the
  29747. patterns; for example to support the case of the add on the SPARC
  29748. discussed above, we have the pattern
  29749. (define_insn ""
  29750. [(set (reg:CCNZ 0)
  29751. (compare:CCNZ
  29752. (plus:SI (match_operand:SI 0 "register_operand" "%r")
  29753. (match_operand:SI 1 "arith_operand" "rI"))
  29754. (const_int 0)))]
  29755. ""
  29756. "...")
  29757. together with a 'SELECT_CC_MODE' that returns 'CCNZmode' for
  29758. comparisons whose argument is a 'plus':
  29759. #define SELECT_CC_MODE(OP,X,Y) \
  29760. (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT \
  29761. ? ((OP == LT || OP == LE || OP == GT || OP == GE) \
  29762. ? CCFPEmode : CCFPmode) \
  29763. : ((GET_CODE (X) == PLUS || GET_CODE (X) == MINUS \
  29764. || GET_CODE (X) == NEG || GET_CODE (x) == ASHIFT) \
  29765. ? CCNZmode : CCmode))
  29766. Another reason to use modes is to retain information on which
  29767. operands were used by the comparison; see 'REVERSIBLE_CC_MODE'
  29768. later in this section.
  29769. You should define this macro if and only if you define extra CC
  29770. modes in 'MACHINE-modes.def'.
  29771. -- Target Hook: void TARGET_CANONICALIZE_COMPARISON (int *CODE, rtx
  29772. *OP0, rtx *OP1, bool OP0_PRESERVE_VALUE)
  29773. On some machines not all possible comparisons are defined, but you
  29774. can convert an invalid comparison into a valid one. For example,
  29775. the Alpha does not have a 'GT' comparison, but you can use an 'LT'
  29776. comparison instead and swap the order of the operands.
  29777. On such machines, implement this hook to do any required
  29778. conversions. CODE is the initial comparison code and OP0 and OP1
  29779. are the left and right operands of the comparison, respectively.
  29780. If OP0_PRESERVE_VALUE is 'true' the implementation is not allowed
  29781. to change the value of OP0 since the value might be used in RTXs
  29782. which aren't comparisons. E.g. the implementation is not allowed
  29783. to swap operands in that case.
  29784. GCC will not assume that the comparison resulting from this macro
  29785. is valid but will see if the resulting insn matches a pattern in
  29786. the 'md' file.
  29787. You need not to implement this hook if it would never change the
  29788. comparison code or operands.
  29789. -- Macro: REVERSIBLE_CC_MODE (MODE)
  29790. A C expression whose value is one if it is always safe to reverse a
  29791. comparison whose mode is MODE. If 'SELECT_CC_MODE' can ever return
  29792. MODE for a floating-point inequality comparison, then
  29793. 'REVERSIBLE_CC_MODE (MODE)' must be zero.
  29794. You need not define this macro if it would always returns zero or
  29795. if the floating-point format is anything other than
  29796. 'IEEE_FLOAT_FORMAT'. For example, here is the definition used on
  29797. the SPARC, where floating-point inequality comparisons are given
  29798. either 'CCFPEmode' or 'CCFPmode':
  29799. #define REVERSIBLE_CC_MODE(MODE) \
  29800. ((MODE) != CCFPEmode && (MODE) != CCFPmode)
  29801. -- Macro: REVERSE_CONDITION (CODE, MODE)
  29802. A C expression whose value is reversed condition code of the CODE
  29803. for comparison done in CC_MODE MODE. The macro is used only in
  29804. case 'REVERSIBLE_CC_MODE (MODE)' is nonzero. Define this macro in
  29805. case machine has some non-standard way how to reverse certain
  29806. conditionals. For instance in case all floating point conditions
  29807. are non-trapping, compiler may freely convert unordered compares to
  29808. ordered ones. Then definition may look like:
  29809. #define REVERSE_CONDITION(CODE, MODE) \
  29810. ((MODE) != CCFPmode ? reverse_condition (CODE) \
  29811. : reverse_condition_maybe_unordered (CODE))
  29812. -- Target Hook: bool TARGET_FIXED_CONDITION_CODE_REGS (unsigned int
  29813. *P1, unsigned int *P2)
  29814. On targets which do not use '(cc0)', and which use a hard register
  29815. rather than a pseudo-register to hold condition codes, the regular
  29816. CSE passes are often not able to identify cases in which the hard
  29817. register is set to a common value. Use this hook to enable a small
  29818. pass which optimizes such cases. This hook should return true to
  29819. enable this pass, and it should set the integers to which its
  29820. arguments point to the hard register numbers used for condition
  29821. codes. When there is only one such register, as is true on most
  29822. systems, the integer pointed to by P2 should be set to
  29823. 'INVALID_REGNUM'.
  29824. The default version of this hook returns false.
  29825. -- Target Hook: machine_mode TARGET_CC_MODES_COMPATIBLE (machine_mode
  29826. M1, machine_mode M2)
  29827. On targets which use multiple condition code modes in class
  29828. 'MODE_CC', it is sometimes the case that a comparison can be
  29829. validly done in more than one mode. On such a system, define this
  29830. target hook to take two mode arguments and to return a mode in
  29831. which both comparisons may be validly done. If there is no such
  29832. mode, return 'VOIDmode'.
  29833. The default version of this hook checks whether the modes are the
  29834. same. If they are, it returns that mode. If they are different,
  29835. it returns 'VOIDmode'.
  29836. -- Target Hook: unsigned int TARGET_FLAGS_REGNUM
  29837. If the target has a dedicated flags register, and it needs to use
  29838. the post-reload comparison elimination pass, or the delay slot
  29839. filler pass, then this value should be set appropriately.
  29840. 
  29841. File: gccint.info, Node: Costs, Next: Scheduling, Prev: Condition Code, Up: Target Macros
  29842. 18.16 Describing Relative Costs of Operations
  29843. =============================================
  29844. These macros let you describe the relative speed of various operations
  29845. on the target machine.
  29846. -- Macro: REGISTER_MOVE_COST (MODE, FROM, TO)
  29847. A C expression for the cost of moving data of mode MODE from a
  29848. register in class FROM to one in class TO. The classes are
  29849. expressed using the enumeration values such as 'GENERAL_REGS'. A
  29850. value of 2 is the default; other values are interpreted relative to
  29851. that.
  29852. It is not required that the cost always equal 2 when FROM is the
  29853. same as TO; on some machines it is expensive to move between
  29854. registers if they are not general registers.
  29855. If reload sees an insn consisting of a single 'set' between two
  29856. hard registers, and if 'REGISTER_MOVE_COST' applied to their
  29857. classes returns a value of 2, reload does not check to ensure that
  29858. the constraints of the insn are met. Setting a cost of other than
  29859. 2 will allow reload to verify that the constraints are met. You
  29860. should do this if the 'movM' pattern's constraints do not allow
  29861. such copying.
  29862. These macros are obsolete, new ports should use the target hook
  29863. 'TARGET_REGISTER_MOVE_COST' instead.
  29864. -- Target Hook: int TARGET_REGISTER_MOVE_COST (machine_mode MODE,
  29865. reg_class_t FROM, reg_class_t TO)
  29866. This target hook should return the cost of moving data of mode MODE
  29867. from a register in class FROM to one in class TO. The classes are
  29868. expressed using the enumeration values such as 'GENERAL_REGS'. A
  29869. value of 2 is the default; other values are interpreted relative to
  29870. that.
  29871. It is not required that the cost always equal 2 when FROM is the
  29872. same as TO; on some machines it is expensive to move between
  29873. registers if they are not general registers.
  29874. If reload sees an insn consisting of a single 'set' between two
  29875. hard registers, and if 'TARGET_REGISTER_MOVE_COST' applied to their
  29876. classes returns a value of 2, reload does not check to ensure that
  29877. the constraints of the insn are met. Setting a cost of other than
  29878. 2 will allow reload to verify that the constraints are met. You
  29879. should do this if the 'movM' pattern's constraints do not allow
  29880. such copying.
  29881. The default version of this function returns 2.
  29882. -- Macro: MEMORY_MOVE_COST (MODE, CLASS, IN)
  29883. A C expression for the cost of moving data of mode MODE between a
  29884. register of class CLASS and memory; IN is zero if the value is to
  29885. be written to memory, nonzero if it is to be read in. This cost is
  29886. relative to those in 'REGISTER_MOVE_COST'. If moving between
  29887. registers and memory is more expensive than between two registers,
  29888. you should define this macro to express the relative cost.
  29889. If you do not define this macro, GCC uses a default cost of 4 plus
  29890. the cost of copying via a secondary reload register, if one is
  29891. needed. If your machine requires a secondary reload register to
  29892. copy between memory and a register of CLASS but the reload
  29893. mechanism is more complex than copying via an intermediate, define
  29894. this macro to reflect the actual cost of the move.
  29895. GCC defines the function 'memory_move_secondary_cost' if secondary
  29896. reloads are needed. It computes the costs due to copying via a
  29897. secondary register. If your machine copies from memory using a
  29898. secondary register in the conventional way but the default base
  29899. value of 4 is not correct for your machine, define this macro to
  29900. add some other value to the result of that function. The arguments
  29901. to that function are the same as to this macro.
  29902. These macros are obsolete, new ports should use the target hook
  29903. 'TARGET_MEMORY_MOVE_COST' instead.
  29904. -- Target Hook: int TARGET_MEMORY_MOVE_COST (machine_mode MODE,
  29905. reg_class_t RCLASS, bool IN)
  29906. This target hook should return the cost of moving data of mode MODE
  29907. between a register of class RCLASS and memory; IN is 'false' if the
  29908. value is to be written to memory, 'true' if it is to be read in.
  29909. This cost is relative to those in 'TARGET_REGISTER_MOVE_COST'. If
  29910. moving between registers and memory is more expensive than between
  29911. two registers, you should add this target hook to express the
  29912. relative cost.
  29913. If you do not add this target hook, GCC uses a default cost of 4
  29914. plus the cost of copying via a secondary reload register, if one is
  29915. needed. If your machine requires a secondary reload register to
  29916. copy between memory and a register of RCLASS but the reload
  29917. mechanism is more complex than copying via an intermediate, use
  29918. this target hook to reflect the actual cost of the move.
  29919. GCC defines the function 'memory_move_secondary_cost' if secondary
  29920. reloads are needed. It computes the costs due to copying via a
  29921. secondary register. If your machine copies from memory using a
  29922. secondary register in the conventional way but the default base
  29923. value of 4 is not correct for your machine, use this target hook to
  29924. add some other value to the result of that function. The arguments
  29925. to that function are the same as to this target hook.
  29926. -- Macro: BRANCH_COST (SPEED_P, PREDICTABLE_P)
  29927. A C expression for the cost of a branch instruction. A value of 1
  29928. is the default; other values are interpreted relative to that.
  29929. Parameter SPEED_P is true when the branch in question should be
  29930. optimized for speed. When it is false, 'BRANCH_COST' should return
  29931. a value optimal for code size rather than performance.
  29932. PREDICTABLE_P is true for well-predicted branches. On many
  29933. architectures the 'BRANCH_COST' can be reduced then.
  29934. Here are additional macros which do not specify precise relative costs,
  29935. but only that certain actions are more expensive than GCC would
  29936. ordinarily expect.
  29937. -- Macro: SLOW_BYTE_ACCESS
  29938. Define this macro as a C expression which is nonzero if accessing
  29939. less than a word of memory (i.e. a 'char' or a 'short') is no
  29940. faster than accessing a word of memory, i.e., if such access
  29941. require more than one instruction or if there is no difference in
  29942. cost between byte and (aligned) word loads.
  29943. When this macro is not defined, the compiler will access a field by
  29944. finding the smallest containing object; when it is defined, a
  29945. fullword load will be used if alignment permits. Unless bytes
  29946. accesses are faster than word accesses, using word accesses is
  29947. preferable since it may eliminate subsequent memory access if
  29948. subsequent accesses occur to other fields in the same word of the
  29949. structure, but to different bytes.
  29950. -- Target Hook: bool TARGET_SLOW_UNALIGNED_ACCESS (machine_mode MODE,
  29951. unsigned int ALIGN)
  29952. This hook returns true if memory accesses described by the MODE and
  29953. ALIGNMENT parameters have a cost many times greater than aligned
  29954. accesses, for example if they are emulated in a trap handler. This
  29955. hook is invoked only for unaligned accesses, i.e. when 'ALIGNMENT <
  29956. GET_MODE_ALIGNMENT (MODE)'.
  29957. When this hook returns true, the compiler will act as if
  29958. 'STRICT_ALIGNMENT' were true when generating code for block moves.
  29959. This can cause significantly more instructions to be produced.
  29960. Therefore, do not make this hook return true if unaligned accesses
  29961. only add a cycle or two to the time for a memory access.
  29962. The hook must return true whenever 'STRICT_ALIGNMENT' is true. The
  29963. default implementation returns 'STRICT_ALIGNMENT'.
  29964. -- Macro: MOVE_RATIO (SPEED)
  29965. The threshold of number of scalar memory-to-memory move insns,
  29966. _below_ which a sequence of insns should be generated instead of a
  29967. string move insn or a library call. Increasing the value will
  29968. always make code faster, but eventually incurs high cost in
  29969. increased code size.
  29970. Note that on machines where the corresponding move insn is a
  29971. 'define_expand' that emits a sequence of insns, this macro counts
  29972. the number of such sequences.
  29973. The parameter SPEED is true if the code is currently being
  29974. optimized for speed rather than size.
  29975. If you don't define this, a reasonable default is used.
  29976. -- Target Hook: bool TARGET_USE_BY_PIECES_INFRASTRUCTURE_P (unsigned
  29977. HOST_WIDE_INT SIZE, unsigned int ALIGNMENT, enum
  29978. by_pieces_operation OP, bool SPEED_P)
  29979. GCC will attempt several strategies when asked to copy between two
  29980. areas of memory, or to set, clear or store to memory, for example
  29981. when copying a 'struct'. The 'by_pieces' infrastructure implements
  29982. such memory operations as a sequence of load, store or move insns.
  29983. Alternate strategies are to expand the 'cpymem' or 'setmem' optabs,
  29984. to emit a library call, or to emit unit-by-unit, loop-based
  29985. operations.
  29986. This target hook should return true if, for a memory operation with
  29987. a given SIZE and ALIGNMENT, using the 'by_pieces' infrastructure is
  29988. expected to result in better code generation. Both SIZE and
  29989. ALIGNMENT are measured in terms of storage units.
  29990. The parameter OP is one of: 'CLEAR_BY_PIECES', 'MOVE_BY_PIECES',
  29991. 'SET_BY_PIECES', 'STORE_BY_PIECES' or 'COMPARE_BY_PIECES'. These
  29992. describe the type of memory operation under consideration.
  29993. The parameter SPEED_P is true if the code is currently being
  29994. optimized for speed rather than size.
  29995. Returning true for higher values of SIZE can improve code
  29996. generation for speed if the target does not provide an
  29997. implementation of the 'cpymem' or 'setmem' standard names, if the
  29998. 'cpymem' or 'setmem' implementation would be more expensive than a
  29999. sequence of insns, or if the overhead of a library call would
  30000. dominate that of the body of the memory operation.
  30001. Returning true for higher values of 'size' may also cause an
  30002. increase in code size, for example where the number of insns
  30003. emitted to perform a move would be greater than that of a library
  30004. call.
  30005. -- Target Hook: int TARGET_COMPARE_BY_PIECES_BRANCH_RATIO (machine_mode
  30006. MODE)
  30007. When expanding a block comparison in MODE, gcc can try to reduce
  30008. the number of branches at the expense of more memory operations.
  30009. This hook allows the target to override the default choice. It
  30010. should return the factor by which branches should be reduced over
  30011. the plain expansion with one comparison per MODE-sized piece. A
  30012. port can also prevent a particular mode from being used for block
  30013. comparisons by returning a negative number from this hook.
  30014. -- Macro: MOVE_MAX_PIECES
  30015. A C expression used by 'move_by_pieces' to determine the largest
  30016. unit a load or store used to copy memory is. Defaults to
  30017. 'MOVE_MAX'.
  30018. -- Macro: STORE_MAX_PIECES
  30019. A C expression used by 'store_by_pieces' to determine the largest
  30020. unit a store used to memory is. Defaults to 'MOVE_MAX_PIECES', or
  30021. two times the size of 'HOST_WIDE_INT', whichever is smaller.
  30022. -- Macro: COMPARE_MAX_PIECES
  30023. A C expression used by 'compare_by_pieces' to determine the largest
  30024. unit a load or store used to compare memory is. Defaults to
  30025. 'MOVE_MAX_PIECES'.
  30026. -- Macro: CLEAR_RATIO (SPEED)
  30027. The threshold of number of scalar move insns, _below_ which a
  30028. sequence of insns should be generated to clear memory instead of a
  30029. string clear insn or a library call. Increasing the value will
  30030. always make code faster, but eventually incurs high cost in
  30031. increased code size.
  30032. The parameter SPEED is true if the code is currently being
  30033. optimized for speed rather than size.
  30034. If you don't define this, a reasonable default is used.
  30035. -- Macro: SET_RATIO (SPEED)
  30036. The threshold of number of scalar move insns, _below_ which a
  30037. sequence of insns should be generated to set memory to a constant
  30038. value, instead of a block set insn or a library call. Increasing
  30039. the value will always make code faster, but eventually incurs high
  30040. cost in increased code size.
  30041. The parameter SPEED is true if the code is currently being
  30042. optimized for speed rather than size.
  30043. If you don't define this, it defaults to the value of 'MOVE_RATIO'.
  30044. -- Macro: USE_LOAD_POST_INCREMENT (MODE)
  30045. A C expression used to determine whether a load postincrement is a
  30046. good thing to use for a given mode. Defaults to the value of
  30047. 'HAVE_POST_INCREMENT'.
  30048. -- Macro: USE_LOAD_POST_DECREMENT (MODE)
  30049. A C expression used to determine whether a load postdecrement is a
  30050. good thing to use for a given mode. Defaults to the value of
  30051. 'HAVE_POST_DECREMENT'.
  30052. -- Macro: USE_LOAD_PRE_INCREMENT (MODE)
  30053. A C expression used to determine whether a load preincrement is a
  30054. good thing to use for a given mode. Defaults to the value of
  30055. 'HAVE_PRE_INCREMENT'.
  30056. -- Macro: USE_LOAD_PRE_DECREMENT (MODE)
  30057. A C expression used to determine whether a load predecrement is a
  30058. good thing to use for a given mode. Defaults to the value of
  30059. 'HAVE_PRE_DECREMENT'.
  30060. -- Macro: USE_STORE_POST_INCREMENT (MODE)
  30061. A C expression used to determine whether a store postincrement is a
  30062. good thing to use for a given mode. Defaults to the value of
  30063. 'HAVE_POST_INCREMENT'.
  30064. -- Macro: USE_STORE_POST_DECREMENT (MODE)
  30065. A C expression used to determine whether a store postdecrement is a
  30066. good thing to use for a given mode. Defaults to the value of
  30067. 'HAVE_POST_DECREMENT'.
  30068. -- Macro: USE_STORE_PRE_INCREMENT (MODE)
  30069. This macro is used to determine whether a store preincrement is a
  30070. good thing to use for a given mode. Defaults to the value of
  30071. 'HAVE_PRE_INCREMENT'.
  30072. -- Macro: USE_STORE_PRE_DECREMENT (MODE)
  30073. This macro is used to determine whether a store predecrement is a
  30074. good thing to use for a given mode. Defaults to the value of
  30075. 'HAVE_PRE_DECREMENT'.
  30076. -- Macro: NO_FUNCTION_CSE
  30077. Define this macro to be true if it is as good or better to call a
  30078. constant function address than to call an address kept in a
  30079. register.
  30080. -- Macro: LOGICAL_OP_NON_SHORT_CIRCUIT
  30081. Define this macro if a non-short-circuit operation produced by
  30082. 'fold_range_test ()' is optimal. This macro defaults to true if
  30083. 'BRANCH_COST' is greater than or equal to the value 2.
  30084. -- Target Hook: bool TARGET_OPTAB_SUPPORTED_P (int OP, machine_mode
  30085. MODE1, machine_mode MODE2, optimization_type OPT_TYPE)
  30086. Return true if the optimizers should use optab OP with modes MODE1
  30087. and MODE2 for optimization type OPT_TYPE. The optab is known to
  30088. have an associated '.md' instruction whose C condition is true.
  30089. MODE2 is only meaningful for conversion optabs; for direct optabs
  30090. it is a copy of MODE1.
  30091. For example, when called with OP equal to 'rint_optab' and MODE1
  30092. equal to 'DFmode', the hook should say whether the optimizers
  30093. should use optab 'rintdf2'.
  30094. The default hook returns true for all inputs.
  30095. -- Target Hook: bool TARGET_RTX_COSTS (rtx X, machine_mode MODE, int
  30096. OUTER_CODE, int OPNO, int *TOTAL, bool SPEED)
  30097. This target hook describes the relative costs of RTL expressions.
  30098. The cost may depend on the precise form of the expression, which is
  30099. available for examination in X, and the fact that X appears as
  30100. operand OPNO of an expression with rtx code OUTER_CODE. That is,
  30101. the hook can assume that there is some rtx Y such that 'GET_CODE
  30102. (Y) == OUTER_CODE' and such that either (a) 'XEXP (Y, OPNO) == X'
  30103. or (b) 'XVEC (Y, OPNO)' contains X.
  30104. MODE is X's machine mode, or for cases like 'const_int' that do not
  30105. have a mode, the mode in which X is used.
  30106. In implementing this hook, you can use the construct 'COSTS_N_INSNS
  30107. (N)' to specify a cost equal to N fast instructions.
  30108. On entry to the hook, '*TOTAL' contains a default estimate for the
  30109. cost of the expression. The hook should modify this value as
  30110. necessary. Traditionally, the default costs are 'COSTS_N_INSNS
  30111. (5)' for multiplications, 'COSTS_N_INSNS (7)' for division and
  30112. modulus operations, and 'COSTS_N_INSNS (1)' for all other
  30113. operations.
  30114. When optimizing for code size, i.e. when 'speed' is false, this
  30115. target hook should be used to estimate the relative size cost of an
  30116. expression, again relative to 'COSTS_N_INSNS'.
  30117. The hook returns true when all subexpressions of X have been
  30118. processed, and false when 'rtx_cost' should recurse.
  30119. -- Target Hook: int TARGET_ADDRESS_COST (rtx ADDRESS, machine_mode
  30120. MODE, addr_space_t AS, bool SPEED)
  30121. This hook computes the cost of an addressing mode that contains
  30122. ADDRESS. If not defined, the cost is computed from the ADDRESS
  30123. expression and the 'TARGET_RTX_COST' hook.
  30124. For most CISC machines, the default cost is a good approximation of
  30125. the true cost of the addressing mode. However, on RISC machines,
  30126. all instructions normally have the same length and execution time.
  30127. Hence all addresses will have equal costs.
  30128. In cases where more than one form of an address is known, the form
  30129. with the lowest cost will be used. If multiple forms have the
  30130. same, lowest, cost, the one that is the most complex will be used.
  30131. For example, suppose an address that is equal to the sum of a
  30132. register and a constant is used twice in the same basic block.
  30133. When this macro is not defined, the address will be computed in a
  30134. register and memory references will be indirect through that
  30135. register. On machines where the cost of the addressing mode
  30136. containing the sum is no higher than that of a simple indirect
  30137. reference, this will produce an additional instruction and possibly
  30138. require an additional register. Proper specification of this macro
  30139. eliminates this overhead for such machines.
  30140. This hook is never called with an invalid address.
  30141. On machines where an address involving more than one register is as
  30142. cheap as an address computation involving only one register,
  30143. defining 'TARGET_ADDRESS_COST' to reflect this can cause two
  30144. registers to be live over a region of code where only one would
  30145. have been if 'TARGET_ADDRESS_COST' were not defined in that manner.
  30146. This effect should be considered in the definition of this macro.
  30147. Equivalent costs should probably only be given to addresses with
  30148. different numbers of registers on machines with lots of registers.
  30149. -- Target Hook: int TARGET_INSN_COST (rtx_insn *INSN, bool SPEED)
  30150. This target hook describes the relative costs of RTL instructions.
  30151. In implementing this hook, you can use the construct 'COSTS_N_INSNS
  30152. (N)' to specify a cost equal to N fast instructions.
  30153. When optimizing for code size, i.e. when 'speed' is false, this
  30154. target hook should be used to estimate the relative size cost of an
  30155. expression, again relative to 'COSTS_N_INSNS'.
  30156. -- Target Hook: unsigned int TARGET_MAX_NOCE_IFCVT_SEQ_COST (edge E)
  30157. This hook returns a value in the same units as 'TARGET_RTX_COSTS',
  30158. giving the maximum acceptable cost for a sequence generated by the
  30159. RTL if-conversion pass when conditional execution is not available.
  30160. The RTL if-conversion pass attempts to convert conditional
  30161. operations that would require a branch to a series of unconditional
  30162. operations and 'movMODEcc' insns. This hook returns the maximum
  30163. cost of the unconditional instructions and the 'movMODEcc' insns.
  30164. RTL if-conversion is cancelled if the cost of the converted
  30165. sequence is greater than the value returned by this hook.
  30166. 'e' is the edge between the basic block containing the conditional
  30167. branch to the basic block which would be executed if the condition
  30168. were true.
  30169. The default implementation of this hook uses the
  30170. 'max-rtl-if-conversion-[un]predictable' parameters if they are set,
  30171. and uses a multiple of 'BRANCH_COST' otherwise.
  30172. -- Target Hook: bool TARGET_NOCE_CONVERSION_PROFITABLE_P (rtx_insn
  30173. *SEQ, struct noce_if_info *IF_INFO)
  30174. This hook returns true if the instruction sequence 'seq' is a good
  30175. candidate as a replacement for the if-convertible sequence
  30176. described in 'if_info'.
  30177. -- Target Hook: bool TARGET_NEW_ADDRESS_PROFITABLE_P (rtx MEMREF,
  30178. rtx_insn * INSN, rtx NEW_ADDR)
  30179. Return 'true' if it is profitable to replace the address in MEMREF
  30180. with NEW_ADDR. This allows targets to prevent the scheduler from
  30181. undoing address optimizations. The instruction containing the
  30182. memref is INSN. The default implementation returns 'true'.
  30183. -- Target Hook: bool TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P (void)
  30184. This predicate controls the use of the eager delay slot filler to
  30185. disallow speculatively executed instructions being placed in delay
  30186. slots. Targets such as certain MIPS architectures possess both
  30187. branches with and without delay slots. As the eager delay slot
  30188. filler can decrease performance, disabling it is beneficial when
  30189. ordinary branches are available. Use of delay slot branches filled
  30190. using the basic filler is often still desirable as the delay slot
  30191. can hide a pipeline bubble.
  30192. -- Target Hook: HOST_WIDE_INT TARGET_ESTIMATED_POLY_VALUE (poly_int64
  30193. VAL)
  30194. Return an estimate of the runtime value of VAL, for use in things
  30195. like cost calculations or profiling frequencies. The default
  30196. implementation returns the lowest possible value of VAL.
  30197. 
  30198. File: gccint.info, Node: Scheduling, Next: Sections, Prev: Costs, Up: Target Macros
  30199. 18.17 Adjusting the Instruction Scheduler
  30200. =========================================
  30201. The instruction scheduler may need a fair amount of machine-specific
  30202. adjustment in order to produce good code. GCC provides several target
  30203. hooks for this purpose. It is usually enough to define just a few of
  30204. them: try the first ones in this list first.
  30205. -- Target Hook: int TARGET_SCHED_ISSUE_RATE (void)
  30206. This hook returns the maximum number of instructions that can ever
  30207. issue at the same time on the target machine. The default is one.
  30208. Although the insn scheduler can define itself the possibility of
  30209. issue an insn on the same cycle, the value can serve as an
  30210. additional constraint to issue insns on the same simulated
  30211. processor cycle (see hooks 'TARGET_SCHED_REORDER' and
  30212. 'TARGET_SCHED_REORDER2'). This value must be constant over the
  30213. entire compilation. If you need it to vary depending on what the
  30214. instructions are, you must use 'TARGET_SCHED_VARIABLE_ISSUE'.
  30215. -- Target Hook: int TARGET_SCHED_VARIABLE_ISSUE (FILE *FILE, int
  30216. VERBOSE, rtx_insn *INSN, int MORE)
  30217. This hook is executed by the scheduler after it has scheduled an
  30218. insn from the ready list. It should return the number of insns
  30219. which can still be issued in the current cycle. The default is
  30220. 'MORE - 1' for insns other than 'CLOBBER' and 'USE', which normally
  30221. are not counted against the issue rate. You should define this
  30222. hook if some insns take more machine resources than others, so that
  30223. fewer insns can follow them in the same cycle. FILE is either a
  30224. null pointer, or a stdio stream to write any debug output to.
  30225. VERBOSE is the verbose level provided by '-fsched-verbose-N'. INSN
  30226. is the instruction that was scheduled.
  30227. -- Target Hook: int TARGET_SCHED_ADJUST_COST (rtx_insn *INSN, int
  30228. DEP_TYPE1, rtx_insn *DEP_INSN, int COST, unsigned int DW)
  30229. This function corrects the value of COST based on the relationship
  30230. between INSN and DEP_INSN through a dependence of type dep_type,
  30231. and strength DW. It should return the new value. The default is
  30232. to make no adjustment to COST. This can be used for example to
  30233. specify to the scheduler using the traditional pipeline description
  30234. that an output- or anti-dependence does not incur the same cost as
  30235. a data-dependence. If the scheduler using the automaton based
  30236. pipeline description, the cost of anti-dependence is zero and the
  30237. cost of output-dependence is maximum of one and the difference of
  30238. latency times of the first and the second insns. If these values
  30239. are not acceptable, you could use the hook to modify them too. See
  30240. also *note Processor pipeline description::.
  30241. -- Target Hook: int TARGET_SCHED_ADJUST_PRIORITY (rtx_insn *INSN, int
  30242. PRIORITY)
  30243. This hook adjusts the integer scheduling priority PRIORITY of INSN.
  30244. It should return the new priority. Increase the priority to
  30245. execute INSN earlier, reduce the priority to execute INSN later.
  30246. Do not define this hook if you do not need to adjust the scheduling
  30247. priorities of insns.
  30248. -- Target Hook: int TARGET_SCHED_REORDER (FILE *FILE, int VERBOSE,
  30249. rtx_insn **READY, int *N_READYP, int CLOCK)
  30250. This hook is executed by the scheduler after it has scheduled the
  30251. ready list, to allow the machine description to reorder it (for
  30252. example to combine two small instructions together on 'VLIW'
  30253. machines). FILE is either a null pointer, or a stdio stream to
  30254. write any debug output to. VERBOSE is the verbose level provided
  30255. by '-fsched-verbose-N'. READY is a pointer to the ready list of
  30256. instructions that are ready to be scheduled. N_READYP is a pointer
  30257. to the number of elements in the ready list. The scheduler reads
  30258. the ready list in reverse order, starting with READY[*N_READYP - 1]
  30259. and going to READY[0]. CLOCK is the timer tick of the scheduler.
  30260. You may modify the ready list and the number of ready insns. The
  30261. return value is the number of insns that can issue this cycle;
  30262. normally this is just 'issue_rate'. See also
  30263. 'TARGET_SCHED_REORDER2'.
  30264. -- Target Hook: int TARGET_SCHED_REORDER2 (FILE *FILE, int VERBOSE,
  30265. rtx_insn **READY, int *N_READYP, int CLOCK)
  30266. Like 'TARGET_SCHED_REORDER', but called at a different time. That
  30267. function is called whenever the scheduler starts a new cycle. This
  30268. one is called once per iteration over a cycle, immediately after
  30269. 'TARGET_SCHED_VARIABLE_ISSUE'; it can reorder the ready list and
  30270. return the number of insns to be scheduled in the same cycle.
  30271. Defining this hook can be useful if there are frequent situations
  30272. where scheduling one insn causes other insns to become ready in the
  30273. same cycle. These other insns can then be taken into account
  30274. properly.
  30275. -- Target Hook: bool TARGET_SCHED_MACRO_FUSION_P (void)
  30276. This hook is used to check whether target platform supports macro
  30277. fusion.
  30278. -- Target Hook: bool TARGET_SCHED_MACRO_FUSION_PAIR_P (rtx_insn *PREV,
  30279. rtx_insn *CURR)
  30280. This hook is used to check whether two insns should be macro fused
  30281. for a target microarchitecture. If this hook returns true for the
  30282. given insn pair (PREV and CURR), the scheduler will put them into a
  30283. sched group, and they will not be scheduled apart. The two insns
  30284. will be either two SET insns or a compare and a conditional jump
  30285. and this hook should validate any dependencies needed to fuse the
  30286. two insns together.
  30287. -- Target Hook: void TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK
  30288. (rtx_insn *HEAD, rtx_insn *TAIL)
  30289. This hook is called after evaluation forward dependencies of insns
  30290. in chain given by two parameter values (HEAD and TAIL
  30291. correspondingly) but before insns scheduling of the insn chain.
  30292. For example, it can be used for better insn classification if it
  30293. requires analysis of dependencies. This hook can use backward and
  30294. forward dependencies of the insn scheduler because they are already
  30295. calculated.
  30296. -- Target Hook: void TARGET_SCHED_INIT (FILE *FILE, int VERBOSE, int
  30297. MAX_READY)
  30298. This hook is executed by the scheduler at the beginning of each
  30299. block of instructions that are to be scheduled. FILE is either a
  30300. null pointer, or a stdio stream to write any debug output to.
  30301. VERBOSE is the verbose level provided by '-fsched-verbose-N'.
  30302. MAX_READY is the maximum number of insns in the current scheduling
  30303. region that can be live at the same time. This can be used to
  30304. allocate scratch space if it is needed, e.g. by
  30305. 'TARGET_SCHED_REORDER'.
  30306. -- Target Hook: void TARGET_SCHED_FINISH (FILE *FILE, int VERBOSE)
  30307. This hook is executed by the scheduler at the end of each block of
  30308. instructions that are to be scheduled. It can be used to perform
  30309. cleanup of any actions done by the other scheduling hooks. FILE is
  30310. either a null pointer, or a stdio stream to write any debug output
  30311. to. VERBOSE is the verbose level provided by '-fsched-verbose-N'.
  30312. -- Target Hook: void TARGET_SCHED_INIT_GLOBAL (FILE *FILE, int VERBOSE,
  30313. int OLD_MAX_UID)
  30314. This hook is executed by the scheduler after function level
  30315. initializations. FILE is either a null pointer, or a stdio stream
  30316. to write any debug output to. VERBOSE is the verbose level
  30317. provided by '-fsched-verbose-N'. OLD_MAX_UID is the maximum insn
  30318. uid when scheduling begins.
  30319. -- Target Hook: void TARGET_SCHED_FINISH_GLOBAL (FILE *FILE, int
  30320. VERBOSE)
  30321. This is the cleanup hook corresponding to
  30322. 'TARGET_SCHED_INIT_GLOBAL'. FILE is either a null pointer, or a
  30323. stdio stream to write any debug output to. VERBOSE is the verbose
  30324. level provided by '-fsched-verbose-N'.
  30325. -- Target Hook: rtx TARGET_SCHED_DFA_PRE_CYCLE_INSN (void)
  30326. The hook returns an RTL insn. The automaton state used in the
  30327. pipeline hazard recognizer is changed as if the insn were scheduled
  30328. when the new simulated processor cycle starts. Usage of the hook
  30329. may simplify the automaton pipeline description for some VLIW
  30330. processors. If the hook is defined, it is used only for the
  30331. automaton based pipeline description. The default is not to change
  30332. the state when the new simulated processor cycle starts.
  30333. -- Target Hook: void TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN (void)
  30334. The hook can be used to initialize data used by the previous hook.
  30335. -- Target Hook: rtx_insn * TARGET_SCHED_DFA_POST_CYCLE_INSN (void)
  30336. The hook is analogous to 'TARGET_SCHED_DFA_PRE_CYCLE_INSN' but used
  30337. to changed the state as if the insn were scheduled when the new
  30338. simulated processor cycle finishes.
  30339. -- Target Hook: void TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN (void)
  30340. The hook is analogous to 'TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN' but
  30341. used to initialize data used by the previous hook.
  30342. -- Target Hook: void TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE (void)
  30343. The hook to notify target that the current simulated cycle is about
  30344. to finish. The hook is analogous to
  30345. 'TARGET_SCHED_DFA_PRE_CYCLE_INSN' but used to change the state in
  30346. more complicated situations - e.g., when advancing state on a
  30347. single insn is not enough.
  30348. -- Target Hook: void TARGET_SCHED_DFA_POST_ADVANCE_CYCLE (void)
  30349. The hook to notify target that new simulated cycle has just
  30350. started. The hook is analogous to
  30351. 'TARGET_SCHED_DFA_POST_CYCLE_INSN' but used to change the state in
  30352. more complicated situations - e.g., when advancing state on a
  30353. single insn is not enough.
  30354. -- Target Hook: int TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD
  30355. (void)
  30356. This hook controls better choosing an insn from the ready insn
  30357. queue for the DFA-based insn scheduler. Usually the scheduler
  30358. chooses the first insn from the queue. If the hook returns a
  30359. positive value, an additional scheduler code tries all permutations
  30360. of 'TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD ()' subsequent
  30361. ready insns to choose an insn whose issue will result in maximal
  30362. number of issued insns on the same cycle. For the VLIW processor,
  30363. the code could actually solve the problem of packing simple insns
  30364. into the VLIW insn. Of course, if the rules of VLIW packing are
  30365. described in the automaton.
  30366. This code also could be used for superscalar RISC processors. Let
  30367. us consider a superscalar RISC processor with 3 pipelines. Some
  30368. insns can be executed in pipelines A or B, some insns can be
  30369. executed only in pipelines B or C, and one insn can be executed in
  30370. pipeline B. The processor may issue the 1st insn into A and the
  30371. 2nd one into B. In this case, the 3rd insn will wait for freeing B
  30372. until the next cycle. If the scheduler issues the 3rd insn the
  30373. first, the processor could issue all 3 insns per cycle.
  30374. Actually this code demonstrates advantages of the automaton based
  30375. pipeline hazard recognizer. We try quickly and easy many insn
  30376. schedules to choose the best one.
  30377. The default is no multipass scheduling.
  30378. -- Target Hook: int
  30379. TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD
  30380. (rtx_insn *INSN, int READY_INDEX)
  30381. This hook controls what insns from the ready insn queue will be
  30382. considered for the multipass insn scheduling. If the hook returns
  30383. zero for INSN, the insn will be considered in multipass scheduling.
  30384. Positive return values will remove INSN from consideration on the
  30385. current round of multipass scheduling. Negative return values will
  30386. remove INSN from consideration for given number of cycles.
  30387. Backends should be careful about returning non-zero for highest
  30388. priority instruction at position 0 in the ready list. READY_INDEX
  30389. is passed to allow backends make correct judgements.
  30390. The default is that any ready insns can be chosen to be issued.
  30391. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BEGIN (void
  30392. *DATA, signed char *READY_TRY, int N_READY, bool
  30393. FIRST_CYCLE_INSN_P)
  30394. This hook prepares the target backend for a new round of multipass
  30395. scheduling.
  30396. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_ISSUE (void
  30397. *DATA, signed char *READY_TRY, int N_READY, rtx_insn *INSN,
  30398. const void *PREV_DATA)
  30399. This hook is called when multipass scheduling evaluates instruction
  30400. INSN.
  30401. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BACKTRACK
  30402. (const void *DATA, signed char *READY_TRY, int N_READY)
  30403. This is called when multipass scheduling backtracks from evaluation
  30404. of an instruction.
  30405. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_END (const void
  30406. *DATA)
  30407. This hook notifies the target about the result of the concluded
  30408. current round of multipass scheduling.
  30409. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_INIT (void
  30410. *DATA)
  30411. This hook initializes target-specific data used in multipass
  30412. scheduling.
  30413. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_FINI (void
  30414. *DATA)
  30415. This hook finalizes target-specific data used in multipass
  30416. scheduling.
  30417. -- Target Hook: int TARGET_SCHED_DFA_NEW_CYCLE (FILE *DUMP, int
  30418. VERBOSE, rtx_insn *INSN, int LAST_CLOCK, int CLOCK, int
  30419. *SORT_P)
  30420. This hook is called by the insn scheduler before issuing INSN on
  30421. cycle CLOCK. If the hook returns nonzero, INSN is not issued on
  30422. this processor cycle. Instead, the processor cycle is advanced.
  30423. If *SORT_P is zero, the insn ready queue is not sorted on the new
  30424. cycle start as usually. DUMP and VERBOSE specify the file and
  30425. verbosity level to use for debugging output. LAST_CLOCK and CLOCK
  30426. are, respectively, the processor cycle on which the previous insn
  30427. has been issued, and the current processor cycle.
  30428. -- Target Hook: bool TARGET_SCHED_IS_COSTLY_DEPENDENCE (struct _dep
  30429. *_DEP, int COST, int DISTANCE)
  30430. This hook is used to define which dependences are considered costly
  30431. by the target, so costly that it is not advisable to schedule the
  30432. insns that are involved in the dependence too close to one another.
  30433. The parameters to this hook are as follows: The first parameter
  30434. _DEP is the dependence being evaluated. The second parameter COST
  30435. is the cost of the dependence as estimated by the scheduler, and
  30436. the third parameter DISTANCE is the distance in cycles between the
  30437. two insns. The hook returns 'true' if considering the distance
  30438. between the two insns the dependence between them is considered
  30439. costly by the target, and 'false' otherwise.
  30440. Defining this hook can be useful in multiple-issue out-of-order
  30441. machines, where (a) it's practically hopeless to predict the actual
  30442. data/resource delays, however: (b) there's a better chance to
  30443. predict the actual grouping that will be formed, and (c) correctly
  30444. emulating the grouping can be very important. In such targets one
  30445. may want to allow issuing dependent insns closer to one
  30446. another--i.e., closer than the dependence distance; however, not in
  30447. cases of "costly dependences", which this hooks allows to define.
  30448. -- Target Hook: void TARGET_SCHED_H_I_D_EXTENDED (void)
  30449. This hook is called by the insn scheduler after emitting a new
  30450. instruction to the instruction stream. The hook notifies a target
  30451. backend to extend its per instruction data structures.
  30452. -- Target Hook: void * TARGET_SCHED_ALLOC_SCHED_CONTEXT (void)
  30453. Return a pointer to a store large enough to hold target scheduling
  30454. context.
  30455. -- Target Hook: void TARGET_SCHED_INIT_SCHED_CONTEXT (void *TC, bool
  30456. CLEAN_P)
  30457. Initialize store pointed to by TC to hold target scheduling
  30458. context. It CLEAN_P is true then initialize TC as if scheduler is
  30459. at the beginning of the block. Otherwise, copy the current context
  30460. into TC.
  30461. -- Target Hook: void TARGET_SCHED_SET_SCHED_CONTEXT (void *TC)
  30462. Copy target scheduling context pointed to by TC to the current
  30463. context.
  30464. -- Target Hook: void TARGET_SCHED_CLEAR_SCHED_CONTEXT (void *TC)
  30465. Deallocate internal data in target scheduling context pointed to by
  30466. TC.
  30467. -- Target Hook: void TARGET_SCHED_FREE_SCHED_CONTEXT (void *TC)
  30468. Deallocate a store for target scheduling context pointed to by TC.
  30469. -- Target Hook: int TARGET_SCHED_SPECULATE_INSN (rtx_insn *INSN,
  30470. unsigned int DEP_STATUS, rtx *NEW_PAT)
  30471. This hook is called by the insn scheduler when INSN has only
  30472. speculative dependencies and therefore can be scheduled
  30473. speculatively. The hook is used to check if the pattern of INSN
  30474. has a speculative version and, in case of successful check, to
  30475. generate that speculative pattern. The hook should return 1, if
  30476. the instruction has a speculative form, or -1, if it doesn't.
  30477. REQUEST describes the type of requested speculation. If the return
  30478. value equals 1 then NEW_PAT is assigned the generated speculative
  30479. pattern.
  30480. -- Target Hook: bool TARGET_SCHED_NEEDS_BLOCK_P (unsigned int
  30481. DEP_STATUS)
  30482. This hook is called by the insn scheduler during generation of
  30483. recovery code for INSN. It should return 'true', if the
  30484. corresponding check instruction should branch to recovery code, or
  30485. 'false' otherwise.
  30486. -- Target Hook: rtx TARGET_SCHED_GEN_SPEC_CHECK (rtx_insn *INSN,
  30487. rtx_insn *LABEL, unsigned int DS)
  30488. This hook is called by the insn scheduler to generate a pattern for
  30489. recovery check instruction. If MUTATE_P is zero, then INSN is a
  30490. speculative instruction for which the check should be generated.
  30491. LABEL is either a label of a basic block, where recovery code
  30492. should be emitted, or a null pointer, when requested check doesn't
  30493. branch to recovery code (a simple check). If MUTATE_P is nonzero,
  30494. then a pattern for a branchy check corresponding to a simple check
  30495. denoted by INSN should be generated. In this case LABEL can't be
  30496. null.
  30497. -- Target Hook: void TARGET_SCHED_SET_SCHED_FLAGS (struct spec_info_def
  30498. *SPEC_INFO)
  30499. This hook is used by the insn scheduler to find out what features
  30500. should be enabled/used. The structure *SPEC_INFO should be filled
  30501. in by the target. The structure describes speculation types that
  30502. can be used in the scheduler.
  30503. -- Target Hook: bool TARGET_SCHED_CAN_SPECULATE_INSN (rtx_insn *INSN)
  30504. Some instructions should never be speculated by the schedulers,
  30505. usually because the instruction is too expensive to get this wrong.
  30506. Often such instructions have long latency, and often they are not
  30507. fully modeled in the pipeline descriptions. This hook should
  30508. return 'false' if INSN should not be speculated.
  30509. -- Target Hook: int TARGET_SCHED_SMS_RES_MII (struct ddg *G)
  30510. This hook is called by the swing modulo scheduler to calculate a
  30511. resource-based lower bound which is based on the resources
  30512. available in the machine and the resources required by each
  30513. instruction. The target backend can use G to calculate such bound.
  30514. A very simple lower bound will be used in case this hook is not
  30515. implemented: the total number of instructions divided by the issue
  30516. rate.
  30517. -- Target Hook: bool TARGET_SCHED_DISPATCH (rtx_insn *INSN, int X)
  30518. This hook is called by Haifa Scheduler. It returns true if
  30519. dispatch scheduling is supported in hardware and the condition
  30520. specified in the parameter is true.
  30521. -- Target Hook: void TARGET_SCHED_DISPATCH_DO (rtx_insn *INSN, int X)
  30522. This hook is called by Haifa Scheduler. It performs the operation
  30523. specified in its second parameter.
  30524. -- Target Hook: bool TARGET_SCHED_EXPOSED_PIPELINE
  30525. True if the processor has an exposed pipeline, which means that not
  30526. just the order of instructions is important for correctness when
  30527. scheduling, but also the latencies of operations.
  30528. -- Target Hook: int TARGET_SCHED_REASSOCIATION_WIDTH (unsigned int OPC,
  30529. machine_mode MODE)
  30530. This hook is called by tree reassociator to determine a level of
  30531. parallelism required in output calculations chain.
  30532. -- Target Hook: void TARGET_SCHED_FUSION_PRIORITY (rtx_insn *INSN, int
  30533. MAX_PRI, int *FUSION_PRI, int *PRI)
  30534. This hook is called by scheduling fusion pass. It calculates
  30535. fusion priorities for each instruction passed in by parameter. The
  30536. priorities are returned via pointer parameters.
  30537. INSN is the instruction whose priorities need to be calculated.
  30538. MAX_PRI is the maximum priority can be returned in any cases.
  30539. FUSION_PRI is the pointer parameter through which INSN's fusion
  30540. priority should be calculated and returned. PRI is the pointer
  30541. parameter through which INSN's priority should be calculated and
  30542. returned.
  30543. Same FUSION_PRI should be returned for instructions which should be
  30544. scheduled together. Different PRI should be returned for
  30545. instructions with same FUSION_PRI. FUSION_PRI is the major sort
  30546. key, PRI is the minor sort key. All instructions will be scheduled
  30547. according to the two priorities. All priorities calculated should
  30548. be between 0 (exclusive) and MAX_PRI (inclusive). To avoid false
  30549. dependencies, FUSION_PRI of instructions which need to be scheduled
  30550. together should be smaller than FUSION_PRI of irrelevant
  30551. instructions.
  30552. Given below example:
  30553. ldr r10, [r1, 4]
  30554. add r4, r4, r10
  30555. ldr r15, [r2, 8]
  30556. sub r5, r5, r15
  30557. ldr r11, [r1, 0]
  30558. add r4, r4, r11
  30559. ldr r16, [r2, 12]
  30560. sub r5, r5, r16
  30561. On targets like ARM/AArch64, the two pairs of consecutive loads
  30562. should be merged. Since peephole2 pass can't help in this case
  30563. unless consecutive loads are actually next to each other in
  30564. instruction flow. That's where this scheduling fusion pass works.
  30565. This hook calculates priority for each instruction based on its
  30566. fustion type, like:
  30567. ldr r10, [r1, 4] ; fusion_pri=99, pri=96
  30568. add r4, r4, r10 ; fusion_pri=100, pri=100
  30569. ldr r15, [r2, 8] ; fusion_pri=98, pri=92
  30570. sub r5, r5, r15 ; fusion_pri=100, pri=100
  30571. ldr r11, [r1, 0] ; fusion_pri=99, pri=100
  30572. add r4, r4, r11 ; fusion_pri=100, pri=100
  30573. ldr r16, [r2, 12] ; fusion_pri=98, pri=88
  30574. sub r5, r5, r16 ; fusion_pri=100, pri=100
  30575. Scheduling fusion pass then sorts all ready to issue instructions
  30576. according to the priorities. As a result, instructions of same
  30577. fusion type will be pushed together in instruction flow, like:
  30578. ldr r11, [r1, 0]
  30579. ldr r10, [r1, 4]
  30580. ldr r15, [r2, 8]
  30581. ldr r16, [r2, 12]
  30582. add r4, r4, r10
  30583. sub r5, r5, r15
  30584. add r4, r4, r11
  30585. sub r5, r5, r16
  30586. Now peephole2 pass can simply merge the two pairs of loads.
  30587. Since scheduling fusion pass relies on peephole2 to do real fusion
  30588. work, it is only enabled by default when peephole2 is in effect.
  30589. This is firstly introduced on ARM/AArch64 targets, please refer to
  30590. the hook implementation for how different fusion types are
  30591. supported.
  30592. -- Target Hook: void TARGET_EXPAND_DIVMOD_LIBFUNC (rtx LIBFUNC,
  30593. machine_mode MODE, rtx OP0, rtx OP1, rtx *QUOT, rtx *REM)
  30594. Define this hook for enabling divmod transform if the port does not
  30595. have hardware divmod insn but defines target-specific divmod
  30596. libfuncs.
  30597. 
  30598. File: gccint.info, Node: Sections, Next: PIC, Prev: Scheduling, Up: Target Macros
  30599. 18.18 Dividing the Output into Sections (Texts, Data, ...)
  30600. ==========================================================
  30601. An object file is divided into sections containing different types of
  30602. data. In the most common case, there are three sections: the "text
  30603. section", which holds instructions and read-only data; the "data
  30604. section", which holds initialized writable data; and the "bss section",
  30605. which holds uninitialized data. Some systems have other kinds of
  30606. sections.
  30607. 'varasm.c' provides several well-known sections, such as
  30608. 'text_section', 'data_section' and 'bss_section'. The normal way of
  30609. controlling a 'FOO_section' variable is to define the associated
  30610. 'FOO_SECTION_ASM_OP' macro, as described below. The macros are only
  30611. read once, when 'varasm.c' initializes itself, so their values must be
  30612. run-time constants. They may however depend on command-line flags.
  30613. _Note:_ Some run-time files, such 'crtstuff.c', also make use of the
  30614. 'FOO_SECTION_ASM_OP' macros, and expect them to be string literals.
  30615. Some assemblers require a different string to be written every time a
  30616. section is selected. If your assembler falls into this category, you
  30617. should define the 'TARGET_ASM_INIT_SECTIONS' hook and use
  30618. 'get_unnamed_section' to set up the sections.
  30619. You must always create a 'text_section', either by defining
  30620. 'TEXT_SECTION_ASM_OP' or by initializing 'text_section' in
  30621. 'TARGET_ASM_INIT_SECTIONS'. The same is true of 'data_section' and
  30622. 'DATA_SECTION_ASM_OP'. If you do not create a distinct
  30623. 'readonly_data_section', the default is to reuse 'text_section'.
  30624. All the other 'varasm.c' sections are optional, and are null if the
  30625. target does not provide them.
  30626. -- Macro: TEXT_SECTION_ASM_OP
  30627. A C expression whose value is a string, including spacing,
  30628. containing the assembler operation that should precede instructions
  30629. and read-only data. Normally '"\t.text"' is right.
  30630. -- Macro: HOT_TEXT_SECTION_NAME
  30631. If defined, a C string constant for the name of the section
  30632. containing most frequently executed functions of the program. If
  30633. not defined, GCC will provide a default definition if the target
  30634. supports named sections.
  30635. -- Macro: UNLIKELY_EXECUTED_TEXT_SECTION_NAME
  30636. If defined, a C string constant for the name of the section
  30637. containing unlikely executed functions in the program.
  30638. -- Macro: DATA_SECTION_ASM_OP
  30639. A C expression whose value is a string, including spacing,
  30640. containing the assembler operation to identify the following data
  30641. as writable initialized data. Normally '"\t.data"' is right.
  30642. -- Macro: SDATA_SECTION_ASM_OP
  30643. If defined, a C expression whose value is a string, including
  30644. spacing, containing the assembler operation to identify the
  30645. following data as initialized, writable small data.
  30646. -- Macro: READONLY_DATA_SECTION_ASM_OP
  30647. A C expression whose value is a string, including spacing,
  30648. containing the assembler operation to identify the following data
  30649. as read-only initialized data.
  30650. -- Macro: BSS_SECTION_ASM_OP
  30651. If defined, a C expression whose value is a string, including
  30652. spacing, containing the assembler operation to identify the
  30653. following data as uninitialized global data. If not defined, and
  30654. 'ASM_OUTPUT_ALIGNED_BSS' not defined, uninitialized global data
  30655. will be output in the data section if '-fno-common' is passed,
  30656. otherwise 'ASM_OUTPUT_COMMON' will be used.
  30657. -- Macro: SBSS_SECTION_ASM_OP
  30658. If defined, a C expression whose value is a string, including
  30659. spacing, containing the assembler operation to identify the
  30660. following data as uninitialized, writable small data.
  30661. -- Macro: TLS_COMMON_ASM_OP
  30662. If defined, a C expression whose value is a string containing the
  30663. assembler operation to identify the following data as thread-local
  30664. common data. The default is '".tls_common"'.
  30665. -- Macro: TLS_SECTION_ASM_FLAG
  30666. If defined, a C expression whose value is a character constant
  30667. containing the flag used to mark a section as a TLS section. The
  30668. default is ''T''.
  30669. -- Macro: INIT_SECTION_ASM_OP
  30670. If defined, a C expression whose value is a string, including
  30671. spacing, containing the assembler operation to identify the
  30672. following data as initialization code. If not defined, GCC will
  30673. assume such a section does not exist. This section has no
  30674. corresponding 'init_section' variable; it is used entirely in
  30675. runtime code.
  30676. -- Macro: FINI_SECTION_ASM_OP
  30677. If defined, a C expression whose value is a string, including
  30678. spacing, containing the assembler operation to identify the
  30679. following data as finalization code. If not defined, GCC will
  30680. assume such a section does not exist. This section has no
  30681. corresponding 'fini_section' variable; it is used entirely in
  30682. runtime code.
  30683. -- Macro: INIT_ARRAY_SECTION_ASM_OP
  30684. If defined, a C expression whose value is a string, including
  30685. spacing, containing the assembler operation to identify the
  30686. following data as part of the '.init_array' (or equivalent)
  30687. section. If not defined, GCC will assume such a section does not
  30688. exist. Do not define both this macro and 'INIT_SECTION_ASM_OP'.
  30689. -- Macro: FINI_ARRAY_SECTION_ASM_OP
  30690. If defined, a C expression whose value is a string, including
  30691. spacing, containing the assembler operation to identify the
  30692. following data as part of the '.fini_array' (or equivalent)
  30693. section. If not defined, GCC will assume such a section does not
  30694. exist. Do not define both this macro and 'FINI_SECTION_ASM_OP'.
  30695. -- Macro: MACH_DEP_SECTION_ASM_FLAG
  30696. If defined, a C expression whose value is a character constant
  30697. containing the flag used to mark a machine-dependent section. This
  30698. corresponds to the 'SECTION_MACH_DEP' section flag.
  30699. -- Macro: CRT_CALL_STATIC_FUNCTION (SECTION_OP, FUNCTION)
  30700. If defined, an ASM statement that switches to a different section
  30701. via SECTION_OP, calls FUNCTION, and switches back to the text
  30702. section. This is used in 'crtstuff.c' if 'INIT_SECTION_ASM_OP' or
  30703. 'FINI_SECTION_ASM_OP' to calls to initialization and finalization
  30704. functions from the init and fini sections. By default, this macro
  30705. uses a simple function call. Some ports need hand-crafted assembly
  30706. code to avoid dependencies on registers initialized in the function
  30707. prologue or to ensure that constant pools don't end up too far way
  30708. in the text section.
  30709. -- Macro: TARGET_LIBGCC_SDATA_SECTION
  30710. If defined, a string which names the section into which small
  30711. variables defined in crtstuff and libgcc should go. This is useful
  30712. when the target has options for optimizing access to small data,
  30713. and you want the crtstuff and libgcc routines to be conservative in
  30714. what they expect of your application yet liberal in what your
  30715. application expects. For example, for targets with a '.sdata'
  30716. section (like MIPS), you could compile crtstuff with '-G 0' so that
  30717. it doesn't require small data support from your application, but
  30718. use this macro to put small data into '.sdata' so that your
  30719. application can access these variables whether it uses small data
  30720. or not.
  30721. -- Macro: FORCE_CODE_SECTION_ALIGN
  30722. If defined, an ASM statement that aligns a code section to some
  30723. arbitrary boundary. This is used to force all fragments of the
  30724. '.init' and '.fini' sections to have to same alignment and thus
  30725. prevent the linker from having to add any padding.
  30726. -- Macro: JUMP_TABLES_IN_TEXT_SECTION
  30727. Define this macro to be an expression with a nonzero value if jump
  30728. tables (for 'tablejump' insns) should be output in the text
  30729. section, along with the assembler instructions. Otherwise, the
  30730. readonly data section is used.
  30731. This macro is irrelevant if there is no separate readonly data
  30732. section.
  30733. -- Target Hook: void TARGET_ASM_INIT_SECTIONS (void)
  30734. Define this hook if you need to do something special to set up the
  30735. 'varasm.c' sections, or if your target has some special sections of
  30736. its own that you need to create.
  30737. GCC calls this hook after processing the command line, but before
  30738. writing any assembly code, and before calling any of the
  30739. section-returning hooks described below.
  30740. -- Target Hook: int TARGET_ASM_RELOC_RW_MASK (void)
  30741. Return a mask describing how relocations should be treated when
  30742. selecting sections. Bit 1 should be set if global relocations
  30743. should be placed in a read-write section; bit 0 should be set if
  30744. local relocations should be placed in a read-write section.
  30745. The default version of this function returns 3 when '-fpic' is in
  30746. effect, and 0 otherwise. The hook is typically redefined when the
  30747. target cannot support (some kinds of) dynamic relocations in
  30748. read-only sections even in executables.
  30749. -- Target Hook: bool TARGET_ASM_GENERATE_PIC_ADDR_DIFF_VEC (void)
  30750. Return true to generate ADDR_DIF_VEC table or false to generate
  30751. ADDR_VEC table for jumps in case of -fPIC.
  30752. The default version of this function returns true if flag_pic
  30753. equals true and false otherwise
  30754. -- Target Hook: section * TARGET_ASM_SELECT_SECTION (tree EXP, int
  30755. RELOC, unsigned HOST_WIDE_INT ALIGN)
  30756. Return the section into which EXP should be placed. You can assume
  30757. that EXP is either a 'VAR_DECL' node or a constant of some sort.
  30758. RELOC indicates whether the initial value of EXP requires link-time
  30759. relocations. Bit 0 is set when variable contains local relocations
  30760. only, while bit 1 is set for global relocations. ALIGN is the
  30761. constant alignment in bits.
  30762. The default version of this function takes care of putting
  30763. read-only variables in 'readonly_data_section'.
  30764. See also USE_SELECT_SECTION_FOR_FUNCTIONS.
  30765. -- Macro: USE_SELECT_SECTION_FOR_FUNCTIONS
  30766. Define this macro if you wish TARGET_ASM_SELECT_SECTION to be
  30767. called for 'FUNCTION_DECL's as well as for variables and constants.
  30768. In the case of a 'FUNCTION_DECL', RELOC will be zero if the
  30769. function has been determined to be likely to be called, and nonzero
  30770. if it is unlikely to be called.
  30771. -- Target Hook: void TARGET_ASM_UNIQUE_SECTION (tree DECL, int RELOC)
  30772. Build up a unique section name, expressed as a 'STRING_CST' node,
  30773. and assign it to 'DECL_SECTION_NAME (DECL)'. As with
  30774. 'TARGET_ASM_SELECT_SECTION', RELOC indicates whether the initial
  30775. value of EXP requires link-time relocations.
  30776. The default version of this function appends the symbol name to the
  30777. ELF section name that would normally be used for the symbol. For
  30778. example, the function 'foo' would be placed in '.text.foo'.
  30779. Whatever the actual target object format, this is often good
  30780. enough.
  30781. -- Target Hook: section * TARGET_ASM_FUNCTION_RODATA_SECTION (tree
  30782. DECL)
  30783. Return the readonly data section associated with 'DECL_SECTION_NAME
  30784. (DECL)'. The default version of this function selects
  30785. '.gnu.linkonce.r.name' if the function's section is
  30786. '.gnu.linkonce.t.name', '.rodata.name' if function is in
  30787. '.text.name', and the normal readonly-data section otherwise.
  30788. -- Target Hook: const char * TARGET_ASM_MERGEABLE_RODATA_PREFIX
  30789. Usually, the compiler uses the prefix '".rodata"' to construct
  30790. section names for mergeable constant data. Define this macro to
  30791. override the string if a different section name should be used.
  30792. -- Target Hook: section * TARGET_ASM_TM_CLONE_TABLE_SECTION (void)
  30793. Return the section that should be used for transactional memory
  30794. clone tables.
  30795. -- Target Hook: section * TARGET_ASM_SELECT_RTX_SECTION (machine_mode
  30796. MODE, rtx X, unsigned HOST_WIDE_INT ALIGN)
  30797. Return the section into which a constant X, of mode MODE, should be
  30798. placed. You can assume that X is some kind of constant in RTL.
  30799. The argument MODE is redundant except in the case of a 'const_int'
  30800. rtx. ALIGN is the constant alignment in bits.
  30801. The default version of this function takes care of putting symbolic
  30802. constants in 'flag_pic' mode in 'data_section' and everything else
  30803. in 'readonly_data_section'.
  30804. -- Target Hook: tree TARGET_MANGLE_DECL_ASSEMBLER_NAME (tree DECL, tree
  30805. ID)
  30806. Define this hook if you need to postprocess the assembler name
  30807. generated by target-independent code. The ID provided to this hook
  30808. will be the computed name (e.g., the macro 'DECL_NAME' of the DECL
  30809. in C, or the mangled name of the DECL in C++). The return value of
  30810. the hook is an 'IDENTIFIER_NODE' for the appropriate mangled name
  30811. on your target system. The default implementation of this hook
  30812. just returns the ID provided.
  30813. -- Target Hook: void TARGET_ENCODE_SECTION_INFO (tree DECL, rtx RTL,
  30814. int NEW_DECL_P)
  30815. Define this hook if references to a symbol or a constant must be
  30816. treated differently depending on something about the variable or
  30817. function named by the symbol (such as what section it is in).
  30818. The hook is executed immediately after rtl has been created for
  30819. DECL, which may be a variable or function declaration or an entry
  30820. in the constant pool. In either case, RTL is the rtl in question.
  30821. Do _not_ use 'DECL_RTL (DECL)' in this hook; that field may not
  30822. have been initialized yet.
  30823. In the case of a constant, it is safe to assume that the rtl is a
  30824. 'mem' whose address is a 'symbol_ref'. Most decls will also have
  30825. this form, but that is not guaranteed. Global register variables,
  30826. for instance, will have a 'reg' for their rtl. (Normally the right
  30827. thing to do with such unusual rtl is leave it alone.)
  30828. The NEW_DECL_P argument will be true if this is the first time that
  30829. 'TARGET_ENCODE_SECTION_INFO' has been invoked on this decl. It
  30830. will be false for subsequent invocations, which will happen for
  30831. duplicate declarations. Whether or not anything must be done for
  30832. the duplicate declaration depends on whether the hook examines
  30833. 'DECL_ATTRIBUTES'. NEW_DECL_P is always true when the hook is
  30834. called for a constant.
  30835. The usual thing for this hook to do is to record flags in the
  30836. 'symbol_ref', using 'SYMBOL_REF_FLAG' or 'SYMBOL_REF_FLAGS'.
  30837. Historically, the name string was modified if it was necessary to
  30838. encode more than one bit of information, but this practice is now
  30839. discouraged; use 'SYMBOL_REF_FLAGS'.
  30840. The default definition of this hook, 'default_encode_section_info'
  30841. in 'varasm.c', sets a number of commonly-useful bits in
  30842. 'SYMBOL_REF_FLAGS'. Check whether the default does what you need
  30843. before overriding it.
  30844. -- Target Hook: const char * TARGET_STRIP_NAME_ENCODING (const char
  30845. *NAME)
  30846. Decode NAME and return the real name part, sans the characters that
  30847. 'TARGET_ENCODE_SECTION_INFO' may have added.
  30848. -- Target Hook: bool TARGET_IN_SMALL_DATA_P (const_tree EXP)
  30849. Returns true if EXP should be placed into a "small data" section.
  30850. The default version of this hook always returns false.
  30851. -- Target Hook: bool TARGET_HAVE_SRODATA_SECTION
  30852. Contains the value true if the target places read-only "small data"
  30853. into a separate section. The default value is false.
  30854. -- Target Hook: bool TARGET_PROFILE_BEFORE_PROLOGUE (void)
  30855. It returns true if target wants profile code emitted before
  30856. prologue.
  30857. The default version of this hook use the target macro
  30858. 'PROFILE_BEFORE_PROLOGUE'.
  30859. -- Target Hook: bool TARGET_BINDS_LOCAL_P (const_tree EXP)
  30860. Returns true if EXP names an object for which name resolution rules
  30861. must resolve to the current "module" (dynamic shared library or
  30862. executable image).
  30863. The default version of this hook implements the name resolution
  30864. rules for ELF, which has a looser model of global name binding than
  30865. other currently supported object file formats.
  30866. -- Target Hook: bool TARGET_HAVE_TLS
  30867. Contains the value true if the target supports thread-local
  30868. storage. The default value is false.
  30869. 
  30870. File: gccint.info, Node: PIC, Next: Assembler Format, Prev: Sections, Up: Target Macros
  30871. 18.19 Position Independent Code
  30872. ===============================
  30873. This section describes macros that help implement generation of position
  30874. independent code. Simply defining these macros is not enough to
  30875. generate valid PIC; you must also add support to the hook
  30876. 'TARGET_LEGITIMATE_ADDRESS_P' and to the macro 'PRINT_OPERAND_ADDRESS',
  30877. as well as 'LEGITIMIZE_ADDRESS'. You must modify the definition of
  30878. 'movsi' to do something appropriate when the source operand contains a
  30879. symbolic address. You may also need to alter the handling of switch
  30880. statements so that they use relative addresses.
  30881. -- Macro: PIC_OFFSET_TABLE_REGNUM
  30882. The register number of the register used to address a table of
  30883. static data addresses in memory. In some cases this register is
  30884. defined by a processor's "application binary interface" (ABI).
  30885. When this macro is defined, RTL is generated for this register
  30886. once, as with the stack pointer and frame pointer registers. If
  30887. this macro is not defined, it is up to the machine-dependent files
  30888. to allocate such a register (if necessary). Note that this
  30889. register must be fixed when in use (e.g. when 'flag_pic' is true).
  30890. -- Macro: PIC_OFFSET_TABLE_REG_CALL_CLOBBERED
  30891. A C expression that is nonzero if the register defined by
  30892. 'PIC_OFFSET_TABLE_REGNUM' is clobbered by calls. If not defined,
  30893. the default is zero. Do not define this macro if
  30894. 'PIC_OFFSET_TABLE_REGNUM' is not defined.
  30895. -- Macro: LEGITIMATE_PIC_OPERAND_P (X)
  30896. A C expression that is nonzero if X is a legitimate immediate
  30897. operand on the target machine when generating position independent
  30898. code. You can assume that X satisfies 'CONSTANT_P', so you need
  30899. not check this. You can also assume FLAG_PIC is true, so you need
  30900. not check it either. You need not define this macro if all
  30901. constants (including 'SYMBOL_REF') can be immediate operands when
  30902. generating position independent code.
  30903. 
  30904. File: gccint.info, Node: Assembler Format, Next: Debugging Info, Prev: PIC, Up: Target Macros
  30905. 18.20 Defining the Output Assembler Language
  30906. ============================================
  30907. This section describes macros whose principal purpose is to describe how
  30908. to write instructions in assembler language--rather than what the
  30909. instructions do.
  30910. * Menu:
  30911. * File Framework:: Structural information for the assembler file.
  30912. * Data Output:: Output of constants (numbers, strings, addresses).
  30913. * Uninitialized Data:: Output of uninitialized variables.
  30914. * Label Output:: Output and generation of labels.
  30915. * Initialization:: General principles of initialization
  30916. and termination routines.
  30917. * Macros for Initialization::
  30918. Specific macros that control the handling of
  30919. initialization and termination routines.
  30920. * Instruction Output:: Output of actual instructions.
  30921. * Dispatch Tables:: Output of jump tables.
  30922. * Exception Region Output:: Output of exception region code.
  30923. * Alignment Output:: Pseudo ops for alignment and skipping data.
  30924. 
  30925. File: gccint.info, Node: File Framework, Next: Data Output, Up: Assembler Format
  30926. 18.20.1 The Overall Framework of an Assembler File
  30927. --------------------------------------------------
  30928. This describes the overall framework of an assembly file.
  30929. -- Target Hook: void TARGET_ASM_FILE_START (void)
  30930. Output to 'asm_out_file' any text which the assembler expects to
  30931. find at the beginning of a file. The default behavior is
  30932. controlled by two flags, documented below. Unless your target's
  30933. assembler is quite unusual, if you override the default, you should
  30934. call 'default_file_start' at some point in your target hook. This
  30935. lets other target files rely on these variables.
  30936. -- Target Hook: bool TARGET_ASM_FILE_START_APP_OFF
  30937. If this flag is true, the text of the macro 'ASM_APP_OFF' will be
  30938. printed as the very first line in the assembly file, unless
  30939. '-fverbose-asm' is in effect. (If that macro has been defined to
  30940. the empty string, this variable has no effect.) With the normal
  30941. definition of 'ASM_APP_OFF', the effect is to notify the GNU
  30942. assembler that it need not bother stripping comments or extra
  30943. whitespace from its input. This allows it to work a bit faster.
  30944. The default is false. You should not set it to true unless you
  30945. have verified that your port does not generate any extra whitespace
  30946. or comments that will cause GAS to issue errors in NO_APP mode.
  30947. -- Target Hook: bool TARGET_ASM_FILE_START_FILE_DIRECTIVE
  30948. If this flag is true, 'output_file_directive' will be called for
  30949. the primary source file, immediately after printing 'ASM_APP_OFF'
  30950. (if that is enabled). Most ELF assemblers expect this to be done.
  30951. The default is false.
  30952. -- Target Hook: void TARGET_ASM_FILE_END (void)
  30953. Output to 'asm_out_file' any text which the assembler expects to
  30954. find at the end of a file. The default is to output nothing.
  30955. -- Function: void file_end_indicate_exec_stack ()
  30956. Some systems use a common convention, the '.note.GNU-stack' special
  30957. section, to indicate whether or not an object file relies on the
  30958. stack being executable. If your system uses this convention, you
  30959. should define 'TARGET_ASM_FILE_END' to this function. If you need
  30960. to do other things in that hook, have your hook function call this
  30961. function.
  30962. -- Target Hook: void TARGET_ASM_LTO_START (void)
  30963. Output to 'asm_out_file' any text which the assembler expects to
  30964. find at the start of an LTO section. The default is to output
  30965. nothing.
  30966. -- Target Hook: void TARGET_ASM_LTO_END (void)
  30967. Output to 'asm_out_file' any text which the assembler expects to
  30968. find at the end of an LTO section. The default is to output
  30969. nothing.
  30970. -- Target Hook: void TARGET_ASM_CODE_END (void)
  30971. Output to 'asm_out_file' any text which is needed before emitting
  30972. unwind info and debug info at the end of a file. Some targets emit
  30973. here PIC setup thunks that cannot be emitted at the end of file,
  30974. because they couldn't have unwind info then. The default is to
  30975. output nothing.
  30976. -- Macro: ASM_COMMENT_START
  30977. A C string constant describing how to begin a comment in the target
  30978. assembler language. The compiler assumes that the comment will end
  30979. at the end of the line.
  30980. -- Macro: ASM_APP_ON
  30981. A C string constant for text to be output before each 'asm'
  30982. statement or group of consecutive ones. Normally this is '"#APP"',
  30983. which is a comment that has no effect on most assemblers but tells
  30984. the GNU assembler that it must check the lines that follow for all
  30985. valid assembler constructs.
  30986. -- Macro: ASM_APP_OFF
  30987. A C string constant for text to be output after each 'asm'
  30988. statement or group of consecutive ones. Normally this is
  30989. '"#NO_APP"', which tells the GNU assembler to resume making the
  30990. time-saving assumptions that are valid for ordinary compiler
  30991. output.
  30992. -- Macro: ASM_OUTPUT_SOURCE_FILENAME (STREAM, NAME)
  30993. A C statement to output COFF information or DWARF debugging
  30994. information which indicates that filename NAME is the current
  30995. source file to the stdio stream STREAM.
  30996. This macro need not be defined if the standard form of output for
  30997. the file format in use is appropriate.
  30998. -- Target Hook: void TARGET_ASM_OUTPUT_SOURCE_FILENAME (FILE *FILE,
  30999. const char *NAME)
  31000. Output DWARF debugging information which indicates that filename
  31001. NAME is the current source file to the stdio stream FILE.
  31002. This target hook need not be defined if the standard form of output
  31003. for the file format in use is appropriate.
  31004. -- Target Hook: void TARGET_ASM_OUTPUT_IDENT (const char *NAME)
  31005. Output a string based on NAME, suitable for the '#ident' directive,
  31006. or the equivalent directive or pragma in non-C-family languages.
  31007. If this hook is not defined, nothing is output for the '#ident'
  31008. directive.
  31009. -- Macro: OUTPUT_QUOTED_STRING (STREAM, STRING)
  31010. A C statement to output the string STRING to the stdio stream
  31011. STREAM. If you do not call the function 'output_quoted_string' in
  31012. your config files, GCC will only call it to output filenames to the
  31013. assembler source. So you can use it to canonicalize the format of
  31014. the filename using this macro.
  31015. -- Target Hook: void TARGET_ASM_NAMED_SECTION (const char *NAME,
  31016. unsigned int FLAGS, tree DECL)
  31017. Output assembly directives to switch to section NAME. The section
  31018. should have attributes as specified by FLAGS, which is a bit mask
  31019. of the 'SECTION_*' flags defined in 'output.h'. If DECL is
  31020. non-NULL, it is the 'VAR_DECL' or 'FUNCTION_DECL' with which this
  31021. section is associated.
  31022. -- Target Hook: bool TARGET_ASM_ELF_FLAGS_NUMERIC (unsigned int FLAGS,
  31023. unsigned int *NUM)
  31024. This hook can be used to encode ELF section flags for which no
  31025. letter code has been defined in the assembler. It is called by
  31026. 'default_asm_named_section' whenever the section flags need to be
  31027. emitted in the assembler output. If the hook returns true, then
  31028. the numerical value for ELF section flags should be calculated from
  31029. FLAGS and saved in *NUM; the value is printed out instead of the
  31030. normal sequence of letter codes. If the hook is not defined, or if
  31031. it returns false, then NUM is ignored and the traditional letter
  31032. sequence is emitted.
  31033. -- Target Hook: section * TARGET_ASM_FUNCTION_SECTION (tree DECL, enum
  31034. node_frequency FREQ, bool STARTUP, bool EXIT)
  31035. Return preferred text (sub)section for function DECL. Main purpose
  31036. of this function is to separate cold, normal and hot functions.
  31037. STARTUP is true when function is known to be used only at startup
  31038. (from static constructors or it is 'main()'). EXIT is true when
  31039. function is known to be used only at exit (from static
  31040. destructors). Return NULL if function should go to default text
  31041. section.
  31042. -- Target Hook: void TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS (FILE
  31043. *FILE, tree DECL, bool NEW_IS_COLD)
  31044. Used by the target to emit any assembler directives or additional
  31045. labels needed when a function is partitioned between different
  31046. sections. Output should be written to FILE. The function decl is
  31047. available as DECL and the new section is 'cold' if NEW_IS_COLD is
  31048. 'true'.
  31049. -- Common Target Hook: bool TARGET_HAVE_NAMED_SECTIONS
  31050. This flag is true if the target supports
  31051. 'TARGET_ASM_NAMED_SECTION'. It must not be modified by
  31052. command-line option processing.
  31053. -- Target Hook: bool TARGET_HAVE_SWITCHABLE_BSS_SECTIONS
  31054. This flag is true if we can create zeroed data by switching to a
  31055. BSS section and then using 'ASM_OUTPUT_SKIP' to allocate the space.
  31056. This is true on most ELF targets.
  31057. -- Target Hook: unsigned int TARGET_SECTION_TYPE_FLAGS (tree DECL,
  31058. const char *NAME, int RELOC)
  31059. Choose a set of section attributes for use by
  31060. 'TARGET_ASM_NAMED_SECTION' based on a variable or function decl, a
  31061. section name, and whether or not the declaration's initializer may
  31062. contain runtime relocations. DECL may be null, in which case
  31063. read-write data should be assumed.
  31064. The default version of this function handles choosing code vs data,
  31065. read-only vs read-write data, and 'flag_pic'. You should only need
  31066. to override this if your target has special flags that might be set
  31067. via '__attribute__'.
  31068. -- Target Hook: int TARGET_ASM_RECORD_GCC_SWITCHES (print_switch_type
  31069. TYPE, const char *TEXT)
  31070. Provides the target with the ability to record the gcc command line
  31071. switches that have been passed to the compiler, and options that
  31072. are enabled. The TYPE argument specifies what is being recorded.
  31073. It can take the following values:
  31074. 'SWITCH_TYPE_PASSED'
  31075. TEXT is a command line switch that has been set by the user.
  31076. 'SWITCH_TYPE_ENABLED'
  31077. TEXT is an option which has been enabled. This might be as a
  31078. direct result of a command line switch, or because it is
  31079. enabled by default or because it has been enabled as a side
  31080. effect of a different command line switch. For example, the
  31081. '-O2' switch enables various different individual optimization
  31082. passes.
  31083. 'SWITCH_TYPE_DESCRIPTIVE'
  31084. TEXT is either NULL or some descriptive text which should be
  31085. ignored. If TEXT is NULL then it is being used to warn the
  31086. target hook that either recording is starting or ending. The
  31087. first time TYPE is SWITCH_TYPE_DESCRIPTIVE and TEXT is NULL,
  31088. the warning is for start up and the second time the warning is
  31089. for wind down. This feature is to allow the target hook to
  31090. make any necessary preparations before it starts to record
  31091. switches and to perform any necessary tidying up after it has
  31092. finished recording switches.
  31093. 'SWITCH_TYPE_LINE_START'
  31094. This option can be ignored by this target hook.
  31095. 'SWITCH_TYPE_LINE_END'
  31096. This option can be ignored by this target hook.
  31097. The hook's return value must be zero. Other return values may be
  31098. supported in the future.
  31099. By default this hook is set to NULL, but an example implementation
  31100. is provided for ELF based targets. Called ELF_RECORD_GCC_SWITCHES,
  31101. it records the switches as ASCII text inside a new, string
  31102. mergeable section in the assembler output file. The name of the
  31103. new section is provided by the
  31104. 'TARGET_ASM_RECORD_GCC_SWITCHES_SECTION' target hook.
  31105. -- Target Hook: const char * TARGET_ASM_RECORD_GCC_SWITCHES_SECTION
  31106. This is the name of the section that will be created by the example
  31107. ELF implementation of the 'TARGET_ASM_RECORD_GCC_SWITCHES' target
  31108. hook.
  31109. 
  31110. File: gccint.info, Node: Data Output, Next: Uninitialized Data, Prev: File Framework, Up: Assembler Format
  31111. 18.20.2 Output of Data
  31112. ----------------------
  31113. -- Target Hook: const char * TARGET_ASM_BYTE_OP
  31114. -- Target Hook: const char * TARGET_ASM_ALIGNED_HI_OP
  31115. -- Target Hook: const char * TARGET_ASM_ALIGNED_PSI_OP
  31116. -- Target Hook: const char * TARGET_ASM_ALIGNED_SI_OP
  31117. -- Target Hook: const char * TARGET_ASM_ALIGNED_PDI_OP
  31118. -- Target Hook: const char * TARGET_ASM_ALIGNED_DI_OP
  31119. -- Target Hook: const char * TARGET_ASM_ALIGNED_PTI_OP
  31120. -- Target Hook: const char * TARGET_ASM_ALIGNED_TI_OP
  31121. -- Target Hook: const char * TARGET_ASM_UNALIGNED_HI_OP
  31122. -- Target Hook: const char * TARGET_ASM_UNALIGNED_PSI_OP
  31123. -- Target Hook: const char * TARGET_ASM_UNALIGNED_SI_OP
  31124. -- Target Hook: const char * TARGET_ASM_UNALIGNED_PDI_OP
  31125. -- Target Hook: const char * TARGET_ASM_UNALIGNED_DI_OP
  31126. -- Target Hook: const char * TARGET_ASM_UNALIGNED_PTI_OP
  31127. -- Target Hook: const char * TARGET_ASM_UNALIGNED_TI_OP
  31128. These hooks specify assembly directives for creating certain kinds
  31129. of integer object. The 'TARGET_ASM_BYTE_OP' directive creates a
  31130. byte-sized object, the 'TARGET_ASM_ALIGNED_HI_OP' one creates an
  31131. aligned two-byte object, and so on. Any of the hooks may be
  31132. 'NULL', indicating that no suitable directive is available.
  31133. The compiler will print these strings at the start of a new line,
  31134. followed immediately by the object's initial value. In most cases,
  31135. the string should contain a tab, a pseudo-op, and then another tab.
  31136. -- Target Hook: bool TARGET_ASM_INTEGER (rtx X, unsigned int SIZE, int
  31137. ALIGNED_P)
  31138. The 'assemble_integer' function uses this hook to output an integer
  31139. object. X is the object's value, SIZE is its size in bytes and
  31140. ALIGNED_P indicates whether it is aligned. The function should
  31141. return 'true' if it was able to output the object. If it returns
  31142. false, 'assemble_integer' will try to split the object into smaller
  31143. parts.
  31144. The default implementation of this hook will use the
  31145. 'TARGET_ASM_BYTE_OP' family of strings, returning 'false' when the
  31146. relevant string is 'NULL'.
  31147. -- Target Hook: void TARGET_ASM_DECL_END (void)
  31148. Define this hook if the target assembler requires a special marker
  31149. to terminate an initialized variable declaration.
  31150. -- Target Hook: bool TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA (FILE *FILE,
  31151. rtx X)
  31152. A target hook to recognize RTX patterns that 'output_addr_const'
  31153. can't deal with, and output assembly code to FILE corresponding to
  31154. the pattern X. This may be used to allow machine-dependent
  31155. 'UNSPEC's to appear within constants.
  31156. If target hook fails to recognize a pattern, it must return
  31157. 'false', so that a standard error message is printed. If it prints
  31158. an error message itself, by calling, for example,
  31159. 'output_operand_lossage', it may just return 'true'.
  31160. -- Macro: ASM_OUTPUT_ASCII (STREAM, PTR, LEN)
  31161. A C statement to output to the stdio stream STREAM an assembler
  31162. instruction to assemble a string constant containing the LEN bytes
  31163. at PTR. PTR will be a C expression of type 'char *' and LEN a C
  31164. expression of type 'int'.
  31165. If the assembler has a '.ascii' pseudo-op as found in the Berkeley
  31166. Unix assembler, do not define the macro 'ASM_OUTPUT_ASCII'.
  31167. -- Macro: ASM_OUTPUT_FDESC (STREAM, DECL, N)
  31168. A C statement to output word N of a function descriptor for DECL.
  31169. This must be defined if 'TARGET_VTABLE_USES_DESCRIPTORS' is
  31170. defined, and is otherwise unused.
  31171. -- Macro: CONSTANT_POOL_BEFORE_FUNCTION
  31172. You may define this macro as a C expression. You should define the
  31173. expression to have a nonzero value if GCC should output the
  31174. constant pool for a function before the code for the function, or a
  31175. zero value if GCC should output the constant pool after the
  31176. function. If you do not define this macro, the usual case, GCC
  31177. will output the constant pool before the function.
  31178. -- Macro: ASM_OUTPUT_POOL_PROLOGUE (FILE, FUNNAME, FUNDECL, SIZE)
  31179. A C statement to output assembler commands to define the start of
  31180. the constant pool for a function. FUNNAME is a string giving the
  31181. name of the function. Should the return type of the function be
  31182. required, it can be obtained via FUNDECL. SIZE is the size, in
  31183. bytes, of the constant pool that will be written immediately after
  31184. this call.
  31185. If no constant-pool prefix is required, the usual case, this macro
  31186. need not be defined.
  31187. -- Macro: ASM_OUTPUT_SPECIAL_POOL_ENTRY (FILE, X, MODE, ALIGN, LABELNO,
  31188. JUMPTO)
  31189. A C statement (with or without semicolon) to output a constant in
  31190. the constant pool, if it needs special treatment. (This macro need
  31191. not do anything for RTL expressions that can be output normally.)
  31192. The argument FILE is the standard I/O stream to output the
  31193. assembler code on. X is the RTL expression for the constant to
  31194. output, and MODE is the machine mode (in case X is a 'const_int').
  31195. ALIGN is the required alignment for the value X; you should output
  31196. an assembler directive to force this much alignment.
  31197. The argument LABELNO is a number to use in an internal label for
  31198. the address of this pool entry. The definition of this macro is
  31199. responsible for outputting the label definition at the proper
  31200. place. Here is how to do this:
  31201. (*targetm.asm_out.internal_label) (FILE, "LC", LABELNO);
  31202. When you output a pool entry specially, you should end with a
  31203. 'goto' to the label JUMPTO. This will prevent the same pool entry
  31204. from being output a second time in the usual manner.
  31205. You need not define this macro if it would do nothing.
  31206. -- Macro: ASM_OUTPUT_POOL_EPILOGUE (FILE FUNNAME FUNDECL SIZE)
  31207. A C statement to output assembler commands to at the end of the
  31208. constant pool for a function. FUNNAME is a string giving the name
  31209. of the function. Should the return type of the function be
  31210. required, you can obtain it via FUNDECL. SIZE is the size, in
  31211. bytes, of the constant pool that GCC wrote immediately before this
  31212. call.
  31213. If no constant-pool epilogue is required, the usual case, you need
  31214. not define this macro.
  31215. -- Macro: IS_ASM_LOGICAL_LINE_SEPARATOR (C, STR)
  31216. Define this macro as a C expression which is nonzero if C is used
  31217. as a logical line separator by the assembler. STR points to the
  31218. position in the string where C was found; this can be used if a
  31219. line separator uses multiple characters.
  31220. If you do not define this macro, the default is that only the
  31221. character ';' is treated as a logical line separator.
  31222. -- Target Hook: const char * TARGET_ASM_OPEN_PAREN
  31223. -- Target Hook: const char * TARGET_ASM_CLOSE_PAREN
  31224. These target hooks are C string constants, describing the syntax in
  31225. the assembler for grouping arithmetic expressions. If not
  31226. overridden, they default to normal parentheses, which is correct
  31227. for most assemblers.
  31228. These macros are provided by 'real.h' for writing the definitions of
  31229. 'ASM_OUTPUT_DOUBLE' and the like:
  31230. -- Macro: REAL_VALUE_TO_TARGET_SINGLE (X, L)
  31231. -- Macro: REAL_VALUE_TO_TARGET_DOUBLE (X, L)
  31232. -- Macro: REAL_VALUE_TO_TARGET_LONG_DOUBLE (X, L)
  31233. -- Macro: REAL_VALUE_TO_TARGET_DECIMAL32 (X, L)
  31234. -- Macro: REAL_VALUE_TO_TARGET_DECIMAL64 (X, L)
  31235. -- Macro: REAL_VALUE_TO_TARGET_DECIMAL128 (X, L)
  31236. These translate X, of type 'REAL_VALUE_TYPE', to the target's
  31237. floating point representation, and store its bit pattern in the
  31238. variable L. For 'REAL_VALUE_TO_TARGET_SINGLE' and
  31239. 'REAL_VALUE_TO_TARGET_DECIMAL32', this variable should be a simple
  31240. 'long int'. For the others, it should be an array of 'long int'.
  31241. The number of elements in this array is determined by the size of
  31242. the desired target floating point data type: 32 bits of it go in
  31243. each 'long int' array element. Each array element holds 32 bits of
  31244. the result, even if 'long int' is wider than 32 bits on the host
  31245. machine.
  31246. The array element values are designed so that you can print them
  31247. out using 'fprintf' in the order they should appear in the target
  31248. machine's memory.
  31249. 
  31250. File: gccint.info, Node: Uninitialized Data, Next: Label Output, Prev: Data Output, Up: Assembler Format
  31251. 18.20.3 Output of Uninitialized Variables
  31252. -----------------------------------------
  31253. Each of the macros in this section is used to do the whole job of
  31254. outputting a single uninitialized variable.
  31255. -- Macro: ASM_OUTPUT_COMMON (STREAM, NAME, SIZE, ROUNDED)
  31256. A C statement (sans semicolon) to output to the stdio stream STREAM
  31257. the assembler definition of a common-label named NAME whose size is
  31258. SIZE bytes. The variable ROUNDED is the size rounded up to
  31259. whatever alignment the caller wants. It is possible that SIZE may
  31260. be zero, for instance if a struct with no other member than a
  31261. zero-length array is defined. In this case, the backend must
  31262. output a symbol definition that allocates at least one byte, both
  31263. so that the address of the resulting object does not compare equal
  31264. to any other, and because some object formats cannot even express
  31265. the concept of a zero-sized common symbol, as that is how they
  31266. represent an ordinary undefined external.
  31267. Use the expression 'assemble_name (STREAM, NAME)' to output the
  31268. name itself; before and after that, output the additional assembler
  31269. syntax for defining the name, and a newline.
  31270. This macro controls how the assembler definitions of uninitialized
  31271. common global variables are output.
  31272. -- Macro: ASM_OUTPUT_ALIGNED_COMMON (STREAM, NAME, SIZE, ALIGNMENT)
  31273. Like 'ASM_OUTPUT_COMMON' except takes the required alignment as a
  31274. separate, explicit argument. If you define this macro, it is used
  31275. in place of 'ASM_OUTPUT_COMMON', and gives you more flexibility in
  31276. handling the required alignment of the variable. The alignment is
  31277. specified as the number of bits.
  31278. -- Macro: ASM_OUTPUT_ALIGNED_DECL_COMMON (STREAM, DECL, NAME, SIZE,
  31279. ALIGNMENT)
  31280. Like 'ASM_OUTPUT_ALIGNED_COMMON' except that DECL of the variable
  31281. to be output, if there is one, or 'NULL_TREE' if there is no
  31282. corresponding variable. If you define this macro, GCC will use it
  31283. in place of both 'ASM_OUTPUT_COMMON' and
  31284. 'ASM_OUTPUT_ALIGNED_COMMON'. Define this macro when you need to
  31285. see the variable's decl in order to chose what to output.
  31286. -- Macro: ASM_OUTPUT_ALIGNED_BSS (STREAM, DECL, NAME, SIZE, ALIGNMENT)
  31287. A C statement (sans semicolon) to output to the stdio stream STREAM
  31288. the assembler definition of uninitialized global DECL named NAME
  31289. whose size is SIZE bytes. The variable ALIGNMENT is the alignment
  31290. specified as the number of bits.
  31291. Try to use function 'asm_output_aligned_bss' defined in file
  31292. 'varasm.c' when defining this macro. If unable, use the expression
  31293. 'assemble_name (STREAM, NAME)' to output the name itself; before
  31294. and after that, output the additional assembler syntax for defining
  31295. the name, and a newline.
  31296. There are two ways of handling global BSS. One is to define this
  31297. macro. The other is to have 'TARGET_ASM_SELECT_SECTION' return a
  31298. switchable BSS section (*note
  31299. TARGET_HAVE_SWITCHABLE_BSS_SECTIONS::). You do not need to do
  31300. both.
  31301. Some languages do not have 'common' data, and require a non-common
  31302. form of global BSS in order to handle uninitialized globals
  31303. efficiently. C++ is one example of this. However, if the target
  31304. does not support global BSS, the front end may choose to make
  31305. globals common in order to save space in the object file.
  31306. -- Macro: ASM_OUTPUT_LOCAL (STREAM, NAME, SIZE, ROUNDED)
  31307. A C statement (sans semicolon) to output to the stdio stream STREAM
  31308. the assembler definition of a local-common-label named NAME whose
  31309. size is SIZE bytes. The variable ROUNDED is the size rounded up to
  31310. whatever alignment the caller wants.
  31311. Use the expression 'assemble_name (STREAM, NAME)' to output the
  31312. name itself; before and after that, output the additional assembler
  31313. syntax for defining the name, and a newline.
  31314. This macro controls how the assembler definitions of uninitialized
  31315. static variables are output.
  31316. -- Macro: ASM_OUTPUT_ALIGNED_LOCAL (STREAM, NAME, SIZE, ALIGNMENT)
  31317. Like 'ASM_OUTPUT_LOCAL' except takes the required alignment as a
  31318. separate, explicit argument. If you define this macro, it is used
  31319. in place of 'ASM_OUTPUT_LOCAL', and gives you more flexibility in
  31320. handling the required alignment of the variable. The alignment is
  31321. specified as the number of bits.
  31322. -- Macro: ASM_OUTPUT_ALIGNED_DECL_LOCAL (STREAM, DECL, NAME, SIZE,
  31323. ALIGNMENT)
  31324. Like 'ASM_OUTPUT_ALIGNED_LOCAL' except that DECL of the variable to
  31325. be output, if there is one, or 'NULL_TREE' if there is no
  31326. corresponding variable. If you define this macro, GCC will use it
  31327. in place of both 'ASM_OUTPUT_LOCAL' and 'ASM_OUTPUT_ALIGNED_LOCAL'.
  31328. Define this macro when you need to see the variable's decl in order
  31329. to chose what to output.
  31330. 
  31331. File: gccint.info, Node: Label Output, Next: Initialization, Prev: Uninitialized Data, Up: Assembler Format
  31332. 18.20.4 Output and Generation of Labels
  31333. ---------------------------------------
  31334. This is about outputting labels.
  31335. -- Macro: ASM_OUTPUT_LABEL (STREAM, NAME)
  31336. A C statement (sans semicolon) to output to the stdio stream STREAM
  31337. the assembler definition of a label named NAME. Use the expression
  31338. 'assemble_name (STREAM, NAME)' to output the name itself; before
  31339. and after that, output the additional assembler syntax for defining
  31340. the name, and a newline. A default definition of this macro is
  31341. provided which is correct for most systems.
  31342. -- Macro: ASM_OUTPUT_FUNCTION_LABEL (STREAM, NAME, DECL)
  31343. A C statement (sans semicolon) to output to the stdio stream STREAM
  31344. the assembler definition of a label named NAME of a function. Use
  31345. the expression 'assemble_name (STREAM, NAME)' to output the name
  31346. itself; before and after that, output the additional assembler
  31347. syntax for defining the name, and a newline. A default definition
  31348. of this macro is provided which is correct for most systems.
  31349. If this macro is not defined, then the function name is defined in
  31350. the usual manner as a label (by means of 'ASM_OUTPUT_LABEL').
  31351. -- Macro: ASM_OUTPUT_INTERNAL_LABEL (STREAM, NAME)
  31352. Identical to 'ASM_OUTPUT_LABEL', except that NAME is known to refer
  31353. to a compiler-generated label. The default definition uses
  31354. 'assemble_name_raw', which is like 'assemble_name' except that it
  31355. is more efficient.
  31356. -- Macro: SIZE_ASM_OP
  31357. A C string containing the appropriate assembler directive to
  31358. specify the size of a symbol, without any arguments. On systems
  31359. that use ELF, the default (in 'config/elfos.h') is '"\t.size\t"';
  31360. on other systems, the default is not to define this macro.
  31361. Define this macro only if it is correct to use the default
  31362. definitions of 'ASM_OUTPUT_SIZE_DIRECTIVE' and
  31363. 'ASM_OUTPUT_MEASURED_SIZE' for your system. If you need your own
  31364. custom definitions of those macros, or if you do not need explicit
  31365. symbol sizes at all, do not define this macro.
  31366. -- Macro: ASM_OUTPUT_SIZE_DIRECTIVE (STREAM, NAME, SIZE)
  31367. A C statement (sans semicolon) to output to the stdio stream STREAM
  31368. a directive telling the assembler that the size of the symbol NAME
  31369. is SIZE. SIZE is a 'HOST_WIDE_INT'. If you define 'SIZE_ASM_OP',
  31370. a default definition of this macro is provided.
  31371. -- Macro: ASM_OUTPUT_MEASURED_SIZE (STREAM, NAME)
  31372. A C statement (sans semicolon) to output to the stdio stream STREAM
  31373. a directive telling the assembler to calculate the size of the
  31374. symbol NAME by subtracting its address from the current address.
  31375. If you define 'SIZE_ASM_OP', a default definition of this macro is
  31376. provided. The default assumes that the assembler recognizes a
  31377. special '.' symbol as referring to the current address, and can
  31378. calculate the difference between this and another symbol. If your
  31379. assembler does not recognize '.' or cannot do calculations with it,
  31380. you will need to redefine 'ASM_OUTPUT_MEASURED_SIZE' to use some
  31381. other technique.
  31382. -- Macro: NO_DOLLAR_IN_LABEL
  31383. Define this macro if the assembler does not accept the character
  31384. '$' in label names. By default constructors and destructors in G++
  31385. have '$' in the identifiers. If this macro is defined, '.' is used
  31386. instead.
  31387. -- Macro: NO_DOT_IN_LABEL
  31388. Define this macro if the assembler does not accept the character
  31389. '.' in label names. By default constructors and destructors in G++
  31390. have names that use '.'. If this macro is defined, these names are
  31391. rewritten to avoid '.'.
  31392. -- Macro: TYPE_ASM_OP
  31393. A C string containing the appropriate assembler directive to
  31394. specify the type of a symbol, without any arguments. On systems
  31395. that use ELF, the default (in 'config/elfos.h') is '"\t.type\t"';
  31396. on other systems, the default is not to define this macro.
  31397. Define this macro only if it is correct to use the default
  31398. definition of 'ASM_OUTPUT_TYPE_DIRECTIVE' for your system. If you
  31399. need your own custom definition of this macro, or if you do not
  31400. need explicit symbol types at all, do not define this macro.
  31401. -- Macro: TYPE_OPERAND_FMT
  31402. A C string which specifies (using 'printf' syntax) the format of
  31403. the second operand to 'TYPE_ASM_OP'. On systems that use ELF, the
  31404. default (in 'config/elfos.h') is '"@%s"'; on other systems, the
  31405. default is not to define this macro.
  31406. Define this macro only if it is correct to use the default
  31407. definition of 'ASM_OUTPUT_TYPE_DIRECTIVE' for your system. If you
  31408. need your own custom definition of this macro, or if you do not
  31409. need explicit symbol types at all, do not define this macro.
  31410. -- Macro: ASM_OUTPUT_TYPE_DIRECTIVE (STREAM, TYPE)
  31411. A C statement (sans semicolon) to output to the stdio stream STREAM
  31412. a directive telling the assembler that the type of the symbol NAME
  31413. is TYPE. TYPE is a C string; currently, that string is always
  31414. either '"function"' or '"object"', but you should not count on
  31415. this.
  31416. If you define 'TYPE_ASM_OP' and 'TYPE_OPERAND_FMT', a default
  31417. definition of this macro is provided.
  31418. -- Macro: ASM_DECLARE_FUNCTION_NAME (STREAM, NAME, DECL)
  31419. A C statement (sans semicolon) to output to the stdio stream STREAM
  31420. any text necessary for declaring the name NAME of a function which
  31421. is being defined. This macro is responsible for outputting the
  31422. label definition (perhaps using 'ASM_OUTPUT_FUNCTION_LABEL'). The
  31423. argument DECL is the 'FUNCTION_DECL' tree node representing the
  31424. function.
  31425. If this macro is not defined, then the function name is defined in
  31426. the usual manner as a label (by means of
  31427. 'ASM_OUTPUT_FUNCTION_LABEL').
  31428. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' in the definition
  31429. of this macro.
  31430. -- Macro: ASM_DECLARE_FUNCTION_SIZE (STREAM, NAME, DECL)
  31431. A C statement (sans semicolon) to output to the stdio stream STREAM
  31432. any text necessary for declaring the size of a function which is
  31433. being defined. The argument NAME is the name of the function. The
  31434. argument DECL is the 'FUNCTION_DECL' tree node representing the
  31435. function.
  31436. If this macro is not defined, then the function size is not
  31437. defined.
  31438. You may wish to use 'ASM_OUTPUT_MEASURED_SIZE' in the definition of
  31439. this macro.
  31440. -- Macro: ASM_DECLARE_COLD_FUNCTION_NAME (STREAM, NAME, DECL)
  31441. A C statement (sans semicolon) to output to the stdio stream STREAM
  31442. any text necessary for declaring the name NAME of a cold function
  31443. partition which is being defined. This macro is responsible for
  31444. outputting the label definition (perhaps using
  31445. 'ASM_OUTPUT_FUNCTION_LABEL'). The argument DECL is the
  31446. 'FUNCTION_DECL' tree node representing the function.
  31447. If this macro is not defined, then the cold partition name is
  31448. defined in the usual manner as a label (by means of
  31449. 'ASM_OUTPUT_LABEL').
  31450. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' in the definition
  31451. of this macro.
  31452. -- Macro: ASM_DECLARE_COLD_FUNCTION_SIZE (STREAM, NAME, DECL)
  31453. A C statement (sans semicolon) to output to the stdio stream STREAM
  31454. any text necessary for declaring the size of a cold function
  31455. partition which is being defined. The argument NAME is the name of
  31456. the cold partition of the function. The argument DECL is the
  31457. 'FUNCTION_DECL' tree node representing the function.
  31458. If this macro is not defined, then the partition size is not
  31459. defined.
  31460. You may wish to use 'ASM_OUTPUT_MEASURED_SIZE' in the definition of
  31461. this macro.
  31462. -- Macro: ASM_DECLARE_OBJECT_NAME (STREAM, NAME, DECL)
  31463. A C statement (sans semicolon) to output to the stdio stream STREAM
  31464. any text necessary for declaring the name NAME of an initialized
  31465. variable which is being defined. This macro must output the label
  31466. definition (perhaps using 'ASM_OUTPUT_LABEL'). The argument DECL
  31467. is the 'VAR_DECL' tree node representing the variable.
  31468. If this macro is not defined, then the variable name is defined in
  31469. the usual manner as a label (by means of 'ASM_OUTPUT_LABEL').
  31470. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' and/or
  31471. 'ASM_OUTPUT_SIZE_DIRECTIVE' in the definition of this macro.
  31472. -- Target Hook: void TARGET_ASM_DECLARE_CONSTANT_NAME (FILE *FILE,
  31473. const char *NAME, const_tree EXPR, HOST_WIDE_INT SIZE)
  31474. A target hook to output to the stdio stream FILE any text necessary
  31475. for declaring the name NAME of a constant which is being defined.
  31476. This target hook is responsible for outputting the label definition
  31477. (perhaps using 'assemble_label'). The argument EXP is the value of
  31478. the constant, and SIZE is the size of the constant in bytes. The
  31479. NAME will be an internal label.
  31480. The default version of this target hook, define the NAME in the
  31481. usual manner as a label (by means of 'assemble_label').
  31482. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' in this target
  31483. hook.
  31484. -- Macro: ASM_DECLARE_REGISTER_GLOBAL (STREAM, DECL, REGNO, NAME)
  31485. A C statement (sans semicolon) to output to the stdio stream STREAM
  31486. any text necessary for claiming a register REGNO for a global
  31487. variable DECL with name NAME.
  31488. If you don't define this macro, that is equivalent to defining it
  31489. to do nothing.
  31490. -- Macro: ASM_FINISH_DECLARE_OBJECT (STREAM, DECL, TOPLEVEL, ATEND)
  31491. A C statement (sans semicolon) to finish up declaring a variable
  31492. name once the compiler has processed its initializer fully and thus
  31493. has had a chance to determine the size of an array when controlled
  31494. by an initializer. This is used on systems where it's necessary to
  31495. declare something about the size of the object.
  31496. If you don't define this macro, that is equivalent to defining it
  31497. to do nothing.
  31498. You may wish to use 'ASM_OUTPUT_SIZE_DIRECTIVE' and/or
  31499. 'ASM_OUTPUT_MEASURED_SIZE' in the definition of this macro.
  31500. -- Target Hook: void TARGET_ASM_GLOBALIZE_LABEL (FILE *STREAM, const
  31501. char *NAME)
  31502. This target hook is a function to output to the stdio stream STREAM
  31503. some commands that will make the label NAME global; that is,
  31504. available for reference from other files.
  31505. The default implementation relies on a proper definition of
  31506. 'GLOBAL_ASM_OP'.
  31507. -- Target Hook: void TARGET_ASM_GLOBALIZE_DECL_NAME (FILE *STREAM, tree
  31508. DECL)
  31509. This target hook is a function to output to the stdio stream STREAM
  31510. some commands that will make the name associated with DECL global;
  31511. that is, available for reference from other files.
  31512. The default implementation uses the TARGET_ASM_GLOBALIZE_LABEL
  31513. target hook.
  31514. -- Target Hook: void TARGET_ASM_ASSEMBLE_UNDEFINED_DECL (FILE *STREAM,
  31515. const char *NAME, const_tree DECL)
  31516. This target hook is a function to output to the stdio stream STREAM
  31517. some commands that will declare the name associated with DECL which
  31518. is not defined in the current translation unit. Most assemblers do
  31519. not require anything to be output in this case.
  31520. -- Macro: ASM_WEAKEN_LABEL (STREAM, NAME)
  31521. A C statement (sans semicolon) to output to the stdio stream STREAM
  31522. some commands that will make the label NAME weak; that is,
  31523. available for reference from other files but only used if no other
  31524. definition is available. Use the expression 'assemble_name
  31525. (STREAM, NAME)' to output the name itself; before and after that,
  31526. output the additional assembler syntax for making that name weak,
  31527. and a newline.
  31528. If you don't define this macro or 'ASM_WEAKEN_DECL', GCC will not
  31529. support weak symbols and you should not define the 'SUPPORTS_WEAK'
  31530. macro.
  31531. -- Macro: ASM_WEAKEN_DECL (STREAM, DECL, NAME, VALUE)
  31532. Combines (and replaces) the function of 'ASM_WEAKEN_LABEL' and
  31533. 'ASM_OUTPUT_WEAK_ALIAS', allowing access to the associated function
  31534. or variable decl. If VALUE is not 'NULL', this C statement should
  31535. output to the stdio stream STREAM assembler code which defines
  31536. (equates) the weak symbol NAME to have the value VALUE. If VALUE
  31537. is 'NULL', it should output commands to make NAME weak.
  31538. -- Macro: ASM_OUTPUT_WEAKREF (STREAM, DECL, NAME, VALUE)
  31539. Outputs a directive that enables NAME to be used to refer to symbol
  31540. VALUE with weak-symbol semantics. 'decl' is the declaration of
  31541. 'name'.
  31542. -- Macro: SUPPORTS_WEAK
  31543. A preprocessor constant expression which evaluates to true if the
  31544. target supports weak symbols.
  31545. If you don't define this macro, 'defaults.h' provides a default
  31546. definition. If either 'ASM_WEAKEN_LABEL' or 'ASM_WEAKEN_DECL' is
  31547. defined, the default definition is '1'; otherwise, it is '0'.
  31548. -- Macro: TARGET_SUPPORTS_WEAK
  31549. A C expression which evaluates to true if the target supports weak
  31550. symbols.
  31551. If you don't define this macro, 'defaults.h' provides a default
  31552. definition. The default definition is '(SUPPORTS_WEAK)'. Define
  31553. this macro if you want to control weak symbol support with a
  31554. compiler flag such as '-melf'.
  31555. -- Macro: MAKE_DECL_ONE_ONLY (DECL)
  31556. A C statement (sans semicolon) to mark DECL to be emitted as a
  31557. public symbol such that extra copies in multiple translation units
  31558. will be discarded by the linker. Define this macro if your object
  31559. file format provides support for this concept, such as the 'COMDAT'
  31560. section flags in the Microsoft Windows PE/COFF format, and this
  31561. support requires changes to DECL, such as putting it in a separate
  31562. section.
  31563. -- Macro: SUPPORTS_ONE_ONLY
  31564. A C expression which evaluates to true if the target supports
  31565. one-only semantics.
  31566. If you don't define this macro, 'varasm.c' provides a default
  31567. definition. If 'MAKE_DECL_ONE_ONLY' is defined, the default
  31568. definition is '1'; otherwise, it is '0'. Define this macro if you
  31569. want to control one-only symbol support with a compiler flag, or if
  31570. setting the 'DECL_ONE_ONLY' flag is enough to mark a declaration to
  31571. be emitted as one-only.
  31572. -- Target Hook: void TARGET_ASM_ASSEMBLE_VISIBILITY (tree DECL, int
  31573. VISIBILITY)
  31574. This target hook is a function to output to ASM_OUT_FILE some
  31575. commands that will make the symbol(s) associated with DECL have
  31576. hidden, protected or internal visibility as specified by
  31577. VISIBILITY.
  31578. -- Macro: TARGET_WEAK_NOT_IN_ARCHIVE_TOC
  31579. A C expression that evaluates to true if the target's linker
  31580. expects that weak symbols do not appear in a static archive's table
  31581. of contents. The default is '0'.
  31582. Leaving weak symbols out of an archive's table of contents means
  31583. that, if a symbol will only have a definition in one translation
  31584. unit and will have undefined references from other translation
  31585. units, that symbol should not be weak. Defining this macro to be
  31586. nonzero will thus have the effect that certain symbols that would
  31587. normally be weak (explicit template instantiations, and vtables for
  31588. polymorphic classes with noninline key methods) will instead be
  31589. nonweak.
  31590. The C++ ABI requires this macro to be zero. Define this macro for
  31591. targets where full C++ ABI compliance is impossible and where
  31592. linker restrictions require weak symbols to be left out of a static
  31593. archive's table of contents.
  31594. -- Macro: ASM_OUTPUT_EXTERNAL (STREAM, DECL, NAME)
  31595. A C statement (sans semicolon) to output to the stdio stream STREAM
  31596. any text necessary for declaring the name of an external symbol
  31597. named NAME which is referenced in this compilation but not defined.
  31598. The value of DECL is the tree node for the declaration.
  31599. This macro need not be defined if it does not need to output
  31600. anything. The GNU assembler and most Unix assemblers don't require
  31601. anything.
  31602. -- Target Hook: void TARGET_ASM_EXTERNAL_LIBCALL (rtx SYMREF)
  31603. This target hook is a function to output to ASM_OUT_FILE an
  31604. assembler pseudo-op to declare a library function name external.
  31605. The name of the library function is given by SYMREF, which is a
  31606. 'symbol_ref'.
  31607. -- Target Hook: void TARGET_ASM_MARK_DECL_PRESERVED (const char
  31608. *SYMBOL)
  31609. This target hook is a function to output to ASM_OUT_FILE an
  31610. assembler directive to annotate SYMBOL as used. The Darwin target
  31611. uses the .no_dead_code_strip directive.
  31612. -- Macro: ASM_OUTPUT_LABELREF (STREAM, NAME)
  31613. A C statement (sans semicolon) to output to the stdio stream STREAM
  31614. a reference in assembler syntax to a label named NAME. This should
  31615. add '_' to the front of the name, if that is customary on your
  31616. operating system, as it is in most Berkeley Unix systems. This
  31617. macro is used in 'assemble_name'.
  31618. -- Target Hook: tree TARGET_MANGLE_ASSEMBLER_NAME (const char *NAME)
  31619. Given a symbol NAME, perform same mangling as 'varasm.c''s
  31620. 'assemble_name', but in memory rather than to a file stream,
  31621. returning result as an 'IDENTIFIER_NODE'. Required for correct LTO
  31622. symtabs. The default implementation calls the
  31623. 'TARGET_STRIP_NAME_ENCODING' hook and then prepends the
  31624. 'USER_LABEL_PREFIX', if any.
  31625. -- Macro: ASM_OUTPUT_SYMBOL_REF (STREAM, SYM)
  31626. A C statement (sans semicolon) to output a reference to
  31627. 'SYMBOL_REF' SYM. If not defined, 'assemble_name' will be used to
  31628. output the name of the symbol. This macro may be used to modify
  31629. the way a symbol is referenced depending on information encoded by
  31630. 'TARGET_ENCODE_SECTION_INFO'.
  31631. -- Macro: ASM_OUTPUT_LABEL_REF (STREAM, BUF)
  31632. A C statement (sans semicolon) to output a reference to BUF, the
  31633. result of 'ASM_GENERATE_INTERNAL_LABEL'. If not defined,
  31634. 'assemble_name' will be used to output the name of the symbol.
  31635. This macro is not used by 'output_asm_label', or the '%l' specifier
  31636. that calls it; the intention is that this macro should be set when
  31637. it is necessary to output a label differently when its address is
  31638. being taken.
  31639. -- Target Hook: void TARGET_ASM_INTERNAL_LABEL (FILE *STREAM, const
  31640. char *PREFIX, unsigned long LABELNO)
  31641. A function to output to the stdio stream STREAM a label whose name
  31642. is made from the string PREFIX and the number LABELNO.
  31643. It is absolutely essential that these labels be distinct from the
  31644. labels used for user-level functions and variables. Otherwise,
  31645. certain programs will have name conflicts with internal labels.
  31646. It is desirable to exclude internal labels from the symbol table of
  31647. the object file. Most assemblers have a naming convention for
  31648. labels that should be excluded; on many systems, the letter 'L' at
  31649. the beginning of a label has this effect. You should find out what
  31650. convention your system uses, and follow it.
  31651. The default version of this function utilizes
  31652. 'ASM_GENERATE_INTERNAL_LABEL'.
  31653. -- Macro: ASM_OUTPUT_DEBUG_LABEL (STREAM, PREFIX, NUM)
  31654. A C statement to output to the stdio stream STREAM a debug info
  31655. label whose name is made from the string PREFIX and the number NUM.
  31656. This is useful for VLIW targets, where debug info labels may need
  31657. to be treated differently than branch target labels. On some
  31658. systems, branch target labels must be at the beginning of
  31659. instruction bundles, but debug info labels can occur in the middle
  31660. of instruction bundles.
  31661. If this macro is not defined, then
  31662. '(*targetm.asm_out.internal_label)' will be used.
  31663. -- Macro: ASM_GENERATE_INTERNAL_LABEL (STRING, PREFIX, NUM)
  31664. A C statement to store into the string STRING a label whose name is
  31665. made from the string PREFIX and the number NUM.
  31666. This string, when output subsequently by 'assemble_name', should
  31667. produce the output that '(*targetm.asm_out.internal_label)' would
  31668. produce with the same PREFIX and NUM.
  31669. If the string begins with '*', then 'assemble_name' will output the
  31670. rest of the string unchanged. It is often convenient for
  31671. 'ASM_GENERATE_INTERNAL_LABEL' to use '*' in this way. If the
  31672. string doesn't start with '*', then 'ASM_OUTPUT_LABELREF' gets to
  31673. output the string, and may change it. (Of course,
  31674. 'ASM_OUTPUT_LABELREF' is also part of your machine description, so
  31675. you should know what it does on your machine.)
  31676. -- Macro: ASM_FORMAT_PRIVATE_NAME (OUTVAR, NAME, NUMBER)
  31677. A C expression to assign to OUTVAR (which is a variable of type
  31678. 'char *') a newly allocated string made from the string NAME and
  31679. the number NUMBER, with some suitable punctuation added. Use
  31680. 'alloca' to get space for the string.
  31681. The string will be used as an argument to 'ASM_OUTPUT_LABELREF' to
  31682. produce an assembler label for an internal static variable whose
  31683. name is NAME. Therefore, the string must be such as to result in
  31684. valid assembler code. The argument NUMBER is different each time
  31685. this macro is executed; it prevents conflicts between
  31686. similarly-named internal static variables in different scopes.
  31687. Ideally this string should not be a valid C identifier, to prevent
  31688. any conflict with the user's own symbols. Most assemblers allow
  31689. periods or percent signs in assembler symbols; putting at least one
  31690. of these between the name and the number will suffice.
  31691. If this macro is not defined, a default definition will be provided
  31692. which is correct for most systems.
  31693. -- Macro: ASM_OUTPUT_DEF (STREAM, NAME, VALUE)
  31694. A C statement to output to the stdio stream STREAM assembler code
  31695. which defines (equates) the symbol NAME to have the value VALUE.
  31696. If 'SET_ASM_OP' is defined, a default definition is provided which
  31697. is correct for most systems.
  31698. -- Macro: ASM_OUTPUT_DEF_FROM_DECLS (STREAM, DECL_OF_NAME,
  31699. DECL_OF_VALUE)
  31700. A C statement to output to the stdio stream STREAM assembler code
  31701. which defines (equates) the symbol whose tree node is DECL_OF_NAME
  31702. to have the value of the tree node DECL_OF_VALUE. This macro will
  31703. be used in preference to 'ASM_OUTPUT_DEF' if it is defined and if
  31704. the tree nodes are available.
  31705. If 'SET_ASM_OP' is defined, a default definition is provided which
  31706. is correct for most systems.
  31707. -- Macro: TARGET_DEFERRED_OUTPUT_DEFS (DECL_OF_NAME, DECL_OF_VALUE)
  31708. A C statement that evaluates to true if the assembler code which
  31709. defines (equates) the symbol whose tree node is DECL_OF_NAME to
  31710. have the value of the tree node DECL_OF_VALUE should be emitted
  31711. near the end of the current compilation unit. The default is to
  31712. not defer output of defines. This macro affects defines output by
  31713. 'ASM_OUTPUT_DEF' and 'ASM_OUTPUT_DEF_FROM_DECLS'.
  31714. -- Macro: ASM_OUTPUT_WEAK_ALIAS (STREAM, NAME, VALUE)
  31715. A C statement to output to the stdio stream STREAM assembler code
  31716. which defines (equates) the weak symbol NAME to have the value
  31717. VALUE. If VALUE is 'NULL', it defines NAME as an undefined weak
  31718. symbol.
  31719. Define this macro if the target only supports weak aliases; define
  31720. 'ASM_OUTPUT_DEF' instead if possible.
  31721. -- Macro: OBJC_GEN_METHOD_LABEL (BUF, IS_INST, CLASS_NAME, CAT_NAME,
  31722. SEL_NAME)
  31723. Define this macro to override the default assembler names used for
  31724. Objective-C methods.
  31725. The default name is a unique method number followed by the name of
  31726. the class (e.g. '_1_Foo'). For methods in categories, the name of
  31727. the category is also included in the assembler name (e.g.
  31728. '_1_Foo_Bar').
  31729. These names are safe on most systems, but make debugging difficult
  31730. since the method's selector is not present in the name. Therefore,
  31731. particular systems define other ways of computing names.
  31732. BUF is an expression of type 'char *' which gives you a buffer in
  31733. which to store the name; its length is as long as CLASS_NAME,
  31734. CAT_NAME and SEL_NAME put together, plus 50 characters extra.
  31735. The argument IS_INST specifies whether the method is an instance
  31736. method or a class method; CLASS_NAME is the name of the class;
  31737. CAT_NAME is the name of the category (or 'NULL' if the method is
  31738. not in a category); and SEL_NAME is the name of the selector.
  31739. On systems where the assembler can handle quoted names, you can use
  31740. this macro to provide more human-readable names.
  31741. 
  31742. File: gccint.info, Node: Initialization, Next: Macros for Initialization, Prev: Label Output, Up: Assembler Format
  31743. 18.20.5 How Initialization Functions Are Handled
  31744. ------------------------------------------------
  31745. The compiled code for certain languages includes "constructors" (also
  31746. called "initialization routines")--functions to initialize data in the
  31747. program when the program is started. These functions need to be called
  31748. before the program is "started"--that is to say, before 'main' is
  31749. called.
  31750. Compiling some languages generates "destructors" (also called
  31751. "termination routines") that should be called when the program
  31752. terminates.
  31753. To make the initialization and termination functions work, the compiler
  31754. must output something in the assembler code to cause those functions to
  31755. be called at the appropriate time. When you port the compiler to a new
  31756. system, you need to specify how to do this.
  31757. There are two major ways that GCC currently supports the execution of
  31758. initialization and termination functions. Each way has two variants.
  31759. Much of the structure is common to all four variations.
  31760. The linker must build two lists of these functions--a list of
  31761. initialization functions, called '__CTOR_LIST__', and a list of
  31762. termination functions, called '__DTOR_LIST__'.
  31763. Each list always begins with an ignored function pointer (which may
  31764. hold 0, -1, or a count of the function pointers after it, depending on
  31765. the environment). This is followed by a series of zero or more function
  31766. pointers to constructors (or destructors), followed by a function
  31767. pointer containing zero.
  31768. Depending on the operating system and its executable file format,
  31769. either 'crtstuff.c' or 'libgcc2.c' traverses these lists at startup time
  31770. and exit time. Constructors are called in reverse order of the list;
  31771. destructors in forward order.
  31772. The best way to handle static constructors works only for object file
  31773. formats which provide arbitrarily-named sections. A section is set
  31774. aside for a list of constructors, and another for a list of destructors.
  31775. Traditionally these are called '.ctors' and '.dtors'. Each object file
  31776. that defines an initialization function also puts a word in the
  31777. constructor section to point to that function. The linker accumulates
  31778. all these words into one contiguous '.ctors' section. Termination
  31779. functions are handled similarly.
  31780. This method will be chosen as the default by 'target-def.h' if
  31781. 'TARGET_ASM_NAMED_SECTION' is defined. A target that does not support
  31782. arbitrary sections, but does support special designated constructor and
  31783. destructor sections may define 'CTORS_SECTION_ASM_OP' and
  31784. 'DTORS_SECTION_ASM_OP' to achieve the same effect.
  31785. When arbitrary sections are available, there are two variants,
  31786. depending upon how the code in 'crtstuff.c' is called. On systems that
  31787. support a ".init" section which is executed at program startup, parts of
  31788. 'crtstuff.c' are compiled into that section. The program is linked by
  31789. the 'gcc' driver like this:
  31790. ld -o OUTPUT_FILE crti.o crtbegin.o ... -lgcc crtend.o crtn.o
  31791. The prologue of a function ('__init') appears in the '.init' section of
  31792. 'crti.o'; the epilogue appears in 'crtn.o'. Likewise for the function
  31793. '__fini' in the ".fini" section. Normally these files are provided by
  31794. the operating system or by the GNU C library, but are provided by GCC
  31795. for a few targets.
  31796. The objects 'crtbegin.o' and 'crtend.o' are (for most targets) compiled
  31797. from 'crtstuff.c'. They contain, among other things, code fragments
  31798. within the '.init' and '.fini' sections that branch to routines in the
  31799. '.text' section. The linker will pull all parts of a section together,
  31800. which results in a complete '__init' function that invokes the routines
  31801. we need at startup.
  31802. To use this variant, you must define the 'INIT_SECTION_ASM_OP' macro
  31803. properly.
  31804. If no init section is available, when GCC compiles any function called
  31805. 'main' (or more accurately, any function designated as a program entry
  31806. point by the language front end calling 'expand_main_function'), it
  31807. inserts a procedure call to '__main' as the first executable code after
  31808. the function prologue. The '__main' function is defined in 'libgcc2.c'
  31809. and runs the global constructors.
  31810. In file formats that don't support arbitrary sections, there are again
  31811. two variants. In the simplest variant, the GNU linker (GNU 'ld') and an
  31812. 'a.out' format must be used. In this case, 'TARGET_ASM_CONSTRUCTOR' is
  31813. defined to produce a '.stabs' entry of type 'N_SETT', referencing the
  31814. name '__CTOR_LIST__', and with the address of the void function
  31815. containing the initialization code as its value. The GNU linker
  31816. recognizes this as a request to add the value to a "set"; the values are
  31817. accumulated, and are eventually placed in the executable as a vector in
  31818. the format described above, with a leading (ignored) count and a
  31819. trailing zero element. 'TARGET_ASM_DESTRUCTOR' is handled similarly.
  31820. Since no init section is available, the absence of 'INIT_SECTION_ASM_OP'
  31821. causes the compilation of 'main' to call '__main' as above, starting the
  31822. initialization process.
  31823. The last variant uses neither arbitrary sections nor the GNU linker.
  31824. This is preferable when you want to do dynamic linking and when using
  31825. file formats which the GNU linker does not support, such as 'ECOFF'. In
  31826. this case, 'TARGET_HAVE_CTORS_DTORS' is false, initialization and
  31827. termination functions are recognized simply by their names. This
  31828. requires an extra program in the linkage step, called 'collect2'. This
  31829. program pretends to be the linker, for use with GCC; it does its job by
  31830. running the ordinary linker, but also arranges to include the vectors of
  31831. initialization and termination functions. These functions are called
  31832. via '__main' as described above. In order to use this method,
  31833. 'use_collect2' must be defined in the target in 'config.gcc'.
  31834. The following section describes the specific macros that control and
  31835. customize the handling of initialization and termination functions.
  31836. 
  31837. File: gccint.info, Node: Macros for Initialization, Next: Instruction Output, Prev: Initialization, Up: Assembler Format
  31838. 18.20.6 Macros Controlling Initialization Routines
  31839. --------------------------------------------------
  31840. Here are the macros that control how the compiler handles initialization
  31841. and termination functions:
  31842. -- Macro: INIT_SECTION_ASM_OP
  31843. If defined, a C string constant, including spacing, for the
  31844. assembler operation to identify the following data as
  31845. initialization code. If not defined, GCC will assume such a
  31846. section does not exist. When you are using special sections for
  31847. initialization and termination functions, this macro also controls
  31848. how 'crtstuff.c' and 'libgcc2.c' arrange to run the initialization
  31849. functions.
  31850. -- Macro: HAS_INIT_SECTION
  31851. If defined, 'main' will not call '__main' as described above. This
  31852. macro should be defined for systems that control start-up code on a
  31853. symbol-by-symbol basis, such as OSF/1, and should not be defined
  31854. explicitly for systems that support 'INIT_SECTION_ASM_OP'.
  31855. -- Macro: LD_INIT_SWITCH
  31856. If defined, a C string constant for a switch that tells the linker
  31857. that the following symbol is an initialization routine.
  31858. -- Macro: LD_FINI_SWITCH
  31859. If defined, a C string constant for a switch that tells the linker
  31860. that the following symbol is a finalization routine.
  31861. -- Macro: COLLECT_SHARED_INIT_FUNC (STREAM, FUNC)
  31862. If defined, a C statement that will write a function that can be
  31863. automatically called when a shared library is loaded. The function
  31864. should call FUNC, which takes no arguments. If not defined, and
  31865. the object format requires an explicit initialization function,
  31866. then a function called '_GLOBAL__DI' will be generated.
  31867. This function and the following one are used by collect2 when
  31868. linking a shared library that needs constructors or destructors, or
  31869. has DWARF2 exception tables embedded in the code.
  31870. -- Macro: COLLECT_SHARED_FINI_FUNC (STREAM, FUNC)
  31871. If defined, a C statement that will write a function that can be
  31872. automatically called when a shared library is unloaded. The
  31873. function should call FUNC, which takes no arguments. If not
  31874. defined, and the object format requires an explicit finalization
  31875. function, then a function called '_GLOBAL__DD' will be generated.
  31876. -- Macro: INVOKE__main
  31877. If defined, 'main' will call '__main' despite the presence of
  31878. 'INIT_SECTION_ASM_OP'. This macro should be defined for systems
  31879. where the init section is not actually run automatically, but is
  31880. still useful for collecting the lists of constructors and
  31881. destructors.
  31882. -- Macro: SUPPORTS_INIT_PRIORITY
  31883. If nonzero, the C++ 'init_priority' attribute is supported and the
  31884. compiler should emit instructions to control the order of
  31885. initialization of objects. If zero, the compiler will issue an
  31886. error message upon encountering an 'init_priority' attribute.
  31887. -- Target Hook: bool TARGET_HAVE_CTORS_DTORS
  31888. This value is true if the target supports some "native" method of
  31889. collecting constructors and destructors to be run at startup and
  31890. exit. It is false if we must use 'collect2'.
  31891. -- Target Hook: void TARGET_ASM_CONSTRUCTOR (rtx SYMBOL, int PRIORITY)
  31892. If defined, a function that outputs assembler code to arrange to
  31893. call the function referenced by SYMBOL at initialization time.
  31894. Assume that SYMBOL is a 'SYMBOL_REF' for a function taking no
  31895. arguments and with no return value. If the target supports
  31896. initialization priorities, PRIORITY is a value between 0 and
  31897. 'MAX_INIT_PRIORITY'; otherwise it must be 'DEFAULT_INIT_PRIORITY'.
  31898. If this macro is not defined by the target, a suitable default will
  31899. be chosen if (1) the target supports arbitrary section names, (2)
  31900. the target defines 'CTORS_SECTION_ASM_OP', or (3) 'USE_COLLECT2' is
  31901. not defined.
  31902. -- Target Hook: void TARGET_ASM_DESTRUCTOR (rtx SYMBOL, int PRIORITY)
  31903. This is like 'TARGET_ASM_CONSTRUCTOR' but used for termination
  31904. functions rather than initialization functions.
  31905. If 'TARGET_HAVE_CTORS_DTORS' is true, the initialization routine
  31906. generated for the generated object file will have static linkage.
  31907. If your system uses 'collect2' as the means of processing constructors,
  31908. then that program normally uses 'nm' to scan an object file for
  31909. constructor functions to be called.
  31910. On certain kinds of systems, you can define this macro to make
  31911. 'collect2' work faster (and, in some cases, make it work at all):
  31912. -- Macro: OBJECT_FORMAT_COFF
  31913. Define this macro if the system uses COFF (Common Object File
  31914. Format) object files, so that 'collect2' can assume this format and
  31915. scan object files directly for dynamic constructor/destructor
  31916. functions.
  31917. This macro is effective only in a native compiler; 'collect2' as
  31918. part of a cross compiler always uses 'nm' for the target machine.
  31919. -- Macro: REAL_NM_FILE_NAME
  31920. Define this macro as a C string constant containing the file name
  31921. to use to execute 'nm'. The default is to search the path normally
  31922. for 'nm'.
  31923. -- Macro: NM_FLAGS
  31924. 'collect2' calls 'nm' to scan object files for static constructors
  31925. and destructors and LTO info. By default, '-n' is passed. Define
  31926. 'NM_FLAGS' to a C string constant if other options are needed to
  31927. get the same output format as GNU 'nm -n' produces.
  31928. If your system supports shared libraries and has a program to list the
  31929. dynamic dependencies of a given library or executable, you can define
  31930. these macros to enable support for running initialization and
  31931. termination functions in shared libraries:
  31932. -- Macro: LDD_SUFFIX
  31933. Define this macro to a C string constant containing the name of the
  31934. program which lists dynamic dependencies, like 'ldd' under SunOS 4.
  31935. -- Macro: PARSE_LDD_OUTPUT (PTR)
  31936. Define this macro to be C code that extracts filenames from the
  31937. output of the program denoted by 'LDD_SUFFIX'. PTR is a variable
  31938. of type 'char *' that points to the beginning of a line of output
  31939. from 'LDD_SUFFIX'. If the line lists a dynamic dependency, the
  31940. code must advance PTR to the beginning of the filename on that
  31941. line. Otherwise, it must set PTR to 'NULL'.
  31942. -- Macro: SHLIB_SUFFIX
  31943. Define this macro to a C string constant containing the default
  31944. shared library extension of the target (e.g., '".so"'). 'collect2'
  31945. strips version information after this suffix when generating global
  31946. constructor and destructor names. This define is only needed on
  31947. targets that use 'collect2' to process constructors and
  31948. destructors.
  31949. 
  31950. File: gccint.info, Node: Instruction Output, Next: Dispatch Tables, Prev: Macros for Initialization, Up: Assembler Format
  31951. 18.20.7 Output of Assembler Instructions
  31952. ----------------------------------------
  31953. This describes assembler instruction output.
  31954. -- Macro: REGISTER_NAMES
  31955. A C initializer containing the assembler's names for the machine
  31956. registers, each one as a C string constant. This is what
  31957. translates register numbers in the compiler into assembler
  31958. language.
  31959. -- Macro: ADDITIONAL_REGISTER_NAMES
  31960. If defined, a C initializer for an array of structures containing a
  31961. name and a register number. This macro defines additional names
  31962. for hard registers, thus allowing the 'asm' option in declarations
  31963. to refer to registers using alternate names.
  31964. -- Macro: OVERLAPPING_REGISTER_NAMES
  31965. If defined, a C initializer for an array of structures containing a
  31966. name, a register number and a count of the number of consecutive
  31967. machine registers the name overlaps. This macro defines additional
  31968. names for hard registers, thus allowing the 'asm' option in
  31969. declarations to refer to registers using alternate names. Unlike
  31970. 'ADDITIONAL_REGISTER_NAMES', this macro should be used when the
  31971. register name implies multiple underlying registers.
  31972. This macro should be used when it is important that a clobber in an
  31973. 'asm' statement clobbers all the underlying values implied by the
  31974. register name. For example, on ARM, clobbering the
  31975. double-precision VFP register "d0" implies clobbering both
  31976. single-precision registers "s0" and "s1".
  31977. -- Macro: ASM_OUTPUT_OPCODE (STREAM, PTR)
  31978. Define this macro if you are using an unusual assembler that
  31979. requires different names for the machine instructions.
  31980. The definition is a C statement or statements which output an
  31981. assembler instruction opcode to the stdio stream STREAM. The
  31982. macro-operand PTR is a variable of type 'char *' which points to
  31983. the opcode name in its "internal" form--the form that is written in
  31984. the machine description. The definition should output the opcode
  31985. name to STREAM, performing any translation you desire, and
  31986. increment the variable PTR to point at the end of the opcode so
  31987. that it will not be output twice.
  31988. In fact, your macro definition may process less than the entire
  31989. opcode name, or more than the opcode name; but if you want to
  31990. process text that includes '%'-sequences to substitute operands,
  31991. you must take care of the substitution yourself. Just be sure to
  31992. increment PTR over whatever text should not be output normally.
  31993. If you need to look at the operand values, they can be found as the
  31994. elements of 'recog_data.operand'.
  31995. If the macro definition does nothing, the instruction is output in
  31996. the usual way.
  31997. -- Macro: FINAL_PRESCAN_INSN (INSN, OPVEC, NOPERANDS)
  31998. If defined, a C statement to be executed just prior to the output
  31999. of assembler code for INSN, to modify the extracted operands so
  32000. they will be output differently.
  32001. Here the argument OPVEC is the vector containing the operands
  32002. extracted from INSN, and NOPERANDS is the number of elements of the
  32003. vector which contain meaningful data for this insn. The contents
  32004. of this vector are what will be used to convert the insn template
  32005. into assembler code, so you can change the assembler output by
  32006. changing the contents of the vector.
  32007. This macro is useful when various assembler syntaxes share a single
  32008. file of instruction patterns; by defining this macro differently,
  32009. you can cause a large class of instructions to be output
  32010. differently (such as with rearranged operands). Naturally,
  32011. variations in assembler syntax affecting individual insn patterns
  32012. ought to be handled by writing conditional output routines in those
  32013. patterns.
  32014. If this macro is not defined, it is equivalent to a null statement.
  32015. -- Target Hook: void TARGET_ASM_FINAL_POSTSCAN_INSN (FILE *FILE,
  32016. rtx_insn *INSN, rtx *OPVEC, int NOPERANDS)
  32017. If defined, this target hook is a function which is executed just
  32018. after the output of assembler code for INSN, to change the mode of
  32019. the assembler if necessary.
  32020. Here the argument OPVEC is the vector containing the operands
  32021. extracted from INSN, and NOPERANDS is the number of elements of the
  32022. vector which contain meaningful data for this insn. The contents
  32023. of this vector are what was used to convert the insn template into
  32024. assembler code, so you can change the assembler mode by checking
  32025. the contents of the vector.
  32026. -- Macro: PRINT_OPERAND (STREAM, X, CODE)
  32027. A C compound statement to output to stdio stream STREAM the
  32028. assembler syntax for an instruction operand X. X is an RTL
  32029. expression.
  32030. CODE is a value that can be used to specify one of several ways of
  32031. printing the operand. It is used when identical operands must be
  32032. printed differently depending on the context. CODE comes from the
  32033. '%' specification that was used to request printing of the operand.
  32034. If the specification was just '%DIGIT' then CODE is 0; if the
  32035. specification was '%LTR DIGIT' then CODE is the ASCII code for LTR.
  32036. If X is a register, this macro should print the register's name.
  32037. The names can be found in an array 'reg_names' whose type is 'char
  32038. *[]'. 'reg_names' is initialized from 'REGISTER_NAMES'.
  32039. When the machine description has a specification '%PUNCT' (a '%'
  32040. followed by a punctuation character), this macro is called with a
  32041. null pointer for X and the punctuation character for CODE.
  32042. -- Macro: PRINT_OPERAND_PUNCT_VALID_P (CODE)
  32043. A C expression which evaluates to true if CODE is a valid
  32044. punctuation character for use in the 'PRINT_OPERAND' macro. If
  32045. 'PRINT_OPERAND_PUNCT_VALID_P' is not defined, it means that no
  32046. punctuation characters (except for the standard one, '%') are used
  32047. in this way.
  32048. -- Macro: PRINT_OPERAND_ADDRESS (STREAM, X)
  32049. A C compound statement to output to stdio stream STREAM the
  32050. assembler syntax for an instruction operand that is a memory
  32051. reference whose address is X. X is an RTL expression.
  32052. On some machines, the syntax for a symbolic address depends on the
  32053. section that the address refers to. On these machines, define the
  32054. hook 'TARGET_ENCODE_SECTION_INFO' to store the information into the
  32055. 'symbol_ref', and then check for it here. *Note Assembler
  32056. Format::.
  32057. -- Macro: DBR_OUTPUT_SEQEND (FILE)
  32058. A C statement, to be executed after all slot-filler instructions
  32059. have been output. If necessary, call 'dbr_sequence_length' to
  32060. determine the number of slots filled in a sequence (zero if not
  32061. currently outputting a sequence), to decide how many no-ops to
  32062. output, or whatever.
  32063. Don't define this macro if it has nothing to do, but it is helpful
  32064. in reading assembly output if the extent of the delay sequence is
  32065. made explicit (e.g. with white space).
  32066. Note that output routines for instructions with delay slots must be
  32067. prepared to deal with not being output as part of a sequence (i.e. when
  32068. the scheduling pass is not run, or when no slot fillers could be found.)
  32069. The variable 'final_sequence' is null when not processing a sequence,
  32070. otherwise it contains the 'sequence' rtx being output.
  32071. -- Macro: REGISTER_PREFIX
  32072. -- Macro: LOCAL_LABEL_PREFIX
  32073. -- Macro: USER_LABEL_PREFIX
  32074. -- Macro: IMMEDIATE_PREFIX
  32075. If defined, C string expressions to be used for the '%R', '%L',
  32076. '%U', and '%I' options of 'asm_fprintf' (see 'final.c'). These are
  32077. useful when a single 'md' file must support multiple assembler
  32078. formats. In that case, the various 'tm.h' files can define these
  32079. macros differently.
  32080. -- Macro: ASM_FPRINTF_EXTENSIONS (FILE, ARGPTR, FORMAT)
  32081. If defined this macro should expand to a series of 'case'
  32082. statements which will be parsed inside the 'switch' statement of
  32083. the 'asm_fprintf' function. This allows targets to define extra
  32084. printf formats which may useful when generating their assembler
  32085. statements. Note that uppercase letters are reserved for future
  32086. generic extensions to asm_fprintf, and so are not available to
  32087. target specific code. The output file is given by the parameter
  32088. FILE. The varargs input pointer is ARGPTR and the rest of the
  32089. format string, starting the character after the one that is being
  32090. switched upon, is pointed to by FORMAT.
  32091. -- Macro: ASSEMBLER_DIALECT
  32092. If your target supports multiple dialects of assembler language
  32093. (such as different opcodes), define this macro as a C expression
  32094. that gives the numeric index of the assembler language dialect to
  32095. use, with zero as the first variant.
  32096. If this macro is defined, you may use constructs of the form
  32097. '{option0|option1|option2...}'
  32098. in the output templates of patterns (*note Output Template::) or in
  32099. the first argument of 'asm_fprintf'. This construct outputs
  32100. 'option0', 'option1', 'option2', etc., if the value of
  32101. 'ASSEMBLER_DIALECT' is zero, one, two, etc. Any special characters
  32102. within these strings retain their usual meaning. If there are
  32103. fewer alternatives within the braces than the value of
  32104. 'ASSEMBLER_DIALECT', the construct outputs nothing. If it's needed
  32105. to print curly braces or '|' character in assembler output
  32106. directly, '%{', '%}' and '%|' can be used.
  32107. If you do not define this macro, the characters '{', '|' and '}' do
  32108. not have any special meaning when used in templates or operands to
  32109. 'asm_fprintf'.
  32110. Define the macros 'REGISTER_PREFIX', 'LOCAL_LABEL_PREFIX',
  32111. 'USER_LABEL_PREFIX' and 'IMMEDIATE_PREFIX' if you can express the
  32112. variations in assembler language syntax with that mechanism.
  32113. Define 'ASSEMBLER_DIALECT' and use the '{option0|option1}' syntax
  32114. if the syntax variant are larger and involve such things as
  32115. different opcodes or operand order.
  32116. -- Macro: ASM_OUTPUT_REG_PUSH (STREAM, REGNO)
  32117. A C expression to output to STREAM some assembler code which will
  32118. push hard register number REGNO onto the stack. The code need not
  32119. be optimal, since this macro is used only when profiling.
  32120. -- Macro: ASM_OUTPUT_REG_POP (STREAM, REGNO)
  32121. A C expression to output to STREAM some assembler code which will
  32122. pop hard register number REGNO off of the stack. The code need not
  32123. be optimal, since this macro is used only when profiling.
  32124. 
  32125. File: gccint.info, Node: Dispatch Tables, Next: Exception Region Output, Prev: Instruction Output, Up: Assembler Format
  32126. 18.20.8 Output of Dispatch Tables
  32127. ---------------------------------
  32128. This concerns dispatch tables.
  32129. -- Macro: ASM_OUTPUT_ADDR_DIFF_ELT (STREAM, BODY, VALUE, REL)
  32130. A C statement to output to the stdio stream STREAM an assembler
  32131. pseudo-instruction to generate a difference between two labels.
  32132. VALUE and REL are the numbers of two internal labels. The
  32133. definitions of these labels are output using
  32134. '(*targetm.asm_out.internal_label)', and they must be printed in
  32135. the same way here. For example,
  32136. fprintf (STREAM, "\t.word L%d-L%d\n",
  32137. VALUE, REL)
  32138. You must provide this macro on machines where the addresses in a
  32139. dispatch table are relative to the table's own address. If
  32140. defined, GCC will also use this macro on all machines when
  32141. producing PIC. BODY is the body of the 'ADDR_DIFF_VEC'; it is
  32142. provided so that the mode and flags can be read.
  32143. -- Macro: ASM_OUTPUT_ADDR_VEC_ELT (STREAM, VALUE)
  32144. This macro should be provided on machines where the addresses in a
  32145. dispatch table are absolute.
  32146. The definition should be a C statement to output to the stdio
  32147. stream STREAM an assembler pseudo-instruction to generate a
  32148. reference to a label. VALUE is the number of an internal label
  32149. whose definition is output using
  32150. '(*targetm.asm_out.internal_label)'. For example,
  32151. fprintf (STREAM, "\t.word L%d\n", VALUE)
  32152. -- Macro: ASM_OUTPUT_CASE_LABEL (STREAM, PREFIX, NUM, TABLE)
  32153. Define this if the label before a jump-table needs to be output
  32154. specially. The first three arguments are the same as for
  32155. '(*targetm.asm_out.internal_label)'; the fourth argument is the
  32156. jump-table which follows (a 'jump_table_data' containing an
  32157. 'addr_vec' or 'addr_diff_vec').
  32158. This feature is used on system V to output a 'swbeg' statement for
  32159. the table.
  32160. If this macro is not defined, these labels are output with
  32161. '(*targetm.asm_out.internal_label)'.
  32162. -- Macro: ASM_OUTPUT_CASE_END (STREAM, NUM, TABLE)
  32163. Define this if something special must be output at the end of a
  32164. jump-table. The definition should be a C statement to be executed
  32165. after the assembler code for the table is written. It should write
  32166. the appropriate code to stdio stream STREAM. The argument TABLE is
  32167. the jump-table insn, and NUM is the label-number of the preceding
  32168. label.
  32169. If this macro is not defined, nothing special is output at the end
  32170. of the jump-table.
  32171. -- Target Hook: void TARGET_ASM_POST_CFI_STARTPROC (FILE *, TREE)
  32172. This target hook is used to emit assembly strings required by the
  32173. target after the .cfi_startproc directive. The first argument is
  32174. the file stream to write the strings to and the second argument is
  32175. the function's declaration. The expected use is to add more .cfi_*
  32176. directives.
  32177. The default is to not output any assembly strings.
  32178. -- Target Hook: void TARGET_ASM_EMIT_UNWIND_LABEL (FILE *STREAM, tree
  32179. DECL, int FOR_EH, int EMPTY)
  32180. This target hook emits a label at the beginning of each FDE. It
  32181. should be defined on targets where FDEs need special labels, and it
  32182. should write the appropriate label, for the FDE associated with the
  32183. function declaration DECL, to the stdio stream STREAM. The third
  32184. argument, FOR_EH, is a boolean: true if this is for an exception
  32185. table. The fourth argument, EMPTY, is a boolean: true if this is a
  32186. placeholder label for an omitted FDE.
  32187. The default is that FDEs are not given nonlocal labels.
  32188. -- Target Hook: void TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL (FILE *STREAM)
  32189. This target hook emits a label at the beginning of the exception
  32190. table. It should be defined on targets where it is desirable for
  32191. the table to be broken up according to function.
  32192. The default is that no label is emitted.
  32193. -- Target Hook: void TARGET_ASM_EMIT_EXCEPT_PERSONALITY (rtx
  32194. PERSONALITY)
  32195. If the target implements 'TARGET_ASM_UNWIND_EMIT', this hook may be
  32196. used to emit a directive to install a personality hook into the
  32197. unwind info. This hook should not be used if dwarf2 unwind info is
  32198. used.
  32199. -- Target Hook: void TARGET_ASM_UNWIND_EMIT (FILE *STREAM, rtx_insn
  32200. *INSN)
  32201. This target hook emits assembly directives required to unwind the
  32202. given instruction. This is only used when
  32203. 'TARGET_EXCEPT_UNWIND_INFO' returns 'UI_TARGET'.
  32204. -- Target Hook: bool TARGET_ASM_UNWIND_EMIT_BEFORE_INSN
  32205. True if the 'TARGET_ASM_UNWIND_EMIT' hook should be called before
  32206. the assembly for INSN has been emitted, false if the hook should be
  32207. called afterward.
  32208. 
  32209. File: gccint.info, Node: Exception Region Output, Next: Alignment Output, Prev: Dispatch Tables, Up: Assembler Format
  32210. 18.20.9 Assembler Commands for Exception Regions
  32211. ------------------------------------------------
  32212. This describes commands marking the start and the end of an exception
  32213. region.
  32214. -- Macro: EH_FRAME_SECTION_NAME
  32215. If defined, a C string constant for the name of the section
  32216. containing exception handling frame unwind information. If not
  32217. defined, GCC will provide a default definition if the target
  32218. supports named sections. 'crtstuff.c' uses this macro to switch to
  32219. the appropriate section.
  32220. You should define this symbol if your target supports DWARF 2 frame
  32221. unwind information and the default definition does not work.
  32222. -- Macro: EH_FRAME_THROUGH_COLLECT2
  32223. If defined, DWARF 2 frame unwind information will identified by
  32224. specially named labels. The collect2 process will locate these
  32225. labels and generate code to register the frames.
  32226. This might be necessary, for instance, if the system linker will
  32227. not place the eh_frames in-between the sentinals from 'crtstuff.c',
  32228. or if the system linker does garbage collection and sections cannot
  32229. be marked as not to be collected.
  32230. -- Macro: EH_TABLES_CAN_BE_READ_ONLY
  32231. Define this macro to 1 if your target is such that no frame unwind
  32232. information encoding used with non-PIC code will ever require a
  32233. runtime relocation, but the linker may not support merging
  32234. read-only and read-write sections into a single read-write section.
  32235. -- Macro: MASK_RETURN_ADDR
  32236. An rtx used to mask the return address found via 'RETURN_ADDR_RTX',
  32237. so that it does not contain any extraneous set bits in it.
  32238. -- Macro: DWARF2_UNWIND_INFO
  32239. Define this macro to 0 if your target supports DWARF 2 frame unwind
  32240. information, but it does not yet work with exception handling.
  32241. Otherwise, if your target supports this information (if it defines
  32242. 'INCOMING_RETURN_ADDR_RTX' and 'OBJECT_FORMAT_ELF'), GCC will
  32243. provide a default definition of 1.
  32244. -- Common Target Hook: enum unwind_info_type TARGET_EXCEPT_UNWIND_INFO
  32245. (struct gcc_options *OPTS)
  32246. This hook defines the mechanism that will be used for exception
  32247. handling by the target. If the target has ABI specified unwind
  32248. tables, the hook should return 'UI_TARGET'. If the target is to
  32249. use the 'setjmp'/'longjmp'-based exception handling scheme, the
  32250. hook should return 'UI_SJLJ'. If the target supports DWARF 2 frame
  32251. unwind information, the hook should return 'UI_DWARF2'.
  32252. A target may, if exceptions are disabled, choose to return
  32253. 'UI_NONE'. This may end up simplifying other parts of
  32254. target-specific code. The default implementation of this hook
  32255. never returns 'UI_NONE'.
  32256. Note that the value returned by this hook should be constant. It
  32257. should not depend on anything except the command-line switches
  32258. described by OPTS. In particular, the setting 'UI_SJLJ' must be
  32259. fixed at compiler start-up as C pre-processor macros and builtin
  32260. functions related to exception handling are set up depending on
  32261. this setting.
  32262. The default implementation of the hook first honors the
  32263. '--enable-sjlj-exceptions' configure option, then
  32264. 'DWARF2_UNWIND_INFO', and finally defaults to 'UI_SJLJ'. If
  32265. 'DWARF2_UNWIND_INFO' depends on command-line options, the target
  32266. must define this hook so that OPTS is used correctly.
  32267. -- Common Target Hook: bool TARGET_UNWIND_TABLES_DEFAULT
  32268. This variable should be set to 'true' if the target ABI requires
  32269. unwinding tables even when exceptions are not used. It must not be
  32270. modified by command-line option processing.
  32271. -- Macro: DONT_USE_BUILTIN_SETJMP
  32272. Define this macro to 1 if the 'setjmp'/'longjmp'-based scheme
  32273. should use the 'setjmp'/'longjmp' functions from the C library
  32274. instead of the '__builtin_setjmp'/'__builtin_longjmp' machinery.
  32275. -- Macro: JMP_BUF_SIZE
  32276. This macro has no effect unless 'DONT_USE_BUILTIN_SETJMP' is also
  32277. defined. Define this macro if the default size of 'jmp_buf' buffer
  32278. for the 'setjmp'/'longjmp'-based exception handling mechanism is
  32279. not large enough, or if it is much too large. The default size is
  32280. 'FIRST_PSEUDO_REGISTER * sizeof(void *)'.
  32281. -- Macro: DWARF_CIE_DATA_ALIGNMENT
  32282. This macro need only be defined if the target might save registers
  32283. in the function prologue at an offset to the stack pointer that is
  32284. not aligned to 'UNITS_PER_WORD'. The definition should be the
  32285. negative minimum alignment if 'STACK_GROWS_DOWNWARD' is true, and
  32286. the positive minimum alignment otherwise. *Note DWARF::. Only
  32287. applicable if the target supports DWARF 2 frame unwind information.
  32288. -- Target Hook: bool TARGET_TERMINATE_DW2_EH_FRAME_INFO
  32289. Contains the value true if the target should add a zero word onto
  32290. the end of a Dwarf-2 frame info section when used for exception
  32291. handling. Default value is false if 'EH_FRAME_SECTION_NAME' is
  32292. defined, and true otherwise.
  32293. -- Target Hook: rtx TARGET_DWARF_REGISTER_SPAN (rtx REG)
  32294. Given a register, this hook should return a parallel of registers
  32295. to represent where to find the register pieces. Define this hook
  32296. if the register and its mode are represented in Dwarf in
  32297. non-contiguous locations, or if the register should be represented
  32298. in more than one register in Dwarf. Otherwise, this hook should
  32299. return 'NULL_RTX'. If not defined, the default is to return
  32300. 'NULL_RTX'.
  32301. -- Target Hook: machine_mode TARGET_DWARF_FRAME_REG_MODE (int REGNO)
  32302. Given a register, this hook should return the mode which the
  32303. corresponding Dwarf frame register should have. This is normally
  32304. used to return a smaller mode than the raw mode to prevent call
  32305. clobbered parts of a register altering the frame register size
  32306. -- Target Hook: void TARGET_INIT_DWARF_REG_SIZES_EXTRA (tree ADDRESS)
  32307. If some registers are represented in Dwarf-2 unwind information in
  32308. multiple pieces, define this hook to fill in information about the
  32309. sizes of those pieces in the table used by the unwinder at runtime.
  32310. It will be called by 'expand_builtin_init_dwarf_reg_sizes' after
  32311. filling in a single size corresponding to each hard register;
  32312. ADDRESS is the address of the table.
  32313. -- Target Hook: bool TARGET_ASM_TTYPE (rtx SYM)
  32314. This hook is used to output a reference from a frame unwinding
  32315. table to the type_info object identified by SYM. It should return
  32316. 'true' if the reference was output. Returning 'false' will cause
  32317. the reference to be output using the normal Dwarf2 routines.
  32318. -- Target Hook: bool TARGET_ARM_EABI_UNWINDER
  32319. This flag should be set to 'true' on targets that use an ARM EABI
  32320. based unwinding library, and 'false' on other targets. This
  32321. effects the format of unwinding tables, and how the unwinder in
  32322. entered after running a cleanup. The default is 'false'.
  32323. 
  32324. File: gccint.info, Node: Alignment Output, Prev: Exception Region Output, Up: Assembler Format
  32325. 18.20.10 Assembler Commands for Alignment
  32326. -----------------------------------------
  32327. This describes commands for alignment.
  32328. -- Macro: JUMP_ALIGN (LABEL)
  32329. The alignment (log base 2) to put in front of LABEL, which is a
  32330. common destination of jumps and has no fallthru incoming edge.
  32331. This macro need not be defined if you don't want any special
  32332. alignment to be done at such a time. Most machine descriptions do
  32333. not currently define the macro.
  32334. Unless it's necessary to inspect the LABEL parameter, it is better
  32335. to set the variable ALIGN_JUMPS in the target's
  32336. 'TARGET_OPTION_OVERRIDE'. Otherwise, you should try to honor the
  32337. user's selection in ALIGN_JUMPS in a 'JUMP_ALIGN' implementation.
  32338. -- Macro: LABEL_ALIGN_AFTER_BARRIER (LABEL)
  32339. The alignment (log base 2) to put in front of LABEL, which follows
  32340. a 'BARRIER'.
  32341. This macro need not be defined if you don't want any special
  32342. alignment to be done at such a time. Most machine descriptions do
  32343. not currently define the macro.
  32344. -- Macro: LOOP_ALIGN (LABEL)
  32345. The alignment (log base 2) to put in front of LABEL that heads a
  32346. frequently executed basic block (usually the header of a loop).
  32347. This macro need not be defined if you don't want any special
  32348. alignment to be done at such a time. Most machine descriptions do
  32349. not currently define the macro.
  32350. Unless it's necessary to inspect the LABEL parameter, it is better
  32351. to set the variable 'align_loops' in the target's
  32352. 'TARGET_OPTION_OVERRIDE'. Otherwise, you should try to honor the
  32353. user's selection in 'align_loops' in a 'LOOP_ALIGN' implementation.
  32354. -- Macro: LABEL_ALIGN (LABEL)
  32355. The alignment (log base 2) to put in front of LABEL. If
  32356. 'LABEL_ALIGN_AFTER_BARRIER' / 'LOOP_ALIGN' specify a different
  32357. alignment, the maximum of the specified values is used.
  32358. Unless it's necessary to inspect the LABEL parameter, it is better
  32359. to set the variable 'align_labels' in the target's
  32360. 'TARGET_OPTION_OVERRIDE'. Otherwise, you should try to honor the
  32361. user's selection in 'align_labels' in a 'LABEL_ALIGN'
  32362. implementation.
  32363. -- Macro: ASM_OUTPUT_SKIP (STREAM, NBYTES)
  32364. A C statement to output to the stdio stream STREAM an assembler
  32365. instruction to advance the location counter by NBYTES bytes. Those
  32366. bytes should be zero when loaded. NBYTES will be a C expression of
  32367. type 'unsigned HOST_WIDE_INT'.
  32368. -- Macro: ASM_NO_SKIP_IN_TEXT
  32369. Define this macro if 'ASM_OUTPUT_SKIP' should not be used in the
  32370. text section because it fails to put zeros in the bytes that are
  32371. skipped. This is true on many Unix systems, where the pseudo-op to
  32372. skip bytes produces no-op instructions rather than zeros when used
  32373. in the text section.
  32374. -- Macro: ASM_OUTPUT_ALIGN (STREAM, POWER)
  32375. A C statement to output to the stdio stream STREAM an assembler
  32376. command to advance the location counter to a multiple of 2 to the
  32377. POWER bytes. POWER will be a C expression of type 'int'.
  32378. -- Macro: ASM_OUTPUT_ALIGN_WITH_NOP (STREAM, POWER)
  32379. Like 'ASM_OUTPUT_ALIGN', except that the "nop" instruction is used
  32380. for padding, if necessary.
  32381. -- Macro: ASM_OUTPUT_MAX_SKIP_ALIGN (STREAM, POWER, MAX_SKIP)
  32382. A C statement to output to the stdio stream STREAM an assembler
  32383. command to advance the location counter to a multiple of 2 to the
  32384. POWER bytes, but only if MAX_SKIP or fewer bytes are needed to
  32385. satisfy the alignment request. POWER and MAX_SKIP will be a C
  32386. expression of type 'int'.
  32387. 
  32388. File: gccint.info, Node: Debugging Info, Next: Floating Point, Prev: Assembler Format, Up: Target Macros
  32389. 18.21 Controlling Debugging Information Format
  32390. ==============================================
  32391. This describes how to specify debugging information.
  32392. * Menu:
  32393. * All Debuggers:: Macros that affect all debugging formats uniformly.
  32394. * DBX Options:: Macros enabling specific options in DBX format.
  32395. * DBX Hooks:: Hook macros for varying DBX format.
  32396. * File Names and DBX:: Macros controlling output of file names in DBX format.
  32397. * DWARF:: Macros for DWARF format.
  32398. * VMS Debug:: Macros for VMS debug format.
  32399. 
  32400. File: gccint.info, Node: All Debuggers, Next: DBX Options, Up: Debugging Info
  32401. 18.21.1 Macros Affecting All Debugging Formats
  32402. ----------------------------------------------
  32403. These macros affect all debugging formats.
  32404. -- Macro: DBX_REGISTER_NUMBER (REGNO)
  32405. A C expression that returns the DBX register number for the
  32406. compiler register number REGNO. In the default macro provided, the
  32407. value of this expression will be REGNO itself. But sometimes there
  32408. are some registers that the compiler knows about and DBX does not,
  32409. or vice versa. In such cases, some register may need to have one
  32410. number in the compiler and another for DBX.
  32411. If two registers have consecutive numbers inside GCC, and they can
  32412. be used as a pair to hold a multiword value, then they _must_ have
  32413. consecutive numbers after renumbering with 'DBX_REGISTER_NUMBER'.
  32414. Otherwise, debuggers will be unable to access such a pair, because
  32415. they expect register pairs to be consecutive in their own numbering
  32416. scheme.
  32417. If you find yourself defining 'DBX_REGISTER_NUMBER' in way that
  32418. does not preserve register pairs, then what you must do instead is
  32419. redefine the actual register numbering scheme.
  32420. -- Macro: DEBUGGER_AUTO_OFFSET (X)
  32421. A C expression that returns the integer offset value for an
  32422. automatic variable having address X (an RTL expression). The
  32423. default computation assumes that X is based on the frame-pointer
  32424. and gives the offset from the frame-pointer. This is required for
  32425. targets that produce debugging output for DBX and allow the
  32426. frame-pointer to be eliminated when the '-g' option is used.
  32427. -- Macro: DEBUGGER_ARG_OFFSET (OFFSET, X)
  32428. A C expression that returns the integer offset value for an
  32429. argument having address X (an RTL expression). The nominal offset
  32430. is OFFSET.
  32431. -- Macro: PREFERRED_DEBUGGING_TYPE
  32432. A C expression that returns the type of debugging output GCC should
  32433. produce when the user specifies just '-g'. Define this if you have
  32434. arranged for GCC to support more than one format of debugging
  32435. output. Currently, the allowable values are 'DBX_DEBUG',
  32436. 'DWARF2_DEBUG', 'XCOFF_DEBUG', 'VMS_DEBUG', and
  32437. 'VMS_AND_DWARF2_DEBUG'.
  32438. When the user specifies '-ggdb', GCC normally also uses the value
  32439. of this macro to select the debugging output format, but with two
  32440. exceptions. If 'DWARF2_DEBUGGING_INFO' is defined, GCC uses the
  32441. value 'DWARF2_DEBUG'. Otherwise, if 'DBX_DEBUGGING_INFO' is
  32442. defined, GCC uses 'DBX_DEBUG'.
  32443. The value of this macro only affects the default debugging output;
  32444. the user can always get a specific type of output by using
  32445. '-gstabs', '-gdwarf-2', '-gxcoff', or '-gvms'.
  32446. 
  32447. File: gccint.info, Node: DBX Options, Next: DBX Hooks, Prev: All Debuggers, Up: Debugging Info
  32448. 18.21.2 Specific Options for DBX Output
  32449. ---------------------------------------
  32450. These are specific options for DBX output.
  32451. -- Macro: DBX_DEBUGGING_INFO
  32452. Define this macro if GCC should produce debugging output for DBX in
  32453. response to the '-g' option.
  32454. -- Macro: XCOFF_DEBUGGING_INFO
  32455. Define this macro if GCC should produce XCOFF format debugging
  32456. output in response to the '-g' option. This is a variant of DBX
  32457. format.
  32458. -- Macro: DEFAULT_GDB_EXTENSIONS
  32459. Define this macro to control whether GCC should by default generate
  32460. GDB's extended version of DBX debugging information (assuming
  32461. DBX-format debugging information is enabled at all). If you don't
  32462. define the macro, the default is 1: always generate the extended
  32463. information if there is any occasion to.
  32464. -- Macro: DEBUG_SYMS_TEXT
  32465. Define this macro if all '.stabs' commands should be output while
  32466. in the text section.
  32467. -- Macro: ASM_STABS_OP
  32468. A C string constant, including spacing, naming the assembler pseudo
  32469. op to use instead of '"\t.stabs\t"' to define an ordinary debugging
  32470. symbol. If you don't define this macro, '"\t.stabs\t"' is used.
  32471. This macro applies only to DBX debugging information format.
  32472. -- Macro: ASM_STABD_OP
  32473. A C string constant, including spacing, naming the assembler pseudo
  32474. op to use instead of '"\t.stabd\t"' to define a debugging symbol
  32475. whose value is the current location. If you don't define this
  32476. macro, '"\t.stabd\t"' is used. This macro applies only to DBX
  32477. debugging information format.
  32478. -- Macro: ASM_STABN_OP
  32479. A C string constant, including spacing, naming the assembler pseudo
  32480. op to use instead of '"\t.stabn\t"' to define a debugging symbol
  32481. with no name. If you don't define this macro, '"\t.stabn\t"' is
  32482. used. This macro applies only to DBX debugging information format.
  32483. -- Macro: DBX_NO_XREFS
  32484. Define this macro if DBX on your system does not support the
  32485. construct 'xsTAGNAME'. On some systems, this construct is used to
  32486. describe a forward reference to a structure named TAGNAME. On
  32487. other systems, this construct is not supported at all.
  32488. -- Macro: DBX_CONTIN_LENGTH
  32489. A symbol name in DBX-format debugging information is normally
  32490. continued (split into two separate '.stabs' directives) when it
  32491. exceeds a certain length (by default, 80 characters). On some
  32492. operating systems, DBX requires this splitting; on others,
  32493. splitting must not be done. You can inhibit splitting by defining
  32494. this macro with the value zero. You can override the default
  32495. splitting-length by defining this macro as an expression for the
  32496. length you desire.
  32497. -- Macro: DBX_CONTIN_CHAR
  32498. Normally continuation is indicated by adding a '\' character to the
  32499. end of a '.stabs' string when a continuation follows. To use a
  32500. different character instead, define this macro as a character
  32501. constant for the character you want to use. Do not define this
  32502. macro if backslash is correct for your system.
  32503. -- Macro: DBX_STATIC_STAB_DATA_SECTION
  32504. Define this macro if it is necessary to go to the data section
  32505. before outputting the '.stabs' pseudo-op for a non-global static
  32506. variable.
  32507. -- Macro: DBX_TYPE_DECL_STABS_CODE
  32508. The value to use in the "code" field of the '.stabs' directive for
  32509. a typedef. The default is 'N_LSYM'.
  32510. -- Macro: DBX_STATIC_CONST_VAR_CODE
  32511. The value to use in the "code" field of the '.stabs' directive for
  32512. a static variable located in the text section. DBX format does not
  32513. provide any "right" way to do this. The default is 'N_FUN'.
  32514. -- Macro: DBX_REGPARM_STABS_CODE
  32515. The value to use in the "code" field of the '.stabs' directive for
  32516. a parameter passed in registers. DBX format does not provide any
  32517. "right" way to do this. The default is 'N_RSYM'.
  32518. -- Macro: DBX_REGPARM_STABS_LETTER
  32519. The letter to use in DBX symbol data to identify a symbol as a
  32520. parameter passed in registers. DBX format does not customarily
  32521. provide any way to do this. The default is ''P''.
  32522. -- Macro: DBX_FUNCTION_FIRST
  32523. Define this macro if the DBX information for a function and its
  32524. arguments should precede the assembler code for the function.
  32525. Normally, in DBX format, the debugging information entirely follows
  32526. the assembler code.
  32527. -- Macro: DBX_BLOCKS_FUNCTION_RELATIVE
  32528. Define this macro, with value 1, if the value of a symbol
  32529. describing the scope of a block ('N_LBRAC' or 'N_RBRAC') should be
  32530. relative to the start of the enclosing function. Normally, GCC
  32531. uses an absolute address.
  32532. -- Macro: DBX_LINES_FUNCTION_RELATIVE
  32533. Define this macro, with value 1, if the value of a symbol
  32534. indicating the current line number ('N_SLINE') should be relative
  32535. to the start of the enclosing function. Normally, GCC uses an
  32536. absolute address.
  32537. -- Macro: DBX_USE_BINCL
  32538. Define this macro if GCC should generate 'N_BINCL' and 'N_EINCL'
  32539. stabs for included header files, as on Sun systems. This macro
  32540. also directs GCC to output a type number as a pair of a file number
  32541. and a type number within the file. Normally, GCC does not generate
  32542. 'N_BINCL' or 'N_EINCL' stabs, and it outputs a single number for a
  32543. type number.
  32544. 
  32545. File: gccint.info, Node: DBX Hooks, Next: File Names and DBX, Prev: DBX Options, Up: Debugging Info
  32546. 18.21.3 Open-Ended Hooks for DBX Format
  32547. ---------------------------------------
  32548. These are hooks for DBX format.
  32549. -- Macro: DBX_OUTPUT_SOURCE_LINE (STREAM, LINE, COUNTER)
  32550. A C statement to output DBX debugging information before code for
  32551. line number LINE of the current source file to the stdio stream
  32552. STREAM. COUNTER is the number of time the macro was invoked,
  32553. including the current invocation; it is intended to generate unique
  32554. labels in the assembly output.
  32555. This macro should not be defined if the default output is correct,
  32556. or if it can be made correct by defining
  32557. 'DBX_LINES_FUNCTION_RELATIVE'.
  32558. -- Macro: NO_DBX_FUNCTION_END
  32559. Some stabs encapsulation formats (in particular ECOFF), cannot
  32560. handle the '.stabs "",N_FUN,,0,0,Lscope-function-1' gdb dbx
  32561. extension construct. On those machines, define this macro to turn
  32562. this feature off without disturbing the rest of the gdb extensions.
  32563. -- Macro: NO_DBX_BNSYM_ENSYM
  32564. Some assemblers cannot handle the '.stabd BNSYM/ENSYM,0,0' gdb dbx
  32565. extension construct. On those machines, define this macro to turn
  32566. this feature off without disturbing the rest of the gdb extensions.
  32567. 
  32568. File: gccint.info, Node: File Names and DBX, Next: DWARF, Prev: DBX Hooks, Up: Debugging Info
  32569. 18.21.4 File Names in DBX Format
  32570. --------------------------------
  32571. This describes file names in DBX format.
  32572. -- Macro: DBX_OUTPUT_MAIN_SOURCE_FILENAME (STREAM, NAME)
  32573. A C statement to output DBX debugging information to the stdio
  32574. stream STREAM, which indicates that file NAME is the main source
  32575. file--the file specified as the input file for compilation. This
  32576. macro is called only once, at the beginning of compilation.
  32577. This macro need not be defined if the standard form of output for
  32578. DBX debugging information is appropriate.
  32579. It may be necessary to refer to a label equal to the beginning of
  32580. the text section. You can use 'assemble_name (stream,
  32581. ltext_label_name)' to do so. If you do this, you must also set the
  32582. variable USED_LTEXT_LABEL_NAME to 'true'.
  32583. -- Macro: NO_DBX_MAIN_SOURCE_DIRECTORY
  32584. Define this macro, with value 1, if GCC should not emit an
  32585. indication of the current directory for compilation and current
  32586. source language at the beginning of the file.
  32587. -- Macro: NO_DBX_GCC_MARKER
  32588. Define this macro, with value 1, if GCC should not emit an
  32589. indication that this object file was compiled by GCC. The default
  32590. is to emit an 'N_OPT' stab at the beginning of every source file,
  32591. with 'gcc2_compiled.' for the string and value 0.
  32592. -- Macro: DBX_OUTPUT_MAIN_SOURCE_FILE_END (STREAM, NAME)
  32593. A C statement to output DBX debugging information at the end of
  32594. compilation of the main source file NAME. Output should be written
  32595. to the stdio stream STREAM.
  32596. If you don't define this macro, nothing special is output at the
  32597. end of compilation, which is correct for most machines.
  32598. -- Macro: DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
  32599. Define this macro _instead of_ defining
  32600. 'DBX_OUTPUT_MAIN_SOURCE_FILE_END', if what needs to be output at
  32601. the end of compilation is an 'N_SO' stab with an empty string,
  32602. whose value is the highest absolute text address in the file.
  32603. 
  32604. File: gccint.info, Node: DWARF, Next: VMS Debug, Prev: File Names and DBX, Up: Debugging Info
  32605. 18.21.5 Macros for DWARF Output
  32606. -------------------------------
  32607. Here are macros for DWARF output.
  32608. -- Macro: DWARF2_DEBUGGING_INFO
  32609. Define this macro if GCC should produce dwarf version 2 format
  32610. debugging output in response to the '-g' option.
  32611. -- Target Hook: int TARGET_DWARF_CALLING_CONVENTION (const_tree
  32612. FUNCTION)
  32613. Define this to enable the dwarf attribute
  32614. 'DW_AT_calling_convention' to be emitted for each function.
  32615. Instead of an integer return the enum value for the 'DW_CC_'
  32616. tag.
  32617. To support optional call frame debugging information, you must also
  32618. define 'INCOMING_RETURN_ADDR_RTX' and either set
  32619. 'RTX_FRAME_RELATED_P' on the prologue insns if you use RTL for the
  32620. prologue, or call 'dwarf2out_def_cfa' and 'dwarf2out_reg_save' as
  32621. appropriate from 'TARGET_ASM_FUNCTION_PROLOGUE' if you don't.
  32622. -- Macro: DWARF2_FRAME_INFO
  32623. Define this macro to a nonzero value if GCC should always output
  32624. Dwarf 2 frame information. If 'TARGET_EXCEPT_UNWIND_INFO' (*note
  32625. Exception Region Output::) returns 'UI_DWARF2', and exceptions are
  32626. enabled, GCC will output this information not matter how you define
  32627. 'DWARF2_FRAME_INFO'.
  32628. -- Target Hook: enum unwind_info_type TARGET_DEBUG_UNWIND_INFO (void)
  32629. This hook defines the mechanism that will be used for describing
  32630. frame unwind information to the debugger. Normally the hook will
  32631. return 'UI_DWARF2' if DWARF 2 debug information is enabled, and
  32632. return 'UI_NONE' otherwise.
  32633. A target may return 'UI_DWARF2' even when DWARF 2 debug information
  32634. is disabled in order to always output DWARF 2 frame information.
  32635. A target may return 'UI_TARGET' if it has ABI specified unwind
  32636. tables. This will suppress generation of the normal debug frame
  32637. unwind information.
  32638. -- Macro: DWARF2_ASM_LINE_DEBUG_INFO
  32639. Define this macro to be a nonzero value if the assembler can
  32640. generate Dwarf 2 line debug info sections. This will result in
  32641. much more compact line number tables, and hence is desirable if it
  32642. works.
  32643. -- Macro: DWARF2_ASM_VIEW_DEBUG_INFO
  32644. Define this macro to be a nonzero value if the assembler supports
  32645. view assignment and verification in '.loc'. If it does not, but
  32646. the user enables location views, the compiler may have to fallback
  32647. to internal line number tables.
  32648. -- Target Hook: int TARGET_RESET_LOCATION_VIEW (rtx_insn *)
  32649. This hook, if defined, enables -ginternal-reset-location-views, and
  32650. uses its result to override cases in which the estimated min insn
  32651. length might be nonzero even when a PC advance (i.e., a view reset)
  32652. cannot be taken for granted.
  32653. If the hook is defined, it must return a positive value to indicate
  32654. the insn definitely advances the PC, and so the view number can be
  32655. safely assumed to be reset; a negative value to mean the insn
  32656. definitely does not advance the PC, and os the view number must not
  32657. be reset; or zero to decide based on the estimated insn length.
  32658. If insn length is to be regarded as reliable, set the hook to
  32659. 'hook_int_rtx_insn_0'.
  32660. -- Target Hook: bool TARGET_WANT_DEBUG_PUB_SECTIONS
  32661. True if the '.debug_pubtypes' and '.debug_pubnames' sections should
  32662. be emitted. These sections are not used on most platforms, and in
  32663. particular GDB does not use them.
  32664. -- Target Hook: bool TARGET_DELAY_SCHED2
  32665. True if sched2 is not to be run at its normal place. This usually
  32666. means it will be run as part of machine-specific reorg.
  32667. -- Target Hook: bool TARGET_DELAY_VARTRACK
  32668. True if vartrack is not to be run at its normal place. This
  32669. usually means it will be run as part of machine-specific reorg.
  32670. -- Target Hook: bool TARGET_NO_REGISTER_ALLOCATION
  32671. True if register allocation and the passes following it should not
  32672. be run. Usually true only for virtual assembler targets.
  32673. -- Macro: ASM_OUTPUT_DWARF_DELTA (STREAM, SIZE, LABEL1, LABEL2)
  32674. A C statement to issue assembly directives that create a difference
  32675. LAB1 minus LAB2, using an integer of the given SIZE.
  32676. -- Macro: ASM_OUTPUT_DWARF_VMS_DELTA (STREAM, SIZE, LABEL1, LABEL2)
  32677. A C statement to issue assembly directives that create a difference
  32678. between the two given labels in system defined units, e.g.
  32679. instruction slots on IA64 VMS, using an integer of the given size.
  32680. -- Macro: ASM_OUTPUT_DWARF_OFFSET (STREAM, SIZE, LABEL, OFFSET,
  32681. SECTION)
  32682. A C statement to issue assembly directives that create a
  32683. section-relative reference to the given LABEL plus OFFSET, using an
  32684. integer of the given SIZE. The label is known to be defined in the
  32685. given SECTION.
  32686. -- Macro: ASM_OUTPUT_DWARF_PCREL (STREAM, SIZE, LABEL)
  32687. A C statement to issue assembly directives that create a
  32688. self-relative reference to the given LABEL, using an integer of the
  32689. given SIZE.
  32690. -- Macro: ASM_OUTPUT_DWARF_DATAREL (STREAM, SIZE, LABEL)
  32691. A C statement to issue assembly directives that create a reference
  32692. to the given LABEL relative to the dbase, using an integer of the
  32693. given SIZE.
  32694. -- Macro: ASM_OUTPUT_DWARF_TABLE_REF (LABEL)
  32695. A C statement to issue assembly directives that create a reference
  32696. to the DWARF table identifier LABEL from the current section. This
  32697. is used on some systems to avoid garbage collecting a DWARF table
  32698. which is referenced by a function.
  32699. -- Target Hook: void TARGET_ASM_OUTPUT_DWARF_DTPREL (FILE *FILE, int
  32700. SIZE, rtx X)
  32701. If defined, this target hook is a function which outputs a
  32702. DTP-relative reference to the given TLS symbol of the specified
  32703. size.
  32704. 
  32705. File: gccint.info, Node: VMS Debug, Prev: DWARF, Up: Debugging Info
  32706. 18.21.6 Macros for VMS Debug Format
  32707. -----------------------------------
  32708. Here are macros for VMS debug format.
  32709. -- Macro: VMS_DEBUGGING_INFO
  32710. Define this macro if GCC should produce debugging output for VMS in
  32711. response to the '-g' option. The default behavior for VMS is to
  32712. generate minimal debug info for a traceback in the absence of '-g'
  32713. unless explicitly overridden with '-g0'. This behavior is
  32714. controlled by 'TARGET_OPTION_OPTIMIZATION' and
  32715. 'TARGET_OPTION_OVERRIDE'.
  32716. 
  32717. File: gccint.info, Node: Floating Point, Next: Mode Switching, Prev: Debugging Info, Up: Target Macros
  32718. 18.22 Cross Compilation and Floating Point
  32719. ==========================================
  32720. While all modern machines use twos-complement representation for
  32721. integers, there are a variety of representations for floating point
  32722. numbers. This means that in a cross-compiler the representation of
  32723. floating point numbers in the compiled program may be different from
  32724. that used in the machine doing the compilation.
  32725. Because different representation systems may offer different amounts of
  32726. range and precision, all floating point constants must be represented in
  32727. the target machine's format. Therefore, the cross compiler cannot
  32728. safely use the host machine's floating point arithmetic; it must emulate
  32729. the target's arithmetic. To ensure consistency, GCC always uses
  32730. emulation to work with floating point values, even when the host and
  32731. target floating point formats are identical.
  32732. The following macros are provided by 'real.h' for the compiler to use.
  32733. All parts of the compiler which generate or optimize floating-point
  32734. calculations must use these macros. They may evaluate their operands
  32735. more than once, so operands must not have side effects.
  32736. -- Macro: REAL_VALUE_TYPE
  32737. The C data type to be used to hold a floating point value in the
  32738. target machine's format. Typically this is a 'struct' containing
  32739. an array of 'HOST_WIDE_INT', but all code should treat it as an
  32740. opaque quantity.
  32741. -- Macro: HOST_WIDE_INT REAL_VALUE_FIX (REAL_VALUE_TYPE X)
  32742. Truncates X to a signed integer, rounding toward zero.
  32743. -- Macro: unsigned HOST_WIDE_INT REAL_VALUE_UNSIGNED_FIX
  32744. (REAL_VALUE_TYPE X)
  32745. Truncates X to an unsigned integer, rounding toward zero. If X is
  32746. negative, returns zero.
  32747. -- Macro: REAL_VALUE_TYPE REAL_VALUE_ATOF (const char *STRING,
  32748. machine_mode MODE)
  32749. Converts STRING into a floating point number in the target
  32750. machine's representation for mode MODE. This routine can handle
  32751. both decimal and hexadecimal floating point constants, using the
  32752. syntax defined by the C language for both.
  32753. -- Macro: int REAL_VALUE_NEGATIVE (REAL_VALUE_TYPE X)
  32754. Returns 1 if X is negative (including negative zero), 0 otherwise.
  32755. -- Macro: int REAL_VALUE_ISINF (REAL_VALUE_TYPE X)
  32756. Determines whether X represents infinity (positive or negative).
  32757. -- Macro: int REAL_VALUE_ISNAN (REAL_VALUE_TYPE X)
  32758. Determines whether X represents a "NaN" (not-a-number).
  32759. -- Macro: REAL_VALUE_TYPE REAL_VALUE_NEGATE (REAL_VALUE_TYPE X)
  32760. Returns the negative of the floating point value X.
  32761. -- Macro: REAL_VALUE_TYPE REAL_VALUE_ABS (REAL_VALUE_TYPE X)
  32762. Returns the absolute value of X.
  32763. 
  32764. File: gccint.info, Node: Mode Switching, Next: Target Attributes, Prev: Floating Point, Up: Target Macros
  32765. 18.23 Mode Switching Instructions
  32766. =================================
  32767. The following macros control mode switching optimizations:
  32768. -- Macro: OPTIMIZE_MODE_SWITCHING (ENTITY)
  32769. Define this macro if the port needs extra instructions inserted for
  32770. mode switching in an optimizing compilation.
  32771. For an example, the SH4 can perform both single and double
  32772. precision floating point operations, but to perform a single
  32773. precision operation, the FPSCR PR bit has to be cleared, while for
  32774. a double precision operation, this bit has to be set. Changing the
  32775. PR bit requires a general purpose register as a scratch register,
  32776. hence these FPSCR sets have to be inserted before reload, i.e. you
  32777. cannot put this into instruction emitting or
  32778. 'TARGET_MACHINE_DEPENDENT_REORG'.
  32779. You can have multiple entities that are mode-switched, and select
  32780. at run time which entities actually need it.
  32781. 'OPTIMIZE_MODE_SWITCHING' should return nonzero for any ENTITY that
  32782. needs mode-switching. If you define this macro, you also have to
  32783. define 'NUM_MODES_FOR_MODE_SWITCHING', 'TARGET_MODE_NEEDED',
  32784. 'TARGET_MODE_PRIORITY' and 'TARGET_MODE_EMIT'.
  32785. 'TARGET_MODE_AFTER', 'TARGET_MODE_ENTRY', and 'TARGET_MODE_EXIT'
  32786. are optional.
  32787. -- Macro: NUM_MODES_FOR_MODE_SWITCHING
  32788. If you define 'OPTIMIZE_MODE_SWITCHING', you have to define this as
  32789. initializer for an array of integers. Each initializer element N
  32790. refers to an entity that needs mode switching, and specifies the
  32791. number of different modes that might need to be set for this
  32792. entity. The position of the initializer in the
  32793. initializer--starting counting at zero--determines the integer that
  32794. is used to refer to the mode-switched entity in question. In
  32795. macros that take mode arguments / yield a mode result, modes are
  32796. represented as numbers 0 ... N - 1. N is used to specify that no
  32797. mode switch is needed / supplied.
  32798. -- Target Hook: void TARGET_MODE_EMIT (int ENTITY, int MODE, int
  32799. PREV_MODE, HARD_REG_SET REGS_LIVE)
  32800. Generate one or more insns to set ENTITY to MODE. HARD_REG_LIVE is
  32801. the set of hard registers live at the point where the insn(s) are
  32802. to be inserted. PREV_MOXDE indicates the mode to switch from.
  32803. Sets of a lower numbered entity will be emitted before sets of a
  32804. higher numbered entity to a mode of the same or lower priority.
  32805. -- Target Hook: int TARGET_MODE_NEEDED (int ENTITY, rtx_insn *INSN)
  32806. ENTITY is an integer specifying a mode-switched entity. If
  32807. 'OPTIMIZE_MODE_SWITCHING' is defined, you must define this macro to
  32808. return an integer value not larger than the corresponding element
  32809. in 'NUM_MODES_FOR_MODE_SWITCHING', to denote the mode that ENTITY
  32810. must be switched into prior to the execution of INSN.
  32811. -- Target Hook: int TARGET_MODE_AFTER (int ENTITY, int MODE, rtx_insn
  32812. *INSN)
  32813. ENTITY is an integer specifying a mode-switched entity. If this
  32814. macro is defined, it is evaluated for every INSN during mode
  32815. switching. It determines the mode that an insn results in (if
  32816. different from the incoming mode).
  32817. -- Target Hook: int TARGET_MODE_ENTRY (int ENTITY)
  32818. If this macro is defined, it is evaluated for every ENTITY that
  32819. needs mode switching. It should evaluate to an integer, which is a
  32820. mode that ENTITY is assumed to be switched to at function entry.
  32821. If 'TARGET_MODE_ENTRY' is defined then 'TARGET_MODE_EXIT' must be
  32822. defined.
  32823. -- Target Hook: int TARGET_MODE_EXIT (int ENTITY)
  32824. If this macro is defined, it is evaluated for every ENTITY that
  32825. needs mode switching. It should evaluate to an integer, which is a
  32826. mode that ENTITY is assumed to be switched to at function exit. If
  32827. 'TARGET_MODE_EXIT' is defined then 'TARGET_MODE_ENTRY' must be
  32828. defined.
  32829. -- Target Hook: int TARGET_MODE_PRIORITY (int ENTITY, int N)
  32830. This macro specifies the order in which modes for ENTITY are
  32831. processed. 0 is the highest priority,
  32832. 'NUM_MODES_FOR_MODE_SWITCHING[ENTITY] - 1' the lowest. The value
  32833. of the macro should be an integer designating a mode for ENTITY.
  32834. For any fixed ENTITY, 'mode_priority' (ENTITY, N) shall be a
  32835. bijection in 0 ... 'num_modes_for_mode_switching[ENTITY] - 1'.
  32836. 
  32837. File: gccint.info, Node: Target Attributes, Next: Emulated TLS, Prev: Mode Switching, Up: Target Macros
  32838. 18.24 Defining target-specific uses of '__attribute__'
  32839. ======================================================
  32840. Target-specific attributes may be defined for functions, data and types.
  32841. These are described using the following target hooks; they also need to
  32842. be documented in 'extend.texi'.
  32843. -- Target Hook: const struct attribute_spec * TARGET_ATTRIBUTE_TABLE
  32844. If defined, this target hook points to an array of 'struct
  32845. attribute_spec' (defined in 'tree-core.h') specifying the machine
  32846. specific attributes for this target and some of the restrictions on
  32847. the entities to which these attributes are applied and the
  32848. arguments they take.
  32849. -- Target Hook: bool TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P (const_tree
  32850. NAME)
  32851. If defined, this target hook is a function which returns true if
  32852. the machine-specific attribute named NAME expects an identifier
  32853. given as its first argument to be passed on as a plain identifier,
  32854. not subjected to name lookup. If this is not defined, the default
  32855. is false for all machine-specific attributes.
  32856. -- Target Hook: int TARGET_COMP_TYPE_ATTRIBUTES (const_tree TYPE1,
  32857. const_tree TYPE2)
  32858. If defined, this target hook is a function which returns zero if
  32859. the attributes on TYPE1 and TYPE2 are incompatible, one if they are
  32860. compatible, and two if they are nearly compatible (which causes a
  32861. warning to be generated). If this is not defined, machine-specific
  32862. attributes are supposed always to be compatible.
  32863. -- Target Hook: void TARGET_SET_DEFAULT_TYPE_ATTRIBUTES (tree TYPE)
  32864. If defined, this target hook is a function which assigns default
  32865. attributes to the newly defined TYPE.
  32866. -- Target Hook: tree TARGET_MERGE_TYPE_ATTRIBUTES (tree TYPE1, tree
  32867. TYPE2)
  32868. Define this target hook if the merging of type attributes needs
  32869. special handling. If defined, the result is a list of the combined
  32870. 'TYPE_ATTRIBUTES' of TYPE1 and TYPE2. It is assumed that
  32871. 'comptypes' has already been called and returned 1. This function
  32872. may call 'merge_attributes' to handle machine-independent merging.
  32873. -- Target Hook: tree TARGET_MERGE_DECL_ATTRIBUTES (tree OLDDECL, tree
  32874. NEWDECL)
  32875. Define this target hook if the merging of decl attributes needs
  32876. special handling. If defined, the result is a list of the combined
  32877. 'DECL_ATTRIBUTES' of OLDDECL and NEWDECL. NEWDECL is a duplicate
  32878. declaration of OLDDECL. Examples of when this is needed are when
  32879. one attribute overrides another, or when an attribute is nullified
  32880. by a subsequent definition. This function may call
  32881. 'merge_attributes' to handle machine-independent merging.
  32882. If the only target-specific handling you require is 'dllimport' for
  32883. Microsoft Windows targets, you should define the macro
  32884. 'TARGET_DLLIMPORT_DECL_ATTRIBUTES' to '1'. The compiler will then
  32885. define a function called 'merge_dllimport_decl_attributes' which
  32886. can then be defined as the expansion of
  32887. 'TARGET_MERGE_DECL_ATTRIBUTES'. You can also add
  32888. 'handle_dll_attribute' in the attribute table for your port to
  32889. perform initial processing of the 'dllimport' and 'dllexport'
  32890. attributes. This is done in 'i386/cygwin.h' and 'i386/i386.c', for
  32891. example.
  32892. -- Target Hook: bool TARGET_VALID_DLLIMPORT_ATTRIBUTE_P (const_tree
  32893. DECL)
  32894. DECL is a variable or function with '__attribute__((dllimport))'
  32895. specified. Use this hook if the target needs to add extra
  32896. validation checks to 'handle_dll_attribute'.
  32897. -- Macro: TARGET_DECLSPEC
  32898. Define this macro to a nonzero value if you want to treat
  32899. '__declspec(X)' as equivalent to '__attribute((X))'. By default,
  32900. this behavior is enabled only for targets that define
  32901. 'TARGET_DLLIMPORT_DECL_ATTRIBUTES'. The current implementation of
  32902. '__declspec' is via a built-in macro, but you should not rely on
  32903. this implementation detail.
  32904. -- Target Hook: void TARGET_INSERT_ATTRIBUTES (tree NODE, tree
  32905. *ATTR_PTR)
  32906. Define this target hook if you want to be able to add attributes to
  32907. a decl when it is being created. This is normally useful for back
  32908. ends which wish to implement a pragma by using the attributes which
  32909. correspond to the pragma's effect. The NODE argument is the decl
  32910. which is being created. The ATTR_PTR argument is a pointer to the
  32911. attribute list for this decl. The list itself should not be
  32912. modified, since it may be shared with other decls, but attributes
  32913. may be chained on the head of the list and '*ATTR_PTR' modified to
  32914. point to the new attributes, or a copy of the list may be made if
  32915. further changes are needed.
  32916. -- Target Hook: tree TARGET_HANDLE_GENERIC_ATTRIBUTE (tree *NODE, tree
  32917. NAME, tree ARGS, int FLAGS, bool *NO_ADD_ATTRS)
  32918. Define this target hook if you want to be able to perform
  32919. additional target-specific processing of an attribute which is
  32920. handled generically by a front end. The arguments are the same as
  32921. those which are passed to attribute handlers. So far this only
  32922. affects the NOINIT and SECTION attribute.
  32923. -- Target Hook: bool TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P (const_tree
  32924. FNDECL)
  32925. This target hook returns 'true' if it is OK to inline FNDECL into
  32926. the current function, despite its having target-specific
  32927. attributes, 'false' otherwise. By default, if a function has a
  32928. target specific attribute attached to it, it will not be inlined.
  32929. -- Target Hook: bool TARGET_OPTION_VALID_ATTRIBUTE_P (tree FNDECL, tree
  32930. NAME, tree ARGS, int FLAGS)
  32931. This hook is called to parse 'attribute(target("..."))', which
  32932. allows setting target-specific options on individual functions.
  32933. These function-specific options may differ from the options
  32934. specified on the command line. The hook should return 'true' if
  32935. the options are valid.
  32936. The hook should set the 'DECL_FUNCTION_SPECIFIC_TARGET' field in
  32937. the function declaration to hold a pointer to a target-specific
  32938. 'struct cl_target_option' structure.
  32939. -- Target Hook: void TARGET_OPTION_SAVE (struct cl_target_option *PTR,
  32940. struct gcc_options *OPTS)
  32941. This hook is called to save any additional target-specific
  32942. information in the 'struct cl_target_option' structure for
  32943. function-specific options from the 'struct gcc_options' structure.
  32944. *Note Option file format::.
  32945. -- Target Hook: void TARGET_OPTION_RESTORE (struct gcc_options *OPTS,
  32946. struct cl_target_option *PTR)
  32947. This hook is called to restore any additional target-specific
  32948. information in the 'struct cl_target_option' structure for
  32949. function-specific options to the 'struct gcc_options' structure.
  32950. -- Target Hook: void TARGET_OPTION_POST_STREAM_IN (struct
  32951. cl_target_option *PTR)
  32952. This hook is called to update target-specific information in the
  32953. 'struct cl_target_option' structure after it is streamed in from
  32954. LTO bytecode.
  32955. -- Target Hook: void TARGET_OPTION_PRINT (FILE *FILE, int INDENT,
  32956. struct cl_target_option *PTR)
  32957. This hook is called to print any additional target-specific
  32958. information in the 'struct cl_target_option' structure for
  32959. function-specific options.
  32960. -- Target Hook: bool TARGET_OPTION_PRAGMA_PARSE (tree ARGS, tree
  32961. POP_TARGET)
  32962. This target hook parses the options for '#pragma GCC target', which
  32963. sets the target-specific options for functions that occur later in
  32964. the input stream. The options accepted should be the same as those
  32965. handled by the 'TARGET_OPTION_VALID_ATTRIBUTE_P' hook.
  32966. -- Target Hook: void TARGET_OPTION_OVERRIDE (void)
  32967. Sometimes certain combinations of command options do not make sense
  32968. on a particular target machine. You can override the hook
  32969. 'TARGET_OPTION_OVERRIDE' to take account of this. This hooks is
  32970. called once just after all the command options have been parsed.
  32971. Don't use this hook to turn on various extra optimizations for
  32972. '-O'. That is what 'TARGET_OPTION_OPTIMIZATION' is for.
  32973. If you need to do something whenever the optimization level is
  32974. changed via the optimize attribute or pragma, see
  32975. 'TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE'
  32976. -- Target Hook: bool TARGET_OPTION_FUNCTION_VERSIONS (tree DECL1, tree
  32977. DECL2)
  32978. This target hook returns 'true' if DECL1 and DECL2 are versions of
  32979. the same function. DECL1 and DECL2 are function versions if and
  32980. only if they have the same function signature and different target
  32981. specific attributes, that is, they are compiled for different
  32982. target machines.
  32983. -- Target Hook: bool TARGET_CAN_INLINE_P (tree CALLER, tree CALLEE)
  32984. This target hook returns 'false' if the CALLER function cannot
  32985. inline CALLEE, based on target specific information. By default,
  32986. inlining is not allowed if the callee function has function
  32987. specific target options and the caller does not use the same
  32988. options.
  32989. -- Target Hook: void TARGET_RELAYOUT_FUNCTION (tree FNDECL)
  32990. This target hook fixes function FNDECL after attributes are
  32991. processed. Default does nothing. On ARM, the default function's
  32992. alignment is updated with the attribute target.
  32993. 
  32994. File: gccint.info, Node: Emulated TLS, Next: MIPS Coprocessors, Prev: Target Attributes, Up: Target Macros
  32995. 18.25 Emulating TLS
  32996. ===================
  32997. For targets whose psABI does not provide Thread Local Storage via
  32998. specific relocations and instruction sequences, an emulation layer is
  32999. used. A set of target hooks allows this emulation layer to be
  33000. configured for the requirements of a particular target. For instance
  33001. the psABI may in fact specify TLS support in terms of an emulation
  33002. layer.
  33003. The emulation layer works by creating a control object for every TLS
  33004. object. To access the TLS object, a lookup function is provided which,
  33005. when given the address of the control object, will return the address of
  33006. the current thread's instance of the TLS object.
  33007. -- Target Hook: const char * TARGET_EMUTLS_GET_ADDRESS
  33008. Contains the name of the helper function that uses a TLS control
  33009. object to locate a TLS instance. The default causes libgcc's
  33010. emulated TLS helper function to be used.
  33011. -- Target Hook: const char * TARGET_EMUTLS_REGISTER_COMMON
  33012. Contains the name of the helper function that should be used at
  33013. program startup to register TLS objects that are implicitly
  33014. initialized to zero. If this is 'NULL', all TLS objects will have
  33015. explicit initializers. The default causes libgcc's emulated TLS
  33016. registration function to be used.
  33017. -- Target Hook: const char * TARGET_EMUTLS_VAR_SECTION
  33018. Contains the name of the section in which TLS control variables
  33019. should be placed. The default of 'NULL' allows these to be placed
  33020. in any section.
  33021. -- Target Hook: const char * TARGET_EMUTLS_TMPL_SECTION
  33022. Contains the name of the section in which TLS initializers should
  33023. be placed. The default of 'NULL' allows these to be placed in any
  33024. section.
  33025. -- Target Hook: const char * TARGET_EMUTLS_VAR_PREFIX
  33026. Contains the prefix to be prepended to TLS control variable names.
  33027. The default of 'NULL' uses a target-specific prefix.
  33028. -- Target Hook: const char * TARGET_EMUTLS_TMPL_PREFIX
  33029. Contains the prefix to be prepended to TLS initializer objects.
  33030. The default of 'NULL' uses a target-specific prefix.
  33031. -- Target Hook: tree TARGET_EMUTLS_VAR_FIELDS (tree TYPE, tree *NAME)
  33032. Specifies a function that generates the FIELD_DECLs for a TLS
  33033. control object type. TYPE is the RECORD_TYPE the fields are for
  33034. and NAME should be filled with the structure tag, if the default of
  33035. '__emutls_object' is unsuitable. The default creates a type
  33036. suitable for libgcc's emulated TLS function.
  33037. -- Target Hook: tree TARGET_EMUTLS_VAR_INIT (tree VAR, tree DECL, tree
  33038. TMPL_ADDR)
  33039. Specifies a function that generates the CONSTRUCTOR to initialize a
  33040. TLS control object. VAR is the TLS control object, DECL is the TLS
  33041. object and TMPL_ADDR is the address of the initializer. The
  33042. default initializes libgcc's emulated TLS control object.
  33043. -- Target Hook: bool TARGET_EMUTLS_VAR_ALIGN_FIXED
  33044. Specifies whether the alignment of TLS control variable objects is
  33045. fixed and should not be increased as some backends may do to
  33046. optimize single objects. The default is false.
  33047. -- Target Hook: bool TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS
  33048. Specifies whether a DWARF 'DW_OP_form_tls_address' location
  33049. descriptor may be used to describe emulated TLS control objects.
  33050. 
  33051. File: gccint.info, Node: MIPS Coprocessors, Next: PCH Target, Prev: Emulated TLS, Up: Target Macros
  33052. 18.26 Defining coprocessor specifics for MIPS targets.
  33053. ======================================================
  33054. The MIPS specification allows MIPS implementations to have as many as 4
  33055. coprocessors, each with as many as 32 private registers. GCC supports
  33056. accessing these registers and transferring values between the registers
  33057. and memory using asm-ized variables. For example:
  33058. register unsigned int cp0count asm ("c0r1");
  33059. unsigned int d;
  33060. d = cp0count + 3;
  33061. ("c0r1" is the default name of register 1 in coprocessor 0; alternate
  33062. names may be added as described below, or the default names may be
  33063. overridden entirely in 'SUBTARGET_CONDITIONAL_REGISTER_USAGE'.)
  33064. Coprocessor registers are assumed to be epilogue-used; sets to them
  33065. will be preserved even if it does not appear that the register is used
  33066. again later in the function.
  33067. Another note: according to the MIPS spec, coprocessor 1 (if present) is
  33068. the FPU. One accesses COP1 registers through standard mips
  33069. floating-point support; they are not included in this mechanism.
  33070. 
  33071. File: gccint.info, Node: PCH Target, Next: C++ ABI, Prev: MIPS Coprocessors, Up: Target Macros
  33072. 18.27 Parameters for Precompiled Header Validity Checking
  33073. =========================================================
  33074. -- Target Hook: void * TARGET_GET_PCH_VALIDITY (size_t *SZ)
  33075. This hook returns a pointer to the data needed by
  33076. 'TARGET_PCH_VALID_P' and sets '*SZ' to the size of the data in
  33077. bytes.
  33078. -- Target Hook: const char * TARGET_PCH_VALID_P (const void *DATA,
  33079. size_t SZ)
  33080. This hook checks whether the options used to create a PCH file are
  33081. compatible with the current settings. It returns 'NULL' if so and
  33082. a suitable error message if not. Error messages will be presented
  33083. to the user and must be localized using '_(MSG)'.
  33084. DATA is the data that was returned by 'TARGET_GET_PCH_VALIDITY'
  33085. when the PCH file was created and SZ is the size of that data in
  33086. bytes. It's safe to assume that the data was created by the same
  33087. version of the compiler, so no format checking is needed.
  33088. The default definition of 'default_pch_valid_p' should be suitable
  33089. for most targets.
  33090. -- Target Hook: const char * TARGET_CHECK_PCH_TARGET_FLAGS (int
  33091. PCH_FLAGS)
  33092. If this hook is nonnull, the default implementation of
  33093. 'TARGET_PCH_VALID_P' will use it to check for compatible values of
  33094. 'target_flags'. PCH_FLAGS specifies the value that 'target_flags'
  33095. had when the PCH file was created. The return value is the same as
  33096. for 'TARGET_PCH_VALID_P'.
  33097. -- Target Hook: void TARGET_PREPARE_PCH_SAVE (void)
  33098. Called before writing out a PCH file. If the target has some
  33099. garbage-collected data that needs to be in a particular state on
  33100. PCH loads, it can use this hook to enforce that state. Very few
  33101. targets need to do anything here.
  33102. 
  33103. File: gccint.info, Node: C++ ABI, Next: D Language and ABI, Prev: PCH Target, Up: Target Macros
  33104. 18.28 C++ ABI parameters
  33105. ========================
  33106. -- Target Hook: tree TARGET_CXX_GUARD_TYPE (void)
  33107. Define this hook to override the integer type used for guard
  33108. variables. These are used to implement one-time construction of
  33109. static objects. The default is long_long_integer_type_node.
  33110. -- Target Hook: bool TARGET_CXX_GUARD_MASK_BIT (void)
  33111. This hook determines how guard variables are used. It should
  33112. return 'false' (the default) if the first byte should be used. A
  33113. return value of 'true' indicates that only the least significant
  33114. bit should be used.
  33115. -- Target Hook: tree TARGET_CXX_GET_COOKIE_SIZE (tree TYPE)
  33116. This hook returns the size of the cookie to use when allocating an
  33117. array whose elements have the indicated TYPE. Assumes that it is
  33118. already known that a cookie is needed. The default is 'max(sizeof
  33119. (size_t), alignof(type))', as defined in section 2.7 of the
  33120. IA64/Generic C++ ABI.
  33121. -- Target Hook: bool TARGET_CXX_COOKIE_HAS_SIZE (void)
  33122. This hook should return 'true' if the element size should be stored
  33123. in array cookies. The default is to return 'false'.
  33124. -- Target Hook: int TARGET_CXX_IMPORT_EXPORT_CLASS (tree TYPE, int
  33125. IMPORT_EXPORT)
  33126. If defined by a backend this hook allows the decision made to
  33127. export class TYPE to be overruled. Upon entry IMPORT_EXPORT will
  33128. contain 1 if the class is going to be exported, -1 if it is going
  33129. to be imported and 0 otherwise. This function should return the
  33130. modified value and perform any other actions necessary to support
  33131. the backend's targeted operating system.
  33132. -- Target Hook: bool TARGET_CXX_CDTOR_RETURNS_THIS (void)
  33133. This hook should return 'true' if constructors and destructors
  33134. return the address of the object created/destroyed. The default is
  33135. to return 'false'.
  33136. -- Target Hook: bool TARGET_CXX_KEY_METHOD_MAY_BE_INLINE (void)
  33137. This hook returns true if the key method for a class (i.e., the
  33138. method which, if defined in the current translation unit, causes
  33139. the virtual table to be emitted) may be an inline function. Under
  33140. the standard Itanium C++ ABI the key method may be an inline
  33141. function so long as the function is not declared inline in the
  33142. class definition. Under some variants of the ABI, an inline
  33143. function can never be the key method. The default is to return
  33144. 'true'.
  33145. -- Target Hook: void TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY (tree
  33146. DECL)
  33147. DECL is a virtual table, virtual table table, typeinfo object, or
  33148. other similar implicit class data object that will be emitted with
  33149. external linkage in this translation unit. No ELF visibility has
  33150. been explicitly specified. If the target needs to specify a
  33151. visibility other than that of the containing class, use this hook
  33152. to set 'DECL_VISIBILITY' and 'DECL_VISIBILITY_SPECIFIED'.
  33153. -- Target Hook: bool TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT (void)
  33154. This hook returns true (the default) if virtual tables and other
  33155. similar implicit class data objects are always COMDAT if they have
  33156. external linkage. If this hook returns false, then class data for
  33157. classes whose virtual table will be emitted in only one translation
  33158. unit will not be COMDAT.
  33159. -- Target Hook: bool TARGET_CXX_LIBRARY_RTTI_COMDAT (void)
  33160. This hook returns true (the default) if the RTTI information for
  33161. the basic types which is defined in the C++ runtime should always
  33162. be COMDAT, false if it should not be COMDAT.
  33163. -- Target Hook: bool TARGET_CXX_USE_AEABI_ATEXIT (void)
  33164. This hook returns true if '__aeabi_atexit' (as defined by the ARM
  33165. EABI) should be used to register static destructors when
  33166. '-fuse-cxa-atexit' is in effect. The default is to return false to
  33167. use '__cxa_atexit'.
  33168. -- Target Hook: bool TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT (void)
  33169. This hook returns true if the target 'atexit' function can be used
  33170. in the same manner as '__cxa_atexit' to register C++ static
  33171. destructors. This requires that 'atexit'-registered functions in
  33172. shared libraries are run in the correct order when the libraries
  33173. are unloaded. The default is to return false.
  33174. -- Target Hook: void TARGET_CXX_ADJUST_CLASS_AT_DEFINITION (tree TYPE)
  33175. TYPE is a C++ class (i.e., RECORD_TYPE or UNION_TYPE) that has just
  33176. been defined. Use this hook to make adjustments to the class (eg,
  33177. tweak visibility or perform any other required target
  33178. modifications).
  33179. -- Target Hook: tree TARGET_CXX_DECL_MANGLING_CONTEXT (const_tree DECL)
  33180. Return target-specific mangling context of DECL or 'NULL_TREE'.
  33181. 
  33182. File: gccint.info, Node: D Language and ABI, Next: Named Address Spaces, Prev: C++ ABI, Up: Target Macros
  33183. 18.29 D ABI parameters
  33184. ======================
  33185. -- D Target Hook: void TARGET_D_CPU_VERSIONS (void)
  33186. Declare all environmental version identifiers relating to the
  33187. target CPU using the function 'builtin_version', which takes a
  33188. string representing the name of the version. Version identifiers
  33189. predefined by this hook apply to all modules that are being
  33190. compiled and imported.
  33191. -- D Target Hook: void TARGET_D_OS_VERSIONS (void)
  33192. Similarly to 'TARGET_D_CPU_VERSIONS', but is used for versions
  33193. relating to the target operating system.
  33194. -- D Target Hook: unsigned TARGET_D_CRITSEC_SIZE (void)
  33195. Returns the size of the data structure used by the target operating
  33196. system for critical sections and monitors. For example, on
  33197. Microsoft Windows this would return the 'sizeof(CRITICAL_SECTION)',
  33198. while other platforms that implement pthreads would return
  33199. 'sizeof(pthread_mutex_t)'.
  33200. 
  33201. File: gccint.info, Node: Named Address Spaces, Next: Misc, Prev: D Language and ABI, Up: Target Macros
  33202. 18.30 Adding support for named address spaces
  33203. =============================================
  33204. The draft technical report of the ISO/IEC JTC1 S22 WG14 N1275 standards
  33205. committee, 'Programming Languages - C - Extensions to support embedded
  33206. processors', specifies a syntax for embedded processors to specify
  33207. alternate address spaces. You can configure a GCC port to support
  33208. section 5.1 of the draft report to add support for address spaces other
  33209. than the default address space. These address spaces are new keywords
  33210. that are similar to the 'volatile' and 'const' type attributes.
  33211. Pointers to named address spaces can have a different size than
  33212. pointers to the generic address space.
  33213. For example, the SPU port uses the '__ea' address space to refer to
  33214. memory in the host processor, rather than memory local to the SPU
  33215. processor. Access to memory in the '__ea' address space involves
  33216. issuing DMA operations to move data between the host processor and the
  33217. local processor memory address space. Pointers in the '__ea' address
  33218. space are either 32 bits or 64 bits based on the '-mea32' or '-mea64'
  33219. switches (native SPU pointers are always 32 bits).
  33220. Internally, address spaces are represented as a small integer in the
  33221. range 0 to 15 with address space 0 being reserved for the generic
  33222. address space.
  33223. To register a named address space qualifier keyword with the C front
  33224. end, the target may call the 'c_register_addr_space' routine. For
  33225. example, the SPU port uses the following to declare '__ea' as the
  33226. keyword for named address space #1:
  33227. #define ADDR_SPACE_EA 1
  33228. c_register_addr_space ("__ea", ADDR_SPACE_EA);
  33229. -- Target Hook: scalar_int_mode TARGET_ADDR_SPACE_POINTER_MODE
  33230. (addr_space_t ADDRESS_SPACE)
  33231. Define this to return the machine mode to use for pointers to
  33232. ADDRESS_SPACE if the target supports named address spaces. The
  33233. default version of this hook returns 'ptr_mode'.
  33234. -- Target Hook: scalar_int_mode TARGET_ADDR_SPACE_ADDRESS_MODE
  33235. (addr_space_t ADDRESS_SPACE)
  33236. Define this to return the machine mode to use for addresses in
  33237. ADDRESS_SPACE if the target supports named address spaces. The
  33238. default version of this hook returns 'Pmode'.
  33239. -- Target Hook: bool TARGET_ADDR_SPACE_VALID_POINTER_MODE
  33240. (scalar_int_mode MODE, addr_space_t AS)
  33241. Define this to return nonzero if the port can handle pointers with
  33242. machine mode MODE to address space AS. This target hook is the
  33243. same as the 'TARGET_VALID_POINTER_MODE' target hook, except that it
  33244. includes explicit named address space support. The default version
  33245. of this hook returns true for the modes returned by either the
  33246. 'TARGET_ADDR_SPACE_POINTER_MODE' or
  33247. 'TARGET_ADDR_SPACE_ADDRESS_MODE' target hooks for the given address
  33248. space.
  33249. -- Target Hook: bool TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P
  33250. (machine_mode MODE, rtx EXP, bool STRICT, addr_space_t AS)
  33251. Define this to return true if EXP is a valid address for mode MODE
  33252. in the named address space AS. The STRICT parameter says whether
  33253. strict addressing is in effect after reload has finished. This
  33254. target hook is the same as the 'TARGET_LEGITIMATE_ADDRESS_P' target
  33255. hook, except that it includes explicit named address space support.
  33256. -- Target Hook: rtx TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS (rtx X, rtx
  33257. OLDX, machine_mode MODE, addr_space_t AS)
  33258. Define this to modify an invalid address X to be a valid address
  33259. with mode MODE in the named address space AS. This target hook is
  33260. the same as the 'TARGET_LEGITIMIZE_ADDRESS' target hook, except
  33261. that it includes explicit named address space support.
  33262. -- Target Hook: bool TARGET_ADDR_SPACE_SUBSET_P (addr_space_t SUBSET,
  33263. addr_space_t SUPERSET)
  33264. Define this to return whether the SUBSET named address space is
  33265. contained within the SUPERSET named address space. Pointers to a
  33266. named address space that is a subset of another named address space
  33267. will be converted automatically without a cast if used together in
  33268. arithmetic operations. Pointers to a superset address space can be
  33269. converted to pointers to a subset address space via explicit casts.
  33270. -- Target Hook: bool TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID (addr_space_t
  33271. AS)
  33272. Define this to modify the default handling of address 0 for the
  33273. address space. Return true if 0 should be considered a valid
  33274. address.
  33275. -- Target Hook: rtx TARGET_ADDR_SPACE_CONVERT (rtx OP, tree FROM_TYPE,
  33276. tree TO_TYPE)
  33277. Define this to convert the pointer expression represented by the
  33278. RTL OP with type FROM_TYPE that points to a named address space to
  33279. a new pointer expression with type TO_TYPE that points to a
  33280. different named address space. When this hook it called, it is
  33281. guaranteed that one of the two address spaces is a subset of the
  33282. other, as determined by the 'TARGET_ADDR_SPACE_SUBSET_P' target
  33283. hook.
  33284. -- Target Hook: int TARGET_ADDR_SPACE_DEBUG (addr_space_t AS)
  33285. Define this to define how the address space is encoded in dwarf.
  33286. The result is the value to be used with 'DW_AT_address_class'.
  33287. -- Target Hook: void TARGET_ADDR_SPACE_DIAGNOSE_USAGE (addr_space_t AS,
  33288. location_t LOC)
  33289. Define this hook if the availability of an address space depends on
  33290. command line options and some diagnostics should be printed when
  33291. the address space is used. This hook is called during parsing and
  33292. allows to emit a better diagnostic compared to the case where the
  33293. address space was not registered with 'c_register_addr_space'. AS
  33294. is the address space as registered with 'c_register_addr_space'.
  33295. LOC is the location of the address space qualifier token. The
  33296. default implementation does nothing.
  33297. 
  33298. File: gccint.info, Node: Misc, Prev: Named Address Spaces, Up: Target Macros
  33299. 18.31 Miscellaneous Parameters
  33300. ==============================
  33301. Here are several miscellaneous parameters.
  33302. -- Macro: HAS_LONG_COND_BRANCH
  33303. Define this boolean macro to indicate whether or not your
  33304. architecture has conditional branches that can span all of memory.
  33305. It is used in conjunction with an optimization that partitions hot
  33306. and cold basic blocks into separate sections of the executable. If
  33307. this macro is set to false, gcc will convert any conditional
  33308. branches that attempt to cross between sections into unconditional
  33309. branches or indirect jumps.
  33310. -- Macro: HAS_LONG_UNCOND_BRANCH
  33311. Define this boolean macro to indicate whether or not your
  33312. architecture has unconditional branches that can span all of
  33313. memory. It is used in conjunction with an optimization that
  33314. partitions hot and cold basic blocks into separate sections of the
  33315. executable. If this macro is set to false, gcc will convert any
  33316. unconditional branches that attempt to cross between sections into
  33317. indirect jumps.
  33318. -- Macro: CASE_VECTOR_MODE
  33319. An alias for a machine mode name. This is the machine mode that
  33320. elements of a jump-table should have.
  33321. -- Macro: CASE_VECTOR_SHORTEN_MODE (MIN_OFFSET, MAX_OFFSET, BODY)
  33322. Optional: return the preferred mode for an 'addr_diff_vec' when the
  33323. minimum and maximum offset are known. If you define this, it
  33324. enables extra code in branch shortening to deal with
  33325. 'addr_diff_vec'. To make this work, you also have to define
  33326. 'INSN_ALIGN' and make the alignment for 'addr_diff_vec' explicit.
  33327. The BODY argument is provided so that the offset_unsigned and scale
  33328. flags can be updated.
  33329. -- Macro: CASE_VECTOR_PC_RELATIVE
  33330. Define this macro to be a C expression to indicate when jump-tables
  33331. should contain relative addresses. You need not define this macro
  33332. if jump-tables never contain relative addresses, or jump-tables
  33333. should contain relative addresses only when '-fPIC' or '-fPIC' is
  33334. in effect.
  33335. -- Target Hook: unsigned int TARGET_CASE_VALUES_THRESHOLD (void)
  33336. This function return the smallest number of different values for
  33337. which it is best to use a jump-table instead of a tree of
  33338. conditional branches. The default is four for machines with a
  33339. 'casesi' instruction and five otherwise. This is best for most
  33340. machines.
  33341. -- Macro: WORD_REGISTER_OPERATIONS
  33342. Define this macro to 1 if operations between registers with
  33343. integral mode smaller than a word are always performed on the
  33344. entire register. To be more explicit, if you start with a pair of
  33345. 'word_mode' registers with known values and you do a subword, for
  33346. example 'QImode', addition on the low part of the registers, then
  33347. the compiler may consider that the result has a known value in
  33348. 'word_mode' too if the macro is defined to 1. Most RISC machines
  33349. have this property and most CISC machines do not.
  33350. -- Target Hook: unsigned int TARGET_MIN_ARITHMETIC_PRECISION (void)
  33351. On some RISC architectures with 64-bit registers, the processor
  33352. also maintains 32-bit condition codes that make it possible to do
  33353. real 32-bit arithmetic, although the operations are performed on
  33354. the full registers.
  33355. On such architectures, defining this hook to 32 tells the compiler
  33356. to try using 32-bit arithmetical operations setting the condition
  33357. codes instead of doing full 64-bit arithmetic.
  33358. More generally, define this hook on RISC architectures if you want
  33359. the compiler to try using arithmetical operations setting the
  33360. condition codes with a precision lower than the word precision.
  33361. You need not define this hook if 'WORD_REGISTER_OPERATIONS' is not
  33362. defined to 1.
  33363. -- Macro: LOAD_EXTEND_OP (MEM_MODE)
  33364. Define this macro to be a C expression indicating when insns that
  33365. read memory in MEM_MODE, an integral mode narrower than a word, set
  33366. the bits outside of MEM_MODE to be either the sign-extension or the
  33367. zero-extension of the data read. Return 'SIGN_EXTEND' for values
  33368. of MEM_MODE for which the insn sign-extends, 'ZERO_EXTEND' for
  33369. which it zero-extends, and 'UNKNOWN' for other modes.
  33370. This macro is not called with MEM_MODE non-integral or with a width
  33371. greater than or equal to 'BITS_PER_WORD', so you may return any
  33372. value in this case. Do not define this macro if it would always
  33373. return 'UNKNOWN'. On machines where this macro is defined, you
  33374. will normally define it as the constant 'SIGN_EXTEND' or
  33375. 'ZERO_EXTEND'.
  33376. You may return a non-'UNKNOWN' value even if for some hard
  33377. registers the sign extension is not performed, if for the
  33378. 'REGNO_REG_CLASS' of these hard registers
  33379. 'TARGET_CAN_CHANGE_MODE_CLASS' returns false when the FROM mode is
  33380. MEM_MODE and the TO mode is any integral mode larger than this but
  33381. not larger than 'word_mode'.
  33382. You must return 'UNKNOWN' if for some hard registers that allow
  33383. this mode, 'TARGET_CAN_CHANGE_MODE_CLASS' says that they cannot
  33384. change to 'word_mode', but that they can change to another integral
  33385. mode that is larger then MEM_MODE but still smaller than
  33386. 'word_mode'.
  33387. -- Macro: SHORT_IMMEDIATES_SIGN_EXTEND
  33388. Define this macro to 1 if loading short immediate values into
  33389. registers sign extends.
  33390. -- Target Hook: unsigned int TARGET_MIN_DIVISIONS_FOR_RECIP_MUL
  33391. (machine_mode MODE)
  33392. When '-ffast-math' is in effect, GCC tries to optimize divisions by
  33393. the same divisor, by turning them into multiplications by the
  33394. reciprocal. This target hook specifies the minimum number of
  33395. divisions that should be there for GCC to perform the optimization
  33396. for a variable of mode MODE. The default implementation returns 3
  33397. if the machine has an instruction for the division, and 2 if it
  33398. does not.
  33399. -- Macro: MOVE_MAX
  33400. The maximum number of bytes that a single instruction can move
  33401. quickly between memory and registers or between two memory
  33402. locations.
  33403. -- Macro: MAX_MOVE_MAX
  33404. The maximum number of bytes that a single instruction can move
  33405. quickly between memory and registers or between two memory
  33406. locations. If this is undefined, the default is 'MOVE_MAX'.
  33407. Otherwise, it is the constant value that is the largest value that
  33408. 'MOVE_MAX' can have at run-time.
  33409. -- Macro: SHIFT_COUNT_TRUNCATED
  33410. A C expression that is nonzero if on this machine the number of
  33411. bits actually used for the count of a shift operation is equal to
  33412. the number of bits needed to represent the size of the object being
  33413. shifted. When this macro is nonzero, the compiler will assume that
  33414. it is safe to omit a sign-extend, zero-extend, and certain bitwise
  33415. 'and' instructions that truncates the count of a shift operation.
  33416. On machines that have instructions that act on bit-fields at
  33417. variable positions, which may include 'bit test' instructions, a
  33418. nonzero 'SHIFT_COUNT_TRUNCATED' also enables deletion of
  33419. truncations of the values that serve as arguments to bit-field
  33420. instructions.
  33421. If both types of instructions truncate the count (for shifts) and
  33422. position (for bit-field operations), or if no variable-position
  33423. bit-field instructions exist, you should define this macro.
  33424. However, on some machines, such as the 80386 and the 680x0,
  33425. truncation only applies to shift operations and not the (real or
  33426. pretended) bit-field operations. Define 'SHIFT_COUNT_TRUNCATED' to
  33427. be zero on such machines. Instead, add patterns to the 'md' file
  33428. that include the implied truncation of the shift instructions.
  33429. You need not define this macro if it would always have the value of
  33430. zero.
  33431. -- Target Hook: unsigned HOST_WIDE_INT TARGET_SHIFT_TRUNCATION_MASK
  33432. (machine_mode MODE)
  33433. This function describes how the standard shift patterns for MODE
  33434. deal with shifts by negative amounts or by more than the width of
  33435. the mode. *Note shift patterns::.
  33436. On many machines, the shift patterns will apply a mask M to the
  33437. shift count, meaning that a fixed-width shift of X by Y is
  33438. equivalent to an arbitrary-width shift of X by Y & M. If this is
  33439. true for mode MODE, the function should return M, otherwise it
  33440. should return 0. A return value of 0 indicates that no particular
  33441. behavior is guaranteed.
  33442. Note that, unlike 'SHIFT_COUNT_TRUNCATED', this function does _not_
  33443. apply to general shift rtxes; it applies only to instructions that
  33444. are generated by the named shift patterns.
  33445. The default implementation of this function returns
  33446. 'GET_MODE_BITSIZE (MODE) - 1' if 'SHIFT_COUNT_TRUNCATED' and 0
  33447. otherwise. This definition is always safe, but if
  33448. 'SHIFT_COUNT_TRUNCATED' is false, and some shift patterns
  33449. nevertheless truncate the shift count, you may get better code by
  33450. overriding it.
  33451. -- Target Hook: bool TARGET_TRULY_NOOP_TRUNCATION (poly_uint64 OUTPREC,
  33452. poly_uint64 INPREC)
  33453. This hook returns true if it is safe to "convert" a value of INPREC
  33454. bits to one of OUTPREC bits (where OUTPREC is smaller than INPREC)
  33455. by merely operating on it as if it had only OUTPREC bits. The
  33456. default returns true unconditionally, which is correct for most
  33457. machines.
  33458. If 'TARGET_MODES_TIEABLE_P' returns false for a pair of modes,
  33459. suboptimal code can result if this hook returns true for the
  33460. corresponding mode sizes. Making this hook return false in such
  33461. cases may improve things.
  33462. -- Target Hook: int TARGET_MODE_REP_EXTENDED (scalar_int_mode MODE,
  33463. scalar_int_mode REP_MODE)
  33464. The representation of an integral mode can be such that the values
  33465. are always extended to a wider integral mode. Return 'SIGN_EXTEND'
  33466. if values of MODE are represented in sign-extended form to
  33467. REP_MODE. Return 'UNKNOWN' otherwise. (Currently, none of the
  33468. targets use zero-extended representation this way so unlike
  33469. 'LOAD_EXTEND_OP', 'TARGET_MODE_REP_EXTENDED' is expected to return
  33470. either 'SIGN_EXTEND' or 'UNKNOWN'. Also no target extends MODE to
  33471. REP_MODE so that REP_MODE is not the next widest integral mode and
  33472. currently we take advantage of this fact.)
  33473. Similarly to 'LOAD_EXTEND_OP' you may return a non-'UNKNOWN' value
  33474. even if the extension is not performed on certain hard registers as
  33475. long as for the 'REGNO_REG_CLASS' of these hard registers
  33476. 'TARGET_CAN_CHANGE_MODE_CLASS' returns false.
  33477. Note that 'TARGET_MODE_REP_EXTENDED' and 'LOAD_EXTEND_OP' describe
  33478. two related properties. If you define 'TARGET_MODE_REP_EXTENDED
  33479. (mode, word_mode)' you probably also want to define 'LOAD_EXTEND_OP
  33480. (mode)' to return the same type of extension.
  33481. In order to enforce the representation of 'mode',
  33482. 'TARGET_TRULY_NOOP_TRUNCATION' should return false when truncating
  33483. to 'mode'.
  33484. -- Target Hook: bool TARGET_SETJMP_PRESERVES_NONVOLATILE_REGS_P (void)
  33485. On some targets, it is assumed that the compiler will spill all
  33486. pseudos that are live across a call to 'setjmp', while other
  33487. targets treat 'setjmp' calls as normal function calls.
  33488. This hook returns false if 'setjmp' calls do not preserve all
  33489. non-volatile registers so that gcc that must spill all pseudos that
  33490. are live across 'setjmp' calls. Define this to return true if the
  33491. target does not need to spill all pseudos live across 'setjmp'
  33492. calls. The default implementation conservatively assumes all
  33493. pseudos must be spilled across 'setjmp' calls.
  33494. -- Macro: STORE_FLAG_VALUE
  33495. A C expression describing the value returned by a comparison
  33496. operator with an integral mode and stored by a store-flag
  33497. instruction ('cstoreMODE4') when the condition is true. This
  33498. description must apply to _all_ the 'cstoreMODE4' patterns and all
  33499. the comparison operators whose results have a 'MODE_INT' mode.
  33500. A value of 1 or -1 means that the instruction implementing the
  33501. comparison operator returns exactly 1 or -1 when the comparison is
  33502. true and 0 when the comparison is false. Otherwise, the value
  33503. indicates which bits of the result are guaranteed to be 1 when the
  33504. comparison is true. This value is interpreted in the mode of the
  33505. comparison operation, which is given by the mode of the first
  33506. operand in the 'cstoreMODE4' pattern. Either the low bit or the
  33507. sign bit of 'STORE_FLAG_VALUE' be on. Presently, only those bits
  33508. are used by the compiler.
  33509. If 'STORE_FLAG_VALUE' is neither 1 or -1, the compiler will
  33510. generate code that depends only on the specified bits. It can also
  33511. replace comparison operators with equivalent operations if they
  33512. cause the required bits to be set, even if the remaining bits are
  33513. undefined. For example, on a machine whose comparison operators
  33514. return an 'SImode' value and where 'STORE_FLAG_VALUE' is defined as
  33515. '0x80000000', saying that just the sign bit is relevant, the
  33516. expression
  33517. (ne:SI (and:SI X (const_int POWER-OF-2)) (const_int 0))
  33518. can be converted to
  33519. (ashift:SI X (const_int N))
  33520. where N is the appropriate shift count to move the bit being tested
  33521. into the sign bit.
  33522. There is no way to describe a machine that always sets the
  33523. low-order bit for a true value, but does not guarantee the value of
  33524. any other bits, but we do not know of any machine that has such an
  33525. instruction. If you are trying to port GCC to such a machine,
  33526. include an instruction to perform a logical-and of the result with
  33527. 1 in the pattern for the comparison operators and let us know at
  33528. <gcc@gcc.gnu.org>.
  33529. Often, a machine will have multiple instructions that obtain a
  33530. value from a comparison (or the condition codes). Here are rules
  33531. to guide the choice of value for 'STORE_FLAG_VALUE', and hence the
  33532. instructions to be used:
  33533. * Use the shortest sequence that yields a valid definition for
  33534. 'STORE_FLAG_VALUE'. It is more efficient for the compiler to
  33535. "normalize" the value (convert it to, e.g., 1 or 0) than for
  33536. the comparison operators to do so because there may be
  33537. opportunities to combine the normalization with other
  33538. operations.
  33539. * For equal-length sequences, use a value of 1 or -1, with -1
  33540. being slightly preferred on machines with expensive jumps and
  33541. 1 preferred on other machines.
  33542. * As a second choice, choose a value of '0x80000001' if
  33543. instructions exist that set both the sign and low-order bits
  33544. but do not define the others.
  33545. * Otherwise, use a value of '0x80000000'.
  33546. Many machines can produce both the value chosen for
  33547. 'STORE_FLAG_VALUE' and its negation in the same number of
  33548. instructions. On those machines, you should also define a pattern
  33549. for those cases, e.g., one matching
  33550. (set A (neg:M (ne:M B C)))
  33551. Some machines can also perform 'and' or 'plus' operations on
  33552. condition code values with less instructions than the corresponding
  33553. 'cstoreMODE4' insn followed by 'and' or 'plus'. On those machines,
  33554. define the appropriate patterns. Use the names 'incscc' and
  33555. 'decscc', respectively, for the patterns which perform 'plus' or
  33556. 'minus' operations on condition code values. See 'rs6000.md' for
  33557. some examples. The GNU Superoptimizer can be used to find such
  33558. instruction sequences on other machines.
  33559. If this macro is not defined, the default value, 1, is used. You
  33560. need not define 'STORE_FLAG_VALUE' if the machine has no store-flag
  33561. instructions, or if the value generated by these instructions is 1.
  33562. -- Macro: FLOAT_STORE_FLAG_VALUE (MODE)
  33563. A C expression that gives a nonzero 'REAL_VALUE_TYPE' value that is
  33564. returned when comparison operators with floating-point results are
  33565. true. Define this macro on machines that have comparison
  33566. operations that return floating-point values. If there are no such
  33567. operations, do not define this macro.
  33568. -- Macro: VECTOR_STORE_FLAG_VALUE (MODE)
  33569. A C expression that gives a rtx representing the nonzero true
  33570. element for vector comparisons. The returned rtx should be valid
  33571. for the inner mode of MODE which is guaranteed to be a vector mode.
  33572. Define this macro on machines that have vector comparison
  33573. operations that return a vector result. If there are no such
  33574. operations, do not define this macro. Typically, this macro is
  33575. defined as 'const1_rtx' or 'constm1_rtx'. This macro may return
  33576. 'NULL_RTX' to prevent the compiler optimizing such vector
  33577. comparison operations for the given mode.
  33578. -- Macro: CLZ_DEFINED_VALUE_AT_ZERO (MODE, VALUE)
  33579. -- Macro: CTZ_DEFINED_VALUE_AT_ZERO (MODE, VALUE)
  33580. A C expression that indicates whether the architecture defines a
  33581. value for 'clz' or 'ctz' with a zero operand. A result of '0'
  33582. indicates the value is undefined. If the value is defined for only
  33583. the RTL expression, the macro should evaluate to '1'; if the value
  33584. applies also to the corresponding optab entry (which is normally
  33585. the case if it expands directly into the corresponding RTL), then
  33586. the macro should evaluate to '2'. In the cases where the value is
  33587. defined, VALUE should be set to this value.
  33588. If this macro is not defined, the value of 'clz' or 'ctz' at zero
  33589. is assumed to be undefined.
  33590. This macro must be defined if the target's expansion for 'ffs'
  33591. relies on a particular value to get correct results. Otherwise it
  33592. is not necessary, though it may be used to optimize some corner
  33593. cases, and to provide a default expansion for the 'ffs' optab.
  33594. Note that regardless of this macro the "definedness" of 'clz' and
  33595. 'ctz' at zero do _not_ extend to the builtin functions visible to
  33596. the user. Thus one may be free to adjust the value at will to
  33597. match the target expansion of these operations without fear of
  33598. breaking the API.
  33599. -- Macro: Pmode
  33600. An alias for the machine mode for pointers. On most machines,
  33601. define this to be the integer mode corresponding to the width of a
  33602. hardware pointer; 'SImode' on 32-bit machine or 'DImode' on 64-bit
  33603. machines. On some machines you must define this to be one of the
  33604. partial integer modes, such as 'PSImode'.
  33605. The width of 'Pmode' must be at least as large as the value of
  33606. 'POINTER_SIZE'. If it is not equal, you must define the macro
  33607. 'POINTERS_EXTEND_UNSIGNED' to specify how pointers are extended to
  33608. 'Pmode'.
  33609. -- Macro: FUNCTION_MODE
  33610. An alias for the machine mode used for memory references to
  33611. functions being called, in 'call' RTL expressions. On most CISC
  33612. machines, where an instruction can begin at any byte address, this
  33613. should be 'QImode'. On most RISC machines, where all instructions
  33614. have fixed size and alignment, this should be a mode with the same
  33615. size and alignment as the machine instruction words - typically
  33616. 'SImode' or 'HImode'.
  33617. -- Macro: STDC_0_IN_SYSTEM_HEADERS
  33618. In normal operation, the preprocessor expands '__STDC__' to the
  33619. constant 1, to signify that GCC conforms to ISO Standard C. On
  33620. some hosts, like Solaris, the system compiler uses a different
  33621. convention, where '__STDC__' is normally 0, but is 1 if the user
  33622. specifies strict conformance to the C Standard.
  33623. Defining 'STDC_0_IN_SYSTEM_HEADERS' makes GNU CPP follows the host
  33624. convention when processing system header files, but when processing
  33625. user files '__STDC__' will always expand to 1.
  33626. -- C Target Hook: const char * TARGET_C_PREINCLUDE (void)
  33627. Define this hook to return the name of a header file to be included
  33628. at the start of all compilations, as if it had been included with
  33629. '#include <FILE>'. If this hook returns 'NULL', or is not defined,
  33630. or the header is not found, or if the user specifies
  33631. '-ffreestanding' or '-nostdinc', no header is included.
  33632. This hook can be used together with a header provided by the system
  33633. C library to implement ISO C requirements for certain macros to be
  33634. predefined that describe properties of the whole implementation
  33635. rather than just the compiler.
  33636. -- C Target Hook: bool TARGET_CXX_IMPLICIT_EXTERN_C (const char*)
  33637. Define this hook to add target-specific C++ implicit extern C
  33638. functions. If this function returns true for the name of a
  33639. file-scope function, that function implicitly gets extern "C"
  33640. linkage rather than whatever language linkage the declaration would
  33641. normally have. An example of such function is WinMain on Win32
  33642. targets.
  33643. -- Macro: SYSTEM_IMPLICIT_EXTERN_C
  33644. Define this macro if the system header files do not support C++.
  33645. This macro handles system header files by pretending that system
  33646. header files are enclosed in 'extern "C" {...}'.
  33647. -- Macro: REGISTER_TARGET_PRAGMAS ()
  33648. Define this macro if you want to implement any target-specific
  33649. pragmas. If defined, it is a C expression which makes a series of
  33650. calls to 'c_register_pragma' or 'c_register_pragma_with_expansion'
  33651. for each pragma. The macro may also do any setup required for the
  33652. pragmas.
  33653. The primary reason to define this macro is to provide compatibility
  33654. with other compilers for the same target. In general, we
  33655. discourage definition of target-specific pragmas for GCC.
  33656. If the pragma can be implemented by attributes then you should
  33657. consider defining the target hook 'TARGET_INSERT_ATTRIBUTES' as
  33658. well.
  33659. Preprocessor macros that appear on pragma lines are not expanded.
  33660. All '#pragma' directives that do not match any registered pragma
  33661. are silently ignored, unless the user specifies
  33662. '-Wunknown-pragmas'.
  33663. -- Function: void c_register_pragma (const char *SPACE, const char
  33664. *NAME, void (*CALLBACK) (struct cpp_reader *))
  33665. -- Function: void c_register_pragma_with_expansion (const char *SPACE,
  33666. const char *NAME, void (*CALLBACK) (struct cpp_reader *))
  33667. Each call to 'c_register_pragma' or
  33668. 'c_register_pragma_with_expansion' establishes one pragma. The
  33669. CALLBACK routine will be called when the preprocessor encounters a
  33670. pragma of the form
  33671. #pragma [SPACE] NAME ...
  33672. SPACE is the case-sensitive namespace of the pragma, or 'NULL' to
  33673. put the pragma in the global namespace. The callback routine
  33674. receives PFILE as its first argument, which can be passed on to
  33675. cpplib's functions if necessary. You can lex tokens after the NAME
  33676. by calling 'pragma_lex'. Tokens that are not read by the callback
  33677. will be silently ignored. The end of the line is indicated by a
  33678. token of type 'CPP_EOF'. Macro expansion occurs on the arguments
  33679. of pragmas registered with 'c_register_pragma_with_expansion' but
  33680. not on the arguments of pragmas registered with
  33681. 'c_register_pragma'.
  33682. Note that the use of 'pragma_lex' is specific to the C and C++
  33683. compilers. It will not work in the Java or Fortran compilers, or
  33684. any other language compilers for that matter. Thus if 'pragma_lex'
  33685. is going to be called from target-specific code, it must only be
  33686. done so when building the C and C++ compilers. This can be done by
  33687. defining the variables 'c_target_objs' and 'cxx_target_objs' in the
  33688. target entry in the 'config.gcc' file. These variables should name
  33689. the target-specific, language-specific object file which contains
  33690. the code that uses 'pragma_lex'. Note it will also be necessary to
  33691. add a rule to the makefile fragment pointed to by 'tmake_file' that
  33692. shows how to build this object file.
  33693. -- Macro: HANDLE_PRAGMA_PACK_WITH_EXPANSION
  33694. Define this macro if macros should be expanded in the arguments of
  33695. '#pragma pack'.
  33696. -- Macro: TARGET_DEFAULT_PACK_STRUCT
  33697. If your target requires a structure packing default other than 0
  33698. (meaning the machine default), define this macro to the necessary
  33699. value (in bytes). This must be a value that would also be valid to
  33700. use with '#pragma pack()' (that is, a small power of two).
  33701. -- Macro: DOLLARS_IN_IDENTIFIERS
  33702. Define this macro to control use of the character '$' in identifier
  33703. names for the C family of languages. 0 means '$' is not allowed by
  33704. default; 1 means it is allowed. 1 is the default; there is no need
  33705. to define this macro in that case.
  33706. -- Macro: INSN_SETS_ARE_DELAYED (INSN)
  33707. Define this macro as a C expression that is nonzero if it is safe
  33708. for the delay slot scheduler to place instructions in the delay
  33709. slot of INSN, even if they appear to use a resource set or
  33710. clobbered in INSN. INSN is always a 'jump_insn' or an 'insn'; GCC
  33711. knows that every 'call_insn' has this behavior. On machines where
  33712. some 'insn' or 'jump_insn' is really a function call and hence has
  33713. this behavior, you should define this macro.
  33714. You need not define this macro if it would always return zero.
  33715. -- Macro: INSN_REFERENCES_ARE_DELAYED (INSN)
  33716. Define this macro as a C expression that is nonzero if it is safe
  33717. for the delay slot scheduler to place instructions in the delay
  33718. slot of INSN, even if they appear to set or clobber a resource
  33719. referenced in INSN. INSN is always a 'jump_insn' or an 'insn'. On
  33720. machines where some 'insn' or 'jump_insn' is really a function call
  33721. and its operands are registers whose use is actually in the
  33722. subroutine it calls, you should define this macro. Doing so allows
  33723. the delay slot scheduler to move instructions which copy arguments
  33724. into the argument registers into the delay slot of INSN.
  33725. You need not define this macro if it would always return zero.
  33726. -- Macro: MULTIPLE_SYMBOL_SPACES
  33727. Define this macro as a C expression that is nonzero if, in some
  33728. cases, global symbols from one translation unit may not be bound to
  33729. undefined symbols in another translation unit without user
  33730. intervention. For instance, under Microsoft Windows symbols must
  33731. be explicitly imported from shared libraries (DLLs).
  33732. You need not define this macro if it would always evaluate to zero.
  33733. -- Target Hook: rtx_insn * TARGET_MD_ASM_ADJUST (vec<rtx>& OUTPUTS,
  33734. vec<rtx>& INPUTS, vec<const char *>& CONSTRAINTS, vec<rtx>&
  33735. CLOBBERS, HARD_REG_SET& CLOBBERED_REGS)
  33736. This target hook may add "clobbers" to CLOBBERS and CLOBBERED_REGS
  33737. for any hard regs the port wishes to automatically clobber for an
  33738. asm. The OUTPUTS and INPUTS may be inspected to avoid clobbering a
  33739. register that is already used by the asm.
  33740. It may modify the OUTPUTS, INPUTS, and CONSTRAINTS as necessary for
  33741. other pre-processing. In this case the return value is a sequence
  33742. of insns to emit after the asm.
  33743. -- Macro: MATH_LIBRARY
  33744. Define this macro as a C string constant for the linker argument to
  33745. link in the system math library, minus the initial '"-l"', or '""'
  33746. if the target does not have a separate math library.
  33747. You need only define this macro if the default of '"m"' is wrong.
  33748. -- Macro: LIBRARY_PATH_ENV
  33749. Define this macro as a C string constant for the environment
  33750. variable that specifies where the linker should look for libraries.
  33751. You need only define this macro if the default of '"LIBRARY_PATH"'
  33752. is wrong.
  33753. -- Macro: TARGET_POSIX_IO
  33754. Define this macro if the target supports the following POSIX file
  33755. functions, access, mkdir and file locking with fcntl / F_SETLKW.
  33756. Defining 'TARGET_POSIX_IO' will enable the test coverage code to
  33757. use file locking when exiting a program, which avoids race
  33758. conditions if the program has forked. It will also create
  33759. directories at run-time for cross-profiling.
  33760. -- Macro: MAX_CONDITIONAL_EXECUTE
  33761. A C expression for the maximum number of instructions to execute
  33762. via conditional execution instructions instead of a branch. A
  33763. value of 'BRANCH_COST'+1 is the default if the machine does not use
  33764. cc0, and 1 if it does use cc0.
  33765. -- Macro: IFCVT_MODIFY_TESTS (CE_INFO, TRUE_EXPR, FALSE_EXPR)
  33766. Used if the target needs to perform machine-dependent modifications
  33767. on the conditionals used for turning basic blocks into
  33768. conditionally executed code. CE_INFO points to a data structure,
  33769. 'struct ce_if_block', which contains information about the
  33770. currently processed blocks. TRUE_EXPR and FALSE_EXPR are the tests
  33771. that are used for converting the then-block and the else-block,
  33772. respectively. Set either TRUE_EXPR or FALSE_EXPR to a null pointer
  33773. if the tests cannot be converted.
  33774. -- Macro: IFCVT_MODIFY_MULTIPLE_TESTS (CE_INFO, BB, TRUE_EXPR,
  33775. FALSE_EXPR)
  33776. Like 'IFCVT_MODIFY_TESTS', but used when converting more
  33777. complicated if-statements into conditions combined by 'and' and
  33778. 'or' operations. BB contains the basic block that contains the
  33779. test that is currently being processed and about to be turned into
  33780. a condition.
  33781. -- Macro: IFCVT_MODIFY_INSN (CE_INFO, PATTERN, INSN)
  33782. A C expression to modify the PATTERN of an INSN that is to be
  33783. converted to conditional execution format. CE_INFO points to a
  33784. data structure, 'struct ce_if_block', which contains information
  33785. about the currently processed blocks.
  33786. -- Macro: IFCVT_MODIFY_FINAL (CE_INFO)
  33787. A C expression to perform any final machine dependent modifications
  33788. in converting code to conditional execution. The involved basic
  33789. blocks can be found in the 'struct ce_if_block' structure that is
  33790. pointed to by CE_INFO.
  33791. -- Macro: IFCVT_MODIFY_CANCEL (CE_INFO)
  33792. A C expression to cancel any machine dependent modifications in
  33793. converting code to conditional execution. The involved basic
  33794. blocks can be found in the 'struct ce_if_block' structure that is
  33795. pointed to by CE_INFO.
  33796. -- Macro: IFCVT_MACHDEP_INIT (CE_INFO)
  33797. A C expression to initialize any machine specific data for
  33798. if-conversion of the if-block in the 'struct ce_if_block' structure
  33799. that is pointed to by CE_INFO.
  33800. -- Target Hook: void TARGET_MACHINE_DEPENDENT_REORG (void)
  33801. If non-null, this hook performs a target-specific pass over the
  33802. instruction stream. The compiler will run it at all optimization
  33803. levels, just before the point at which it normally does
  33804. delayed-branch scheduling.
  33805. The exact purpose of the hook varies from target to target. Some
  33806. use it to do transformations that are necessary for correctness,
  33807. such as laying out in-function constant pools or avoiding hardware
  33808. hazards. Others use it as an opportunity to do some
  33809. machine-dependent optimizations.
  33810. You need not implement the hook if it has nothing to do. The
  33811. default definition is null.
  33812. -- Target Hook: void TARGET_INIT_BUILTINS (void)
  33813. Define this hook if you have any machine-specific built-in
  33814. functions that need to be defined. It should be a function that
  33815. performs the necessary setup.
  33816. Machine specific built-in functions can be useful to expand special
  33817. machine instructions that would otherwise not normally be generated
  33818. because they have no equivalent in the source language (for
  33819. example, SIMD vector instructions or prefetch instructions).
  33820. To create a built-in function, call the function
  33821. 'lang_hooks.builtin_function' which is defined by the language
  33822. front end. You can use any type nodes set up by
  33823. 'build_common_tree_nodes'; only language front ends that use those
  33824. two functions will call 'TARGET_INIT_BUILTINS'.
  33825. -- Target Hook: tree TARGET_BUILTIN_DECL (unsigned CODE, bool
  33826. INITIALIZE_P)
  33827. Define this hook if you have any machine-specific built-in
  33828. functions that need to be defined. It should be a function that
  33829. returns the builtin function declaration for the builtin function
  33830. code CODE. If there is no such builtin and it cannot be
  33831. initialized at this time if INITIALIZE_P is true the function
  33832. should return 'NULL_TREE'. If CODE is out of range the function
  33833. should return 'error_mark_node'.
  33834. -- Target Hook: rtx TARGET_EXPAND_BUILTIN (tree EXP, rtx TARGET, rtx
  33835. SUBTARGET, machine_mode MODE, int IGNORE)
  33836. Expand a call to a machine specific built-in function that was set
  33837. up by 'TARGET_INIT_BUILTINS'. EXP is the expression for the
  33838. function call; the result should go to TARGET if that is
  33839. convenient, and have mode MODE if that is convenient. SUBTARGET
  33840. may be used as the target for computing one of EXP's operands.
  33841. IGNORE is nonzero if the value is to be ignored. This function
  33842. should return the result of the call to the built-in function.
  33843. -- Target Hook: tree TARGET_RESOLVE_OVERLOADED_BUILTIN (unsigned int
  33844. LOC, tree FNDECL, void *ARGLIST)
  33845. Select a replacement for a machine specific built-in function that
  33846. was set up by 'TARGET_INIT_BUILTINS'. This is done _before_
  33847. regular type checking, and so allows the target to implement a
  33848. crude form of function overloading. FNDECL is the declaration of
  33849. the built-in function. ARGLIST is the list of arguments passed to
  33850. the built-in function. The result is a complete expression that
  33851. implements the operation, usually another 'CALL_EXPR'. ARGLIST
  33852. really has type 'VEC(tree,gc)*'
  33853. -- Target Hook: bool TARGET_CHECK_BUILTIN_CALL (location_t LOC,
  33854. vec<location_t> ARG_LOC, tree FNDECL, tree ORIG_FNDECL,
  33855. unsigned int NARGS, tree *ARGS)
  33856. Perform semantic checking on a call to a machine-specific built-in
  33857. function after its arguments have been constrained to the function
  33858. signature. Return true if the call is valid, otherwise report an
  33859. error and return false.
  33860. This hook is called after 'TARGET_RESOLVE_OVERLOADED_BUILTIN'. The
  33861. call was originally to built-in function ORIG_FNDECL, but after the
  33862. optional 'TARGET_RESOLVE_OVERLOADED_BUILTIN' step is now to
  33863. built-in function FNDECL. LOC is the location of the call and ARGS
  33864. is an array of function arguments, of which there are NARGS.
  33865. ARG_LOC specifies the location of each argument.
  33866. -- Target Hook: tree TARGET_FOLD_BUILTIN (tree FNDECL, int N_ARGS, tree
  33867. *ARGP, bool IGNORE)
  33868. Fold a call to a machine specific built-in function that was set up
  33869. by 'TARGET_INIT_BUILTINS'. FNDECL is the declaration of the
  33870. built-in function. N_ARGS is the number of arguments passed to the
  33871. function; the arguments themselves are pointed to by ARGP. The
  33872. result is another tree, valid for both GIMPLE and GENERIC,
  33873. containing a simplified expression for the call's result. If
  33874. IGNORE is true the value will be ignored.
  33875. -- Target Hook: bool TARGET_GIMPLE_FOLD_BUILTIN (gimple_stmt_iterator
  33876. *GSI)
  33877. Fold a call to a machine specific built-in function that was set up
  33878. by 'TARGET_INIT_BUILTINS'. GSI points to the gimple statement
  33879. holding the function call. Returns true if any change was made to
  33880. the GIMPLE stream.
  33881. -- Target Hook: int TARGET_COMPARE_VERSION_PRIORITY (tree DECL1, tree
  33882. DECL2)
  33883. This hook is used to compare the target attributes in two functions
  33884. to determine which function's features get higher priority. This
  33885. is used during function multi-versioning to figure out the order in
  33886. which two versions must be dispatched. A function version with a
  33887. higher priority is checked for dispatching earlier. DECL1 and
  33888. DECL2 are the two function decls that will be compared.
  33889. -- Target Hook: tree TARGET_GET_FUNCTION_VERSIONS_DISPATCHER (void
  33890. *DECL)
  33891. This hook is used to get the dispatcher function for a set of
  33892. function versions. The dispatcher function is called to invoke the
  33893. right function version at run-time. DECL is one version from a set
  33894. of semantically identical versions.
  33895. -- Target Hook: tree TARGET_GENERATE_VERSION_DISPATCHER_BODY (void
  33896. *ARG)
  33897. This hook is used to generate the dispatcher logic to invoke the
  33898. right function version at run-time for a given set of function
  33899. versions. ARG points to the callgraph node of the dispatcher
  33900. function whose body must be generated.
  33901. -- Target Hook: bool TARGET_PREDICT_DOLOOP_P (class loop *LOOP)
  33902. Return true if we can predict it is possible to use a low-overhead
  33903. loop for a particular loop. The parameter LOOP is a pointer to the
  33904. loop. This target hook is required only when the target supports
  33905. low-overhead loops, and will help ivopts to make some decisions.
  33906. The default version of this hook returns false.
  33907. -- Target Hook: bool TARGET_HAVE_COUNT_REG_DECR_P
  33908. Return true if the target supports hardware count register for
  33909. decrement and branch. The default value is false.
  33910. -- Target Hook: int64_t TARGET_DOLOOP_COST_FOR_GENERIC
  33911. One IV candidate dedicated for doloop is introduced in IVOPTs, we
  33912. can calculate the computation cost of adopting it to any generic IV
  33913. use by function get_computation_cost as before. But for targets
  33914. which have hardware count register support for decrement and
  33915. branch, it may have to move IV value from hardware count register
  33916. to general purpose register while doloop IV candidate is used for
  33917. generic IV uses. It probably takes expensive penalty. This hook
  33918. allows target owners to define the cost for this especially for
  33919. generic IV uses. The default value is zero.
  33920. -- Target Hook: int64_t TARGET_DOLOOP_COST_FOR_ADDRESS
  33921. One IV candidate dedicated for doloop is introduced in IVOPTs, we
  33922. can calculate the computation cost of adopting it to any address IV
  33923. use by function get_computation_cost as before. But for targets
  33924. which have hardware count register support for decrement and
  33925. branch, it may have to move IV value from hardware count register
  33926. to general purpose register while doloop IV candidate is used for
  33927. address IV uses. It probably takes expensive penalty. This hook
  33928. allows target owners to define the cost for this escpecially for
  33929. address IV uses. The default value is zero.
  33930. -- Target Hook: bool TARGET_CAN_USE_DOLOOP_P (const widest_int
  33931. &ITERATIONS, const widest_int &ITERATIONS_MAX, unsigned int
  33932. LOOP_DEPTH, bool ENTERED_AT_TOP)
  33933. Return true if it is possible to use low-overhead loops
  33934. ('doloop_end' and 'doloop_begin') for a particular loop.
  33935. ITERATIONS gives the exact number of iterations, or 0 if not known.
  33936. ITERATIONS_MAX gives the maximum number of iterations, or 0 if not
  33937. known. LOOP_DEPTH is the nesting depth of the loop, with 1 for
  33938. innermost loops, 2 for loops that contain innermost loops, and so
  33939. on. ENTERED_AT_TOP is true if the loop is only entered from the
  33940. top.
  33941. This hook is only used if 'doloop_end' is available. The default
  33942. implementation returns true. You can use
  33943. 'can_use_doloop_if_innermost' if the loop must be the innermost,
  33944. and if there are no other restrictions.
  33945. -- Target Hook: const char * TARGET_INVALID_WITHIN_DOLOOP (const
  33946. rtx_insn *INSN)
  33947. Take an instruction in INSN and return NULL if it is valid within a
  33948. low-overhead loop, otherwise return a string explaining why doloop
  33949. could not be applied.
  33950. Many targets use special registers for low-overhead looping. For
  33951. any instruction that clobbers these this function should return a
  33952. string indicating the reason why the doloop could not be applied.
  33953. By default, the RTL loop optimizer does not use a present doloop
  33954. pattern for loops containing function calls or branch on table
  33955. instructions.
  33956. -- Target Hook: bool TARGET_LEGITIMATE_COMBINED_INSN (rtx_insn *INSN)
  33957. Take an instruction in INSN and return 'false' if the instruction
  33958. is not appropriate as a combination of two or more instructions.
  33959. The default is to accept all instructions.
  33960. -- Target Hook: bool TARGET_CAN_FOLLOW_JUMP (const rtx_insn *FOLLOWER,
  33961. const rtx_insn *FOLLOWEE)
  33962. FOLLOWER and FOLLOWEE are JUMP_INSN instructions; return true if
  33963. FOLLOWER may be modified to follow FOLLOWEE; false, if it can't.
  33964. For example, on some targets, certain kinds of branches can't be
  33965. made to follow through a hot/cold partitioning.
  33966. -- Target Hook: bool TARGET_COMMUTATIVE_P (const_rtx X, int OUTER_CODE)
  33967. This target hook returns 'true' if X is considered to be
  33968. commutative. Usually, this is just COMMUTATIVE_P (X), but the HP
  33969. PA doesn't consider PLUS to be commutative inside a MEM.
  33970. OUTER_CODE is the rtx code of the enclosing rtl, if known,
  33971. otherwise it is UNKNOWN.
  33972. -- Target Hook: rtx TARGET_ALLOCATE_INITIAL_VALUE (rtx HARD_REG)
  33973. When the initial value of a hard register has been copied in a
  33974. pseudo register, it is often not necessary to actually allocate
  33975. another register to this pseudo register, because the original hard
  33976. register or a stack slot it has been saved into can be used.
  33977. 'TARGET_ALLOCATE_INITIAL_VALUE' is called at the start of register
  33978. allocation once for each hard register that had its initial value
  33979. copied by using 'get_func_hard_reg_initial_val' or
  33980. 'get_hard_reg_initial_val'. Possible values are 'NULL_RTX', if you
  33981. don't want to do any special allocation, a 'REG' rtx--that would
  33982. typically be the hard register itself, if it is known not to be
  33983. clobbered--or a 'MEM'. If you are returning a 'MEM', this is only
  33984. a hint for the allocator; it might decide to use another register
  33985. anyways. You may use 'current_function_is_leaf' or 'REG_N_SETS' in
  33986. the hook to determine if the hard register in question will not be
  33987. clobbered. The default value of this hook is 'NULL', which
  33988. disables any special allocation.
  33989. -- Target Hook: int TARGET_UNSPEC_MAY_TRAP_P (const_rtx X, unsigned
  33990. FLAGS)
  33991. This target hook returns nonzero if X, an 'unspec' or
  33992. 'unspec_volatile' operation, might cause a trap. Targets can use
  33993. this hook to enhance precision of analysis for 'unspec' and
  33994. 'unspec_volatile' operations. You may call 'may_trap_p_1' to
  33995. analyze inner elements of X in which case FLAGS should be passed
  33996. along.
  33997. -- Target Hook: void TARGET_SET_CURRENT_FUNCTION (tree DECL)
  33998. The compiler invokes this hook whenever it changes its current
  33999. function context ('cfun'). You can define this function if the
  34000. back end needs to perform any initialization or reset actions on a
  34001. per-function basis. For example, it may be used to implement
  34002. function attributes that affect register usage or code generation
  34003. patterns. The argument DECL is the declaration for the new
  34004. function context, and may be null to indicate that the compiler has
  34005. left a function context and is returning to processing at the top
  34006. level. The default hook function does nothing.
  34007. GCC sets 'cfun' to a dummy function context during initialization
  34008. of some parts of the back end. The hook function is not invoked in
  34009. this situation; you need not worry about the hook being invoked
  34010. recursively, or when the back end is in a partially-initialized
  34011. state. 'cfun' might be 'NULL' to indicate processing at top level,
  34012. outside of any function scope.
  34013. -- Macro: TARGET_OBJECT_SUFFIX
  34014. Define this macro to be a C string representing the suffix for
  34015. object files on your target machine. If you do not define this
  34016. macro, GCC will use '.o' as the suffix for object files.
  34017. -- Macro: TARGET_EXECUTABLE_SUFFIX
  34018. Define this macro to be a C string representing the suffix to be
  34019. automatically added to executable files on your target machine. If
  34020. you do not define this macro, GCC will use the null string as the
  34021. suffix for executable files.
  34022. -- Macro: COLLECT_EXPORT_LIST
  34023. If defined, 'collect2' will scan the individual object files
  34024. specified on its command line and create an export list for the
  34025. linker. Define this macro for systems like AIX, where the linker
  34026. discards object files that are not referenced from 'main' and uses
  34027. export lists.
  34028. -- Target Hook: bool TARGET_CANNOT_MODIFY_JUMPS_P (void)
  34029. This target hook returns 'true' past the point in which new jump
  34030. instructions could be created. On machines that require a register
  34031. for every jump such as the SHmedia ISA of SH5, this point would
  34032. typically be reload, so this target hook should be defined to a
  34033. function such as:
  34034. static bool
  34035. cannot_modify_jumps_past_reload_p ()
  34036. {
  34037. return (reload_completed || reload_in_progress);
  34038. }
  34039. -- Target Hook: bool TARGET_HAVE_CONDITIONAL_EXECUTION (void)
  34040. This target hook returns true if the target supports conditional
  34041. execution. This target hook is required only when the target has
  34042. several different modes and they have different conditional
  34043. execution capability, such as ARM.
  34044. -- Target Hook: rtx TARGET_GEN_CCMP_FIRST (rtx_insn **PREP_SEQ,
  34045. rtx_insn **GEN_SEQ, int CODE, tree OP0, tree OP1)
  34046. This function prepares to emit a comparison insn for the first
  34047. compare in a sequence of conditional comparisions. It returns an
  34048. appropriate comparison with 'CC' for passing to 'gen_ccmp_next' or
  34049. 'cbranch_optab'. The insns to prepare the compare are saved in
  34050. PREP_SEQ and the compare insns are saved in GEN_SEQ. They will be
  34051. emitted when all the compares in the conditional comparision are
  34052. generated without error. CODE is the 'rtx_code' of the compare for
  34053. OP0 and OP1.
  34054. -- Target Hook: rtx TARGET_GEN_CCMP_NEXT (rtx_insn **PREP_SEQ, rtx_insn
  34055. **GEN_SEQ, rtx PREV, int CMP_CODE, tree OP0, tree OP1, int
  34056. BIT_CODE)
  34057. This function prepares to emit a conditional comparison within a
  34058. sequence of conditional comparisons. It returns an appropriate
  34059. comparison with 'CC' for passing to 'gen_ccmp_next' or
  34060. 'cbranch_optab'. The insns to prepare the compare are saved in
  34061. PREP_SEQ and the compare insns are saved in GEN_SEQ. They will be
  34062. emitted when all the compares in the conditional comparision are
  34063. generated without error. The PREV expression is the result of a
  34064. prior call to 'gen_ccmp_first' or 'gen_ccmp_next'. It may return
  34065. 'NULL' if the combination of PREV and this comparison is not
  34066. supported, otherwise the result must be appropriate for passing to
  34067. 'gen_ccmp_next' or 'cbranch_optab'. CODE is the 'rtx_code' of the
  34068. compare for OP0 and OP1. BIT_CODE is 'AND' or 'IOR', which is the
  34069. op on the compares.
  34070. -- Target Hook: unsigned TARGET_LOOP_UNROLL_ADJUST (unsigned NUNROLL,
  34071. class loop *LOOP)
  34072. This target hook returns a new value for the number of times LOOP
  34073. should be unrolled. The parameter NUNROLL is the number of times
  34074. the loop is to be unrolled. The parameter LOOP is a pointer to the
  34075. loop, which is going to be checked for unrolling. This target hook
  34076. is required only when the target has special constraints like
  34077. maximum number of memory accesses.
  34078. -- Macro: POWI_MAX_MULTS
  34079. If defined, this macro is interpreted as a signed integer C
  34080. expression that specifies the maximum number of floating point
  34081. multiplications that should be emitted when expanding
  34082. exponentiation by an integer constant inline. When this value is
  34083. defined, exponentiation requiring more than this number of
  34084. multiplications is implemented by calling the system library's
  34085. 'pow', 'powf' or 'powl' routines. The default value places no
  34086. upper bound on the multiplication count.
  34087. -- Macro: void TARGET_EXTRA_INCLUDES (const char *SYSROOT, const char
  34088. *IPREFIX, int STDINC)
  34089. This target hook should register any extra include files for the
  34090. target. The parameter STDINC indicates if normal include files are
  34091. present. The parameter SYSROOT is the system root directory. The
  34092. parameter IPREFIX is the prefix for the gcc directory.
  34093. -- Macro: void TARGET_EXTRA_PRE_INCLUDES (const char *SYSROOT, const
  34094. char *IPREFIX, int STDINC)
  34095. This target hook should register any extra include files for the
  34096. target before any standard headers. The parameter STDINC indicates
  34097. if normal include files are present. The parameter SYSROOT is the
  34098. system root directory. The parameter IPREFIX is the prefix for the
  34099. gcc directory.
  34100. -- Macro: void TARGET_OPTF (char *PATH)
  34101. This target hook should register special include paths for the
  34102. target. The parameter PATH is the include to register. On Darwin
  34103. systems, this is used for Framework includes, which have semantics
  34104. that are different from '-I'.
  34105. -- Macro: bool TARGET_USE_LOCAL_THUNK_ALIAS_P (tree FNDECL)
  34106. This target macro returns 'true' if it is safe to use a local alias
  34107. for a virtual function FNDECL when constructing thunks, 'false'
  34108. otherwise. By default, the macro returns 'true' for all functions,
  34109. if a target supports aliases (i.e. defines 'ASM_OUTPUT_DEF'),
  34110. 'false' otherwise,
  34111. -- Macro: TARGET_FORMAT_TYPES
  34112. If defined, this macro is the name of a global variable containing
  34113. target-specific format checking information for the '-Wformat'
  34114. option. The default is to have no target-specific format checks.
  34115. -- Macro: TARGET_N_FORMAT_TYPES
  34116. If defined, this macro is the number of entries in
  34117. 'TARGET_FORMAT_TYPES'.
  34118. -- Macro: TARGET_OVERRIDES_FORMAT_ATTRIBUTES
  34119. If defined, this macro is the name of a global variable containing
  34120. target-specific format overrides for the '-Wformat' option. The
  34121. default is to have no target-specific format overrides. If
  34122. defined, 'TARGET_FORMAT_TYPES' must be defined, too.
  34123. -- Macro: TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT
  34124. If defined, this macro specifies the number of entries in
  34125. 'TARGET_OVERRIDES_FORMAT_ATTRIBUTES'.
  34126. -- Macro: TARGET_OVERRIDES_FORMAT_INIT
  34127. If defined, this macro specifies the optional initialization
  34128. routine for target specific customizations of the system printf and
  34129. scanf formatter settings.
  34130. -- Target Hook: const char * TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN
  34131. (const_tree TYPELIST, const_tree FUNCDECL, const_tree VAL)
  34132. If defined, this macro returns the diagnostic message when it is
  34133. illegal to pass argument VAL to function FUNCDECL with prototype
  34134. TYPELIST.
  34135. -- Target Hook: const char * TARGET_INVALID_CONVERSION (const_tree
  34136. FROMTYPE, const_tree TOTYPE)
  34137. If defined, this macro returns the diagnostic message when it is
  34138. invalid to convert from FROMTYPE to TOTYPE, or 'NULL' if validity
  34139. should be determined by the front end.
  34140. -- Target Hook: const char * TARGET_INVALID_UNARY_OP (int OP,
  34141. const_tree TYPE)
  34142. If defined, this macro returns the diagnostic message when it is
  34143. invalid to apply operation OP (where unary plus is denoted by
  34144. 'CONVERT_EXPR') to an operand of type TYPE, or 'NULL' if validity
  34145. should be determined by the front end.
  34146. -- Target Hook: const char * TARGET_INVALID_BINARY_OP (int OP,
  34147. const_tree TYPE1, const_tree TYPE2)
  34148. If defined, this macro returns the diagnostic message when it is
  34149. invalid to apply operation OP to operands of types TYPE1 and TYPE2,
  34150. or 'NULL' if validity should be determined by the front end.
  34151. -- Target Hook: tree TARGET_PROMOTED_TYPE (const_tree TYPE)
  34152. If defined, this target hook returns the type to which values of
  34153. TYPE should be promoted when they appear in expressions, analogous
  34154. to the integer promotions, or 'NULL_TREE' to use the front end's
  34155. normal promotion rules. This hook is useful when there are
  34156. target-specific types with special promotion rules. This is
  34157. currently used only by the C and C++ front ends.
  34158. -- Target Hook: tree TARGET_CONVERT_TO_TYPE (tree TYPE, tree EXPR)
  34159. If defined, this hook returns the result of converting EXPR to
  34160. TYPE. It should return the converted expression, or 'NULL_TREE' to
  34161. apply the front end's normal conversion rules. This hook is useful
  34162. when there are target-specific types with special conversion rules.
  34163. This is currently used only by the C and C++ front ends.
  34164. -- Target Hook: bool TARGET_VERIFY_TYPE_CONTEXT (location_t LOC,
  34165. type_context_kind CONTEXT, const_tree TYPE, bool SILENT_P)
  34166. If defined, this hook returns false if there is a target-specific
  34167. reason why type TYPE cannot be used in the source language context
  34168. described by CONTEXT. When SILENT_P is false, the hook also
  34169. reports an error against LOC for invalid uses of TYPE.
  34170. Calls to this hook should be made through the global function
  34171. 'verify_type_context', which makes the SILENT_P parameter default
  34172. to false and also handles 'error_mark_node'.
  34173. The default implementation always returns true.
  34174. -- Macro: OBJC_JBLEN
  34175. This macro determines the size of the objective C jump buffer for
  34176. the NeXT runtime. By default, OBJC_JBLEN is defined to an
  34177. innocuous value.
  34178. -- Macro: LIBGCC2_UNWIND_ATTRIBUTE
  34179. Define this macro if any target-specific attributes need to be
  34180. attached to the functions in 'libgcc' that provide low-level
  34181. support for call stack unwinding. It is used in declarations in
  34182. 'unwind-generic.h' and the associated definitions of those
  34183. functions.
  34184. -- Target Hook: void TARGET_UPDATE_STACK_BOUNDARY (void)
  34185. Define this macro to update the current function stack boundary if
  34186. necessary.
  34187. -- Target Hook: rtx TARGET_GET_DRAP_RTX (void)
  34188. This hook should return an rtx for Dynamic Realign Argument Pointer
  34189. (DRAP) if a different argument pointer register is needed to access
  34190. the function's argument list due to stack realignment. Return
  34191. 'NULL' if no DRAP is needed.
  34192. -- Target Hook: bool TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS (void)
  34193. When optimization is disabled, this hook indicates whether or not
  34194. arguments should be allocated to stack slots. Normally, GCC
  34195. allocates stacks slots for arguments when not optimizing in order
  34196. to make debugging easier. However, when a function is declared
  34197. with '__attribute__((naked))', there is no stack frame, and the
  34198. compiler cannot safely move arguments from the registers in which
  34199. they are passed to the stack. Therefore, this hook should return
  34200. true in general, but false for naked functions. The default
  34201. implementation always returns true.
  34202. -- Target Hook: unsigned HOST_WIDE_INT TARGET_CONST_ANCHOR
  34203. On some architectures it can take multiple instructions to
  34204. synthesize a constant. If there is another constant already in a
  34205. register that is close enough in value then it is preferable that
  34206. the new constant is computed from this register using immediate
  34207. addition or subtraction. We accomplish this through CSE. Besides
  34208. the value of the constant we also add a lower and an upper constant
  34209. anchor to the available expressions. These are then queried when
  34210. encountering new constants. The anchors are computed by rounding
  34211. the constant up and down to a multiple of the value of
  34212. 'TARGET_CONST_ANCHOR'. 'TARGET_CONST_ANCHOR' should be the maximum
  34213. positive value accepted by immediate-add plus one. We currently
  34214. assume that the value of 'TARGET_CONST_ANCHOR' is a power of 2.
  34215. For example, on MIPS, where add-immediate takes a 16-bit signed
  34216. value, 'TARGET_CONST_ANCHOR' is set to '0x8000'. The default value
  34217. is zero, which disables this optimization.
  34218. -- Target Hook: unsigned HOST_WIDE_INT TARGET_ASAN_SHADOW_OFFSET (void)
  34219. Return the offset bitwise ored into shifted address to get
  34220. corresponding Address Sanitizer shadow memory address. NULL if
  34221. Address Sanitizer is not supported by the target.
  34222. -- Target Hook: unsigned HOST_WIDE_INT TARGET_MEMMODEL_CHECK (unsigned
  34223. HOST_WIDE_INT VAL)
  34224. Validate target specific memory model mask bits. When NULL no
  34225. target specific memory model bits are allowed.
  34226. -- Target Hook: unsigned char TARGET_ATOMIC_TEST_AND_SET_TRUEVAL
  34227. This value should be set if the result written by
  34228. 'atomic_test_and_set' is not exactly 1, i.e. the 'bool' 'true'.
  34229. -- Target Hook: bool TARGET_HAS_IFUNC_P (void)
  34230. It returns true if the target supports GNU indirect functions. The
  34231. support includes the assembler, linker and dynamic linker. The
  34232. default value of this hook is based on target's libc.
  34233. -- Target Hook: unsigned int TARGET_ATOMIC_ALIGN_FOR_MODE (machine_mode
  34234. MODE)
  34235. If defined, this function returns an appropriate alignment in bits
  34236. for an atomic object of machine_mode MODE. If 0 is returned then
  34237. the default alignment for the specified mode is used.
  34238. -- Target Hook: void TARGET_ATOMIC_ASSIGN_EXPAND_FENV (tree *HOLD, tree
  34239. *CLEAR, tree *UPDATE)
  34240. ISO C11 requires atomic compound assignments that may raise
  34241. floating-point exceptions to raise exceptions corresponding to the
  34242. arithmetic operation whose result was successfully stored in a
  34243. compare-and-exchange sequence. This requires code equivalent to
  34244. calls to 'feholdexcept', 'feclearexcept' and 'feupdateenv' to be
  34245. generated at appropriate points in the compare-and-exchange
  34246. sequence. This hook should set '*HOLD' to an expression equivalent
  34247. to the call to 'feholdexcept', '*CLEAR' to an expression equivalent
  34248. to the call to 'feclearexcept' and '*UPDATE' to an expression
  34249. equivalent to the call to 'feupdateenv'. The three expressions are
  34250. 'NULL_TREE' on entry to the hook and may be left as 'NULL_TREE' if
  34251. no code is required in a particular place. The default
  34252. implementation leaves all three expressions as 'NULL_TREE'. The
  34253. '__atomic_feraiseexcept' function from 'libatomic' may be of use as
  34254. part of the code generated in '*UPDATE'.
  34255. -- Target Hook: void TARGET_RECORD_OFFLOAD_SYMBOL (tree)
  34256. Used when offloaded functions are seen in the compilation unit and
  34257. no named sections are available. It is called once for each symbol
  34258. that must be recorded in the offload function and variable table.
  34259. -- Target Hook: char * TARGET_OFFLOAD_OPTIONS (void)
  34260. Used when writing out the list of options into an LTO file. It
  34261. should translate any relevant target-specific options (such as the
  34262. ABI in use) into one of the '-foffload' options that exist as a
  34263. common interface to express such options. It should return a
  34264. string containing these options, separated by spaces, which the
  34265. caller will free.
  34266. -- Macro: TARGET_SUPPORTS_WIDE_INT
  34267. On older ports, large integers are stored in 'CONST_DOUBLE' rtl
  34268. objects. Newer ports define 'TARGET_SUPPORTS_WIDE_INT' to be
  34269. nonzero to indicate that large integers are stored in
  34270. 'CONST_WIDE_INT' rtl objects. The 'CONST_WIDE_INT' allows very
  34271. large integer constants to be represented. 'CONST_DOUBLE' is
  34272. limited to twice the size of the host's 'HOST_WIDE_INT'
  34273. representation.
  34274. Converting a port mostly requires looking for the places where
  34275. 'CONST_DOUBLE's are used with 'VOIDmode' and replacing that code
  34276. with code that accesses 'CONST_WIDE_INT's. '"grep -i
  34277. const_double"' at the port level gets you to 95% of the changes
  34278. that need to be made. There are a few places that require a deeper
  34279. look.
  34280. * There is no equivalent to 'hval' and 'lval' for
  34281. 'CONST_WIDE_INT's. This would be difficult to express in the
  34282. md language since there are a variable number of elements.
  34283. Most ports only check that 'hval' is either 0 or -1 to see if
  34284. the value is small. As mentioned above, this will no longer
  34285. be necessary since small constants are always 'CONST_INT'. Of
  34286. course there are still a few exceptions, the alpha's
  34287. constraint used by the zap instruction certainly requires
  34288. careful examination by C code. However, all the current code
  34289. does is pass the hval and lval to C code, so evolving the c
  34290. code to look at the 'CONST_WIDE_INT' is not really a large
  34291. change.
  34292. * Because there is no standard template that ports use to
  34293. materialize constants, there is likely to be some futzing that
  34294. is unique to each port in this code.
  34295. * The rtx costs may have to be adjusted to properly account for
  34296. larger constants that are represented as 'CONST_WIDE_INT'.
  34297. All and all it does not take long to convert ports that the
  34298. maintainer is familiar with.
  34299. -- Target Hook: bool TARGET_HAVE_SPECULATION_SAFE_VALUE (bool ACTIVE)
  34300. This hook is used to determine the level of target support for
  34301. '__builtin_speculation_safe_value'. If called with an argument of
  34302. false, it returns true if the target has been modified to support
  34303. this builtin. If called with an argument of true, it returns true
  34304. if the target requires active mitigation execution might be
  34305. speculative.
  34306. The default implementation returns false if the target does not
  34307. define a pattern named 'speculation_barrier'. Else it returns true
  34308. for the first case and whether the pattern is enabled for the
  34309. current compilation for the second case.
  34310. For targets that have no processors that can execute instructions
  34311. speculatively an alternative implemenation of this hook is
  34312. available: simply redefine this hook to
  34313. 'speculation_safe_value_not_needed' along with your other target
  34314. hooks.
  34315. -- Target Hook: rtx TARGET_SPECULATION_SAFE_VALUE (machine_mode MODE,
  34316. rtx RESULT, rtx VAL, rtx FAILVAL)
  34317. This target hook can be used to generate a target-specific code
  34318. sequence that implements the '__builtin_speculation_safe_value'
  34319. built-in function. The function must always return VAL in RESULT
  34320. in mode MODE when the cpu is not executing speculatively, but must
  34321. never return that when speculating until it is known that the
  34322. speculation will not be unwound. The hook supports two primary
  34323. mechanisms for implementing the requirements. The first is to emit
  34324. a speculation barrier which forces the processor to wait until all
  34325. prior speculative operations have been resolved; the second is to
  34326. use a target-specific mechanism that can track the speculation
  34327. state and to return FAILVAL if it can determine that speculation
  34328. must be unwound at a later time.
  34329. The default implementation simply copies VAL to RESULT and emits a
  34330. 'speculation_barrier' instruction if that is defined.
  34331. -- Target Hook: void TARGET_RUN_TARGET_SELFTESTS (void)
  34332. If selftests are enabled, run any selftests for this target.
  34333. 
  34334. File: gccint.info, Node: Host Config, Next: Fragments, Prev: Target Macros, Up: Top
  34335. 19 Host Configuration
  34336. *********************
  34337. Most details about the machine and system on which the compiler is
  34338. actually running are detected by the 'configure' script. Some things
  34339. are impossible for 'configure' to detect; these are described in two
  34340. ways, either by macros defined in a file named 'xm-MACHINE.h' or by hook
  34341. functions in the file specified by the OUT_HOST_HOOK_OBJ variable in
  34342. 'config.gcc'. (The intention is that very few hosts will need a header
  34343. file but nearly every fully supported host will need to override some
  34344. hooks.)
  34345. If you need to define only a few macros, and they have simple
  34346. definitions, consider using the 'xm_defines' variable in your
  34347. 'config.gcc' entry instead of creating a host configuration header.
  34348. *Note System Config::.
  34349. * Menu:
  34350. * Host Common:: Things every host probably needs implemented.
  34351. * Filesystem:: Your host cannot have the letter 'a' in filenames?
  34352. * Host Misc:: Rare configuration options for hosts.
  34353. 
  34354. File: gccint.info, Node: Host Common, Next: Filesystem, Up: Host Config
  34355. 19.1 Host Common
  34356. ================
  34357. Some things are just not portable, even between similar operating
  34358. systems, and are too difficult for autoconf to detect. They get
  34359. implemented using hook functions in the file specified by the
  34360. HOST_HOOK_OBJ variable in 'config.gcc'.
  34361. -- Host Hook: void HOST_HOOKS_EXTRA_SIGNALS (void)
  34362. This host hook is used to set up handling for extra signals. The
  34363. most common thing to do in this hook is to detect stack overflow.
  34364. -- Host Hook: void * HOST_HOOKS_GT_PCH_GET_ADDRESS (size_t SIZE, int
  34365. FD)
  34366. This host hook returns the address of some space that is likely to
  34367. be free in some subsequent invocation of the compiler. We intend
  34368. to load the PCH data at this address such that the data need not be
  34369. relocated. The area should be able to hold SIZE bytes. If the
  34370. host uses 'mmap', FD is an open file descriptor that can be used
  34371. for probing.
  34372. -- Host Hook: int HOST_HOOKS_GT_PCH_USE_ADDRESS (void * ADDRESS, size_t
  34373. SIZE, int FD, size_t OFFSET)
  34374. This host hook is called when a PCH file is about to be loaded. We
  34375. want to load SIZE bytes from FD at OFFSET into memory at ADDRESS.
  34376. The given address will be the result of a previous invocation of
  34377. 'HOST_HOOKS_GT_PCH_GET_ADDRESS'. Return -1 if we couldn't allocate
  34378. SIZE bytes at ADDRESS. Return 0 if the memory is allocated but the
  34379. data is not loaded. Return 1 if the hook has performed everything.
  34380. If the implementation uses reserved address space, free any
  34381. reserved space beyond SIZE, regardless of the return value. If no
  34382. PCH will be loaded, this hook may be called with SIZE zero, in
  34383. which case all reserved address space should be freed.
  34384. Do not try to handle values of ADDRESS that could not have been
  34385. returned by this executable; just return -1. Such values usually
  34386. indicate an out-of-date PCH file (built by some other GCC
  34387. executable), and such a PCH file won't work.
  34388. -- Host Hook: size_t HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY (void);
  34389. This host hook returns the alignment required for allocating
  34390. virtual memory. Usually this is the same as getpagesize, but on
  34391. some hosts the alignment for reserving memory differs from the
  34392. pagesize for committing memory.
  34393. 
  34394. File: gccint.info, Node: Filesystem, Next: Host Misc, Prev: Host Common, Up: Host Config
  34395. 19.2 Host Filesystem
  34396. ====================
  34397. GCC needs to know a number of things about the semantics of the host
  34398. machine's filesystem. Filesystems with Unix and MS-DOS semantics are
  34399. automatically detected. For other systems, you can define the following
  34400. macros in 'xm-MACHINE.h'.
  34401. 'HAVE_DOS_BASED_FILE_SYSTEM'
  34402. This macro is automatically defined by 'system.h' if the host file
  34403. system obeys the semantics defined by MS-DOS instead of Unix. DOS
  34404. file systems are case insensitive, file specifications may begin
  34405. with a drive letter, and both forward slash and backslash ('/' and
  34406. '\') are directory separators.
  34407. 'DIR_SEPARATOR'
  34408. 'DIR_SEPARATOR_2'
  34409. If defined, these macros expand to character constants specifying
  34410. separators for directory names within a file specification.
  34411. 'system.h' will automatically give them appropriate values on Unix
  34412. and MS-DOS file systems. If your file system is neither of these,
  34413. define one or both appropriately in 'xm-MACHINE.h'.
  34414. However, operating systems like VMS, where constructing a pathname
  34415. is more complicated than just stringing together directory names
  34416. separated by a special character, should not define either of these
  34417. macros.
  34418. 'PATH_SEPARATOR'
  34419. If defined, this macro should expand to a character constant
  34420. specifying the separator for elements of search paths. The default
  34421. value is a colon (':'). DOS-based systems usually, but not always,
  34422. use semicolon (';').
  34423. 'VMS'
  34424. Define this macro if the host system is VMS.
  34425. 'HOST_OBJECT_SUFFIX'
  34426. Define this macro to be a C string representing the suffix for
  34427. object files on your host machine. If you do not define this
  34428. macro, GCC will use '.o' as the suffix for object files.
  34429. 'HOST_EXECUTABLE_SUFFIX'
  34430. Define this macro to be a C string representing the suffix for
  34431. executable files on your host machine. If you do not define this
  34432. macro, GCC will use the null string as the suffix for executable
  34433. files.
  34434. 'HOST_BIT_BUCKET'
  34435. A pathname defined by the host operating system, which can be
  34436. opened as a file and written to, but all the information written is
  34437. discarded. This is commonly known as a "bit bucket" or "null
  34438. device". If you do not define this macro, GCC will use '/dev/null'
  34439. as the bit bucket. If the host does not support a bit bucket,
  34440. define this macro to an invalid filename.
  34441. 'UPDATE_PATH_HOST_CANONICALIZE (PATH)'
  34442. If defined, a C statement (sans semicolon) that performs
  34443. host-dependent canonicalization when a path used in a compilation
  34444. driver or preprocessor is canonicalized. PATH is a malloc-ed path
  34445. to be canonicalized. If the C statement does canonicalize PATH
  34446. into a different buffer, the old path should be freed and the new
  34447. buffer should have been allocated with malloc.
  34448. 'DUMPFILE_FORMAT'
  34449. Define this macro to be a C string representing the format to use
  34450. for constructing the index part of debugging dump file names. The
  34451. resultant string must fit in fifteen bytes. The full filename will
  34452. be the concatenation of: the prefix of the assembler file name, the
  34453. string resulting from applying this format to an index number, and
  34454. a string unique to each dump file kind, e.g. 'rtl'.
  34455. If you do not define this macro, GCC will use '.%02d.'. You should
  34456. define this macro if using the default will create an invalid file
  34457. name.
  34458. 'DELETE_IF_ORDINARY'
  34459. Define this macro to be a C statement (sans semicolon) that
  34460. performs host-dependent removal of ordinary temp files in the
  34461. compilation driver.
  34462. If you do not define this macro, GCC will use the default version.
  34463. You should define this macro if the default version does not
  34464. reliably remove the temp file as, for example, on VMS which allows
  34465. multiple versions of a file.
  34466. 'HOST_LACKS_INODE_NUMBERS'
  34467. Define this macro if the host filesystem does not report meaningful
  34468. inode numbers in struct stat.
  34469. 
  34470. File: gccint.info, Node: Host Misc, Prev: Filesystem, Up: Host Config
  34471. 19.3 Host Misc
  34472. ==============
  34473. 'FATAL_EXIT_CODE'
  34474. A C expression for the status code to be returned when the compiler
  34475. exits after serious errors. The default is the system-provided
  34476. macro 'EXIT_FAILURE', or '1' if the system doesn't define that
  34477. macro. Define this macro only if these defaults are incorrect.
  34478. 'SUCCESS_EXIT_CODE'
  34479. A C expression for the status code to be returned when the compiler
  34480. exits without serious errors. (Warnings are not serious errors.)
  34481. The default is the system-provided macro 'EXIT_SUCCESS', or '0' if
  34482. the system doesn't define that macro. Define this macro only if
  34483. these defaults are incorrect.
  34484. 'USE_C_ALLOCA'
  34485. Define this macro if GCC should use the C implementation of
  34486. 'alloca' provided by 'libiberty.a'. This only affects how some
  34487. parts of the compiler itself allocate memory. It does not change
  34488. code generation.
  34489. When GCC is built with a compiler other than itself, the C 'alloca'
  34490. is always used. This is because most other implementations have
  34491. serious bugs. You should define this macro only on a system where
  34492. no stack-based 'alloca' can possibly work. For instance, if a
  34493. system has a small limit on the size of the stack, GCC's builtin
  34494. 'alloca' will not work reliably.
  34495. 'COLLECT2_HOST_INITIALIZATION'
  34496. If defined, a C statement (sans semicolon) that performs
  34497. host-dependent initialization when 'collect2' is being initialized.
  34498. 'GCC_DRIVER_HOST_INITIALIZATION'
  34499. If defined, a C statement (sans semicolon) that performs
  34500. host-dependent initialization when a compilation driver is being
  34501. initialized.
  34502. 'HOST_LONG_LONG_FORMAT'
  34503. If defined, the string used to indicate an argument of type 'long
  34504. long' to functions like 'printf'. The default value is '"ll"'.
  34505. 'HOST_LONG_FORMAT'
  34506. If defined, the string used to indicate an argument of type 'long'
  34507. to functions like 'printf'. The default value is '"l"'.
  34508. 'HOST_PTR_PRINTF'
  34509. If defined, the string used to indicate an argument of type 'void
  34510. *' to functions like 'printf'. The default value is '"%p"'.
  34511. In addition, if 'configure' generates an incorrect definition of any of
  34512. the macros in 'auto-host.h', you can override that definition in a host
  34513. configuration header. If you need to do this, first see if it is
  34514. possible to fix 'configure'.
  34515. 
  34516. File: gccint.info, Node: Fragments, Next: Collect2, Prev: Host Config, Up: Top
  34517. 20 Makefile Fragments
  34518. *********************
  34519. When you configure GCC using the 'configure' script, it will construct
  34520. the file 'Makefile' from the template file 'Makefile.in'. When it does
  34521. this, it can incorporate makefile fragments from the 'config' directory.
  34522. These are used to set Makefile parameters that are not amenable to being
  34523. calculated by autoconf. The list of fragments to incorporate is set by
  34524. 'config.gcc' (and occasionally 'config.build' and 'config.host'); *Note
  34525. System Config::.
  34526. Fragments are named either 't-TARGET' or 'x-HOST', depending on whether
  34527. they are relevant to configuring GCC to produce code for a particular
  34528. target, or to configuring GCC to run on a particular host. Here TARGET
  34529. and HOST are mnemonics which usually have some relationship to the
  34530. canonical system name, but no formal connection.
  34531. If these files do not exist, it means nothing needs to be added for a
  34532. given target or host. Most targets need a few 't-TARGET' fragments, but
  34533. needing 'x-HOST' fragments is rare.
  34534. * Menu:
  34535. * Target Fragment:: Writing 't-TARGET' files.
  34536. * Host Fragment:: Writing 'x-HOST' files.
  34537. 
  34538. File: gccint.info, Node: Target Fragment, Next: Host Fragment, Up: Fragments
  34539. 20.1 Target Makefile Fragments
  34540. ==============================
  34541. Target makefile fragments can set these Makefile variables.
  34542. 'LIBGCC2_CFLAGS'
  34543. Compiler flags to use when compiling 'libgcc2.c'.
  34544. 'LIB2FUNCS_EXTRA'
  34545. A list of source file names to be compiled or assembled and
  34546. inserted into 'libgcc.a'.
  34547. 'CRTSTUFF_T_CFLAGS'
  34548. Special flags used when compiling 'crtstuff.c'. *Note
  34549. Initialization::.
  34550. 'CRTSTUFF_T_CFLAGS_S'
  34551. Special flags used when compiling 'crtstuff.c' for shared linking.
  34552. Used if you use 'crtbeginS.o' and 'crtendS.o' in 'EXTRA-PARTS'.
  34553. *Note Initialization::.
  34554. 'MULTILIB_OPTIONS'
  34555. For some targets, invoking GCC in different ways produces objects
  34556. that cannot be linked together. For example, for some targets GCC
  34557. produces both big and little endian code. For these targets, you
  34558. must arrange for multiple versions of 'libgcc.a' to be compiled,
  34559. one for each set of incompatible options. When GCC invokes the
  34560. linker, it arranges to link in the right version of 'libgcc.a',
  34561. based on the command line options used.
  34562. The 'MULTILIB_OPTIONS' macro lists the set of options for which
  34563. special versions of 'libgcc.a' must be built. Write options that
  34564. are mutually incompatible side by side, separated by a slash.
  34565. Write options that may be used together separated by a space. The
  34566. build procedure will build all combinations of compatible options.
  34567. For example, if you set 'MULTILIB_OPTIONS' to 'm68000/m68020
  34568. msoft-float', 'Makefile' will build special versions of 'libgcc.a'
  34569. using the following sets of options: '-m68000', '-m68020',
  34570. '-msoft-float', '-m68000 -msoft-float', and '-m68020 -msoft-float'.
  34571. 'MULTILIB_DIRNAMES'
  34572. If 'MULTILIB_OPTIONS' is used, this variable specifies the
  34573. directory names that should be used to hold the various libraries.
  34574. Write one element in 'MULTILIB_DIRNAMES' for each element in
  34575. 'MULTILIB_OPTIONS'. If 'MULTILIB_DIRNAMES' is not used, the
  34576. default value will be 'MULTILIB_OPTIONS', with all slashes treated
  34577. as spaces.
  34578. 'MULTILIB_DIRNAMES' describes the multilib directories using GCC
  34579. conventions and is applied to directories that are part of the GCC
  34580. installation. When multilib-enabled, the compiler will add a
  34581. subdirectory of the form PREFIX/MULTILIB before each directory in
  34582. the search path for libraries and crt files.
  34583. For example, if 'MULTILIB_OPTIONS' is set to 'm68000/m68020
  34584. msoft-float', then the default value of 'MULTILIB_DIRNAMES' is
  34585. 'm68000 m68020 msoft-float'. You may specify a different value if
  34586. you desire a different set of directory names.
  34587. 'MULTILIB_MATCHES'
  34588. Sometimes the same option may be written in two different ways. If
  34589. an option is listed in 'MULTILIB_OPTIONS', GCC needs to know about
  34590. any synonyms. In that case, set 'MULTILIB_MATCHES' to a list of
  34591. items of the form 'option=option' to describe all relevant
  34592. synonyms. For example, 'm68000=mc68000 m68020=mc68020'.
  34593. 'MULTILIB_EXCEPTIONS'
  34594. Sometimes when there are multiple sets of 'MULTILIB_OPTIONS' being
  34595. specified, there are combinations that should not be built. In
  34596. that case, set 'MULTILIB_EXCEPTIONS' to be all of the switch
  34597. exceptions in shell case syntax that should not be built.
  34598. For example the ARM processor cannot execute both hardware floating
  34599. point instructions and the reduced size THUMB instructions at the
  34600. same time, so there is no need to build libraries with both of
  34601. these options enabled. Therefore 'MULTILIB_EXCEPTIONS' is set to:
  34602. *mthumb/*mhard-float*
  34603. 'MULTILIB_REQUIRED'
  34604. Sometimes when there are only a few combinations are required, it
  34605. would be a big effort to come up with a 'MULTILIB_EXCEPTIONS' list
  34606. to cover all undesired ones. In such a case, just listing all the
  34607. required combinations in 'MULTILIB_REQUIRED' would be more
  34608. straightforward.
  34609. The way to specify the entries in 'MULTILIB_REQUIRED' is same with
  34610. the way used for 'MULTILIB_EXCEPTIONS', only this time what are
  34611. required will be specified. Suppose there are multiple sets of
  34612. 'MULTILIB_OPTIONS' and only two combinations are required, one for
  34613. ARMv7-M and one for ARMv7-R with hard floating-point ABI and FPU,
  34614. the 'MULTILIB_REQUIRED' can be set to:
  34615. MULTILIB_REQUIRED = mthumb/march=armv7-m
  34616. MULTILIB_REQUIRED += march=armv7-r/mfloat-abi=hard/mfpu=vfpv3-d16
  34617. The 'MULTILIB_REQUIRED' can be used together with
  34618. 'MULTILIB_EXCEPTIONS'. The option combinations generated from
  34619. 'MULTILIB_OPTIONS' will be filtered by 'MULTILIB_EXCEPTIONS' and
  34620. then by 'MULTILIB_REQUIRED'.
  34621. 'MULTILIB_REUSE'
  34622. Sometimes it is desirable to reuse one existing multilib for
  34623. different sets of options. Such kind of reuse can minimize the
  34624. number of multilib variants. And for some targets it is better to
  34625. reuse an existing multilib than to fall back to default multilib
  34626. when there is no corresponding multilib. This can be done by
  34627. adding reuse rules to 'MULTILIB_REUSE'.
  34628. A reuse rule is comprised of two parts connected by equality sign.
  34629. The left part is the option set used to build multilib and the
  34630. right part is the option set that will reuse this multilib. Both
  34631. parts should only use options specified in 'MULTILIB_OPTIONS' and
  34632. the equality signs found in options name should be replaced with
  34633. periods. An explicit period in the rule can be escaped by
  34634. preceding it with a backslash. The order of options in the left
  34635. part matters and should be same with those specified in
  34636. 'MULTILIB_REQUIRED' or aligned with the order in
  34637. 'MULTILIB_OPTIONS'. There is no such limitation for options in the
  34638. right part as we don't build multilib from them.
  34639. 'MULTILIB_REUSE' is different from 'MULTILIB_MATCHES' in that it
  34640. sets up relations between two option sets rather than two options.
  34641. Here is an example to demo how we reuse libraries built in Thumb
  34642. mode for applications built in ARM mode:
  34643. MULTILIB_REUSE = mthumb/march.armv7-r=marm/march.armv7-r
  34644. Before the advent of 'MULTILIB_REUSE', GCC select multilib by
  34645. comparing command line options with options used to build multilib.
  34646. The 'MULTILIB_REUSE' is complementary to that way. Only when the
  34647. original comparison matches nothing it will work to see if it is OK
  34648. to reuse some existing multilib.
  34649. 'MULTILIB_EXTRA_OPTS'
  34650. Sometimes it is desirable that when building multiple versions of
  34651. 'libgcc.a' certain options should always be passed on to the
  34652. compiler. In that case, set 'MULTILIB_EXTRA_OPTS' to be the list
  34653. of options to be used for all builds. If you set this, you should
  34654. probably set 'CRTSTUFF_T_CFLAGS' to a dash followed by it.
  34655. 'MULTILIB_OSDIRNAMES'
  34656. If 'MULTILIB_OPTIONS' is used, this variable specifies a list of
  34657. subdirectory names, that are used to modify the search path
  34658. depending on the chosen multilib. Unlike 'MULTILIB_DIRNAMES',
  34659. 'MULTILIB_OSDIRNAMES' describes the multilib directories using
  34660. operating systems conventions, and is applied to the directories
  34661. such as 'lib' or those in the 'LIBRARY_PATH' environment variable.
  34662. The format is either the same as of 'MULTILIB_DIRNAMES', or a set
  34663. of mappings. When it is the same as 'MULTILIB_DIRNAMES', it
  34664. describes the multilib directories using operating system
  34665. conventions, rather than GCC conventions. When it is a set of
  34666. mappings of the form GCCDIR=OSDIR, the left side gives the GCC
  34667. convention and the right gives the equivalent OS defined location.
  34668. If the OSDIR part begins with a '!', GCC will not search in the
  34669. non-multilib directory and use exclusively the multilib directory.
  34670. Otherwise, the compiler will examine the search path for libraries
  34671. and crt files twice; the first time it will add MULTILIB to each
  34672. directory in the search path, the second it will not.
  34673. For configurations that support both multilib and multiarch,
  34674. 'MULTILIB_OSDIRNAMES' also encodes the multiarch name, thus
  34675. subsuming 'MULTIARCH_DIRNAME'. The multiarch name is appended to
  34676. each directory name, separated by a colon (e.g.
  34677. '../lib32:i386-linux-gnu').
  34678. Each multiarch subdirectory will be searched before the
  34679. corresponding OS multilib directory, for example
  34680. '/lib/i386-linux-gnu' before '/lib/../lib32'. The multiarch name
  34681. will also be used to modify the system header search path, as
  34682. explained for 'MULTIARCH_DIRNAME'.
  34683. 'MULTIARCH_DIRNAME'
  34684. This variable specifies the multiarch name for configurations that
  34685. are multiarch-enabled but not multilibbed configurations.
  34686. The multiarch name is used to augment the search path for
  34687. libraries, crt files and system header files with additional
  34688. locations. The compiler will add a multiarch subdirectory of the
  34689. form PREFIX/MULTIARCH before each directory in the library and crt
  34690. search path. It will also add two directories
  34691. 'LOCAL_INCLUDE_DIR'/MULTIARCH and
  34692. 'NATIVE_SYSTEM_HEADER_DIR'/MULTIARCH) to the system header search
  34693. path, respectively before 'LOCAL_INCLUDE_DIR' and
  34694. 'NATIVE_SYSTEM_HEADER_DIR'.
  34695. 'MULTIARCH_DIRNAME' is not used for configurations that support
  34696. both multilib and multiarch. In that case, multiarch names are
  34697. encoded in 'MULTILIB_OSDIRNAMES' instead.
  34698. More documentation about multiarch can be found at
  34699. <https://wiki.debian.org/Multiarch>.
  34700. 'SPECS'
  34701. Unfortunately, setting 'MULTILIB_EXTRA_OPTS' is not enough, since
  34702. it does not affect the build of target libraries, at least not the
  34703. build of the default multilib. One possible work-around is to use
  34704. 'DRIVER_SELF_SPECS' to bring options from the 'specs' file as if
  34705. they had been passed in the compiler driver command line. However,
  34706. you don't want to be adding these options after the toolchain is
  34707. installed, so you can instead tweak the 'specs' file that will be
  34708. used during the toolchain build, while you still install the
  34709. original, built-in 'specs'. The trick is to set 'SPECS' to some
  34710. other filename (say 'specs.install'), that will then be created out
  34711. of the built-in specs, and introduce a 'Makefile' rule to generate
  34712. the 'specs' file that's going to be used at build time out of your
  34713. 'specs.install'.
  34714. 'T_CFLAGS'
  34715. These are extra flags to pass to the C compiler. They are used
  34716. both when building GCC, and when compiling things with the
  34717. just-built GCC. This variable is deprecated and should not be
  34718. used.
  34719. 
  34720. File: gccint.info, Node: Host Fragment, Prev: Target Fragment, Up: Fragments
  34721. 20.2 Host Makefile Fragments
  34722. ============================
  34723. The use of 'x-HOST' fragments is discouraged. You should only use it
  34724. for makefile dependencies.
  34725. 
  34726. File: gccint.info, Node: Collect2, Next: Header Dirs, Prev: Fragments, Up: Top
  34727. 21 'collect2'
  34728. *************
  34729. GCC uses a utility called 'collect2' on nearly all systems to arrange to
  34730. call various initialization functions at start time.
  34731. The program 'collect2' works by linking the program once and looking
  34732. through the linker output file for symbols with particular names
  34733. indicating they are constructor functions. If it finds any, it creates
  34734. a new temporary '.c' file containing a table of them, compiles it, and
  34735. links the program a second time including that file.
  34736. The actual calls to the constructors are carried out by a subroutine
  34737. called '__main', which is called (automatically) at the beginning of the
  34738. body of 'main' (provided 'main' was compiled with GNU CC). Calling
  34739. '__main' is necessary, even when compiling C code, to allow linking C
  34740. and C++ object code together. (If you use '-nostdlib', you get an
  34741. unresolved reference to '__main', since it's defined in the standard GCC
  34742. library. Include '-lgcc' at the end of your compiler command line to
  34743. resolve this reference.)
  34744. The program 'collect2' is installed as 'ld' in the directory where the
  34745. passes of the compiler are installed. When 'collect2' needs to find the
  34746. _real_ 'ld', it tries the following file names:
  34747. * a hard coded linker file name, if GCC was configured with the
  34748. '--with-ld' option.
  34749. * 'real-ld' in the directories listed in the compiler's search
  34750. directories.
  34751. * 'real-ld' in the directories listed in the environment variable
  34752. 'PATH'.
  34753. * The file specified in the 'REAL_LD_FILE_NAME' configuration macro,
  34754. if specified.
  34755. * 'ld' in the compiler's search directories, except that 'collect2'
  34756. will not execute itself recursively.
  34757. * 'ld' in 'PATH'.
  34758. "The compiler's search directories" means all the directories where
  34759. 'gcc' searches for passes of the compiler. This includes directories
  34760. that you specify with '-B'.
  34761. Cross-compilers search a little differently:
  34762. * 'real-ld' in the compiler's search directories.
  34763. * 'TARGET-real-ld' in 'PATH'.
  34764. * The file specified in the 'REAL_LD_FILE_NAME' configuration macro,
  34765. if specified.
  34766. * 'ld' in the compiler's search directories.
  34767. * 'TARGET-ld' in 'PATH'.
  34768. 'collect2' explicitly avoids running 'ld' using the file name under
  34769. which 'collect2' itself was invoked. In fact, it remembers up a list of
  34770. such names--in case one copy of 'collect2' finds another copy (or
  34771. version) of 'collect2' installed as 'ld' in a second place in the search
  34772. path.
  34773. 'collect2' searches for the utilities 'nm' and 'strip' using the same
  34774. algorithm as above for 'ld'.
  34775. 
  34776. File: gccint.info, Node: Header Dirs, Next: Type Information, Prev: Collect2, Up: Top
  34777. 22 Standard Header File Directories
  34778. ***********************************
  34779. 'GCC_INCLUDE_DIR' means the same thing for native and cross. It is
  34780. where GCC stores its private include files, and also where GCC stores
  34781. the fixed include files. A cross compiled GCC runs 'fixincludes' on the
  34782. header files in '$(tooldir)/include'. (If the cross compilation header
  34783. files need to be fixed, they must be installed before GCC is built. If
  34784. the cross compilation header files are already suitable for GCC, nothing
  34785. special need be done).
  34786. 'GPLUSPLUS_INCLUDE_DIR' means the same thing for native and cross. It
  34787. is where 'g++' looks first for header files. The C++ library installs
  34788. only target independent header files in that directory.
  34789. 'LOCAL_INCLUDE_DIR' is used only by native compilers. GCC doesn't
  34790. install anything there. It is normally '/usr/local/include'. This is
  34791. where local additions to a packaged system should place header files.
  34792. 'CROSS_INCLUDE_DIR' is used only by cross compilers. GCC doesn't
  34793. install anything there.
  34794. 'TOOL_INCLUDE_DIR' is used for both native and cross compilers. It is
  34795. the place for other packages to install header files that GCC will use.
  34796. For a cross-compiler, this is the equivalent of '/usr/include'. When
  34797. you build a cross-compiler, 'fixincludes' processes any header files in
  34798. this directory.
  34799. 
  34800. File: gccint.info, Node: Type Information, Next: Plugins, Prev: Header Dirs, Up: Top
  34801. 23 Memory Management and Type Information
  34802. *****************************************
  34803. GCC uses some fairly sophisticated memory management techniques, which
  34804. involve determining information about GCC's data structures from GCC's
  34805. source code and using this information to perform garbage collection and
  34806. implement precompiled headers.
  34807. A full C++ parser would be too complicated for this task, so a limited
  34808. subset of C++ is interpreted and special markers are used to determine
  34809. what parts of the source to look at. All 'struct', 'union' and
  34810. 'template' structure declarations that define data structures that are
  34811. allocated under control of the garbage collector must be marked. All
  34812. global variables that hold pointers to garbage-collected memory must
  34813. also be marked. Finally, all global variables that need to be saved and
  34814. restored by a precompiled header must be marked. (The precompiled
  34815. header mechanism can only save static variables if they're scalar.
  34816. Complex data structures must be allocated in garbage-collected memory to
  34817. be saved in a precompiled header.)
  34818. The full format of a marker is
  34819. GTY (([OPTION] [(PARAM)], [OPTION] [(PARAM)] ...))
  34820. but in most cases no options are needed. The outer double parentheses
  34821. are still necessary, though: 'GTY(())'. Markers can appear:
  34822. * In a structure definition, before the open brace;
  34823. * In a global variable declaration, after the keyword 'static' or
  34824. 'extern'; and
  34825. * In a structure field definition, before the name of the field.
  34826. Here are some examples of marking simple data structures and globals.
  34827. struct GTY(()) TAG
  34828. {
  34829. FIELDS...
  34830. };
  34831. typedef struct GTY(()) TAG
  34832. {
  34833. FIELDS...
  34834. } *TYPENAME;
  34835. static GTY(()) struct TAG *LIST; /* points to GC memory */
  34836. static GTY(()) int COUNTER; /* save counter in a PCH */
  34837. The parser understands simple typedefs such as 'typedef struct TAG
  34838. *NAME;' and 'typedef int NAME;'. These don't need to be marked.
  34839. Since 'gengtype''s understanding of C++ is limited, there are several
  34840. constructs and declarations that are not supported inside
  34841. classes/structures marked for automatic GC code generation. The
  34842. following C++ constructs produce a 'gengtype' error on
  34843. structures/classes marked for automatic GC code generation:
  34844. * Type definitions inside classes/structures are not supported.
  34845. * Enumerations inside classes/structures are not supported.
  34846. If you have a class or structure using any of the above constructs, you
  34847. need to mark that class as 'GTY ((user))' and provide your own marking
  34848. routines (see section *note User GC:: for details).
  34849. It is always valid to include function definitions inside classes.
  34850. Those are always ignored by 'gengtype', as it only cares about data
  34851. members.
  34852. * Menu:
  34853. * GTY Options:: What goes inside a 'GTY(())'.
  34854. * Inheritance and GTY:: Adding GTY to a class hierarchy.
  34855. * User GC:: Adding user-provided GC marking routines.
  34856. * GGC Roots:: Making global variables GGC roots.
  34857. * Files:: How the generated files work.
  34858. * Invoking the garbage collector:: How to invoke the garbage collector.
  34859. * Troubleshooting:: When something does not work as expected.
  34860. 
  34861. File: gccint.info, Node: GTY Options, Next: Inheritance and GTY, Up: Type Information
  34862. 23.1 The Inside of a 'GTY(())'
  34863. ==============================
  34864. Sometimes the C code is not enough to fully describe the type structure.
  34865. Extra information can be provided with 'GTY' options and additional
  34866. markers. Some options take a parameter, which may be either a string or
  34867. a type name, depending on the parameter. If an option takes no
  34868. parameter, it is acceptable either to omit the parameter entirely, or to
  34869. provide an empty string as a parameter. For example, 'GTY ((skip))' and
  34870. 'GTY ((skip ("")))' are equivalent.
  34871. When the parameter is a string, often it is a fragment of C code. Four
  34872. special escapes may be used in these strings, to refer to pieces of the
  34873. data structure being marked:
  34874. '%h'
  34875. The current structure.
  34876. '%1'
  34877. The structure that immediately contains the current structure.
  34878. '%0'
  34879. The outermost structure that contains the current structure.
  34880. '%a'
  34881. A partial expression of the form '[i1][i2]...' that indexes the
  34882. array item currently being marked.
  34883. For instance, suppose that you have a structure of the form
  34884. struct A {
  34885. ...
  34886. };
  34887. struct B {
  34888. struct A foo[12];
  34889. };
  34890. and 'b' is a variable of type 'struct B'. When marking 'b.foo[11]',
  34891. '%h' would expand to 'b.foo[11]', '%0' and '%1' would both expand to
  34892. 'b', and '%a' would expand to '[11]'.
  34893. As in ordinary C, adjacent strings will be concatenated; this is
  34894. helpful when you have a complicated expression.
  34895. GTY ((chain_next ("TREE_CODE (&%h.generic) == INTEGER_TYPE"
  34896. " ? TYPE_NEXT_VARIANT (&%h.generic)"
  34897. " : TREE_CHAIN (&%h.generic)")))
  34898. The available options are:
  34899. 'length ("EXPRESSION")'
  34900. There are two places the type machinery will need to be explicitly
  34901. told the length of an array of non-atomic objects. The first case
  34902. is when a structure ends in a variable-length array, like this:
  34903. struct GTY(()) rtvec_def {
  34904. int num_elem; /* number of elements */
  34905. rtx GTY ((length ("%h.num_elem"))) elem[1];
  34906. };
  34907. In this case, the 'length' option is used to override the specified
  34908. array length (which should usually be '1'). The parameter of the
  34909. option is a fragment of C code that calculates the length.
  34910. The second case is when a structure or a global variable contains a
  34911. pointer to an array, like this:
  34912. struct gimple_omp_for_iter * GTY((length ("%h.collapse"))) iter;
  34913. In this case, 'iter' has been allocated by writing something like
  34914. x->iter = ggc_alloc_cleared_vec_gimple_omp_for_iter (collapse);
  34915. and the 'collapse' provides the length of the field.
  34916. This second use of 'length' also works on global variables, like:
  34917. static GTY((length("reg_known_value_size"))) rtx *reg_known_value;
  34918. Note that the 'length' option is only meant for use with arrays of
  34919. non-atomic objects, that is, objects that contain pointers pointing
  34920. to other GTY-managed objects. For other GC-allocated arrays and
  34921. strings you should use 'atomic'.
  34922. 'skip'
  34923. If 'skip' is applied to a field, the type machinery will ignore it.
  34924. This is somewhat dangerous; the only safe use is in a union when
  34925. one field really isn't ever used.
  34926. 'for_user'
  34927. Use this to mark types that need to be marked by user gc routines,
  34928. but are not refered to in a template argument. So if you have some
  34929. user gc type T1 and a non user gc type T2 you can give T2 the
  34930. for_user option so that the marking functions for T1 can call non
  34931. mangled functions to mark T2.
  34932. 'desc ("EXPRESSION")'
  34933. 'tag ("CONSTANT")'
  34934. 'default'
  34935. The type machinery needs to be told which field of a 'union' is
  34936. currently active. This is done by giving each field a constant
  34937. 'tag' value, and then specifying a discriminator using 'desc'. The
  34938. value of the expression given by 'desc' is compared against each
  34939. 'tag' value, each of which should be different. If no 'tag' is
  34940. matched, the field marked with 'default' is used if there is one,
  34941. otherwise no field in the union will be marked.
  34942. In the 'desc' option, the "current structure" is the union that it
  34943. discriminates. Use '%1' to mean the structure containing it.
  34944. There are no escapes available to the 'tag' option, since it is a
  34945. constant.
  34946. For example,
  34947. struct GTY(()) tree_binding
  34948. {
  34949. struct tree_common common;
  34950. union tree_binding_u {
  34951. tree GTY ((tag ("0"))) scope;
  34952. struct cp_binding_level * GTY ((tag ("1"))) level;
  34953. } GTY ((desc ("BINDING_HAS_LEVEL_P ((tree)&%0)"))) xscope;
  34954. tree value;
  34955. };
  34956. In this example, the value of BINDING_HAS_LEVEL_P when applied to a
  34957. 'struct tree_binding *' is presumed to be 0 or 1. If 1, the type
  34958. mechanism will treat the field 'level' as being present and if 0,
  34959. will treat the field 'scope' as being present.
  34960. The 'desc' and 'tag' options can also be used for inheritance to
  34961. denote which subclass an instance is. See *note Inheritance and
  34962. GTY:: for more information.
  34963. 'cache'
  34964. When the 'cache' option is applied to a global variable
  34965. gt_clear_cache is called on that variable between the mark and
  34966. sweep phases of garbage collection. The gt_clear_cache function is
  34967. free to mark blocks as used, or to clear pointers in the variable.
  34968. 'deletable'
  34969. 'deletable', when applied to a global variable, indicates that when
  34970. garbage collection runs, there's no need to mark anything pointed
  34971. to by this variable, it can just be set to 'NULL' instead. This is
  34972. used to keep a list of free structures around for re-use.
  34973. 'maybe_undef'
  34974. When applied to a field, 'maybe_undef' indicates that it's OK if
  34975. the structure that this fields points to is never defined, so long
  34976. as this field is always 'NULL'. This is used to avoid requiring
  34977. backends to define certain optional structures. It doesn't work
  34978. with language frontends.
  34979. 'nested_ptr (TYPE, "TO EXPRESSION", "FROM EXPRESSION")'
  34980. The type machinery expects all pointers to point to the start of an
  34981. object. Sometimes for abstraction purposes it's convenient to have
  34982. a pointer which points inside an object. So long as it's possible
  34983. to convert the original object to and from the pointer, such
  34984. pointers can still be used. TYPE is the type of the original
  34985. object, the TO EXPRESSION returns the pointer given the original
  34986. object, and the FROM EXPRESSION returns the original object given
  34987. the pointer. The pointer will be available using the '%h' escape.
  34988. 'chain_next ("EXPRESSION")'
  34989. 'chain_prev ("EXPRESSION")'
  34990. 'chain_circular ("EXPRESSION")'
  34991. It's helpful for the type machinery to know if objects are often
  34992. chained together in long lists; this lets it generate code that
  34993. uses less stack space by iterating along the list instead of
  34994. recursing down it. 'chain_next' is an expression for the next item
  34995. in the list, 'chain_prev' is an expression for the previous item.
  34996. For singly linked lists, use only 'chain_next'; for doubly linked
  34997. lists, use both. The machinery requires that taking the next item
  34998. of the previous item gives the original item. 'chain_circular' is
  34999. similar to 'chain_next', but can be used for circular single linked
  35000. lists.
  35001. 'reorder ("FUNCTION NAME")'
  35002. Some data structures depend on the relative ordering of pointers.
  35003. If the precompiled header machinery needs to change that ordering,
  35004. it will call the function referenced by the 'reorder' option,
  35005. before changing the pointers in the object that's pointed to by the
  35006. field the option applies to. The function must take four
  35007. arguments, with the signature
  35008. 'void *, void *, gt_pointer_operator, void *'. The first parameter
  35009. is a pointer to the structure that contains the object being
  35010. updated, or the object itself if there is no containing structure.
  35011. The second parameter is a cookie that should be ignored. The third
  35012. parameter is a routine that, given a pointer, will update it to its
  35013. correct new value. The fourth parameter is a cookie that must be
  35014. passed to the second parameter.
  35015. PCH cannot handle data structures that depend on the absolute
  35016. values of pointers. 'reorder' functions can be expensive. When
  35017. possible, it is better to depend on properties of the data, like an
  35018. ID number or the hash of a string instead.
  35019. 'atomic'
  35020. The 'atomic' option can only be used with pointers. It informs the
  35021. GC machinery that the memory that the pointer points to does not
  35022. contain any pointers, and hence it should be treated by the GC and
  35023. PCH machinery as an "atomic" block of memory that does not need to
  35024. be examined when scanning memory for pointers. In particular, the
  35025. machinery will not scan that memory for pointers to mark them as
  35026. reachable (when marking pointers for GC) or to relocate them (when
  35027. writing a PCH file).
  35028. The 'atomic' option differs from the 'skip' option. 'atomic' keeps
  35029. the memory under Garbage Collection, but makes the GC ignore the
  35030. contents of the memory. 'skip' is more drastic in that it causes
  35031. the pointer and the memory to be completely ignored by the Garbage
  35032. Collector. So, memory marked as 'atomic' is automatically freed
  35033. when no longer reachable, while memory marked as 'skip' is not.
  35034. The 'atomic' option must be used with great care, because all sorts
  35035. of problem can occur if used incorrectly, that is, if the memory
  35036. the pointer points to does actually contain a pointer.
  35037. Here is an example of how to use it:
  35038. struct GTY(()) my_struct {
  35039. int number_of_elements;
  35040. unsigned int * GTY ((atomic)) elements;
  35041. };
  35042. In this case, 'elements' is a pointer under GC, and the memory it
  35043. points to needs to be allocated using the Garbage Collector, and
  35044. will be freed automatically by the Garbage Collector when it is no
  35045. longer referenced. But the memory that the pointer points to is an
  35046. array of 'unsigned int' elements, and the GC must not try to scan
  35047. it to find pointers to mark or relocate, which is why it is marked
  35048. with the 'atomic' option.
  35049. Note that, currently, global variables cannot be marked with
  35050. 'atomic'; only fields of a struct can. This is a known limitation.
  35051. It would be useful to be able to mark global pointers with 'atomic'
  35052. to make the PCH machinery aware of them so that they are saved and
  35053. restored correctly to PCH files.
  35054. 'special ("NAME")'
  35055. The 'special' option is used to mark types that have to be dealt
  35056. with by special case machinery. The parameter is the name of the
  35057. special case. See 'gengtype.c' for further details. Avoid adding
  35058. new special cases unless there is no other alternative.
  35059. 'user'
  35060. The 'user' option indicates that the code to mark structure fields
  35061. is completely handled by user-provided routines. See section *note
  35062. User GC:: for details on what functions need to be provided.
  35063. 
  35064. File: gccint.info, Node: Inheritance and GTY, Next: User GC, Prev: GTY Options, Up: Type Information
  35065. 23.2 Support for inheritance
  35066. ============================
  35067. gengtype has some support for simple class hierarchies. You can use
  35068. this to have gengtype autogenerate marking routines, provided:
  35069. * There must be a concrete base class, with a discriminator
  35070. expression that can be used to identify which subclass an instance
  35071. is.
  35072. * Only single inheritance is used.
  35073. * None of the classes within the hierarchy are templates.
  35074. If your class hierarchy does not fit in this pattern, you must use
  35075. *note User GC:: instead.
  35076. The base class and its discriminator must be identified using the
  35077. "desc" option. Each concrete subclass must use the "tag" option to
  35078. identify which value of the discriminator it corresponds to.
  35079. Every class in the hierarchy must have a 'GTY(())' marker, as gengtype
  35080. will only attempt to parse classes that have such a marker (1).
  35081. class GTY((desc("%h.kind"), tag("0"))) example_base
  35082. {
  35083. public:
  35084. int kind;
  35085. tree a;
  35086. };
  35087. class GTY((tag("1"))) some_subclass : public example_base
  35088. {
  35089. public:
  35090. tree b;
  35091. };
  35092. class GTY((tag("2"))) some_other_subclass : public example_base
  35093. {
  35094. public:
  35095. tree c;
  35096. };
  35097. The generated marking routines for the above will contain a "switch" on
  35098. "kind", visiting all appropriate fields. For example, if kind is 2, it
  35099. will cast to "some_other_subclass" and visit fields a, b, and c.
  35100. ---------- Footnotes ----------
  35101. (1) Classes lacking such a marker will not be identified as being
  35102. part of the hierarchy, and so the marking routines will not handle them,
  35103. leading to a assertion failure within the marking routines due to an
  35104. unknown tag value (assuming that assertions are enabled).
  35105. 
  35106. File: gccint.info, Node: User GC, Next: GGC Roots, Prev: Inheritance and GTY, Up: Type Information
  35107. 23.3 Support for user-provided GC marking routines
  35108. ==================================================
  35109. The garbage collector supports types for which no automatic marking code
  35110. is generated. For these types, the user is required to provide three
  35111. functions: one to act as a marker for garbage collection, and two
  35112. functions to act as marker and pointer walker for pre-compiled headers.
  35113. Given a structure 'struct GTY((user)) my_struct', the following
  35114. functions should be defined to mark 'my_struct':
  35115. void gt_ggc_mx (my_struct *p)
  35116. {
  35117. /* This marks field 'fld'. */
  35118. gt_ggc_mx (p->fld);
  35119. }
  35120. void gt_pch_nx (my_struct *p)
  35121. {
  35122. /* This marks field 'fld'. */
  35123. gt_pch_nx (tp->fld);
  35124. }
  35125. void gt_pch_nx (my_struct *p, gt_pointer_operator op, void *cookie)
  35126. {
  35127. /* For every field 'fld', call the given pointer operator. */
  35128. op (&(tp->fld), cookie);
  35129. }
  35130. In general, each marker 'M' should call 'M' for every pointer field in
  35131. the structure. Fields that are not allocated in GC or are not pointers
  35132. must be ignored.
  35133. For embedded lists (e.g., structures with a 'next' or 'prev' pointer),
  35134. the marker must follow the chain and mark every element in it.
  35135. Note that the rules for the pointer walker 'gt_pch_nx (my_struct *,
  35136. gt_pointer_operator, void *)' are slightly different. In this case, the
  35137. operation 'op' must be applied to the _address_ of every pointer field.
  35138. 23.3.1 User-provided marking routines for template types
  35139. --------------------------------------------------------
  35140. When a template type 'TP' is marked with 'GTY', all instances of that
  35141. type are considered user-provided types. This means that the individual
  35142. instances of 'TP' do not need to be marked with 'GTY'. The user needs
  35143. to provide template functions to mark all the fields of the type.
  35144. The following code snippets represent all the functions that need to be
  35145. provided. Note that type 'TP' may reference to more than one type. In
  35146. these snippets, there is only one type 'T', but there could be more.
  35147. template<typename T>
  35148. void gt_ggc_mx (TP<T> *tp)
  35149. {
  35150. extern void gt_ggc_mx (T&);
  35151. /* This marks field 'fld' of type 'T'. */
  35152. gt_ggc_mx (tp->fld);
  35153. }
  35154. template<typename T>
  35155. void gt_pch_nx (TP<T> *tp)
  35156. {
  35157. extern void gt_pch_nx (T&);
  35158. /* This marks field 'fld' of type 'T'. */
  35159. gt_pch_nx (tp->fld);
  35160. }
  35161. template<typename T>
  35162. void gt_pch_nx (TP<T *> *tp, gt_pointer_operator op, void *cookie)
  35163. {
  35164. /* For every field 'fld' of 'tp' with type 'T *', call the given
  35165. pointer operator. */
  35166. op (&(tp->fld), cookie);
  35167. }
  35168. template<typename T>
  35169. void gt_pch_nx (TP<T> *tp, gt_pointer_operator, void *cookie)
  35170. {
  35171. extern void gt_pch_nx (T *, gt_pointer_operator, void *);
  35172. /* For every field 'fld' of 'tp' with type 'T', call the pointer
  35173. walker for all the fields of T. */
  35174. gt_pch_nx (&(tp->fld), op, cookie);
  35175. }
  35176. Support for user-defined types is currently limited. The following
  35177. restrictions apply:
  35178. 1. Type 'TP' and all the argument types 'T' must be marked with 'GTY'.
  35179. 2. Type 'TP' can only have type names in its argument list.
  35180. 3. The pointer walker functions are different for 'TP<T>' and 'TP<T
  35181. *>'. In the case of 'TP<T>', references to 'T' must be handled by
  35182. calling 'gt_pch_nx' (which will, in turn, walk all the pointers
  35183. inside fields of 'T'). In the case of 'TP<T *>', references to 'T
  35184. *' must be handled by calling the 'op' function on the address of
  35185. the pointer (see the code snippets above).
  35186. 
  35187. File: gccint.info, Node: GGC Roots, Next: Files, Prev: User GC, Up: Type Information
  35188. 23.4 Marking Roots for the Garbage Collector
  35189. ============================================
  35190. In addition to keeping track of types, the type machinery also locates
  35191. the global variables ("roots") that the garbage collector starts at.
  35192. Roots must be declared using one of the following syntaxes:
  35193. * 'extern GTY(([OPTIONS])) TYPE NAME;'
  35194. * 'static GTY(([OPTIONS])) TYPE NAME;'
  35195. The syntax
  35196. * 'GTY(([OPTIONS])) TYPE NAME;'
  35197. is _not_ accepted. There should be an 'extern' declaration of such a
  35198. variable in a header somewhere--mark that, not the definition. Or, if
  35199. the variable is only used in one file, make it 'static'.
  35200. 
  35201. File: gccint.info, Node: Files, Next: Invoking the garbage collector, Prev: GGC Roots, Up: Type Information
  35202. 23.5 Source Files Containing Type Information
  35203. =============================================
  35204. Whenever you add 'GTY' markers to a source file that previously had
  35205. none, or create a new source file containing 'GTY' markers, there are
  35206. three things you need to do:
  35207. 1. You need to add the file to the list of source files the type
  35208. machinery scans. There are four cases:
  35209. a. For a back-end file, this is usually done automatically; if
  35210. not, you should add it to 'target_gtfiles' in the appropriate
  35211. port's entries in 'config.gcc'.
  35212. b. For files shared by all front ends, add the filename to the
  35213. 'GTFILES' variable in 'Makefile.in'.
  35214. c. For files that are part of one front end, add the filename to
  35215. the 'gtfiles' variable defined in the appropriate
  35216. 'config-lang.in'. Headers should appear before non-headers in
  35217. this list.
  35218. d. For files that are part of some but not all front ends, add
  35219. the filename to the 'gtfiles' variable of _all_ the front ends
  35220. that use it.
  35221. 2. If the file was a header file, you'll need to check that it's
  35222. included in the right place to be visible to the generated files.
  35223. For a back-end header file, this should be done automatically. For
  35224. a front-end header file, it needs to be included by the same file
  35225. that includes 'gtype-LANG.h'. For other header files, it needs to
  35226. be included in 'gtype-desc.c', which is a generated file, so add it
  35227. to 'ifiles' in 'open_base_file' in 'gengtype.c'.
  35228. For source files that aren't header files, the machinery will
  35229. generate a header file that should be included in the source file
  35230. you just changed. The file will be called 'gt-PATH.h' where PATH
  35231. is the pathname relative to the 'gcc' directory with slashes
  35232. replaced by -, so for example the header file to be included in
  35233. 'cp/parser.c' is called 'gt-cp-parser.c'. The generated header
  35234. file should be included after everything else in the source file.
  35235. Don't forget to mention this file as a dependency in the
  35236. 'Makefile'!
  35237. For language frontends, there is another file that needs to be included
  35238. somewhere. It will be called 'gtype-LANG.h', where LANG is the name of
  35239. the subdirectory the language is contained in.
  35240. Plugins can add additional root tables. Run the 'gengtype' utility in
  35241. plugin mode as 'gengtype -P pluginout.h SOURCE-DIR FILE-LIST PLUGIN*.C'
  35242. with your plugin files PLUGIN*.C using 'GTY' to generate the PLUGINOUT.H
  35243. file. The GCC build tree is needed to be present in that mode.
  35244. 
  35245. File: gccint.info, Node: Invoking the garbage collector, Next: Troubleshooting, Prev: Files, Up: Type Information
  35246. 23.6 How to invoke the garbage collector
  35247. ========================================
  35248. The GCC garbage collector GGC is only invoked explicitly. In contrast
  35249. with many other garbage collectors, it is not implicitly invoked by
  35250. allocation routines when a lot of memory has been consumed. So the only
  35251. way to have GGC reclaim storage is to call the 'ggc_collect' function
  35252. explicitly. This call is an expensive operation, as it may have to scan
  35253. the entire heap. Beware that local variables (on the GCC call stack)
  35254. are not followed by such an invocation (as many other garbage collectors
  35255. do): you should reference all your data from static or external 'GTY'-ed
  35256. variables, and it is advised to call 'ggc_collect' with a shallow call
  35257. stack. The GGC is an exact mark and sweep garbage collector (so it does
  35258. not scan the call stack for pointers). In practice GCC passes don't
  35259. often call 'ggc_collect' themselves, because it is called by the pass
  35260. manager between passes.
  35261. At the time of the 'ggc_collect' call all pointers in the GC-marked
  35262. structures must be valid or 'NULL'. In practice this means that there
  35263. should not be uninitialized pointer fields in the structures even if
  35264. your code never reads or writes those fields at a particular instance.
  35265. One way to ensure this is to use cleared versions of allocators unless
  35266. all the fields are initialized manually immediately after allocation.
  35267. 
  35268. File: gccint.info, Node: Troubleshooting, Prev: Invoking the garbage collector, Up: Type Information
  35269. 23.7 Troubleshooting the garbage collector
  35270. ==========================================
  35271. With the current garbage collector implementation, most issues should
  35272. show up as GCC compilation errors. Some of the most commonly
  35273. encountered issues are described below.
  35274. * Gengtype does not produce allocators for a 'GTY'-marked type.
  35275. Gengtype checks if there is at least one possible path from GC
  35276. roots to at least one instance of each type before outputting
  35277. allocators. If there is no such path, the 'GTY' markers will be
  35278. ignored and no allocators will be output. Solve this by making
  35279. sure that there exists at least one such path. If creating it is
  35280. unfeasible or raises a "code smell", consider if you really must
  35281. use GC for allocating such type.
  35282. * Link-time errors about undefined 'gt_ggc_r_foo_bar' and
  35283. similarly-named symbols. Check if your 'foo_bar' source file has
  35284. '#include "gt-foo_bar.h"' as its very last line.
  35285. 
  35286. File: gccint.info, Node: Plugins, Next: LTO, Prev: Type Information, Up: Top
  35287. 24 Plugins
  35288. **********
  35289. GCC plugins are loadable modules that provide extra features to the
  35290. compiler. Like GCC itself they can be distributed in source and binary
  35291. forms.
  35292. GCC plugins provide developers with a rich subset of the GCC API to
  35293. allow them to extend GCC as they see fit. Whether it is writing an
  35294. additional optimization pass, transforming code, or analyzing
  35295. information, plugins can be quite useful.
  35296. * Menu:
  35297. * Plugins loading:: How can we load plugins.
  35298. * Plugin API:: The APIs for plugins.
  35299. * Plugins pass:: How a plugin interact with the pass manager.
  35300. * Plugins GC:: How a plugin Interact with GCC Garbage Collector.
  35301. * Plugins description:: Giving information about a plugin itself.
  35302. * Plugins attr:: Registering custom attributes or pragmas.
  35303. * Plugins recording:: Recording information about pass execution.
  35304. * Plugins gate:: Controlling which passes are being run.
  35305. * Plugins tracking:: Keeping track of available passes.
  35306. * Plugins building:: How can we build a plugin.
  35307. 
  35308. File: gccint.info, Node: Plugins loading, Next: Plugin API, Up: Plugins
  35309. 24.1 Loading Plugins
  35310. ====================
  35311. Plugins are supported on platforms that support '-ldl -rdynamic' as well
  35312. as Windows/MinGW. They are loaded by the compiler using 'dlopen' or
  35313. equivalent and invoked at pre-determined locations in the compilation
  35314. process.
  35315. Plugins are loaded with
  35316. '-fplugin=/path/to/NAME.EXT' '-fplugin-arg-NAME-KEY1[=VALUE1]'
  35317. Where NAME is the plugin name and EXT is the platform-specific dynamic
  35318. library extension. It should be 'dll' on Windows/MinGW, 'dylib' on
  35319. Darwin/Mac OS X, and 'so' on all other platforms. The plugin arguments
  35320. are parsed by GCC and passed to respective plugins as key-value pairs.
  35321. Multiple plugins can be invoked by specifying multiple '-fplugin'
  35322. arguments.
  35323. A plugin can be simply given by its short name (no dots or slashes).
  35324. When simply passing '-fplugin=NAME', the plugin is loaded from the
  35325. 'plugin' directory, so '-fplugin=NAME' is the same as '-fplugin=`gcc
  35326. -print-file-name=plugin`/NAME.EXT', using backquote shell syntax to
  35327. query the 'plugin' directory.
  35328. 
  35329. File: gccint.info, Node: Plugin API, Next: Plugins pass, Prev: Plugins loading, Up: Plugins
  35330. 24.2 Plugin API
  35331. ===============
  35332. Plugins are activated by the compiler at specific events as defined in
  35333. 'gcc-plugin.h'. For each event of interest, the plugin should call
  35334. 'register_callback' specifying the name of the event and address of the
  35335. callback function that will handle that event.
  35336. The header 'gcc-plugin.h' must be the first gcc header to be included.
  35337. 24.2.1 Plugin license check
  35338. ---------------------------
  35339. Every plugin should define the global symbol 'plugin_is_GPL_compatible'
  35340. to assert that it has been licensed under a GPL-compatible license. If
  35341. this symbol does not exist, the compiler will emit a fatal error and
  35342. exit with the error message:
  35343. fatal error: plugin NAME is not licensed under a GPL-compatible license
  35344. NAME: undefined symbol: plugin_is_GPL_compatible
  35345. compilation terminated
  35346. The declared type of the symbol should be int, to match a forward
  35347. declaration in 'gcc-plugin.h' that suppresses C++ mangling. It does not
  35348. need to be in any allocated section, though. The compiler merely
  35349. asserts that the symbol exists in the global scope. Something like this
  35350. is enough:
  35351. int plugin_is_GPL_compatible;
  35352. 24.2.2 Plugin initialization
  35353. ----------------------------
  35354. Every plugin should export a function called 'plugin_init' that is
  35355. called right after the plugin is loaded. This function is responsible
  35356. for registering all the callbacks required by the plugin and do any
  35357. other required initialization.
  35358. This function is called from 'compile_file' right before invoking the
  35359. parser. The arguments to 'plugin_init' are:
  35360. * 'plugin_info': Plugin invocation information.
  35361. * 'version': GCC version.
  35362. The 'plugin_info' struct is defined as follows:
  35363. struct plugin_name_args
  35364. {
  35365. char *base_name; /* Short name of the plugin
  35366. (filename without .so suffix). */
  35367. const char *full_name; /* Path to the plugin as specified with
  35368. -fplugin=. */
  35369. int argc; /* Number of arguments specified with
  35370. -fplugin-arg-.... */
  35371. struct plugin_argument *argv; /* Array of ARGC key-value pairs. */
  35372. const char *version; /* Version string provided by plugin. */
  35373. const char *help; /* Help string provided by plugin. */
  35374. }
  35375. If initialization fails, 'plugin_init' must return a non-zero value.
  35376. Otherwise, it should return 0.
  35377. The version of the GCC compiler loading the plugin is described by the
  35378. following structure:
  35379. struct plugin_gcc_version
  35380. {
  35381. const char *basever;
  35382. const char *datestamp;
  35383. const char *devphase;
  35384. const char *revision;
  35385. const char *configuration_arguments;
  35386. };
  35387. The function 'plugin_default_version_check' takes two pointers to such
  35388. structure and compare them field by field. It can be used by the
  35389. plugin's 'plugin_init' function.
  35390. The version of GCC used to compile the plugin can be found in the
  35391. symbol 'gcc_version' defined in the header 'plugin-version.h'. The
  35392. recommended version check to perform looks like
  35393. #include "plugin-version.h"
  35394. ...
  35395. int
  35396. plugin_init (struct plugin_name_args *plugin_info,
  35397. struct plugin_gcc_version *version)
  35398. {
  35399. if (!plugin_default_version_check (version, &gcc_version))
  35400. return 1;
  35401. }
  35402. but you can also check the individual fields if you want a less strict
  35403. check.
  35404. 24.2.3 Plugin callbacks
  35405. -----------------------
  35406. Callback functions have the following prototype:
  35407. /* The prototype for a plugin callback function.
  35408. gcc_data - event-specific data provided by GCC
  35409. user_data - plugin-specific data provided by the plug-in. */
  35410. typedef void (*plugin_callback_func)(void *gcc_data, void *user_data);
  35411. Callbacks can be invoked at the following pre-determined events:
  35412. enum plugin_event
  35413. {
  35414. PLUGIN_START_PARSE_FUNCTION, /* Called before parsing the body of a function. */
  35415. PLUGIN_FINISH_PARSE_FUNCTION, /* After finishing parsing a function. */
  35416. PLUGIN_PASS_MANAGER_SETUP, /* To hook into pass manager. */
  35417. PLUGIN_FINISH_TYPE, /* After finishing parsing a type. */
  35418. PLUGIN_FINISH_DECL, /* After finishing parsing a declaration. */
  35419. PLUGIN_FINISH_UNIT, /* Useful for summary processing. */
  35420. PLUGIN_PRE_GENERICIZE, /* Allows to see low level AST in C and C++ frontends. */
  35421. PLUGIN_FINISH, /* Called before GCC exits. */
  35422. PLUGIN_INFO, /* Information about the plugin. */
  35423. PLUGIN_GGC_START, /* Called at start of GCC Garbage Collection. */
  35424. PLUGIN_GGC_MARKING, /* Extend the GGC marking. */
  35425. PLUGIN_GGC_END, /* Called at end of GGC. */
  35426. PLUGIN_REGISTER_GGC_ROOTS, /* Register an extra GGC root table. */
  35427. PLUGIN_ATTRIBUTES, /* Called during attribute registration */
  35428. PLUGIN_START_UNIT, /* Called before processing a translation unit. */
  35429. PLUGIN_PRAGMAS, /* Called during pragma registration. */
  35430. /* Called before first pass from all_passes. */
  35431. PLUGIN_ALL_PASSES_START,
  35432. /* Called after last pass from all_passes. */
  35433. PLUGIN_ALL_PASSES_END,
  35434. /* Called before first ipa pass. */
  35435. PLUGIN_ALL_IPA_PASSES_START,
  35436. /* Called after last ipa pass. */
  35437. PLUGIN_ALL_IPA_PASSES_END,
  35438. /* Allows to override pass gate decision for current_pass. */
  35439. PLUGIN_OVERRIDE_GATE,
  35440. /* Called before executing a pass. */
  35441. PLUGIN_PASS_EXECUTION,
  35442. /* Called before executing subpasses of a GIMPLE_PASS in
  35443. execute_ipa_pass_list. */
  35444. PLUGIN_EARLY_GIMPLE_PASSES_START,
  35445. /* Called after executing subpasses of a GIMPLE_PASS in
  35446. execute_ipa_pass_list. */
  35447. PLUGIN_EARLY_GIMPLE_PASSES_END,
  35448. /* Called when a pass is first instantiated. */
  35449. PLUGIN_NEW_PASS,
  35450. /* Called when a file is #include-d or given via the #line directive.
  35451. This could happen many times. The event data is the included file path,
  35452. as a const char* pointer. */
  35453. PLUGIN_INCLUDE_FILE,
  35454. PLUGIN_EVENT_FIRST_DYNAMIC /* Dummy event used for indexing callback
  35455. array. */
  35456. };
  35457. In addition, plugins can also look up the enumerator of a named event,
  35458. and / or generate new events dynamically, by calling the function
  35459. 'get_named_event_id'.
  35460. To register a callback, the plugin calls 'register_callback' with the
  35461. arguments:
  35462. * 'char *name': Plugin name.
  35463. * 'int event': The event code.
  35464. * 'plugin_callback_func callback': The function that handles 'event'.
  35465. * 'void *user_data': Pointer to plugin-specific data.
  35466. For the PLUGIN_PASS_MANAGER_SETUP, PLUGIN_INFO, and
  35467. PLUGIN_REGISTER_GGC_ROOTS pseudo-events the 'callback' should be null,
  35468. and the 'user_data' is specific.
  35469. When the PLUGIN_PRAGMAS event is triggered (with a null pointer as data
  35470. from GCC), plugins may register their own pragmas. Notice that pragmas
  35471. are not available from 'lto1', so plugins used with '-flto' option to
  35472. GCC during link-time optimization cannot use pragmas and do not even see
  35473. functions like 'c_register_pragma' or 'pragma_lex'.
  35474. The PLUGIN_INCLUDE_FILE event, with a 'const char*' file path as GCC
  35475. data, is triggered for processing of '#include' or '#line' directives.
  35476. The PLUGIN_FINISH event is the last time that plugins can call GCC
  35477. functions, notably emit diagnostics with 'warning', 'error' etc.
  35478. 
  35479. File: gccint.info, Node: Plugins pass, Next: Plugins GC, Prev: Plugin API, Up: Plugins
  35480. 24.3 Interacting with the pass manager
  35481. ======================================
  35482. There needs to be a way to add/reorder/remove passes dynamically. This
  35483. is useful for both analysis plugins (plugging in after a certain pass
  35484. such as CFG or an IPA pass) and optimization plugins.
  35485. Basic support for inserting new passes or replacing existing passes is
  35486. provided. A plugin registers a new pass with GCC by calling
  35487. 'register_callback' with the 'PLUGIN_PASS_MANAGER_SETUP' event and a
  35488. pointer to a 'struct register_pass_info' object defined as follows
  35489. enum pass_positioning_ops
  35490. {
  35491. PASS_POS_INSERT_AFTER, // Insert after the reference pass.
  35492. PASS_POS_INSERT_BEFORE, // Insert before the reference pass.
  35493. PASS_POS_REPLACE // Replace the reference pass.
  35494. };
  35495. struct register_pass_info
  35496. {
  35497. struct opt_pass *pass; /* New pass provided by the plugin. */
  35498. const char *reference_pass_name; /* Name of the reference pass for hooking
  35499. up the new pass. */
  35500. int ref_pass_instance_number; /* Insert the pass at the specified
  35501. instance number of the reference pass. */
  35502. /* Do it for every instance if it is 0. */
  35503. enum pass_positioning_ops pos_op; /* how to insert the new pass. */
  35504. };
  35505. /* Sample plugin code that registers a new pass. */
  35506. int
  35507. plugin_init (struct plugin_name_args *plugin_info,
  35508. struct plugin_gcc_version *version)
  35509. {
  35510. struct register_pass_info pass_info;
  35511. ...
  35512. /* Code to fill in the pass_info object with new pass information. */
  35513. ...
  35514. /* Register the new pass. */
  35515. register_callback (plugin_info->base_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
  35516. ...
  35517. }
  35518. 
  35519. File: gccint.info, Node: Plugins GC, Next: Plugins description, Prev: Plugins pass, Up: Plugins
  35520. 24.4 Interacting with the GCC Garbage Collector
  35521. ===============================================
  35522. Some plugins may want to be informed when GGC (the GCC Garbage
  35523. Collector) is running. They can register callbacks for the
  35524. 'PLUGIN_GGC_START' and 'PLUGIN_GGC_END' events (for which the callback
  35525. is called with a null 'gcc_data') to be notified of the start or end of
  35526. the GCC garbage collection.
  35527. Some plugins may need to have GGC mark additional data. This can be
  35528. done by registering a callback (called with a null 'gcc_data') for the
  35529. 'PLUGIN_GGC_MARKING' event. Such callbacks can call the 'ggc_set_mark'
  35530. routine, preferably through the 'ggc_mark' macro (and conversely, these
  35531. routines should usually not be used in plugins outside of the
  35532. 'PLUGIN_GGC_MARKING' event). Plugins that wish to hold weak references
  35533. to gc data may also use this event to drop weak references when the
  35534. object is about to be collected. The 'ggc_marked_p' function can be
  35535. used to tell if an object is marked, or is about to be collected. The
  35536. 'gt_clear_cache' overloads which some types define may also be of use in
  35537. managing weak references.
  35538. Some plugins may need to add extra GGC root tables, e.g. to handle
  35539. their own 'GTY'-ed data. This can be done with the
  35540. 'PLUGIN_REGISTER_GGC_ROOTS' pseudo-event with a null callback and the
  35541. extra root table (of type 'struct ggc_root_tab*') as 'user_data'.
  35542. Running the 'gengtype -p SOURCE-DIR FILE-LIST PLUGIN*.C ...' utility
  35543. generates these extra root tables.
  35544. You should understand the details of memory management inside GCC
  35545. before using 'PLUGIN_GGC_MARKING' or 'PLUGIN_REGISTER_GGC_ROOTS'.
  35546. 
  35547. File: gccint.info, Node: Plugins description, Next: Plugins attr, Prev: Plugins GC, Up: Plugins
  35548. 24.5 Giving information about a plugin
  35549. ======================================
  35550. A plugin should give some information to the user about itself. This
  35551. uses the following structure:
  35552. struct plugin_info
  35553. {
  35554. const char *version;
  35555. const char *help;
  35556. };
  35557. Such a structure is passed as the 'user_data' by the plugin's init
  35558. routine using 'register_callback' with the 'PLUGIN_INFO' pseudo-event
  35559. and a null callback.
  35560. 
  35561. File: gccint.info, Node: Plugins attr, Next: Plugins recording, Prev: Plugins description, Up: Plugins
  35562. 24.6 Registering custom attributes or pragmas
  35563. =============================================
  35564. For analysis (or other) purposes it is useful to be able to add custom
  35565. attributes or pragmas.
  35566. The 'PLUGIN_ATTRIBUTES' callback is called during attribute
  35567. registration. Use the 'register_attribute' function to register custom
  35568. attributes.
  35569. /* Attribute handler callback */
  35570. static tree
  35571. handle_user_attribute (tree *node, tree name, tree args,
  35572. int flags, bool *no_add_attrs)
  35573. {
  35574. return NULL_TREE;
  35575. }
  35576. /* Attribute definition */
  35577. static struct attribute_spec user_attr =
  35578. { "user", 1, 1, false, false, false, false, handle_user_attribute, NULL };
  35579. /* Plugin callback called during attribute registration.
  35580. Registered with register_callback (plugin_name, PLUGIN_ATTRIBUTES, register_attributes, NULL)
  35581. */
  35582. static void
  35583. register_attributes (void *event_data, void *data)
  35584. {
  35585. warning (0, G_("Callback to register attributes"));
  35586. register_attribute (&user_attr);
  35587. }
  35588. The PLUGIN_PRAGMAS callback is called once during pragmas registration.
  35589. Use the 'c_register_pragma', 'c_register_pragma_with_data',
  35590. 'c_register_pragma_with_expansion',
  35591. 'c_register_pragma_with_expansion_and_data' functions to register custom
  35592. pragmas and their handlers (which often want to call 'pragma_lex') from
  35593. 'c-family/c-pragma.h'.
  35594. /* Plugin callback called during pragmas registration. Registered with
  35595. register_callback (plugin_name, PLUGIN_PRAGMAS,
  35596. register_my_pragma, NULL);
  35597. */
  35598. static void
  35599. register_my_pragma (void *event_data, void *data)
  35600. {
  35601. warning (0, G_("Callback to register pragmas"));
  35602. c_register_pragma ("GCCPLUGIN", "sayhello", handle_pragma_sayhello);
  35603. }
  35604. It is suggested to pass '"GCCPLUGIN"' (or a short name identifying your
  35605. plugin) as the "space" argument of your pragma.
  35606. Pragmas registered with 'c_register_pragma_with_expansion' or
  35607. 'c_register_pragma_with_expansion_and_data' support preprocessor
  35608. expansions. For example:
  35609. #define NUMBER 10
  35610. #pragma GCCPLUGIN foothreshold (NUMBER)
  35611. 
  35612. File: gccint.info, Node: Plugins recording, Next: Plugins gate, Prev: Plugins attr, Up: Plugins
  35613. 24.7 Recording information about pass execution
  35614. ===============================================
  35615. The event PLUGIN_PASS_EXECUTION passes the pointer to the executed pass
  35616. (the same as current_pass) as 'gcc_data' to the callback. You can also
  35617. inspect cfun to find out about which function this pass is executed for.
  35618. Note that this event will only be invoked if the gate check (if
  35619. applicable, modified by PLUGIN_OVERRIDE_GATE) succeeds. You can use
  35620. other hooks, like 'PLUGIN_ALL_PASSES_START', 'PLUGIN_ALL_PASSES_END',
  35621. 'PLUGIN_ALL_IPA_PASSES_START', 'PLUGIN_ALL_IPA_PASSES_END',
  35622. 'PLUGIN_EARLY_GIMPLE_PASSES_START', and/or
  35623. 'PLUGIN_EARLY_GIMPLE_PASSES_END' to manipulate global state in your
  35624. plugin(s) in order to get context for the pass execution.
  35625. 
  35626. File: gccint.info, Node: Plugins gate, Next: Plugins tracking, Prev: Plugins recording, Up: Plugins
  35627. 24.8 Controlling which passes are being run
  35628. ===========================================
  35629. After the original gate function for a pass is called, its result - the
  35630. gate status - is stored as an integer. Then the event
  35631. 'PLUGIN_OVERRIDE_GATE' is invoked, with a pointer to the gate status in
  35632. the 'gcc_data' parameter to the callback function. A nonzero value of
  35633. the gate status means that the pass is to be executed. You can both
  35634. read and write the gate status via the passed pointer.
  35635. 
  35636. File: gccint.info, Node: Plugins tracking, Next: Plugins building, Prev: Plugins gate, Up: Plugins
  35637. 24.9 Keeping track of available passes
  35638. ======================================
  35639. When your plugin is loaded, you can inspect the various pass lists to
  35640. determine what passes are available. However, other plugins might add
  35641. new passes. Also, future changes to GCC might cause generic passes to
  35642. be added after plugin loading. When a pass is first added to one of the
  35643. pass lists, the event 'PLUGIN_NEW_PASS' is invoked, with the callback
  35644. parameter 'gcc_data' pointing to the new pass.
  35645. 
  35646. File: gccint.info, Node: Plugins building, Prev: Plugins tracking, Up: Plugins
  35647. 24.10 Building GCC plugins
  35648. ==========================
  35649. If plugins are enabled, GCC installs the headers needed to build a
  35650. plugin (somewhere in the installation tree, e.g. under '/usr/local').
  35651. In particular a 'plugin/include' directory is installed, containing all
  35652. the header files needed to build plugins.
  35653. On most systems, you can query this 'plugin' directory by invoking 'gcc
  35654. -print-file-name=plugin' (replace if needed 'gcc' with the appropriate
  35655. program path).
  35656. Inside plugins, this 'plugin' directory name can be queried by calling
  35657. 'default_plugin_dir_name ()'.
  35658. Plugins may know, when they are compiled, the GCC version for which
  35659. 'plugin-version.h' is provided. The constant macros
  35660. 'GCCPLUGIN_VERSION_MAJOR', 'GCCPLUGIN_VERSION_MINOR',
  35661. 'GCCPLUGIN_VERSION_PATCHLEVEL', 'GCCPLUGIN_VERSION' are integer numbers,
  35662. so a plugin could ensure it is built for GCC 4.7 with
  35663. #if GCCPLUGIN_VERSION != 4007
  35664. #error this GCC plugin is for GCC 4.7
  35665. #endif
  35666. The following GNU Makefile excerpt shows how to build a simple plugin:
  35667. HOST_GCC=g++
  35668. TARGET_GCC=gcc
  35669. PLUGIN_SOURCE_FILES= plugin1.c plugin2.cc
  35670. GCCPLUGINS_DIR:= $(shell $(TARGET_GCC) -print-file-name=plugin)
  35671. CXXFLAGS+= -I$(GCCPLUGINS_DIR)/include -fPIC -fno-rtti -O2
  35672. plugin.so: $(PLUGIN_SOURCE_FILES)
  35673. $(HOST_GCC) -shared $(CXXFLAGS) $^ -o $@
  35674. A single source file plugin may be built with 'g++ -I`gcc
  35675. -print-file-name=plugin`/include -fPIC -shared -fno-rtti -O2 plugin.c -o
  35676. plugin.so', using backquote shell syntax to query the 'plugin'
  35677. directory.
  35678. Plugin support on Windows/MinGW has a number of limitations and
  35679. additional requirements. When building a plugin on Windows we have to
  35680. link an import library for the corresponding backend executable, for
  35681. example, 'cc1.exe', 'cc1plus.exe', etc., in order to gain access to the
  35682. symbols provided by GCC. This means that on Windows a plugin is
  35683. language-specific, for example, for C, C++, etc. If you wish to use
  35684. your plugin with multiple languages, then you will need to build
  35685. multiple plugin libraries and either instruct your users on how to load
  35686. the correct version or provide a compiler wrapper that does this
  35687. automatically.
  35688. Additionally, on Windows the plugin library has to export the
  35689. 'plugin_is_GPL_compatible' and 'plugin_init' symbols. If you do not
  35690. wish to modify the source code of your plugin, then you can use the
  35691. '-Wl,--export-all-symbols' option or provide a suitable DEF file.
  35692. Alternatively, you can export just these two symbols by decorating them
  35693. with '__declspec(dllexport)', for example:
  35694. #ifdef _WIN32
  35695. __declspec(dllexport)
  35696. #endif
  35697. int plugin_is_GPL_compatible;
  35698. #ifdef _WIN32
  35699. __declspec(dllexport)
  35700. #endif
  35701. int plugin_init (plugin_name_args *, plugin_gcc_version *)
  35702. The import libraries are installed into the 'plugin' directory and
  35703. their names are derived by appending the '.a' extension to the backend
  35704. executable names, for example, 'cc1.exe.a', 'cc1plus.exe.a', etc. The
  35705. following command line shows how to build the single source file plugin
  35706. on Windows to be used with the C++ compiler:
  35707. g++ -I`gcc -print-file-name=plugin`/include -shared -Wl,--export-all-symbols \
  35708. -o plugin.dll plugin.c `gcc -print-file-name=plugin`/cc1plus.exe.a
  35709. When a plugin needs to use 'gengtype', be sure that both 'gengtype' and
  35710. 'gtype.state' have the same version as the GCC for which the plugin is
  35711. built.
  35712. 
  35713. File: gccint.info, Node: LTO, Next: Match and Simplify, Prev: Plugins, Up: Top
  35714. 25 Link Time Optimization
  35715. *************************
  35716. Link Time Optimization (LTO) gives GCC the capability of dumping its
  35717. internal representation (GIMPLE) to disk, so that all the different
  35718. compilation units that make up a single executable can be optimized as a
  35719. single module. This expands the scope of inter-procedural optimizations
  35720. to encompass the whole program (or, rather, everything that is visible
  35721. at link time).
  35722. * Menu:
  35723. * LTO Overview:: Overview of LTO.
  35724. * LTO object file layout:: LTO file sections in ELF.
  35725. * IPA:: Using summary information in IPA passes.
  35726. * WHOPR:: Whole program assumptions,
  35727. linker plugin and symbol visibilities.
  35728. * Internal flags:: Internal flags controlling 'lto1'.
  35729. 
  35730. File: gccint.info, Node: LTO Overview, Next: LTO object file layout, Up: LTO
  35731. 25.1 Design Overview
  35732. ====================
  35733. Link time optimization is implemented as a GCC front end for a bytecode
  35734. representation of GIMPLE that is emitted in special sections of '.o'
  35735. files. Currently, LTO support is enabled in most ELF-based systems, as
  35736. well as darwin, cygwin and mingw systems.
  35737. Since GIMPLE bytecode is saved alongside final object code, object
  35738. files generated with LTO support are larger than regular object files.
  35739. This "fat" object format makes it easy to integrate LTO into existing
  35740. build systems, as one can, for instance, produce archives of the files.
  35741. Additionally, one might be able to ship one set of fat objects which
  35742. could be used both for development and the production of optimized
  35743. builds. A, perhaps surprising, side effect of this feature is that any
  35744. mistake in the toolchain leads to LTO information not being used (e.g.
  35745. an older 'libtool' calling 'ld' directly). This is both an advantage,
  35746. as the system is more robust, and a disadvantage, as the user is not
  35747. informed that the optimization has been disabled.
  35748. The current implementation only produces "fat" objects, effectively
  35749. doubling compilation time and increasing file sizes up to 5x the
  35750. original size. This hides the problem that some tools, such as 'ar' and
  35751. 'nm', need to understand symbol tables of LTO sections. These tools
  35752. were extended to use the plugin infrastructure, and with these problems
  35753. solved, GCC will also support "slim" objects consisting of the
  35754. intermediate code alone.
  35755. At the highest level, LTO splits the compiler in two. The first half
  35756. (the "writer") produces a streaming representation of all the internal
  35757. data structures needed to optimize and generate code. This includes
  35758. declarations, types, the callgraph and the GIMPLE representation of
  35759. function bodies.
  35760. When '-flto' is given during compilation of a source file, the pass
  35761. manager executes all the passes in 'all_lto_gen_passes'. Currently,
  35762. this phase is composed of two IPA passes:
  35763. * 'pass_ipa_lto_gimple_out' This pass executes the function
  35764. 'lto_output' in 'lto-streamer-out.c', which traverses the call
  35765. graph encoding every reachable declaration, type and function.
  35766. This generates a memory representation of all the file sections
  35767. described below.
  35768. * 'pass_ipa_lto_finish_out' This pass executes the function
  35769. 'produce_asm_for_decls' in 'lto-streamer-out.c', which takes the
  35770. memory image built in the previous pass and encodes it in the
  35771. corresponding ELF file sections.
  35772. The second half of LTO support is the "reader". This is implemented as
  35773. the GCC front end 'lto1' in 'lto/lto.c'. When 'collect2' detects a link
  35774. set of '.o'/'.a' files with LTO information and the '-flto' is enabled,
  35775. it invokes 'lto1' which reads the set of files and aggregates them into
  35776. a single translation unit for optimization. The main entry point for
  35777. the reader is 'lto/lto.c':'lto_main'.
  35778. 25.1.1 LTO modes of operation
  35779. -----------------------------
  35780. One of the main goals of the GCC link-time infrastructure was to allow
  35781. effective compilation of large programs. For this reason GCC implements
  35782. two link-time compilation modes.
  35783. 1. _LTO mode_, in which the whole program is read into the compiler at
  35784. link-time and optimized in a similar way as if it were a single
  35785. source-level compilation unit.
  35786. 2. _WHOPR or partitioned mode_, designed to utilize multiple CPUs
  35787. and/or a distributed compilation environment to quickly link large
  35788. applications. WHOPR stands for WHOle Program optimizeR (not to be
  35789. confused with the semantics of '-fwhole-program'). It partitions
  35790. the aggregated callgraph from many different '.o' files and
  35791. distributes the compilation of the sub-graphs to different CPUs.
  35792. Note that distributed compilation is not implemented yet, but since
  35793. the parallelism is facilitated via generating a 'Makefile', it
  35794. would be easy to implement.
  35795. WHOPR splits LTO into three main stages:
  35796. 1. Local generation (LGEN) This stage executes in parallel. Every
  35797. file in the program is compiled into the intermediate language and
  35798. packaged together with the local call-graph and summary
  35799. information. This stage is the same for both the LTO and WHOPR
  35800. compilation mode.
  35801. 2. Whole Program Analysis (WPA) WPA is performed sequentially. The
  35802. global call-graph is generated, and a global analysis procedure
  35803. makes transformation decisions. The global call-graph is
  35804. partitioned to facilitate parallel optimization during phase 3.
  35805. The results of the WPA stage are stored into new object files which
  35806. contain the partitions of program expressed in the intermediate
  35807. language and the optimization decisions.
  35808. 3. Local transformations (LTRANS) This stage executes in parallel.
  35809. All the decisions made during phase 2 are implemented locally in
  35810. each partitioned object file, and the final object code is
  35811. generated. Optimizations which cannot be decided efficiently
  35812. during the phase 2 may be performed on the local call-graph
  35813. partitions.
  35814. WHOPR can be seen as an extension of the usual LTO mode of compilation.
  35815. In LTO, WPA and LTRANS are executed within a single execution of the
  35816. compiler, after the whole program has been read into memory.
  35817. When compiling in WHOPR mode, the callgraph is partitioned during the
  35818. WPA stage. The whole program is split into a given number of partitions
  35819. of roughly the same size. The compiler tries to minimize the number of
  35820. references which cross partition boundaries. The main advantage of
  35821. WHOPR is to allow the parallel execution of LTRANS stages, which are the
  35822. most time-consuming part of the compilation process. Additionally, it
  35823. avoids the need to load the whole program into memory.
  35824. 
  35825. File: gccint.info, Node: LTO object file layout, Next: IPA, Prev: LTO Overview, Up: LTO
  35826. 25.2 LTO file sections
  35827. ======================
  35828. LTO information is stored in several ELF sections inside object files.
  35829. Data structures and enum codes for sections are defined in
  35830. 'lto-streamer.h'.
  35831. These sections are emitted from 'lto-streamer-out.c' and mapped in all
  35832. at once from 'lto/lto.c':'lto_file_read'. The individual functions
  35833. dealing with the reading/writing of each section are described below.
  35834. * Command line options ('.gnu.lto_.opts')
  35835. This section contains the command line options used to generate the
  35836. object files. This is used at link time to determine the
  35837. optimization level and other settings when they are not explicitly
  35838. specified at the linker command line.
  35839. Currently, GCC does not support combining LTO object files compiled
  35840. with different set of the command line options into a single
  35841. binary. At link time, the options given on the command line and
  35842. the options saved on all the files in a link-time set are applied
  35843. globally. No attempt is made at validating the combination of
  35844. flags (other than the usual validation done by option processing).
  35845. This is implemented in 'lto/lto.c':'lto_read_all_file_options'.
  35846. * Symbol table ('.gnu.lto_.symtab')
  35847. This table replaces the ELF symbol table for functions and
  35848. variables represented in the LTO IL. Symbols used and exported by
  35849. the optimized assembly code of "fat" objects might not match the
  35850. ones used and exported by the intermediate code. This table is
  35851. necessary because the intermediate code is less optimized and thus
  35852. requires a separate symbol table.
  35853. Additionally, the binary code in the "fat" object will lack a call
  35854. to a function, since the call was optimized out at compilation time
  35855. after the intermediate language was streamed out. In some special
  35856. cases, the same optimization may not happen during link-time
  35857. optimization. This would lead to an undefined symbol if only one
  35858. symbol table was used.
  35859. The symbol table is emitted in
  35860. 'lto-streamer-out.c':'produce_symtab'.
  35861. * Global declarations and types ('.gnu.lto_.decls')
  35862. This section contains an intermediate language dump of all
  35863. declarations and types required to represent the callgraph, static
  35864. variables and top-level debug info.
  35865. The contents of this section are emitted in
  35866. 'lto-streamer-out.c':'produce_asm_for_decls'. Types and symbols
  35867. are emitted in a topological order that preserves the sharing of
  35868. pointers when the file is read back in
  35869. ('lto.c':'read_cgraph_and_symbols').
  35870. * The callgraph ('.gnu.lto_.cgraph')
  35871. This section contains the basic data structure used by the GCC
  35872. inter-procedural optimization infrastructure. This section stores
  35873. an annotated multi-graph which represents the functions and call
  35874. sites as well as the variables, aliases and top-level 'asm'
  35875. statements.
  35876. This section is emitted in 'lto-streamer-out.c':'output_cgraph' and
  35877. read in 'lto-cgraph.c':'input_cgraph'.
  35878. * IPA references ('.gnu.lto_.refs')
  35879. This section contains references between function and static
  35880. variables. It is emitted by 'lto-cgraph.c':'output_refs' and read
  35881. by 'lto-cgraph.c':'input_refs'.
  35882. * Function bodies ('.gnu.lto_.function_body.<name>')
  35883. This section contains function bodies in the intermediate language
  35884. representation. Every function body is in a separate section to
  35885. allow copying of the section independently to different object
  35886. files or reading the function on demand.
  35887. Functions are emitted in 'lto-streamer-out.c':'output_function' and
  35888. read in 'lto-streamer-in.c':'input_function'.
  35889. * Static variable initializers ('.gnu.lto_.vars')
  35890. This section contains all the symbols in the global variable pool.
  35891. It is emitted by 'lto-cgraph.c':'output_varpool' and read in
  35892. 'lto-cgraph.c':'input_cgraph'.
  35893. * Summaries and optimization summaries used by IPA passes
  35894. ('.gnu.lto_.<xxx>', where '<xxx>' is one of 'jmpfuncs', 'pureconst'
  35895. or 'reference')
  35896. These sections are used by IPA passes that need to emit summary
  35897. information during LTO generation to be read and aggregated at link
  35898. time. Each pass is responsible for implementing two pass manager
  35899. hooks: one for writing the summary and another for reading it in.
  35900. The format of these sections is entirely up to each individual
  35901. pass. The only requirement is that the writer and reader hooks
  35902. agree on the format.
  35903. 
  35904. File: gccint.info, Node: IPA, Next: WHOPR, Prev: LTO object file layout, Up: LTO
  35905. 25.3 Using summary information in IPA passes
  35906. ============================================
  35907. Programs are represented internally as a _callgraph_ (a multi-graph
  35908. where nodes are functions and edges are call sites) and a _varpool_ (a
  35909. list of static and external variables in the program).
  35910. The inter-procedural optimization is organized as a sequence of
  35911. individual passes, which operate on the callgraph and the varpool. To
  35912. make the implementation of WHOPR possible, every inter-procedural
  35913. optimization pass is split into several stages that are executed at
  35914. different times during WHOPR compilation:
  35915. * LGEN time
  35916. 1. _Generate summary_ ('generate_summary' in 'struct
  35917. ipa_opt_pass_d'). This stage analyzes every function body and
  35918. variable initializer is examined and stores relevant
  35919. information into a pass-specific data structure.
  35920. 2. _Write summary_ ('write_summary' in 'struct ipa_opt_pass_d').
  35921. This stage writes all the pass-specific information generated
  35922. by 'generate_summary'. Summaries go into their own
  35923. 'LTO_section_*' sections that have to be declared in
  35924. 'lto-streamer.h':'enum lto_section_type'. A new section is
  35925. created by calling 'create_output_block' and data can be
  35926. written using the 'lto_output_*' routines.
  35927. * WPA time
  35928. 1. _Read summary_ ('read_summary' in 'struct ipa_opt_pass_d').
  35929. This stage reads all the pass-specific information in exactly
  35930. the same order that it was written by 'write_summary'.
  35931. 2. _Execute_ ('execute' in 'struct opt_pass'). This performs
  35932. inter-procedural propagation. This must be done without
  35933. actual access to the individual function bodies or variable
  35934. initializers. Typically, this results in a transitive closure
  35935. operation over the summary information of all the nodes in the
  35936. callgraph.
  35937. 3. _Write optimization summary_ ('write_optimization_summary' in
  35938. 'struct ipa_opt_pass_d'). This writes the result of the
  35939. inter-procedural propagation into the object file. This can
  35940. use the same data structures and helper routines used in
  35941. 'write_summary'.
  35942. * LTRANS time
  35943. 1. _Read optimization summary_ ('read_optimization_summary' in
  35944. 'struct ipa_opt_pass_d'). The counterpart to
  35945. 'write_optimization_summary'. This reads the interprocedural
  35946. optimization decisions in exactly the same format emitted by
  35947. 'write_optimization_summary'.
  35948. 2. _Transform_ ('function_transform' and 'variable_transform' in
  35949. 'struct ipa_opt_pass_d'). The actual function bodies and
  35950. variable initializers are updated based on the information
  35951. passed down from the _Execute_ stage.
  35952. The implementation of the inter-procedural passes are shared between
  35953. LTO, WHOPR and classic non-LTO compilation.
  35954. * During the traditional file-by-file mode every pass executes its
  35955. own _Generate summary_, _Execute_, and _Transform_ stages within
  35956. the single execution context of the compiler.
  35957. * In LTO compilation mode, every pass uses _Generate summary_ and
  35958. _Write summary_ stages at compilation time, while the _Read
  35959. summary_, _Execute_, and _Transform_ stages are executed at link
  35960. time.
  35961. * In WHOPR mode all stages are used.
  35962. To simplify development, the GCC pass manager differentiates between
  35963. normal inter-procedural passes (*note Regular IPA passes::), small
  35964. inter-procedural passes (*note Small IPA passes::) and late
  35965. inter-procedural passes (*note Late IPA passes::). A small or late IPA
  35966. pass ('SIMPLE_IPA_PASS') does everything at once and thus cannot be
  35967. executed during WPA in WHOPR mode. It defines only the _Execute_ stage
  35968. and during this stage it accesses and modifies the function bodies.
  35969. Such passes are useful for optimization at LGEN or LTRANS time and are
  35970. used, for example, to implement early optimization before writing object
  35971. files. The simple inter-procedural passes can also be used for easier
  35972. prototyping and development of a new inter-procedural pass.
  35973. 25.3.1 Virtual clones
  35974. ---------------------
  35975. One of the main challenges of introducing the WHOPR compilation mode was
  35976. addressing the interactions between optimization passes. In LTO
  35977. compilation mode, the passes are executed in a sequence, each of which
  35978. consists of analysis (or _Generate summary_), propagation (or _Execute_)
  35979. and _Transform_ stages. Once the work of one pass is finished, the next
  35980. pass sees the updated program representation and can execute. This
  35981. makes the individual passes dependent on each other.
  35982. In WHOPR mode all passes first execute their _Generate summary_ stage.
  35983. Then summary writing marks the end of the LGEN stage. At WPA time, the
  35984. summaries are read back into memory and all passes run the _Execute_
  35985. stage. Optimization summaries are streamed and sent to LTRANS, where
  35986. all the passes execute the _Transform_ stage.
  35987. Most optimization passes split naturally into analysis, propagation and
  35988. transformation stages. But some do not. The main problem arises when
  35989. one pass performs changes and the following pass gets confused by seeing
  35990. different callgraphs between the _Transform_ stage and the _Generate
  35991. summary_ or _Execute_ stage. This means that the passes are required to
  35992. communicate their decisions with each other.
  35993. To facilitate this communication, the GCC callgraph infrastructure
  35994. implements _virtual clones_, a method of representing the changes
  35995. performed by the optimization passes in the callgraph without needing to
  35996. update function bodies.
  35997. A _virtual clone_ in the callgraph is a function that has no associated
  35998. body, just a description of how to create its body based on a different
  35999. function (which itself may be a virtual clone).
  36000. The description of function modifications includes adjustments to the
  36001. function's signature (which allows, for example, removing or adding
  36002. function arguments), substitutions to perform on the function body, and,
  36003. for inlined functions, a pointer to the function that it will be inlined
  36004. into.
  36005. It is also possible to redirect any edge of the callgraph from a
  36006. function to its virtual clone. This implies updating of the call site
  36007. to adjust for the new function signature.
  36008. Most of the transformations performed by inter-procedural optimizations
  36009. can be represented via virtual clones. For instance, a constant
  36010. propagation pass can produce a virtual clone of the function which
  36011. replaces one of its arguments by a constant. The inliner can represent
  36012. its decisions by producing a clone of a function whose body will be
  36013. later integrated into a given function.
  36014. Using _virtual clones_, the program can be easily updated during the
  36015. _Execute_ stage, solving most of pass interactions problems that would
  36016. otherwise occur during _Transform_.
  36017. Virtual clones are later materialized in the LTRANS stage and turned
  36018. into real functions. Passes executed after the virtual clone were
  36019. introduced also perform their _Transform_ stage on new functions, so for
  36020. a pass there is no significant difference between operating on a real
  36021. function or a virtual clone introduced before its _Execute_ stage.
  36022. Optimization passes then work on virtual clones introduced before their
  36023. _Execute_ stage as if they were real functions. The only difference is
  36024. that clones are not visible during the _Generate Summary_ stage.
  36025. To keep function summaries updated, the callgraph interface allows an
  36026. optimizer to register a callback that is called every time a new clone
  36027. is introduced as well as when the actual function or variable is
  36028. generated or when a function or variable is removed. These hooks are
  36029. registered in the _Generate summary_ stage and allow the pass to keep
  36030. its information intact until the _Execute_ stage. The same hooks can
  36031. also be registered during the _Execute_ stage to keep the optimization
  36032. summaries updated for the _Transform_ stage.
  36033. 25.3.2 IPA references
  36034. ---------------------
  36035. GCC represents IPA references in the callgraph. For a function or
  36036. variable 'A', the _IPA reference_ is a list of all locations where the
  36037. address of 'A' is taken and, when 'A' is a variable, a list of all
  36038. direct stores and reads to/from 'A'. References represent an oriented
  36039. multi-graph on the union of nodes of the callgraph and the varpool. See
  36040. 'ipa-reference.c':'ipa_reference_write_optimization_summary' and
  36041. 'ipa-reference.c':'ipa_reference_read_optimization_summary' for details.
  36042. 25.3.3 Jump functions
  36043. ---------------------
  36044. Suppose that an optimization pass sees a function 'A' and it knows the
  36045. values of (some of) its arguments. The _jump function_ describes the
  36046. value of a parameter of a given function call in function 'A' based on
  36047. this knowledge.
  36048. Jump functions are used by several optimizations, such as the
  36049. inter-procedural constant propagation pass and the devirtualization
  36050. pass. The inliner also uses jump functions to perform inlining of
  36051. callbacks.
  36052. 
  36053. File: gccint.info, Node: WHOPR, Next: Internal flags, Prev: IPA, Up: LTO
  36054. 25.4 Whole program assumptions, linker plugin and symbol visibilities
  36055. =====================================================================
  36056. Link-time optimization gives relatively minor benefits when used alone.
  36057. The problem is that propagation of inter-procedural information does not
  36058. work well across functions and variables that are called or referenced
  36059. by other compilation units (such as from a dynamically linked library).
  36060. We say that such functions and variables are _externally visible_.
  36061. To make the situation even more difficult, many applications organize
  36062. themselves as a set of shared libraries, and the default ELF visibility
  36063. rules allow one to overwrite any externally visible symbol with a
  36064. different symbol at runtime. This basically disables any optimizations
  36065. across such functions and variables, because the compiler cannot be sure
  36066. that the function body it is seeing is the same function body that will
  36067. be used at runtime. Any function or variable not declared 'static' in
  36068. the sources degrades the quality of inter-procedural optimization.
  36069. To avoid this problem the compiler must assume that it sees the whole
  36070. program when doing link-time optimization. Strictly speaking, the whole
  36071. program is rarely visible even at link-time. Standard system libraries
  36072. are usually linked dynamically or not provided with the link-time
  36073. information. In GCC, the whole program option ('-fwhole-program')
  36074. asserts that every function and variable defined in the current
  36075. compilation unit is static, except for function 'main' (note: at link
  36076. time, the current unit is the union of all objects compiled with LTO).
  36077. Since some functions and variables need to be referenced externally, for
  36078. example by another DSO or from an assembler file, GCC also provides the
  36079. function and variable attribute 'externally_visible' which can be used
  36080. to disable the effect of '-fwhole-program' on a specific symbol.
  36081. The whole program mode assumptions are slightly more complex in C++,
  36082. where inline functions in headers are put into _COMDAT_ sections.
  36083. COMDAT function and variables can be defined by multiple object files
  36084. and their bodies are unified at link-time and dynamic link-time. COMDAT
  36085. functions are changed to local only when their address is not taken and
  36086. thus un-sharing them with a library is not harmful. COMDAT variables
  36087. always remain externally visible, however for readonly variables it is
  36088. assumed that their initializers cannot be overwritten by a different
  36089. value.
  36090. GCC provides the function and variable attribute 'visibility' that can
  36091. be used to specify the visibility of externally visible symbols (or
  36092. alternatively an '-fdefault-visibility' command line option). ELF
  36093. defines the 'default', 'protected', 'hidden' and 'internal'
  36094. visibilities.
  36095. The most commonly used is visibility is 'hidden'. It specifies that
  36096. the symbol cannot be referenced from outside of the current shared
  36097. library. Unfortunately, this information cannot be used directly by the
  36098. link-time optimization in the compiler since the whole shared library
  36099. also might contain non-LTO objects and those are not visible to the
  36100. compiler.
  36101. GCC solves this problem using linker plugins. A _linker plugin_ is an
  36102. interface to the linker that allows an external program to claim the
  36103. ownership of a given object file. The linker then performs the linking
  36104. procedure by querying the plugin about the symbol table of the claimed
  36105. objects and once the linking decisions are complete, the plugin is
  36106. allowed to provide the final object file before the actual linking is
  36107. made. The linker plugin obtains the symbol resolution information which
  36108. specifies which symbols provided by the claimed objects are bound from
  36109. the rest of a binary being linked.
  36110. GCC is designed to be independent of the rest of the toolchain and aims
  36111. to support linkers without plugin support. For this reason it does not
  36112. use the linker plugin by default. Instead, the object files are
  36113. examined by 'collect2' before being passed to the linker and objects
  36114. found to have LTO sections are passed to 'lto1' first. This mode does
  36115. not work for library archives. The decision on what object files from
  36116. the archive are needed depends on the actual linking and thus GCC would
  36117. have to implement the linker itself. The resolution information is
  36118. missing too and thus GCC needs to make an educated guess based on
  36119. '-fwhole-program'. Without the linker plugin GCC also assumes that
  36120. symbols are declared 'hidden' and not referred by non-LTO code by
  36121. default.
  36122. 
  36123. File: gccint.info, Node: Internal flags, Prev: WHOPR, Up: LTO
  36124. 25.5 Internal flags controlling 'lto1'
  36125. ======================================
  36126. The following flags are passed into 'lto1' and are not meant to be used
  36127. directly from the command line.
  36128. * -fwpa This option runs the serial part of the link-time optimizer
  36129. performing the inter-procedural propagation (WPA mode). The
  36130. compiler reads in summary information from all inputs and performs
  36131. an analysis based on summary information only. It generates object
  36132. files for subsequent runs of the link-time optimizer where
  36133. individual object files are optimized using both summary
  36134. information from the WPA mode and the actual function bodies. It
  36135. then drives the LTRANS phase.
  36136. * -fltrans This option runs the link-time optimizer in the
  36137. local-transformation (LTRANS) mode, which reads in output from a
  36138. previous run of the LTO in WPA mode. In the LTRANS mode, LTO
  36139. optimizes an object and produces the final assembly.
  36140. * -fltrans-output-list=FILE This option specifies a file to which the
  36141. names of LTRANS output files are written. This option is only
  36142. meaningful in conjunction with '-fwpa'.
  36143. * -fresolution=FILE This option specifies the linker resolution file.
  36144. This option is only meaningful in conjunction with '-fwpa' and as
  36145. option to pass through to the LTO linker plugin.
  36146. 
  36147. File: gccint.info, Node: Match and Simplify, Next: Static Analyzer, Prev: LTO, Up: Top
  36148. 26 Match and Simplify
  36149. *********************
  36150. The GIMPLE and GENERIC pattern matching project match-and-simplify tries
  36151. to address several issues.
  36152. 1. unify expression simplifications currently spread and duplicated
  36153. over separate files like fold-const.c, gimple-fold.c and builtins.c
  36154. 2. allow for a cheap way to implement building and simplifying
  36155. non-trivial GIMPLE expressions, avoiding the need to go through
  36156. building and simplifying GENERIC via fold_buildN and then
  36157. gimplifying via force_gimple_operand
  36158. To address these the project introduces a simple domain specific
  36159. language to write expression simplifications from which code targeting
  36160. GIMPLE and GENERIC is auto-generated. The GENERIC variant follows the
  36161. fold_buildN API while for the GIMPLE variant and to address 2) new APIs
  36162. are introduced.
  36163. * Menu:
  36164. * GIMPLE API::
  36165. * The Language::
  36166. 
  36167. File: gccint.info, Node: GIMPLE API, Next: The Language, Up: Match and Simplify
  36168. 26.1 GIMPLE API
  36169. ===============
  36170. -- GIMPLE function: tree gimple_simplify (enum tree_code, tree, tree,
  36171. gimple_seq *, tree (*)(tree))
  36172. -- GIMPLE function: tree gimple_simplify (enum tree_code, tree, tree,
  36173. tree, gimple_seq *, tree (*)(tree))
  36174. -- GIMPLE function: tree gimple_simplify (enum tree_code, tree, tree,
  36175. tree, tree, gimple_seq *, tree (*)(tree))
  36176. -- GIMPLE function: tree gimple_simplify (enum built_in_function, tree,
  36177. tree, gimple_seq *, tree (*)(tree))
  36178. -- GIMPLE function: tree gimple_simplify (enum built_in_function, tree,
  36179. tree, tree, gimple_seq *, tree (*)(tree))
  36180. -- GIMPLE function: tree gimple_simplify (enum built_in_function, tree,
  36181. tree, tree, tree, gimple_seq *, tree (*)(tree))
  36182. The main GIMPLE API entry to the expression simplifications
  36183. mimicing that of the GENERIC fold_{unary,binary,ternary} functions.
  36184. thus providing n-ary overloads for operation or function. The
  36185. additional arguments are a gimple_seq where built statements are
  36186. inserted on (if 'NULL' then simplifications requiring new statements are
  36187. not performed) and a valueization hook that can be used to tie
  36188. simplifications to a SSA lattice.
  36189. In addition to those APIs 'fold_stmt' is overloaded with a valueization
  36190. hook:
  36191. -- bool: fold_stmt (gimple_stmt_iterator *, tree (*)(tree));
  36192. Ontop of these a 'fold_buildN'-like API for GIMPLE is introduced:
  36193. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  36194. tree_code, tree, tree, tree (*valueize) (tree) = NULL);
  36195. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  36196. tree_code, tree, tree, tree, tree (*valueize) (tree) = NULL);
  36197. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  36198. tree_code, tree, tree, tree, tree, tree (*valueize) (tree) =
  36199. NULL);
  36200. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  36201. built_in_function, tree, tree, tree (*valueize) (tree) =
  36202. NULL);
  36203. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  36204. built_in_function, tree, tree, tree, tree (*valueize) (tree) =
  36205. NULL);
  36206. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  36207. built_in_function, tree, tree, tree, tree, tree (*valueize)
  36208. (tree) = NULL);
  36209. -- GIMPLE function: tree gimple_convert (gimple_seq *, location_t,
  36210. tree, tree);
  36211. which is supposed to replace 'force_gimple_operand (fold_buildN (...),
  36212. ...)' and calls to 'fold_convert'. Overloads without the 'location_t'
  36213. argument exist. Built statements are inserted on the provided sequence
  36214. and simplification is performed using the optional valueization hook.
  36215. 
  36216. File: gccint.info, Node: The Language, Prev: GIMPLE API, Up: Match and Simplify
  36217. 26.2 The Language
  36218. =================
  36219. The language to write expression simplifications in resembles other
  36220. domain-specific languages GCC uses. Thus it is lispy. Lets start with
  36221. an example from the match.pd file:
  36222. (simplify
  36223. (bit_and @0 integer_all_onesp)
  36224. @0)
  36225. This example contains all required parts of an expression
  36226. simplification. A simplification is wrapped inside a '(simplify ...)'
  36227. expression. That contains at least two operands - an expression that is
  36228. matched with the GIMPLE or GENERIC IL and a replacement expression that
  36229. is returned if the match was successful.
  36230. Expressions have an operator ID, 'bit_and' in this case. Expressions
  36231. can be lower-case tree codes with '_expr' stripped off or builtin
  36232. function code names in all-caps, like 'BUILT_IN_SQRT'.
  36233. '@n' denotes a so-called capture. It captures the operand and lets you
  36234. refer to it in other places of the match-and-simplify. In the above
  36235. example it is refered to in the replacement expression. Captures are
  36236. '@' followed by a number or an identifier.
  36237. (simplify
  36238. (bit_xor @0 @0)
  36239. { build_zero_cst (type); })
  36240. In this example '@0' is mentioned twice which constrains the matched
  36241. expression to have two equal operands. Usually matches are constraint
  36242. to equal types. If operands may be constants and conversions are
  36243. involved matching by value might be preferred in which case use '@@0' to
  36244. denote a by value match and the specific operand you want to refer to in
  36245. the result part. This example also introduces operands written in C
  36246. code. These can be used in the expression replacements and are supposed
  36247. to evaluate to a tree node which has to be a valid GIMPLE operand (so
  36248. you cannot generate expressions in C code).
  36249. (simplify
  36250. (trunc_mod integer_zerop@0 @1)
  36251. (if (!integer_zerop (@1))
  36252. @0))
  36253. Here '@0' captures the first operand of the trunc_mod expression which
  36254. is also predicated with 'integer_zerop'. Expression operands may be
  36255. either expressions, predicates or captures. Captures can be
  36256. unconstrained or capture expresions or predicates.
  36257. This example introduces an optional operand of simplify, the
  36258. if-expression. This condition is evaluated after the expression matched
  36259. in the IL and is required to evaluate to true to enable the replacement
  36260. expression in the second operand position. The expression operand of
  36261. the 'if' is a standard C expression which may contain references to
  36262. captures. The 'if' has an optional third operand which may contain the
  36263. replacement expression that is enabled when the condition evaluates to
  36264. false.
  36265. A 'if' expression can be used to specify a common condition for
  36266. multiple simplify patterns, avoiding the need to repeat that multiple
  36267. times:
  36268. (if (!TYPE_SATURATING (type)
  36269. && !FLOAT_TYPE_P (type) && !FIXED_POINT_TYPE_P (type))
  36270. (simplify
  36271. (minus (plus @0 @1) @0)
  36272. @1)
  36273. (simplify
  36274. (minus (minus @0 @1) @0)
  36275. (negate @1)))
  36276. Note that 'if's in outer position do not have the optional else clause
  36277. but instead have multiple then clauses.
  36278. Ifs can be nested.
  36279. There exists a 'switch' expression which can be used to chain
  36280. conditions avoiding nesting 'if's too much:
  36281. (simplify
  36282. (simple_comparison @0 REAL_CST@1)
  36283. (switch
  36284. /* a CMP (-0) -> a CMP 0 */
  36285. (if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (@1)))
  36286. (cmp @0 { build_real (TREE_TYPE (@1), dconst0); }))
  36287. /* x != NaN is always true, other ops are always false. */
  36288. (if (REAL_VALUE_ISNAN (TREE_REAL_CST (@1))
  36289. && ! HONOR_SNANS (@1))
  36290. { constant_boolean_node (cmp == NE_EXPR, type); })))
  36291. Is equal to
  36292. (simplify
  36293. (simple_comparison @0 REAL_CST@1)
  36294. (switch
  36295. /* a CMP (-0) -> a CMP 0 */
  36296. (if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (@1)))
  36297. (cmp @0 { build_real (TREE_TYPE (@1), dconst0); })
  36298. /* x != NaN is always true, other ops are always false. */
  36299. (if (REAL_VALUE_ISNAN (TREE_REAL_CST (@1))
  36300. && ! HONOR_SNANS (@1))
  36301. { constant_boolean_node (cmp == NE_EXPR, type); }))))
  36302. which has the second 'if' in the else operand of the first. The
  36303. 'switch' expression takes 'if' expressions as operands (which may not
  36304. have else clauses) and as a last operand a replacement expression which
  36305. should be enabled by default if no other condition evaluated to true.
  36306. Captures can also be used for capturing results of sub-expressions.
  36307. #if GIMPLE
  36308. (simplify
  36309. (pointer_plus (addr@2 @0) INTEGER_CST_P@1)
  36310. (if (is_gimple_min_invariant (@2)))
  36311. {
  36312. poly_int64 off;
  36313. tree base = get_addr_base_and_unit_offset (@0, &off);
  36314. off += tree_to_uhwi (@1);
  36315. /* Now with that we should be able to simply write
  36316. (addr (mem_ref (addr @base) (plus @off @1))) */
  36317. build1 (ADDR_EXPR, type,
  36318. build2 (MEM_REF, TREE_TYPE (TREE_TYPE (@2)),
  36319. build_fold_addr_expr (base),
  36320. build_int_cst (ptr_type_node, off)));
  36321. })
  36322. #endif
  36323. In the above example, '@2' captures the result of the expression '(addr
  36324. @0)'. For outermost expression only its type can be captured, and the
  36325. keyword 'type' is reserved for this purpose. The above example also
  36326. gives a way to conditionalize patterns to only apply to 'GIMPLE' or
  36327. 'GENERIC' by means of using the pre-defined preprocessor macros 'GIMPLE'
  36328. and 'GENERIC' and using preprocessor directives.
  36329. (simplify
  36330. (bit_and:c integral_op_p@0 (bit_ior:c (bit_not @0) @1))
  36331. (bit_and @1 @0))
  36332. Here we introduce flags on match expressions. The flag used above,
  36333. 'c', denotes that the expression should be also matched commutated.
  36334. Thus the above match expression is really the following four match
  36335. expressions:
  36336. (bit_and integral_op_p@0 (bit_ior (bit_not @0) @1))
  36337. (bit_and (bit_ior (bit_not @0) @1) integral_op_p@0)
  36338. (bit_and integral_op_p@0 (bit_ior @1 (bit_not @0)))
  36339. (bit_and (bit_ior @1 (bit_not @0)) integral_op_p@0)
  36340. Usual canonicalizations you know from GENERIC expressions are applied
  36341. before matching, so for example constant operands always come second in
  36342. commutative expressions.
  36343. The second supported flag is 's' which tells the code generator to fail
  36344. the pattern if the expression marked with 's' does have more than one
  36345. use and the simplification results in an expression with more than one
  36346. operator. For example in
  36347. (simplify
  36348. (pointer_plus (pointer_plus:s @0 @1) @3)
  36349. (pointer_plus @0 (plus @1 @3)))
  36350. this avoids the association if '(pointer_plus @0 @1)' is used outside
  36351. of the matched expression and thus it would stay live and not trivially
  36352. removed by dead code elimination. Now consider '((x + 3) + -3)' with
  36353. the temporary holding '(x + 3)' used elsewhere. This simplifies down to
  36354. 'x' which is desirable and thus flagging with 's' does not prevent the
  36355. transform. Now consider '((x + 3) + 1)' which simplifies to '(x + 4)'.
  36356. Despite being flagged with 's' the simplification will be performed.
  36357. The simplification of '((x + a) + 1)' to '(x + (a + 1))' will not
  36358. performed in this case though.
  36359. More features exist to avoid too much repetition.
  36360. (for op (plus pointer_plus minus bit_ior bit_xor)
  36361. (simplify
  36362. (op @0 integer_zerop)
  36363. @0))
  36364. A 'for' expression can be used to repeat a pattern for each operator
  36365. specified, substituting 'op'. 'for' can be nested and a 'for' can have
  36366. multiple operators to iterate.
  36367. (for opa (plus minus)
  36368. opb (minus plus)
  36369. (for opc (plus minus)
  36370. (simplify...
  36371. In this example the pattern will be repeated four times with 'opa, opb,
  36372. opc' being 'plus, minus, plus'; 'plus, minus, minus'; 'minus, plus,
  36373. plus'; 'minus, plus, minus'.
  36374. To avoid repeating operator lists in 'for' you can name them via
  36375. (define_operator_list pmm plus minus mult)
  36376. and use them in 'for' operator lists where they get expanded.
  36377. (for opa (pmm trunc_div)
  36378. (simplify...
  36379. So this example iterates over 'plus', 'minus', 'mult' and 'trunc_div'.
  36380. Using operator lists can also remove the need to explicitely write a
  36381. 'for'. All operator list uses that appear in a 'simplify' or 'match'
  36382. pattern in operator positions will implicitely be added to a new 'for'.
  36383. For example
  36384. (define_operator_list SQRT BUILT_IN_SQRTF BUILT_IN_SQRT BUILT_IN_SQRTL)
  36385. (define_operator_list POW BUILT_IN_POWF BUILT_IN_POW BUILT_IN_POWL)
  36386. (simplify
  36387. (SQRT (POW @0 @1))
  36388. (POW (abs @0) (mult @1 { built_real (TREE_TYPE (@1), dconsthalf); })))
  36389. is the same as
  36390. (for SQRT (BUILT_IN_SQRTF BUILT_IN_SQRT BUILT_IN_SQRTL)
  36391. POW (BUILT_IN_POWF BUILT_IN_POW BUILT_IN_POWL)
  36392. (simplify
  36393. (SQRT (POW @0 @1))
  36394. (POW (abs @0) (mult @1 { built_real (TREE_TYPE (@1), dconsthalf); }))))
  36395. 'for's and operator lists can include the special identifier 'null'
  36396. that matches nothing and can never be generated. This can be used to
  36397. pad an operator list so that it has a standard form, even if there isn't
  36398. a suitable operator for every form.
  36399. Another building block are 'with' expressions in the result expression
  36400. which nest the generated code in a new C block followed by its argument:
  36401. (simplify
  36402. (convert (mult @0 @1))
  36403. (with { tree utype = unsigned_type_for (type); }
  36404. (convert (mult (convert:utype @0) (convert:utype @1)))))
  36405. This allows code nested in the 'with' to refer to the declared
  36406. variables. In the above case we use the feature to specify the type of
  36407. a generated expression with the ':type' syntax where 'type' needs to be
  36408. an identifier that refers to the desired type. Usually the types of the
  36409. generated result expressions are determined from the context, but
  36410. sometimes like in the above case it is required that you specify them
  36411. explicitely.
  36412. As intermediate conversions are often optional there is a way to avoid
  36413. the need to repeat patterns both with and without such conversions.
  36414. Namely you can mark a conversion as being optional with a '?':
  36415. (simplify
  36416. (eq (convert@0 @1) (convert? @2))
  36417. (eq @1 (convert @2)))
  36418. which will match both '(eq (convert @1) (convert @2))' and '(eq
  36419. (convert @1) @2)'. The optional converts are supposed to be all either
  36420. present or not, thus '(eq (convert? @1) (convert? @2))' will result in
  36421. two patterns only. If you want to match all four combinations you have
  36422. access to two additional conditional converts as in '(eq (convert1? @1)
  36423. (convert2? @2))'.
  36424. The support for '?' marking extends to all unary operations including
  36425. predicates you declare yourself with 'match'.
  36426. Predicates available from the GCC middle-end need to be made available
  36427. explicitely via 'define_predicates':
  36428. (define_predicates
  36429. integer_onep integer_zerop integer_all_onesp)
  36430. You can also define predicates using the pattern matching language and
  36431. the 'match' form:
  36432. (match negate_expr_p
  36433. INTEGER_CST
  36434. (if (TYPE_OVERFLOW_WRAPS (type)
  36435. || may_negate_without_overflow_p (t))))
  36436. (match negate_expr_p
  36437. (negate @0))
  36438. This shows that for 'match' expressions there is 't' available which
  36439. captures the outermost expression (something not possible in the
  36440. 'simplify' context). As you can see 'match' has an identifier as first
  36441. operand which is how you refer to the predicate in patterns. Multiple
  36442. 'match' for the same identifier add additional cases where the predicate
  36443. matches.
  36444. Predicates can also match an expression in which case you need to
  36445. provide a template specifying the identifier and where to get its
  36446. operands from:
  36447. (match (logical_inverted_value @0)
  36448. (eq @0 integer_zerop))
  36449. (match (logical_inverted_value @0)
  36450. (bit_not truth_valued_p@0))
  36451. You can use the above predicate like
  36452. (simplify
  36453. (bit_and @0 (logical_inverted_value @0))
  36454. { build_zero_cst (type); })
  36455. Which will match a bitwise and of an operand with its logical inverted
  36456. value.
  36457. 
  36458. File: gccint.info, Node: Static Analyzer, Next: User Experience Guidelines, Prev: Match and Simplify, Up: Top
  36459. 27 Static Analyzer
  36460. ******************
  36461. * Menu:
  36462. * Analyzer Internals:: Analyzer Internals
  36463. * Debugging the Analyzer:: Useful debugging tips
  36464. 
  36465. File: gccint.info, Node: Analyzer Internals, Next: Debugging the Analyzer, Up: Static Analyzer
  36466. 27.1 Analyzer Internals
  36467. =======================
  36468. 27.1.1 Overview
  36469. ---------------
  36470. The analyzer implementation works on the gimple-SSA representation. (I
  36471. chose this in the hopes of making it easy to work with LTO to do
  36472. whole-program analysis).
  36473. The implementation is read-only: it doesn't attempt to change anything,
  36474. just emit warnings.
  36475. The gimple representation can be seen using '-fdump-ipa-analyzer'.
  36476. First, we build a 'supergraph' which combines the callgraph and all of
  36477. the CFGs into a single directed graph, with both interprocedural and
  36478. intraprocedural edges. The nodes and edges in the supergraph are called
  36479. "supernodes" and "superedges", and often referred to in code as 'snodes'
  36480. and 'sedges'. Basic blocks in the CFGs are split at interprocedural
  36481. calls, so there can be more than one supernode per basic block. Most
  36482. statements will be in just one supernode, but a call statement can
  36483. appear in two supernodes: at the end of one for the call, and again at
  36484. the start of another for the return.
  36485. The supergraph can be seen using '-fdump-analyzer-supergraph'.
  36486. We then build an 'analysis_plan' which walks the callgraph to determine
  36487. which calls might be suitable for being summarized (rather than fully
  36488. explored) and thus in what order to explore the functions.
  36489. Next is the heart of the analyzer: we use a worklist to explore state
  36490. within the supergraph, building an "exploded graph". Nodes in the
  36491. exploded graph correspond to <point, state> pairs, as in "Precise
  36492. Interprocedural Dataflow Analysis via Graph Reachability" (Thomas Reps,
  36493. Susan Horwitz and Mooly Sagiv).
  36494. We reuse nodes for <point, state> pairs we've already seen, and avoid
  36495. tracking state too closely, so that (hopefully) we rapidly converge on a
  36496. final exploded graph, and terminate the analysis. We also bail out if
  36497. the number of exploded <end-of-basic-block, state> nodes gets larger
  36498. than a particular multiple of the total number of basic blocks (to
  36499. ensure termination in the face of pathological state-explosion cases, or
  36500. bugs). We also stop exploring a point once we hit a limit of states for
  36501. that point.
  36502. We can identify problems directly when processing a <point, state>
  36503. instance. For example, if we're finding the successors of
  36504. <point: before-stmt: "free (ptr);",
  36505. state: {"ptr": freed}>
  36506. then we can detect a double-free of "ptr". We can then emit a path to
  36507. reach the problem by finding the simplest route through the graph.
  36508. Program points in the analysis are much more fine-grained than in the
  36509. CFG and supergraph, with points (and thus potentially exploded nodes)
  36510. for various events, including before individual statements. By default
  36511. the exploded graph merges multiple consecutive statements in a supernode
  36512. into one exploded edge to minimize the size of the exploded graph. This
  36513. can be suppressed via '-fanalyzer-fine-grained'. The fine-grained
  36514. approach seems to make things simpler and more debuggable that other
  36515. approaches I tried, in that each point is responsible for one thing.
  36516. Program points in the analysis also have a "call string" identifying
  36517. the stack of callsites below them, so that paths in the exploded graph
  36518. correspond to interprocedurally valid paths: we always return to the
  36519. correct call site, propagating state information accordingly. We avoid
  36520. infinite recursion by stopping the analysis if a callsite appears more
  36521. than 'analyzer-max-recursion-depth' in a callstring (defaulting to 2).
  36522. 27.1.2 Graphs
  36523. -------------
  36524. Nodes and edges in the exploded graph are called "exploded nodes" and
  36525. "exploded edges" and often referred to in the code as 'enodes' and
  36526. 'eedges' (especially when distinguishing them from the 'snodes' and
  36527. 'sedges' in the supergraph).
  36528. Each graph numbers its nodes, giving unique identifiers - supernodes
  36529. are referred to throughout dumps in the form 'SN': INDEX' and exploded
  36530. nodes in the form 'EN: INDEX' (e.g. 'SN: 2' and 'EN:29').
  36531. The supergraph can be seen using '-fdump-analyzer-supergraph-graph'.
  36532. The exploded graph can be seen using '-fdump-analyzer-exploded-graph'
  36533. and other dump options. Exploded nodes are color-coded in the .dot
  36534. output based on state-machine states to make it easier to see state
  36535. changes at a glance.
  36536. 27.1.3 State Tracking
  36537. ---------------------
  36538. There's a tension between:
  36539. * precision of analysis in the straight-line case, vs
  36540. * exponential blow-up in the face of control flow.
  36541. For example, in general, given this CFG:
  36542. A
  36543. / \
  36544. B C
  36545. \ /
  36546. D
  36547. / \
  36548. E F
  36549. \ /
  36550. G
  36551. we want to avoid differences in state-tracking in B and C from leading
  36552. to blow-up. If we don't prevent state blowup, we end up with
  36553. exponential growth of the exploded graph like this:
  36554. 1:A
  36555. / \
  36556. / \
  36557. / \
  36558. 2:B 3:C
  36559. | |
  36560. 4:D 5:D (2 exploded nodes for D)
  36561. / \ / \
  36562. 6:E 7:F 8:E 9:F
  36563. | | | |
  36564. 10:G 11:G 12:G 13:G (4 exploded nodes for G)
  36565. Similar issues arise with loops.
  36566. To prevent this, we follow various approaches:
  36567. a. state pruning: which tries to discard state that won't be relevant
  36568. later on withing the function. This can be disabled via
  36569. '-fno-analyzer-state-purge'.
  36570. b. state merging. We can try to find the commonality between two
  36571. program_state instances to make a third, simpler program_state. We
  36572. have two strategies here:
  36573. 1. the worklist keeps new nodes for the same program_point
  36574. together, and tries to merge them before processing, and thus
  36575. before they have successors. Hence, in the above, the two
  36576. nodes for D (4 and 5) reach the front of the worklist
  36577. together, and we create a node for D with the merger of the
  36578. incoming states.
  36579. 2. try merging with the state of existing enodes for the
  36580. program_point (which may have already been explored). There
  36581. will be duplication, but only one set of duplication;
  36582. subsequent duplicates are more likely to hit the cache. In
  36583. particular, (hopefully) all merger chains are finite, and so
  36584. we guarantee termination. This is intended to help with
  36585. loops: we ought to explore the first iteration, and then have
  36586. a "subsequent iterations" exploration, which uses a state
  36587. merged from that of the first, to be more abstract.
  36588. We avoid merging pairs of states that have state-machine
  36589. differences, as these are the kinds of differences that are likely
  36590. to be most interesting. So, for example, given:
  36591. if (condition)
  36592. ptr = malloc (size);
  36593. else
  36594. ptr = local_buf;
  36595. .... do things with 'ptr'
  36596. if (condition)
  36597. free (ptr);
  36598. ...etc
  36599. then we end up with an exploded graph that looks like this:
  36600. if (condition)
  36601. / T \ F
  36602. --------- ----------
  36603. / \
  36604. ptr = malloc (size) ptr = local_buf
  36605. | |
  36606. copy of copy of
  36607. "do things with 'ptr'" "do things with 'ptr'"
  36608. with ptr: heap-allocated with ptr: stack-allocated
  36609. | |
  36610. if (condition) if (condition)
  36611. | known to be T | known to be F
  36612. free (ptr); |
  36613. \ /
  36614. -----------------------------
  36615. | ('ptr' is pruned, so states can be merged)
  36616. etc
  36617. where some duplication has occurred, but only for the places where
  36618. the the different paths are worth exploringly separately.
  36619. Merging can be disabled via '-fno-analyzer-state-merge'.
  36620. 27.1.4 Region Model
  36621. -------------------
  36622. Part of the state stored at a 'exploded_node' is a 'region_model'. This
  36623. is an implementation of the region-based ternary model described in "A
  36624. Memory Model for Static Analysis of C Programs"
  36625. (http://lcs.ios.ac.cn/~xuzb/canalyze/memmodel.pdf) (Zhongxing Xu, Ted
  36626. Kremenek, and Jian Zhang).
  36627. A 'region_model' encapsulates a representation of the state of memory,
  36628. with a tree of 'region' instances, along with their associated values.
  36629. The representation is graph-like because values can be pointers to
  36630. regions. It also stores a constraint_manager, capturing relationships
  36631. between the values.
  36632. Because each node in the 'exploded_graph' has a 'region_model', and
  36633. each of the latter is graph-like, the 'exploded_graph' is in some ways a
  36634. graph of graphs.
  36635. Here's an example of printing a 'region_model', showing the ASCII-art
  36636. used to visualize the region hierarchy (colorized when printing to
  36637. stderr):
  36638. (gdb) call debug (*this)
  36639. r0: {kind: 'root', parent: null, sval: null}
  36640. |-stack: r1: {kind: 'stack', parent: r0, sval: sv1}
  36641. | |: sval: sv1: {poisoned: uninit}
  36642. | |-frame for 'test': r2: {kind: 'frame', parent: r1, sval: null, map: {'ptr_3': r3}, function: 'test', depth: 0}
  36643. | | `-'ptr_3': r3: {kind: 'map', parent: r2, sval: sv3, type: 'void *', map: {}}
  36644. | | |: sval: sv3: {type: 'void *', unknown}
  36645. | | |: type: 'void *'
  36646. | `-frame for 'calls_malloc': r4: {kind: 'frame', parent: r1, sval: null, map: {'result_3': r7, '_4': r8, '<anonymous>': r5}, function: 'calls_malloc', depth: 1}
  36647. | |-'<anonymous>': r5: {kind: 'map', parent: r4, sval: sv4, type: 'void *', map: {}}
  36648. | | |: sval: sv4: {type: 'void *', &r6}
  36649. | | |: type: 'void *'
  36650. | |-'result_3': r7: {kind: 'map', parent: r4, sval: sv4, type: 'void *', map: {}}
  36651. | | |: sval: sv4: {type: 'void *', &r6}
  36652. | | |: type: 'void *'
  36653. | `-'_4': r8: {kind: 'map', parent: r4, sval: sv4, type: 'void *', map: {}}
  36654. | |: sval: sv4: {type: 'void *', &r6}
  36655. | |: type: 'void *'
  36656. `-heap: r9: {kind: 'heap', parent: r0, sval: sv2}
  36657. |: sval: sv2: {poisoned: uninit}
  36658. `-r6: {kind: 'symbolic', parent: r9, sval: null, map: {}}
  36659. svalues:
  36660. sv0: {type: 'size_t', '1024'}
  36661. sv1: {poisoned: uninit}
  36662. sv2: {poisoned: uninit}
  36663. sv3: {type: 'void *', unknown}
  36664. sv4: {type: 'void *', &r6}
  36665. constraint manager:
  36666. equiv classes:
  36667. ec0: {sv0 == '1024'}
  36668. ec1: {sv4}
  36669. constraints:
  36670. This is the state at the point of returning from 'calls_malloc' back to
  36671. 'test' in the following:
  36672. void *
  36673. calls_malloc (void)
  36674. {
  36675. void *result = malloc (1024);
  36676. return result;
  36677. }
  36678. void test (void)
  36679. {
  36680. void *ptr = calls_malloc ();
  36681. /* etc. */
  36682. }
  36683. The "root" region ("r0") has a "stack" child ("r1"), with two children:
  36684. a frame for 'test' ("r2"), and a frame for 'calls_malloc' ("r4"). These
  36685. frame regions have child regions for storing their local variables. For
  36686. example, the return region and that of various other regions within the
  36687. "calls_malloc" frame all have value "sv4", a pointer to a heap-allocated
  36688. region "r6". Within the parent frame, 'ptr_3' has value "sv3", an
  36689. unknown 'void *'.
  36690. 27.1.5 Analyzer Paths
  36691. ---------------------
  36692. We need to explain to the user what the problem is, and to persuade them
  36693. that there really is a problem. Hence having a 'diagnostic_path' isn't
  36694. just an incidental detail of the analyzer; it's required.
  36695. Paths ought to be:
  36696. * interprocedurally-valid
  36697. * feasible
  36698. Without state-merging, all paths in the exploded graph are feasible (in
  36699. terms of constraints being satisified). With state-merging, paths in
  36700. the exploded graph can be infeasible.
  36701. We collate warnings and only emit them for the simplest path e.g. for
  36702. a bug in a utility function, with lots of routes to calling it, we only
  36703. emit the simplest path (which could be intraprocedural, if it can be
  36704. reproduced without a caller). We apply a check that each duplicate
  36705. warning's shortest path is feasible, rejecting any warnings for which
  36706. the shortest path is infeasible (which could lead to false negatives).
  36707. We use the shortest feasible 'exploded_path' through the
  36708. 'exploded_graph' (a list of 'exploded_edge *') to build a
  36709. 'diagnostic_path' (a list of events for the diagnostic subsystem) -
  36710. specifically a 'checker_path'.
  36711. Having built the 'checker_path', we prune it to try to eliminate events
  36712. that aren't relevant, to minimize how much the user has to read.
  36713. After pruning, we notify each event in the path of its ID and record
  36714. the IDs of interesting events, allowing for events to refer to other
  36715. events in their descriptions. The 'pending_diagnostic' class has
  36716. various vfuncs to support emitting more precise descriptions, so that
  36717. e.g.
  36718. * a deref-of-unchecked-malloc diagnostic might use:
  36719. returning possibly-NULL pointer to 'make_obj' from 'allocator'
  36720. for a 'return_event' to make it clearer how the unchecked value
  36721. moves from callee back to caller
  36722. * a double-free diagnostic might use:
  36723. second 'free' here; first 'free' was at (3)
  36724. and a use-after-free might use
  36725. use after 'free' here; memory was freed at (2)
  36726. At this point we can emit the diagnostic.
  36727. 27.1.6 Limitations
  36728. ------------------
  36729. * Only for C so far
  36730. * The implementation of call summaries is currently very simplistic.
  36731. * Lack of function pointer analysis
  36732. * The constraint-handling code assumes reflexivity in some places
  36733. (that values are equal to themselves), which is not the case for
  36734. NaN. As a simple workaround, constraints on floating-point values
  36735. are currently ignored.
  36736. * The region model code creates lots of little mutable objects at
  36737. each 'region_model' (and thus per 'exploded_node') rather than
  36738. sharing immutable objects and having the mutable state in the
  36739. 'program_state' or 'region_model'. The latter approach might be
  36740. more efficient, and might avoid dealing with IDs rather than
  36741. pointers (which requires us to impose an ordering to get meaningful
  36742. equality).
  36743. * The region model code doesn't yet support 'memcpy'. At the
  36744. gimple-ssa level these have been optimized to statements like this:
  36745. _10 = MEM <long unsigned int> [(char * {ref-all})&c]
  36746. MEM <long unsigned int> [(char * {ref-all})&d] = _10;
  36747. Perhaps they could be supported via a new 'compound_svalue' type.
  36748. * There are various other limitations in the region model (grep for
  36749. TODO/xfail in the testsuite).
  36750. * The constraint_manager's implementation of transitivity is
  36751. currently too expensive to enable by default and so must be
  36752. manually enabled via '-fanalyzer-transitivity').
  36753. * The checkers are currently hardcoded and don't allow for user
  36754. extensibility (e.g. adding allocate/release pairs).
  36755. * Although the analyzer's test suite has a proof-of-concept test case
  36756. for LTO, LTO support hasn't had extensive testing. There are
  36757. various lang-specific things in the analyzer that assume C rather
  36758. than LTO. For example, SSA names are printed to the user in "raw"
  36759. form, rather than printing the underlying variable name.
  36760. Some ideas for other checkers
  36761. * File-descriptor-based APIs
  36762. * Linux kernel internal APIs
  36763. * Signal handling
  36764. 
  36765. File: gccint.info, Node: Debugging the Analyzer, Prev: Analyzer Internals, Up: Static Analyzer
  36766. 27.2 Debugging the Analyzer
  36767. ===========================
  36768. 27.2.1 Special Functions for Debugging the Analyzer
  36769. ---------------------------------------------------
  36770. The analyzer recognizes various special functions by name, for use in
  36771. debugging the analyzer. Declarations can be seen in the testsuite in
  36772. 'analyzer-decls.h'. None of these functions are actually implemented.
  36773. Add:
  36774. __analyzer_break ();
  36775. to the source being analyzed to trigger a breakpoint in the analyzer
  36776. when that source is reached. By putting a series of these in the
  36777. source, it's much easier to effectively step through the program state
  36778. as it's analyzed.
  36779. __analyzer_dump ();
  36780. will dump the copious information about the analyzer's state each time
  36781. it reaches the call in its traversal of the source.
  36782. __analyzer_dump_path ();
  36783. will emit a placeholder "note" diagnostic with a path to that call
  36784. site, if the analyzer finds a feasible path to it.
  36785. The builtin '__analyzer_dump_exploded_nodes' will emit a warning after
  36786. analysis containing information on all of the exploded nodes at that
  36787. program point:
  36788. __analyzer_dump_exploded_nodes (0);
  36789. will output the number of "processed" nodes, and the IDs of both
  36790. "processed" and "merger" nodes, such as:
  36791. warning: 2 processed enodes: [EN: 56, EN: 58] merger(s): [EN: 54-55, EN: 57, EN: 59]
  36792. With a non-zero argument
  36793. __analyzer_dump_exploded_nodes (1);
  36794. it will also dump all of the states within the "processed" nodes.
  36795. __analyzer_dump_region_model ();
  36796. will dump the region_model's state to stderr.
  36797. __analyzer_eval (expr);
  36798. will emit a warning with text "TRUE", FALSE" or "UNKNOWN" based on the
  36799. truthfulness of the argument. This is useful for writing DejaGnu tests.
  36800. 27.2.2 Other Debugging Techniques
  36801. ---------------------------------
  36802. One approach when tracking down where a particular bogus state is
  36803. introduced into the 'exploded_graph' is to add custom code to
  36804. 'region_model::validate'.
  36805. For example, this custom code (added to 'region_model::validate')
  36806. breaks with an assertion failure when a variable called 'ptr' acquires a
  36807. value that's unknown, using 'region_model::get_value_by_name' to locate
  36808. the variable
  36809. /* Find a variable matching "ptr". */
  36810. svalue_id sid = get_value_by_name ("ptr");
  36811. if (!sid.null_p ())
  36812. {
  36813. svalue *sval = get_svalue (sid);
  36814. gcc_assert (sval->get_kind () != SK_UNKNOWN);
  36815. }
  36816. making it easier to investigate further in a debugger when this occurs.
  36817. 
  36818. File: gccint.info, Node: User Experience Guidelines, Next: Funding, Prev: Static Analyzer, Up: Top
  36819. 28 User Experience Guidelines
  36820. *****************************
  36821. To borrow a slogan from Elm
  36822. (https://elm-lang.org/news/compilers-as-assistants),
  36823. *Compilers should be assistants, not adversaries.* A compiler
  36824. should not just detect bugs, it should then help you understand why
  36825. there is a bug. It should not berate you in a robot voice, it
  36826. should give you specific hints that help you write better code.
  36827. Ultimately, a compiler should make programming faster and more fun!
  36828. -- _Evan Czaplicki_
  36829. This chapter provides guidelines on how to implement diagnostics and
  36830. command-line options in ways that we hope achieve the above ideal.
  36831. * Menu:
  36832. * Guidelines for Diagnostics:: How to implement diagnostics.
  36833. * Guidelines for Options:: Guidelines for command-line options.
  36834. 
  36835. File: gccint.info, Node: Guidelines for Diagnostics, Next: Guidelines for Options, Up: User Experience Guidelines
  36836. 28.1 Guidelines for Diagnostics
  36837. ===============================
  36838. 28.1.1 Talk in terms of the user's code
  36839. ---------------------------------------
  36840. Diagnostics should be worded in terms of the user's source code, and the
  36841. source language, rather than GCC's own implementation details.
  36842. 28.1.2 Diagnostics are actionable
  36843. ---------------------------------
  36844. A good diagnostic is "actionable": it should assist the user in taking
  36845. action.
  36846. Consider what an end user will want to do when encountering a
  36847. diagnostic.
  36848. Given an error, an end user will think: "How do I fix this?"
  36849. Given a warning, an end user will think:
  36850. * "Is this a real problem?"
  36851. * "Do I care?"
  36852. * if they decide it's genuine: "How do I fix this?"
  36853. A good diagnostic provides pertinent information to allow the user to
  36854. easily answer the above questions.
  36855. 28.1.3 The user's attention is important
  36856. ----------------------------------------
  36857. A perfect compiler would issue a warning on every aspect of the user's
  36858. source code that ought to be fixed, and issue no other warnings.
  36859. Naturally, this ideal is impossible to achieve.
  36860. Warnings should have a good "signal-to-noise ratio": we should have few
  36861. "false positives" (falsely issuing a warning when no warning is
  36862. warranted) and few "false negatives" (failing to issue a warning when
  36863. one _is_ justified).
  36864. Note that a false positive can mean, in practice, a warning that the
  36865. user doesn't agree with. Ideally a diagnostic should contain enough
  36866. information to allow the user to make an informed choice about whether
  36867. they should care (and how to fix it), but a balance must be drawn
  36868. against overloading the user with irrelevant data.
  36869. 28.1.4 Precision of Wording
  36870. ---------------------------
  36871. Provide the user with details that allow them to identify what the
  36872. problem is. For example, the vaguely-worded message:
  36873. demo.c:1:1: warning: 'noinline' attribute ignored [-Wattributes]
  36874. 1 | int foo __attribute__((noinline));
  36875. | ^~~
  36876. doesn't tell the user why the attribute was ignored, or what kind of
  36877. entity the compiler thought the attribute was being applied to (the
  36878. source location for the diagnostic is also poor; *note discussion of
  36879. 'input_location': input_location_example.). A better message would be:
  36880. demo.c:1:24: warning: attribute 'noinline' on variable 'foo' was
  36881. ignored [-Wattributes]
  36882. 1 | int foo __attribute__((noinline));
  36883. | ~~~ ~~~~~~~~~~~~~~~^~~~~~~~~
  36884. demo.c:1:24: note: attribute 'noinline' is only applicable to functions
  36885. which spells out the missing information (and fixes the location
  36886. information, as discussed below).
  36887. The above example uses a note to avoid a combinatorial explosion of
  36888. possible messages.
  36889. 28.1.5 Try the diagnostic on real-world code
  36890. --------------------------------------------
  36891. It's worth testing a new warning on many instances of real-world code,
  36892. written by different people, and seeing what it complains about, and
  36893. what it doesn't complain about.
  36894. This may suggest heuristics that silence common false positives.
  36895. It may also suggest ways to improve the precision of the message.
  36896. 28.1.6 Make mismatches clear
  36897. ----------------------------
  36898. Many diagnostics relate to a mismatch between two different places in
  36899. the user's source code. Examples include:
  36900. * a type mismatch, where the type at a usage site does not match the
  36901. type at a declaration
  36902. * the argument count at a call site does not match the parameter
  36903. count at the declaration
  36904. * something is erroneously duplicated (e.g. an error, due to breaking
  36905. a uniqueness requirement, or a warning, if it's suggestive of a
  36906. bug)
  36907. * an "opened" syntactic construct (such as an open-parenthesis) is
  36908. not closed
  36909. In each case, the diagnostic should indicate *both* pertinent locations
  36910. (so that the user can easily see the problem and how to fix it).
  36911. The standard way to do this is with a note (via 'inform'). For
  36912. example:
  36913. auto_diagnostic_group d;
  36914. if (warning_at (loc, OPT_Wduplicated_cond,
  36915. "duplicated %<if%> condition"))
  36916. inform (EXPR_LOCATION (t), "previously used here");
  36917. which leads to:
  36918. demo.c: In function 'test':
  36919. demo.c:5:17: warning: duplicated 'if' condition [-Wduplicated-cond]
  36920. 5 | else if (flag > 3)
  36921. | ~~~~~^~~
  36922. demo.c:3:12: note: previously used here
  36923. 3 | if (flag > 3)
  36924. | ~~~~~^~~
  36925. The 'inform' call should be guarded by the return value from the
  36926. 'warning_at' call so that the note isn't emitted when the warning is
  36927. suppressed.
  36928. For cases involving punctuation where the locations might be near each
  36929. other, they can be conditionally consolidated via
  36930. 'gcc_rich_location::add_location_if_nearby':
  36931. auto_diagnostic_group d;
  36932. gcc_rich_location richloc (primary_loc);
  36933. bool added secondary = richloc.add_location_if_nearby (secondary_loc);
  36934. error_at (&richloc, "main message");
  36935. if (!added secondary)
  36936. inform (secondary_loc, "message for secondary");
  36937. This will emit either one diagnostic with two locations:
  36938. demo.c:42:10: error: main message
  36939. (foo)
  36940. ~ ^
  36941. or two diagnostics:
  36942. demo.c:42:4: error: main message
  36943. foo)
  36944. ^
  36945. demo.c:40:2: note: message for secondary
  36946. (
  36947. ^
  36948. 28.1.7 Location Information
  36949. ---------------------------
  36950. GCC's 'location_t' type can support both ordinary locations, and
  36951. locations relating to a macro expansion.
  36952. As of GCC 6, ordinary locations changed from supporting just a point in
  36953. the user's source code to supporting three points: the "caret" location,
  36954. plus a start and a finish:
  36955. a = foo && bar;
  36956. ~~~~^~~~~~
  36957. | | |
  36958. | | finish
  36959. | caret
  36960. start
  36961. Tokens coming out of libcpp have locations of the form 'caret ==
  36962. start', such as for 'foo' here:
  36963. a = foo && bar;
  36964. ^~~
  36965. | |
  36966. | finish
  36967. caret == start
  36968. Compound expressions should be reported using the location of the
  36969. expression as a whole, rather than just of one token within it.
  36970. For example, in '-Wformat', rather than underlining just the first
  36971. token of a bad argument:
  36972. printf("hello %i %s", (long)0, "world");
  36973. ~^ ~
  36974. %li
  36975. the whole of the expression should be underlined, so that the user can
  36976. easily identify what is being referred to:
  36977. printf("hello %i %s", (long)0, "world");
  36978. ~^ ~~~~~~~
  36979. %li
  36980. Avoid using the 'input_location' global, and the diagnostic functions
  36981. that implicitly use it--use 'error_at' and 'warning_at' rather than
  36982. 'error' and 'warning', and provide the most appropriate 'location_t'
  36983. value available at that phase of the compilation. It's possible to
  36984. supply secondary 'location_t' values via 'rich_location'.
  36985. For example, in the example of imprecise wording above, generating the
  36986. diagnostic using 'warning':
  36987. // BAD: implicitly uses input_location
  36988. warning (OPT_Wattributes, "%qE attribute ignored", name);
  36989. leads to:
  36990. // BAD: uses input_location
  36991. demo.c:1:1: warning: 'noinline' attribute ignored [-Wattributes]
  36992. 1 | int foo __attribute__((noinline));
  36993. | ^~~
  36994. which thus happened to use the location of the 'int' token, rather than
  36995. that of the attribute. Using 'warning_at' with the location of the
  36996. attribute, providing the location of the declaration in question as a
  36997. secondary location, and adding a note:
  36998. auto_diagnostic_group d;
  36999. gcc_rich_location richloc (attrib_loc);
  37000. richloc.add_range (decl_loc);
  37001. if (warning_at (OPT_Wattributes, &richloc,
  37002. "attribute %qE on variable %qE was ignored", name))
  37003. inform (attrib_loc, "attribute %qE is only applicable to functions");
  37004. would lead to:
  37005. // OK: use location of attribute, with a secondary location
  37006. demo.c:1:24: warning: attribute 'noinline' on variable 'foo' was
  37007. ignored [-Wattributes]
  37008. 1 | int foo __attribute__((noinline));
  37009. | ~~~ ~~~~~~~~~~~~~~~^~~~~~~~~
  37010. demo.c:1:24: note: attribute 'noinline' is only applicable to functions
  37011. 28.1.8 Coding Conventions
  37012. -------------------------
  37013. See the diagnostics section
  37014. (https://gcc.gnu.org/codingconventions.html#Diagnostics) of the GCC
  37015. coding conventions.
  37016. In the C++ front end, when comparing two types in a message, use '%H'
  37017. and '%I' rather than '%T', as this allows the diagnostics subsystem to
  37018. highlight differences between template-based types. For example, rather
  37019. than using '%qT':
  37020. // BAD: a pair of %qT used in C++ front end for type comparison
  37021. error_at (loc, "could not convert %qE from %qT to %qT", expr,
  37022. TREE_TYPE (expr), type);
  37023. which could lead to:
  37024. error: could not convert 'map<int, double>()' from 'map<int,double>'
  37025. to 'map<int,int>'
  37026. using '%H' and '%I' (via '%qH' and '%qI'):
  37027. // OK: compare types in C++ front end via %qH and %qI
  37028. error_at (loc, "could not convert %qE from %qH to %qI", expr,
  37029. TREE_TYPE (expr), type);
  37030. allows the above output to be simplified to:
  37031. error: could not convert 'map<int, double>()' from 'map<[...],double>'
  37032. to 'map<[...],int>'
  37033. where the 'double' and 'int' are colorized to highlight them.
  37034. 28.1.9 Group logically-related diagnostics
  37035. ------------------------------------------
  37036. Use 'auto_diagnostic_group' when issuing multiple related diagnostics
  37037. (seen in various examples on this page). This informs the diagnostic
  37038. subsystem that all diagnostics issued within the lifetime of the
  37039. 'auto_diagnostic_group' are related. For example,
  37040. '-fdiagnostics-format=json' will treat the first diagnostic emitted
  37041. within the group as a top-level diagnostic, and all subsequent
  37042. diagnostics within the group as its children.
  37043. 28.1.10 Quoting
  37044. ---------------
  37045. Text should be quoted by either using the 'q' modifier in a directive
  37046. such as '%qE', or by enclosing the quoted text in a pair of '%<' and
  37047. '%>' directives, and never by using explicit quote characters. The
  37048. directives handle the appropriate quote characters for each language and
  37049. apply the correct color or highlighting.
  37050. The following elements should be quoted in GCC diagnostics:
  37051. * Language keywords.
  37052. * Tokens.
  37053. * Boolean, numerical, character, and string constants that appear in
  37054. the source code.
  37055. * Identifiers, including function, macro, type, and variable names.
  37056. Other elements such as numbers that do not refer to numeric constants
  37057. that appear in the source code should not be quoted. For example, in
  37058. the message:
  37059. argument %d of %qE must be a pointer type
  37060. since the argument number does not refer to a numerical constant in the
  37061. source code it should not be quoted.
  37062. 28.1.11 Spelling and Terminology
  37063. --------------------------------
  37064. See the terminology and markup
  37065. (https://gcc.gnu.org/codingconventions.html#Spelling Spelling) section
  37066. of the GCC coding conventions.
  37067. 28.1.12 Fix-it hints
  37068. --------------------
  37069. GCC's diagnostic subsystem can emit "fix-it hints": small suggested
  37070. edits to the user's source code.
  37071. They are printed by default underneath the code in question. They can
  37072. also be viewed via '-fdiagnostics-generate-patch' and
  37073. '-fdiagnostics-parseable-fixits'. With the latter, an IDE ought to be
  37074. able to offer to automatically apply the suggested fix.
  37075. Fix-it hints contain code fragments, and thus they should not be marked
  37076. for translation.
  37077. Fix-it hints can be added to a diagnostic by using a 'rich_location'
  37078. rather than a 'location_t' - the fix-it hints are added to the
  37079. 'rich_location' using one of the various 'add_fixit' member functions of
  37080. 'rich_location'. They are documented with 'rich_location' in
  37081. 'libcpp/line-map.h'. It's easiest to use the 'gcc_rich_location'
  37082. subclass of 'rich_location' found in 'gcc-rich-location.h', as this
  37083. implicitly supplies the 'line_table' variable.
  37084. For example:
  37085. if (const char *suggestion = hint.suggestion ())
  37086. {
  37087. gcc_rich_location richloc (location);
  37088. richloc.add_fixit_replace (suggestion);
  37089. error_at (&richloc,
  37090. "%qE does not name a type; did you mean %qs?",
  37091. id, suggestion);
  37092. }
  37093. which can lead to:
  37094. spellcheck-typenames.C:73:1: error: 'singed' does not name a type; did
  37095. you mean 'signed'?
  37096. 73 | singed char ch;
  37097. | ^~~~~~
  37098. | signed
  37099. Non-trivial edits can be built up by adding multiple fix-it hints to
  37100. one 'rich_location'. It's best to express the edits in terms of the
  37101. locations of individual tokens. Various handy functions for adding
  37102. fix-it hints for idiomatic C and C++ can be seen in
  37103. 'gcc-rich-location.h'.
  37104. 28.1.12.1 Fix-it hints should work
  37105. ..................................
  37106. When implementing a fix-it hint, please verify that the suggested edit
  37107. leads to fixed, compilable code. (Unfortunately, this currently must be
  37108. done by hand using '-fdiagnostics-generate-patch'. It would be good to
  37109. have an automated way of verifying that fix-it hints actually fix the
  37110. code).
  37111. For example, a "gotcha" here is to forget to add a space when adding a
  37112. missing reserved word. Consider a C++ fix-it hint that adds 'typename'
  37113. in front of a template declaration. A naive way to implement this might
  37114. be:
  37115. gcc_rich_location richloc (loc);
  37116. // BAD: insertion is missing a trailing space
  37117. richloc.add_fixit_insert_before ("typename");
  37118. error_at (&richloc, "need %<typename%> before %<%T::%E%> because "
  37119. "%qT is a dependent scope",
  37120. parser->scope, id, parser->scope);
  37121. When applied to the code, this might lead to:
  37122. T::type x;
  37123. being "corrected" to:
  37124. typenameT::type x;
  37125. In this case, the correct thing to do is to add a trailing space after
  37126. 'typename':
  37127. gcc_rich_location richloc (loc);
  37128. // OK: note that here we have a trailing space
  37129. richloc.add_fixit_insert_before ("typename ");
  37130. error_at (&richloc, "need %<typename%> before %<%T::%E%> because "
  37131. "%qT is a dependent scope",
  37132. parser->scope, id, parser->scope);
  37133. leading to this corrected code:
  37134. typename T::type x;
  37135. 28.1.12.2 Express deletion in terms of deletion, not replacement
  37136. ................................................................
  37137. It's best to express deletion suggestions in terms of deletion fix-it
  37138. hints, rather than replacement fix-it hints. For example, consider
  37139. this:
  37140. auto_diagnostic_group d;
  37141. gcc_rich_location richloc (location_of (retval));
  37142. tree name = DECL_NAME (arg);
  37143. richloc.add_fixit_replace (IDENTIFIER_POINTER (name));
  37144. warning_at (&richloc, OPT_Wredundant_move,
  37145. "redundant move in return statement");
  37146. which is intended to e.g. replace a 'std::move' with the underlying
  37147. value:
  37148. return std::move (retval);
  37149. ~~~~~~~~~~^~~~~~~~
  37150. retval
  37151. where the change has been expressed as replacement, replacing with the
  37152. name of the declaration. This works for simple cases, but consider this
  37153. case:
  37154. #ifdef SOME_CONFIG_FLAG
  37155. # define CONFIGURY_GLOBAL global_a
  37156. #else
  37157. # define CONFIGURY_GLOBAL global_b
  37158. #endif
  37159. int fn ()
  37160. {
  37161. return std::move (CONFIGURY_GLOBAL /* some comment */);
  37162. }
  37163. The above implementation erroneously strips out the macro and the
  37164. comment in the fix-it hint:
  37165. return std::move (CONFIGURY_GLOBAL /* some comment */);
  37166. ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  37167. global_a
  37168. and thus this resulting code:
  37169. return global_a;
  37170. It's better to do deletions in terms of deletions; deleting the
  37171. 'std::move (' and the trailing close-paren, leading to this:
  37172. return std::move (CONFIGURY_GLOBAL /* some comment */);
  37173. ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  37174. CONFIGURY_GLOBAL /* some comment */
  37175. and thus this result:
  37176. return CONFIGURY_GLOBAL /* some comment */;
  37177. Unfortunately, the pertinent 'location_t' values are not always
  37178. available.
  37179. 28.1.12.3 Multiple suggestions
  37180. ..............................
  37181. In the rare cases where you need to suggest more than one mutually
  37182. exclusive solution to a problem, this can be done by emitting multiple
  37183. notes and calling 'rich_location::fixits_cannot_be_auto_applied' on each
  37184. note's 'rich_location'. If this is called, then the fix-it hints in the
  37185. 'rich_location' will be printed, but will not be added to generated
  37186. patches.
  37187. 
  37188. File: gccint.info, Node: Guidelines for Options, Prev: Guidelines for Diagnostics, Up: User Experience Guidelines
  37189. 28.2 Guidelines for Options
  37190. ===========================
  37191. 
  37192. File: gccint.info, Node: Funding, Next: GNU Project, Prev: User Experience Guidelines, Up: Top
  37193. Funding Free Software
  37194. *********************
  37195. If you want to have more free software a few years from now, it makes
  37196. sense for you to help encourage people to contribute funds for its
  37197. development. The most effective approach known is to encourage
  37198. commercial redistributors to donate.
  37199. Users of free software systems can boost the pace of development by
  37200. encouraging for-a-fee distributors to donate part of their selling price
  37201. to free software developers--the Free Software Foundation, and others.
  37202. The way to convince distributors to do this is to demand it and expect
  37203. it from them. So when you compare distributors, judge them partly by
  37204. how much they give to free software development. Show distributors they
  37205. must compete to be the one who gives the most.
  37206. To make this approach work, you must insist on numbers that you can
  37207. compare, such as, "We will donate ten dollars to the Frobnitz project
  37208. for each disk sold." Don't be satisfied with a vague promise, such as
  37209. "A portion of the profits are donated," since it doesn't give a basis
  37210. for comparison.
  37211. Even a precise fraction "of the profits from this disk" is not very
  37212. meaningful, since creative accounting and unrelated business decisions
  37213. can greatly alter what fraction of the sales price counts as profit. If
  37214. the price you pay is $50, ten percent of the profit is probably less
  37215. than a dollar; it might be a few cents, or nothing at all.
  37216. Some redistributors do development work themselves. This is useful
  37217. too; but to keep everyone honest, you need to inquire how much they do,
  37218. and what kind. Some kinds of development make much more long-term
  37219. difference than others. For example, maintaining a separate version of
  37220. a program contributes very little; maintaining the standard version of a
  37221. program for the whole community contributes much. Easy new ports
  37222. contribute little, since someone else would surely do them; difficult
  37223. ports such as adding a new CPU to the GNU Compiler Collection contribute
  37224. more; major new features or packages contribute the most.
  37225. By establishing the idea that supporting further development is "the
  37226. proper thing to do" when distributing free software for a fee, we can
  37227. assure a steady flow of resources into making more free software.
  37228. Copyright (C) 1994 Free Software Foundation, Inc.
  37229. Verbatim copying and redistribution of this section is permitted
  37230. without royalty; alteration is not permitted.
  37231. 
  37232. File: gccint.info, Node: GNU Project, Next: Copying, Prev: Funding, Up: Top
  37233. The GNU Project and GNU/Linux
  37234. *****************************
  37235. The GNU Project was launched in 1984 to develop a complete Unix-like
  37236. operating system which is free software: the GNU system. (GNU is a
  37237. recursive acronym for "GNU's Not Unix"; it is pronounced "guh-NEW".)
  37238. Variants of the GNU operating system, which use the kernel Linux, are
  37239. now widely used; though these systems are often referred to as "Linux",
  37240. they are more accurately called GNU/Linux systems.
  37241. For more information, see:
  37242. <http://www.gnu.org/>
  37243. <http://www.gnu.org/gnu/linux-and-gnu.html>
  37244. 
  37245. File: gccint.info, Node: Copying, Next: GNU Free Documentation License, Prev: GNU Project, Up: Top
  37246. GNU General Public License
  37247. **************************
  37248. Version 3, 29 June 2007
  37249. Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  37250. Everyone is permitted to copy and distribute verbatim copies of this
  37251. license document, but changing it is not allowed.
  37252. Preamble
  37253. ========
  37254. The GNU General Public License is a free, copyleft license for software
  37255. and other kinds of works.
  37256. The licenses for most software and other practical works are designed
  37257. to take away your freedom to share and change the works. By contrast,
  37258. the GNU General Public License is intended to guarantee your freedom to
  37259. share and change all versions of a program-to make sure it remains free
  37260. software for all its users. We, the Free Software Foundation, use the
  37261. GNU General Public License for most of our software; it applies also to
  37262. any other work released this way by its authors. You can apply it to
  37263. your programs, too.
  37264. When we speak of free software, we are referring to freedom, not price.
  37265. Our General Public Licenses are designed to make sure that you have the
  37266. freedom to distribute copies of free software (and charge for them if
  37267. you wish), that you receive source code or can get it if you want it,
  37268. that you can change the software or use pieces of it in new free
  37269. programs, and that you know you can do these things.
  37270. To protect your rights, we need to prevent others from denying you
  37271. these rights or asking you to surrender the rights. Therefore, you have
  37272. certain responsibilities if you distribute copies of the software, or if
  37273. you modify it: responsibilities to respect the freedom of others.
  37274. For example, if you distribute copies of such a program, whether gratis
  37275. or for a fee, you must pass on to the recipients the same freedoms that
  37276. you received. You must make sure that they, too, receive or can get the
  37277. source code. And you must show them these terms so they know their
  37278. rights.
  37279. Developers that use the GNU GPL protect your rights with two steps: (1)
  37280. assert copyright on the software, and (2) offer you this License giving
  37281. you legal permission to copy, distribute and/or modify it.
  37282. For the developers' and authors' protection, the GPL clearly explains
  37283. that there is no warranty for this free software. For both users' and
  37284. authors' sake, the GPL requires that modified versions be marked as
  37285. changed, so that their problems will not be attributed erroneously to
  37286. authors of previous versions.
  37287. Some devices are designed to deny users access to install or run
  37288. modified versions of the software inside them, although the manufacturer
  37289. can do so. This is fundamentally incompatible with the aim of
  37290. protecting users' freedom to change the software. The systematic
  37291. pattern of such abuse occurs in the area of products for individuals to
  37292. use, which is precisely where it is most unacceptable. Therefore, we
  37293. have designed this version of the GPL to prohibit the practice for those
  37294. products. If such problems arise substantially in other domains, we
  37295. stand ready to extend this provision to those domains in future versions
  37296. of the GPL, as needed to protect the freedom of users.
  37297. Finally, every program is threatened constantly by software patents.
  37298. States should not allow patents to restrict development and use of
  37299. software on general-purpose computers, but in those that do, we wish to
  37300. avoid the special danger that patents applied to a free program could
  37301. make it effectively proprietary. To prevent this, the GPL assures that
  37302. patents cannot be used to render the program non-free.
  37303. The precise terms and conditions for copying, distribution and
  37304. modification follow.
  37305. TERMS AND CONDITIONS
  37306. ====================
  37307. 0. Definitions.
  37308. "This License" refers to version 3 of the GNU General Public
  37309. License.
  37310. "Copyright" also means copyright-like laws that apply to other
  37311. kinds of works, such as semiconductor masks.
  37312. "The Program" refers to any copyrightable work licensed under this
  37313. License. Each licensee is addressed as "you". "Licensees" and
  37314. "recipients" may be individuals or organizations.
  37315. To "modify" a work means to copy from or adapt all or part of the
  37316. work in a fashion requiring copyright permission, other than the
  37317. making of an exact copy. The resulting work is called a "modified
  37318. version" of the earlier work or a work "based on" the earlier work.
  37319. A "covered work" means either the unmodified Program or a work
  37320. based on the Program.
  37321. To "propagate" a work means to do anything with it that, without
  37322. permission, would make you directly or secondarily liable for
  37323. infringement under applicable copyright law, except executing it on
  37324. a computer or modifying a private copy. Propagation includes
  37325. copying, distribution (with or without modification), making
  37326. available to the public, and in some countries other activities as
  37327. well.
  37328. To "convey" a work means any kind of propagation that enables other
  37329. parties to make or receive copies. Mere interaction with a user
  37330. through a computer network, with no transfer of a copy, is not
  37331. conveying.
  37332. An interactive user interface displays "Appropriate Legal Notices"
  37333. to the extent that it includes a convenient and prominently visible
  37334. feature that (1) displays an appropriate copyright notice, and (2)
  37335. tells the user that there is no warranty for the work (except to
  37336. the extent that warranties are provided), that licensees may convey
  37337. the work under this License, and how to view a copy of this
  37338. License. If the interface presents a list of user commands or
  37339. options, such as a menu, a prominent item in the list meets this
  37340. criterion.
  37341. 1. Source Code.
  37342. The "source code" for a work means the preferred form of the work
  37343. for making modifications to it. "Object code" means any non-source
  37344. form of a work.
  37345. A "Standard Interface" means an interface that either is an
  37346. official standard defined by a recognized standards body, or, in
  37347. the case of interfaces specified for a particular programming
  37348. language, one that is widely used among developers working in that
  37349. language.
  37350. The "System Libraries" of an executable work include anything,
  37351. other than the work as a whole, that (a) is included in the normal
  37352. form of packaging a Major Component, but which is not part of that
  37353. Major Component, and (b) serves only to enable use of the work with
  37354. that Major Component, or to implement a Standard Interface for
  37355. which an implementation is available to the public in source code
  37356. form. A "Major Component", in this context, means a major
  37357. essential component (kernel, window system, and so on) of the
  37358. specific operating system (if any) on which the executable work
  37359. runs, or a compiler used to produce the work, or an object code
  37360. interpreter used to run it.
  37361. The "Corresponding Source" for a work in object code form means all
  37362. the source code needed to generate, install, and (for an executable
  37363. work) run the object code and to modify the work, including scripts
  37364. to control those activities. However, it does not include the
  37365. work's System Libraries, or general-purpose tools or generally
  37366. available free programs which are used unmodified in performing
  37367. those activities but which are not part of the work. For example,
  37368. Corresponding Source includes interface definition files associated
  37369. with source files for the work, and the source code for shared
  37370. libraries and dynamically linked subprograms that the work is
  37371. specifically designed to require, such as by intimate data
  37372. communication or control flow between those subprograms and other
  37373. parts of the work.
  37374. The Corresponding Source need not include anything that users can
  37375. regenerate automatically from other parts of the Corresponding
  37376. Source.
  37377. The Corresponding Source for a work in source code form is that
  37378. same work.
  37379. 2. Basic Permissions.
  37380. All rights granted under this License are granted for the term of
  37381. copyright on the Program, and are irrevocable provided the stated
  37382. conditions are met. This License explicitly affirms your unlimited
  37383. permission to run the unmodified Program. The output from running
  37384. a covered work is covered by this License only if the output, given
  37385. its content, constitutes a covered work. This License acknowledges
  37386. your rights of fair use or other equivalent, as provided by
  37387. copyright law.
  37388. You may make, run and propagate covered works that you do not
  37389. convey, without conditions so long as your license otherwise
  37390. remains in force. You may convey covered works to others for the
  37391. sole purpose of having them make modifications exclusively for you,
  37392. or provide you with facilities for running those works, provided
  37393. that you comply with the terms of this License in conveying all
  37394. material for which you do not control copyright. Those thus making
  37395. or running the covered works for you must do so exclusively on your
  37396. behalf, under your direction and control, on terms that prohibit
  37397. them from making any copies of your copyrighted material outside
  37398. their relationship with you.
  37399. Conveying under any other circumstances is permitted solely under
  37400. the conditions stated below. Sublicensing is not allowed; section
  37401. 10 makes it unnecessary.
  37402. 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
  37403. No covered work shall be deemed part of an effective technological
  37404. measure under any applicable law fulfilling obligations under
  37405. article 11 of the WIPO copyright treaty adopted on 20 December
  37406. 1996, or similar laws prohibiting or restricting circumvention of
  37407. such measures.
  37408. When you convey a covered work, you waive any legal power to forbid
  37409. circumvention of technological measures to the extent such
  37410. circumvention is effected by exercising rights under this License
  37411. with respect to the covered work, and you disclaim any intention to
  37412. limit operation or modification of the work as a means of
  37413. enforcing, against the work's users, your or third parties' legal
  37414. rights to forbid circumvention of technological measures.
  37415. 4. Conveying Verbatim Copies.
  37416. You may convey verbatim copies of the Program's source code as you
  37417. receive it, in any medium, provided that you conspicuously and
  37418. appropriately publish on each copy an appropriate copyright notice;
  37419. keep intact all notices stating that this License and any
  37420. non-permissive terms added in accord with section 7 apply to the
  37421. code; keep intact all notices of the absence of any warranty; and
  37422. give all recipients a copy of this License along with the Program.
  37423. You may charge any price or no price for each copy that you convey,
  37424. and you may offer support or warranty protection for a fee.
  37425. 5. Conveying Modified Source Versions.
  37426. You may convey a work based on the Program, or the modifications to
  37427. produce it from the Program, in the form of source code under the
  37428. terms of section 4, provided that you also meet all of these
  37429. conditions:
  37430. a. The work must carry prominent notices stating that you
  37431. modified it, and giving a relevant date.
  37432. b. The work must carry prominent notices stating that it is
  37433. released under this License and any conditions added under
  37434. section 7. This requirement modifies the requirement in
  37435. section 4 to "keep intact all notices".
  37436. c. You must license the entire work, as a whole, under this
  37437. License to anyone who comes into possession of a copy. This
  37438. License will therefore apply, along with any applicable
  37439. section 7 additional terms, to the whole of the work, and all
  37440. its parts, regardless of how they are packaged. This License
  37441. gives no permission to license the work in any other way, but
  37442. it does not invalidate such permission if you have separately
  37443. received it.
  37444. d. If the work has interactive user interfaces, each must display
  37445. Appropriate Legal Notices; however, if the Program has
  37446. interactive interfaces that do not display Appropriate Legal
  37447. Notices, your work need not make them do so.
  37448. A compilation of a covered work with other separate and independent
  37449. works, which are not by their nature extensions of the covered
  37450. work, and which are not combined with it such as to form a larger
  37451. program, in or on a volume of a storage or distribution medium, is
  37452. called an "aggregate" if the compilation and its resulting
  37453. copyright are not used to limit the access or legal rights of the
  37454. compilation's users beyond what the individual works permit.
  37455. Inclusion of a covered work in an aggregate does not cause this
  37456. License to apply to the other parts of the aggregate.
  37457. 6. Conveying Non-Source Forms.
  37458. You may convey a covered work in object code form under the terms
  37459. of sections 4 and 5, provided that you also convey the
  37460. machine-readable Corresponding Source under the terms of this
  37461. License, in one of these ways:
  37462. a. Convey the object code in, or embodied in, a physical product
  37463. (including a physical distribution medium), accompanied by the
  37464. Corresponding Source fixed on a durable physical medium
  37465. customarily used for software interchange.
  37466. b. Convey the object code in, or embodied in, a physical product
  37467. (including a physical distribution medium), accompanied by a
  37468. written offer, valid for at least three years and valid for as
  37469. long as you offer spare parts or customer support for that
  37470. product model, to give anyone who possesses the object code
  37471. either (1) a copy of the Corresponding Source for all the
  37472. software in the product that is covered by this License, on a
  37473. durable physical medium customarily used for software
  37474. interchange, for a price no more than your reasonable cost of
  37475. physically performing this conveying of source, or (2) access
  37476. to copy the Corresponding Source from a network server at no
  37477. charge.
  37478. c. Convey individual copies of the object code with a copy of the
  37479. written offer to provide the Corresponding Source. This
  37480. alternative is allowed only occasionally and noncommercially,
  37481. and only if you received the object code with such an offer,
  37482. in accord with subsection 6b.
  37483. d. Convey the object code by offering access from a designated
  37484. place (gratis or for a charge), and offer equivalent access to
  37485. the Corresponding Source in the same way through the same
  37486. place at no further charge. You need not require recipients
  37487. to copy the Corresponding Source along with the object code.
  37488. If the place to copy the object code is a network server, the
  37489. Corresponding Source may be on a different server (operated by
  37490. you or a third party) that supports equivalent copying
  37491. facilities, provided you maintain clear directions next to the
  37492. object code saying where to find the Corresponding Source.
  37493. Regardless of what server hosts the Corresponding Source, you
  37494. remain obligated to ensure that it is available for as long as
  37495. needed to satisfy these requirements.
  37496. e. Convey the object code using peer-to-peer transmission,
  37497. provided you inform other peers where the object code and
  37498. Corresponding Source of the work are being offered to the
  37499. general public at no charge under subsection 6d.
  37500. A separable portion of the object code, whose source code is
  37501. excluded from the Corresponding Source as a System Library, need
  37502. not be included in conveying the object code work.
  37503. A "User Product" is either (1) a "consumer product", which means
  37504. any tangible personal property which is normally used for personal,
  37505. family, or household purposes, or (2) anything designed or sold for
  37506. incorporation into a dwelling. In determining whether a product is
  37507. a consumer product, doubtful cases shall be resolved in favor of
  37508. coverage. For a particular product received by a particular user,
  37509. "normally used" refers to a typical or common use of that class of
  37510. product, regardless of the status of the particular user or of the
  37511. way in which the particular user actually uses, or expects or is
  37512. expected to use, the product. A product is a consumer product
  37513. regardless of whether the product has substantial commercial,
  37514. industrial or non-consumer uses, unless such uses represent the
  37515. only significant mode of use of the product.
  37516. "Installation Information" for a User Product means any methods,
  37517. procedures, authorization keys, or other information required to
  37518. install and execute modified versions of a covered work in that
  37519. User Product from a modified version of its Corresponding Source.
  37520. The information must suffice to ensure that the continued
  37521. functioning of the modified object code is in no case prevented or
  37522. interfered with solely because modification has been made.
  37523. If you convey an object code work under this section in, or with,
  37524. or specifically for use in, a User Product, and the conveying
  37525. occurs as part of a transaction in which the right of possession
  37526. and use of the User Product is transferred to the recipient in
  37527. perpetuity or for a fixed term (regardless of how the transaction
  37528. is characterized), the Corresponding Source conveyed under this
  37529. section must be accompanied by the Installation Information. But
  37530. this requirement does not apply if neither you nor any third party
  37531. retains the ability to install modified object code on the User
  37532. Product (for example, the work has been installed in ROM).
  37533. The requirement to provide Installation Information does not
  37534. include a requirement to continue to provide support service,
  37535. warranty, or updates for a work that has been modified or installed
  37536. by the recipient, or for the User Product in which it has been
  37537. modified or installed. Access to a network may be denied when the
  37538. modification itself materially and adversely affects the operation
  37539. of the network or violates the rules and protocols for
  37540. communication across the network.
  37541. Corresponding Source conveyed, and Installation Information
  37542. provided, in accord with this section must be in a format that is
  37543. publicly documented (and with an implementation available to the
  37544. public in source code form), and must require no special password
  37545. or key for unpacking, reading or copying.
  37546. 7. Additional Terms.
  37547. "Additional permissions" are terms that supplement the terms of
  37548. this License by making exceptions from one or more of its
  37549. conditions. Additional permissions that are applicable to the
  37550. entire Program shall be treated as though they were included in
  37551. this License, to the extent that they are valid under applicable
  37552. law. If additional permissions apply only to part of the Program,
  37553. that part may be used separately under those permissions, but the
  37554. entire Program remains governed by this License without regard to
  37555. the additional permissions.
  37556. When you convey a copy of a covered work, you may at your option
  37557. remove any additional permissions from that copy, or from any part
  37558. of it. (Additional permissions may be written to require their own
  37559. removal in certain cases when you modify the work.) You may place
  37560. additional permissions on material, added by you to a covered work,
  37561. for which you have or can give appropriate copyright permission.
  37562. Notwithstanding any other provision of this License, for material
  37563. you add to a covered work, you may (if authorized by the copyright
  37564. holders of that material) supplement the terms of this License with
  37565. terms:
  37566. a. Disclaiming warranty or limiting liability differently from
  37567. the terms of sections 15 and 16 of this License; or
  37568. b. Requiring preservation of specified reasonable legal notices
  37569. or author attributions in that material or in the Appropriate
  37570. Legal Notices displayed by works containing it; or
  37571. c. Prohibiting misrepresentation of the origin of that material,
  37572. or requiring that modified versions of such material be marked
  37573. in reasonable ways as different from the original version; or
  37574. d. Limiting the use for publicity purposes of names of licensors
  37575. or authors of the material; or
  37576. e. Declining to grant rights under trademark law for use of some
  37577. trade names, trademarks, or service marks; or
  37578. f. Requiring indemnification of licensors and authors of that
  37579. material by anyone who conveys the material (or modified
  37580. versions of it) with contractual assumptions of liability to
  37581. the recipient, for any liability that these contractual
  37582. assumptions directly impose on those licensors and authors.
  37583. All other non-permissive additional terms are considered "further
  37584. restrictions" within the meaning of section 10. If the Program as
  37585. you received it, or any part of it, contains a notice stating that
  37586. it is governed by this License along with a term that is a further
  37587. restriction, you may remove that term. If a license document
  37588. contains a further restriction but permits relicensing or conveying
  37589. under this License, you may add to a covered work material governed
  37590. by the terms of that license document, provided that the further
  37591. restriction does not survive such relicensing or conveying.
  37592. If you add terms to a covered work in accord with this section, you
  37593. must place, in the relevant source files, a statement of the
  37594. additional terms that apply to those files, or a notice indicating
  37595. where to find the applicable terms.
  37596. Additional terms, permissive or non-permissive, may be stated in
  37597. the form of a separately written license, or stated as exceptions;
  37598. the above requirements apply either way.
  37599. 8. Termination.
  37600. You may not propagate or modify a covered work except as expressly
  37601. provided under this License. Any attempt otherwise to propagate or
  37602. modify it is void, and will automatically terminate your rights
  37603. under this License (including any patent licenses granted under the
  37604. third paragraph of section 11).
  37605. However, if you cease all violation of this License, then your
  37606. license from a particular copyright holder is reinstated (a)
  37607. provisionally, unless and until the copyright holder explicitly and
  37608. finally terminates your license, and (b) permanently, if the
  37609. copyright holder fails to notify you of the violation by some
  37610. reasonable means prior to 60 days after the cessation.
  37611. Moreover, your license from a particular copyright holder is
  37612. reinstated permanently if the copyright holder notifies you of the
  37613. violation by some reasonable means, this is the first time you have
  37614. received notice of violation of this License (for any work) from
  37615. that copyright holder, and you cure the violation prior to 30 days
  37616. after your receipt of the notice.
  37617. Termination of your rights under this section does not terminate
  37618. the licenses of parties who have received copies or rights from you
  37619. under this License. If your rights have been terminated and not
  37620. permanently reinstated, you do not qualify to receive new licenses
  37621. for the same material under section 10.
  37622. 9. Acceptance Not Required for Having Copies.
  37623. You are not required to accept this License in order to receive or
  37624. run a copy of the Program. Ancillary propagation of a covered work
  37625. occurring solely as a consequence of using peer-to-peer
  37626. transmission to receive a copy likewise does not require
  37627. acceptance. However, nothing other than this License grants you
  37628. permission to propagate or modify any covered work. These actions
  37629. infringe copyright if you do not accept this License. Therefore,
  37630. by modifying or propagating a covered work, you indicate your
  37631. acceptance of this License to do so.
  37632. 10. Automatic Licensing of Downstream Recipients.
  37633. Each time you convey a covered work, the recipient automatically
  37634. receives a license from the original licensors, to run, modify and
  37635. propagate that work, subject to this License. You are not
  37636. responsible for enforcing compliance by third parties with this
  37637. License.
  37638. An "entity transaction" is a transaction transferring control of an
  37639. organization, or substantially all assets of one, or subdividing an
  37640. organization, or merging organizations. If propagation of a
  37641. covered work results from an entity transaction, each party to that
  37642. transaction who receives a copy of the work also receives whatever
  37643. licenses to the work the party's predecessor in interest had or
  37644. could give under the previous paragraph, plus a right to possession
  37645. of the Corresponding Source of the work from the predecessor in
  37646. interest, if the predecessor has it or can get it with reasonable
  37647. efforts.
  37648. You may not impose any further restrictions on the exercise of the
  37649. rights granted or affirmed under this License. For example, you
  37650. may not impose a license fee, royalty, or other charge for exercise
  37651. of rights granted under this License, and you may not initiate
  37652. litigation (including a cross-claim or counterclaim in a lawsuit)
  37653. alleging that any patent claim is infringed by making, using,
  37654. selling, offering for sale, or importing the Program or any portion
  37655. of it.
  37656. 11. Patents.
  37657. A "contributor" is a copyright holder who authorizes use under this
  37658. License of the Program or a work on which the Program is based.
  37659. The work thus licensed is called the contributor's "contributor
  37660. version".
  37661. A contributor's "essential patent claims" are all patent claims
  37662. owned or controlled by the contributor, whether already acquired or
  37663. hereafter acquired, that would be infringed by some manner,
  37664. permitted by this License, of making, using, or selling its
  37665. contributor version, but do not include claims that would be
  37666. infringed only as a consequence of further modification of the
  37667. contributor version. For purposes of this definition, "control"
  37668. includes the right to grant patent sublicenses in a manner
  37669. consistent with the requirements of this License.
  37670. Each contributor grants you a non-exclusive, worldwide,
  37671. royalty-free patent license under the contributor's essential
  37672. patent claims, to make, use, sell, offer for sale, import and
  37673. otherwise run, modify and propagate the contents of its contributor
  37674. version.
  37675. In the following three paragraphs, a "patent license" is any
  37676. express agreement or commitment, however denominated, not to
  37677. enforce a patent (such as an express permission to practice a
  37678. patent or covenant not to sue for patent infringement). To "grant"
  37679. such a patent license to a party means to make such an agreement or
  37680. commitment not to enforce a patent against the party.
  37681. If you convey a covered work, knowingly relying on a patent
  37682. license, and the Corresponding Source of the work is not available
  37683. for anyone to copy, free of charge and under the terms of this
  37684. License, through a publicly available network server or other
  37685. readily accessible means, then you must either (1) cause the
  37686. Corresponding Source to be so available, or (2) arrange to deprive
  37687. yourself of the benefit of the patent license for this particular
  37688. work, or (3) arrange, in a manner consistent with the requirements
  37689. of this License, to extend the patent license to downstream
  37690. recipients. "Knowingly relying" means you have actual knowledge
  37691. that, but for the patent license, your conveying the covered work
  37692. in a country, or your recipient's use of the covered work in a
  37693. country, would infringe one or more identifiable patents in that
  37694. country that you have reason to believe are valid.
  37695. If, pursuant to or in connection with a single transaction or
  37696. arrangement, you convey, or propagate by procuring conveyance of, a
  37697. covered work, and grant a patent license to some of the parties
  37698. receiving the covered work authorizing them to use, propagate,
  37699. modify or convey a specific copy of the covered work, then the
  37700. patent license you grant is automatically extended to all
  37701. recipients of the covered work and works based on it.
  37702. A patent license is "discriminatory" if it does not include within
  37703. the scope of its coverage, prohibits the exercise of, or is
  37704. conditioned on the non-exercise of one or more of the rights that
  37705. are specifically granted under this License. You may not convey a
  37706. covered work if you are a party to an arrangement with a third
  37707. party that is in the business of distributing software, under which
  37708. you make payment to the third party based on the extent of your
  37709. activity of conveying the work, and under which the third party
  37710. grants, to any of the parties who would receive the covered work
  37711. from you, a discriminatory patent license (a) in connection with
  37712. copies of the covered work conveyed by you (or copies made from
  37713. those copies), or (b) primarily for and in connection with specific
  37714. products or compilations that contain the covered work, unless you
  37715. entered into that arrangement, or that patent license was granted,
  37716. prior to 28 March 2007.
  37717. Nothing in this License shall be construed as excluding or limiting
  37718. any implied license or other defenses to infringement that may
  37719. otherwise be available to you under applicable patent law.
  37720. 12. No Surrender of Others' Freedom.
  37721. If conditions are imposed on you (whether by court order, agreement
  37722. or otherwise) that contradict the conditions of this License, they
  37723. do not excuse you from the conditions of this License. If you
  37724. cannot convey a covered work so as to satisfy simultaneously your
  37725. obligations under this License and any other pertinent obligations,
  37726. then as a consequence you may not convey it at all. For example,
  37727. if you agree to terms that obligate you to collect a royalty for
  37728. further conveying from those to whom you convey the Program, the
  37729. only way you could satisfy both those terms and this License would
  37730. be to refrain entirely from conveying the Program.
  37731. 13. Use with the GNU Affero General Public License.
  37732. Notwithstanding any other provision of this License, you have
  37733. permission to link or combine any covered work with a work licensed
  37734. under version 3 of the GNU Affero General Public License into a
  37735. single combined work, and to convey the resulting work. The terms
  37736. of this License will continue to apply to the part which is the
  37737. covered work, but the special requirements of the GNU Affero
  37738. General Public License, section 13, concerning interaction through
  37739. a network will apply to the combination as such.
  37740. 14. Revised Versions of this License.
  37741. The Free Software Foundation may publish revised and/or new
  37742. versions of the GNU General Public License from time to time. Such
  37743. new versions will be similar in spirit to the present version, but
  37744. may differ in detail to address new problems or concerns.
  37745. Each version is given a distinguishing version number. If the
  37746. Program specifies that a certain numbered version of the GNU
  37747. General Public License "or any later version" applies to it, you
  37748. have the option of following the terms and conditions either of
  37749. that numbered version or of any later version published by the Free
  37750. Software Foundation. If the Program does not specify a version
  37751. number of the GNU General Public License, you may choose any
  37752. version ever published by the Free Software Foundation.
  37753. If the Program specifies that a proxy can decide which future
  37754. versions of the GNU General Public License can be used, that
  37755. proxy's public statement of acceptance of a version permanently
  37756. authorizes you to choose that version for the Program.
  37757. Later license versions may give you additional or different
  37758. permissions. However, no additional obligations are imposed on any
  37759. author or copyright holder as a result of your choosing to follow a
  37760. later version.
  37761. 15. Disclaimer of Warranty.
  37762. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
  37763. APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
  37764. COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
  37765. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  37766. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  37767. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE
  37768. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
  37769. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
  37770. NECESSARY SERVICING, REPAIR OR CORRECTION.
  37771. 16. Limitation of Liability.
  37772. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  37773. WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
  37774. AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
  37775. DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  37776. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
  37777. THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
  37778. BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
  37779. PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  37780. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
  37781. THE POSSIBILITY OF SUCH DAMAGES.
  37782. 17. Interpretation of Sections 15 and 16.
  37783. If the disclaimer of warranty and limitation of liability provided
  37784. above cannot be given local legal effect according to their terms,
  37785. reviewing courts shall apply local law that most closely
  37786. approximates an absolute waiver of all civil liability in
  37787. connection with the Program, unless a warranty or assumption of
  37788. liability accompanies a copy of the Program in return for a fee.
  37789. END OF TERMS AND CONDITIONS
  37790. ===========================
  37791. How to Apply These Terms to Your New Programs
  37792. =============================================
  37793. If you develop a new program, and you want it to be of the greatest
  37794. possible use to the public, the best way to achieve this is to make it
  37795. free software which everyone can redistribute and change under these
  37796. terms.
  37797. To do so, attach the following notices to the program. It is safest to
  37798. attach them to the start of each source file to most effectively state
  37799. the exclusion of warranty; and each file should have at least the
  37800. "copyright" line and a pointer to where the full notice is found.
  37801. ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  37802. Copyright (C) YEAR NAME OF AUTHOR
  37803. This program is free software: you can redistribute it and/or modify
  37804. it under the terms of the GNU General Public License as published by
  37805. the Free Software Foundation, either version 3 of the License, or (at
  37806. your option) any later version.
  37807. This program is distributed in the hope that it will be useful, but
  37808. WITHOUT ANY WARRANTY; without even the implied warranty of
  37809. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  37810. General Public License for more details.
  37811. You should have received a copy of the GNU General Public License
  37812. along with this program. If not, see <http://www.gnu.org/licenses/>.
  37813. Also add information on how to contact you by electronic and paper
  37814. mail.
  37815. If the program does terminal interaction, make it output a short notice
  37816. like this when it starts in an interactive mode:
  37817. PROGRAM Copyright (C) YEAR NAME OF AUTHOR
  37818. This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
  37819. This is free software, and you are welcome to redistribute it
  37820. under certain conditions; type 'show c' for details.
  37821. The hypothetical commands 'show w' and 'show c' should show the
  37822. appropriate parts of the General Public License. Of course, your
  37823. program's commands might be different; for a GUI interface, you would
  37824. use an "about box".
  37825. You should also get your employer (if you work as a programmer) or
  37826. school, if any, to sign a "copyright disclaimer" for the program, if
  37827. necessary. For more information on this, and how to apply and follow
  37828. the GNU GPL, see <http://www.gnu.org/licenses/>.
  37829. The GNU General Public License does not permit incorporating your
  37830. program into proprietary programs. If your program is a subroutine
  37831. library, you may consider it more useful to permit linking proprietary
  37832. applications with the library. If this is what you want to do, use the
  37833. GNU Lesser General Public License instead of this License. But first,
  37834. please read <https://www.gnu.org/licenses/why-not-lgpl.html>.
  37835. 
  37836. File: gccint.info, Node: GNU Free Documentation License, Next: Contributors, Prev: Copying, Up: Top
  37837. GNU Free Documentation License
  37838. ******************************
  37839. Version 1.3, 3 November 2008
  37840. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  37841. <http://fsf.org/>
  37842. Everyone is permitted to copy and distribute verbatim copies
  37843. of this license document, but changing it is not allowed.
  37844. 0. PREAMBLE
  37845. The purpose of this License is to make a manual, textbook, or other
  37846. functional and useful document "free" in the sense of freedom: to
  37847. assure everyone the effective freedom to copy and redistribute it,
  37848. with or without modifying it, either commercially or
  37849. noncommercially. Secondarily, this License preserves for the
  37850. author and publisher a way to get credit for their work, while not
  37851. being considered responsible for modifications made by others.
  37852. This License is a kind of "copyleft", which means that derivative
  37853. works of the document must themselves be free in the same sense.
  37854. It complements the GNU General Public License, which is a copyleft
  37855. license designed for free software.
  37856. We have designed this License in order to use it for manuals for
  37857. free software, because free software needs free documentation: a
  37858. free program should come with manuals providing the same freedoms
  37859. that the software does. But this License is not limited to
  37860. software manuals; it can be used for any textual work, regardless
  37861. of subject matter or whether it is published as a printed book. We
  37862. recommend this License principally for works whose purpose is
  37863. instruction or reference.
  37864. 1. APPLICABILITY AND DEFINITIONS
  37865. This License applies to any manual or other work, in any medium,
  37866. that contains a notice placed by the copyright holder saying it can
  37867. be distributed under the terms of this License. Such a notice
  37868. grants a world-wide, royalty-free license, unlimited in duration,
  37869. to use that work under the conditions stated herein. The
  37870. "Document", below, refers to any such manual or work. Any member
  37871. of the public is a licensee, and is addressed as "you". You accept
  37872. the license if you copy, modify or distribute the work in a way
  37873. requiring permission under copyright law.
  37874. A "Modified Version" of the Document means any work containing the
  37875. Document or a portion of it, either copied verbatim, or with
  37876. modifications and/or translated into another language.
  37877. A "Secondary Section" is a named appendix or a front-matter section
  37878. of the Document that deals exclusively with the relationship of the
  37879. publishers or authors of the Document to the Document's overall
  37880. subject (or to related matters) and contains nothing that could
  37881. fall directly within that overall subject. (Thus, if the Document
  37882. is in part a textbook of mathematics, a Secondary Section may not
  37883. explain any mathematics.) The relationship could be a matter of
  37884. historical connection with the subject or with related matters, or
  37885. of legal, commercial, philosophical, ethical or political position
  37886. regarding them.
  37887. The "Invariant Sections" are certain Secondary Sections whose
  37888. titles are designated, as being those of Invariant Sections, in the
  37889. notice that says that the Document is released under this License.
  37890. If a section does not fit the above definition of Secondary then it
  37891. is not allowed to be designated as Invariant. The Document may
  37892. contain zero Invariant Sections. If the Document does not identify
  37893. any Invariant Sections then there are none.
  37894. The "Cover Texts" are certain short passages of text that are
  37895. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  37896. that says that the Document is released under this License. A
  37897. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  37898. be at most 25 words.
  37899. A "Transparent" copy of the Document means a machine-readable copy,
  37900. represented in a format whose specification is available to the
  37901. general public, that is suitable for revising the document
  37902. straightforwardly with generic text editors or (for images composed
  37903. of pixels) generic paint programs or (for drawings) some widely
  37904. available drawing editor, and that is suitable for input to text
  37905. formatters or for automatic translation to a variety of formats
  37906. suitable for input to text formatters. A copy made in an otherwise
  37907. Transparent file format whose markup, or absence of markup, has
  37908. been arranged to thwart or discourage subsequent modification by
  37909. readers is not Transparent. An image format is not Transparent if
  37910. used for any substantial amount of text. A copy that is not
  37911. "Transparent" is called "Opaque".
  37912. Examples of suitable formats for Transparent copies include plain
  37913. ASCII without markup, Texinfo input format, LaTeX input format,
  37914. SGML or XML using a publicly available DTD, and standard-conforming
  37915. simple HTML, PostScript or PDF designed for human modification.
  37916. Examples of transparent image formats include PNG, XCF and JPG.
  37917. Opaque formats include proprietary formats that can be read and
  37918. edited only by proprietary word processors, SGML or XML for which
  37919. the DTD and/or processing tools are not generally available, and
  37920. the machine-generated HTML, PostScript or PDF produced by some word
  37921. processors for output purposes only.
  37922. The "Title Page" means, for a printed book, the title page itself,
  37923. plus such following pages as are needed to hold, legibly, the
  37924. material this License requires to appear in the title page. For
  37925. works in formats which do not have any title page as such, "Title
  37926. Page" means the text near the most prominent appearance of the
  37927. work's title, preceding the beginning of the body of the text.
  37928. The "publisher" means any person or entity that distributes copies
  37929. of the Document to the public.
  37930. A section "Entitled XYZ" means a named subunit of the Document
  37931. whose title either is precisely XYZ or contains XYZ in parentheses
  37932. following text that translates XYZ in another language. (Here XYZ
  37933. stands for a specific section name mentioned below, such as
  37934. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  37935. To "Preserve the Title" of such a section when you modify the
  37936. Document means that it remains a section "Entitled XYZ" according
  37937. to this definition.
  37938. The Document may include Warranty Disclaimers next to the notice
  37939. which states that this License applies to the Document. These
  37940. Warranty Disclaimers are considered to be included by reference in
  37941. this License, but only as regards disclaiming warranties: any other
  37942. implication that these Warranty Disclaimers may have is void and
  37943. has no effect on the meaning of this License.
  37944. 2. VERBATIM COPYING
  37945. You may copy and distribute the Document in any medium, either
  37946. commercially or noncommercially, provided that this License, the
  37947. copyright notices, and the license notice saying this License
  37948. applies to the Document are reproduced in all copies, and that you
  37949. add no other conditions whatsoever to those of this License. You
  37950. may not use technical measures to obstruct or control the reading
  37951. or further copying of the copies you make or distribute. However,
  37952. you may accept compensation in exchange for copies. If you
  37953. distribute a large enough number of copies you must also follow the
  37954. conditions in section 3.
  37955. You may also lend copies, under the same conditions stated above,
  37956. and you may publicly display copies.
  37957. 3. COPYING IN QUANTITY
  37958. If you publish printed copies (or copies in media that commonly
  37959. have printed covers) of the Document, numbering more than 100, and
  37960. the Document's license notice requires Cover Texts, you must
  37961. enclose the copies in covers that carry, clearly and legibly, all
  37962. these Cover Texts: Front-Cover Texts on the front cover, and
  37963. Back-Cover Texts on the back cover. Both covers must also clearly
  37964. and legibly identify you as the publisher of these copies. The
  37965. front cover must present the full title with all words of the title
  37966. equally prominent and visible. You may add other material on the
  37967. covers in addition. Copying with changes limited to the covers, as
  37968. long as they preserve the title of the Document and satisfy these
  37969. conditions, can be treated as verbatim copying in other respects.
  37970. If the required texts for either cover are too voluminous to fit
  37971. legibly, you should put the first ones listed (as many as fit
  37972. reasonably) on the actual cover, and continue the rest onto
  37973. adjacent pages.
  37974. If you publish or distribute Opaque copies of the Document
  37975. numbering more than 100, you must either include a machine-readable
  37976. Transparent copy along with each Opaque copy, or state in or with
  37977. each Opaque copy a computer-network location from which the general
  37978. network-using public has access to download using public-standard
  37979. network protocols a complete Transparent copy of the Document, free
  37980. of added material. If you use the latter option, you must take
  37981. reasonably prudent steps, when you begin distribution of Opaque
  37982. copies in quantity, to ensure that this Transparent copy will
  37983. remain thus accessible at the stated location until at least one
  37984. year after the last time you distribute an Opaque copy (directly or
  37985. through your agents or retailers) of that edition to the public.
  37986. It is requested, but not required, that you contact the authors of
  37987. the Document well before redistributing any large number of copies,
  37988. to give them a chance to provide you with an updated version of the
  37989. Document.
  37990. 4. MODIFICATIONS
  37991. You may copy and distribute a Modified Version of the Document
  37992. under the conditions of sections 2 and 3 above, provided that you
  37993. release the Modified Version under precisely this License, with the
  37994. Modified Version filling the role of the Document, thus licensing
  37995. distribution and modification of the Modified Version to whoever
  37996. possesses a copy of it. In addition, you must do these things in
  37997. the Modified Version:
  37998. A. Use in the Title Page (and on the covers, if any) a title
  37999. distinct from that of the Document, and from those of previous
  38000. versions (which should, if there were any, be listed in the
  38001. History section of the Document). You may use the same title
  38002. as a previous version if the original publisher of that
  38003. version gives permission.
  38004. B. List on the Title Page, as authors, one or more persons or
  38005. entities responsible for authorship of the modifications in
  38006. the Modified Version, together with at least five of the
  38007. principal authors of the Document (all of its principal
  38008. authors, if it has fewer than five), unless they release you
  38009. from this requirement.
  38010. C. State on the Title page the name of the publisher of the
  38011. Modified Version, as the publisher.
  38012. D. Preserve all the copyright notices of the Document.
  38013. E. Add an appropriate copyright notice for your modifications
  38014. adjacent to the other copyright notices.
  38015. F. Include, immediately after the copyright notices, a license
  38016. notice giving the public permission to use the Modified
  38017. Version under the terms of this License, in the form shown in
  38018. the Addendum below.
  38019. G. Preserve in that license notice the full lists of Invariant
  38020. Sections and required Cover Texts given in the Document's
  38021. license notice.
  38022. H. Include an unaltered copy of this License.
  38023. I. Preserve the section Entitled "History", Preserve its Title,
  38024. and add to it an item stating at least the title, year, new
  38025. authors, and publisher of the Modified Version as given on the
  38026. Title Page. If there is no section Entitled "History" in the
  38027. Document, create one stating the title, year, authors, and
  38028. publisher of the Document as given on its Title Page, then add
  38029. an item describing the Modified Version as stated in the
  38030. previous sentence.
  38031. J. Preserve the network location, if any, given in the Document
  38032. for public access to a Transparent copy of the Document, and
  38033. likewise the network locations given in the Document for
  38034. previous versions it was based on. These may be placed in the
  38035. "History" section. You may omit a network location for a work
  38036. that was published at least four years before the Document
  38037. itself, or if the original publisher of the version it refers
  38038. to gives permission.
  38039. K. For any section Entitled "Acknowledgements" or "Dedications",
  38040. Preserve the Title of the section, and preserve in the section
  38041. all the substance and tone of each of the contributor
  38042. acknowledgements and/or dedications given therein.
  38043. L. Preserve all the Invariant Sections of the Document, unaltered
  38044. in their text and in their titles. Section numbers or the
  38045. equivalent are not considered part of the section titles.
  38046. M. Delete any section Entitled "Endorsements". Such a section
  38047. may not be included in the Modified Version.
  38048. N. Do not retitle any existing section to be Entitled
  38049. "Endorsements" or to conflict in title with any Invariant
  38050. Section.
  38051. O. Preserve any Warranty Disclaimers.
  38052. If the Modified Version includes new front-matter sections or
  38053. appendices that qualify as Secondary Sections and contain no
  38054. material copied from the Document, you may at your option designate
  38055. some or all of these sections as invariant. To do this, add their
  38056. titles to the list of Invariant Sections in the Modified Version's
  38057. license notice. These titles must be distinct from any other
  38058. section titles.
  38059. You may add a section Entitled "Endorsements", provided it contains
  38060. nothing but endorsements of your Modified Version by various
  38061. parties--for example, statements of peer review or that the text
  38062. has been approved by an organization as the authoritative
  38063. definition of a standard.
  38064. You may add a passage of up to five words as a Front-Cover Text,
  38065. and a passage of up to 25 words as a Back-Cover Text, to the end of
  38066. the list of Cover Texts in the Modified Version. Only one passage
  38067. of Front-Cover Text and one of Back-Cover Text may be added by (or
  38068. through arrangements made by) any one entity. If the Document
  38069. already includes a cover text for the same cover, previously added
  38070. by you or by arrangement made by the same entity you are acting on
  38071. behalf of, you may not add another; but you may replace the old
  38072. one, on explicit permission from the previous publisher that added
  38073. the old one.
  38074. The author(s) and publisher(s) of the Document do not by this
  38075. License give permission to use their names for publicity for or to
  38076. assert or imply endorsement of any Modified Version.
  38077. 5. COMBINING DOCUMENTS
  38078. You may combine the Document with other documents released under
  38079. this License, under the terms defined in section 4 above for
  38080. modified versions, provided that you include in the combination all
  38081. of the Invariant Sections of all of the original documents,
  38082. unmodified, and list them all as Invariant Sections of your
  38083. combined work in its license notice, and that you preserve all
  38084. their Warranty Disclaimers.
  38085. The combined work need only contain one copy of this License, and
  38086. multiple identical Invariant Sections may be replaced with a single
  38087. copy. If there are multiple Invariant Sections with the same name
  38088. but different contents, make the title of each such section unique
  38089. by adding at the end of it, in parentheses, the name of the
  38090. original author or publisher of that section if known, or else a
  38091. unique number. Make the same adjustment to the section titles in
  38092. the list of Invariant Sections in the license notice of the
  38093. combined work.
  38094. In the combination, you must combine any sections Entitled
  38095. "History" in the various original documents, forming one section
  38096. Entitled "History"; likewise combine any sections Entitled
  38097. "Acknowledgements", and any sections Entitled "Dedications". You
  38098. must delete all sections Entitled "Endorsements."
  38099. 6. COLLECTIONS OF DOCUMENTS
  38100. You may make a collection consisting of the Document and other
  38101. documents released under this License, and replace the individual
  38102. copies of this License in the various documents with a single copy
  38103. that is included in the collection, provided that you follow the
  38104. rules of this License for verbatim copying of each of the documents
  38105. in all other respects.
  38106. You may extract a single document from such a collection, and
  38107. distribute it individually under this License, provided you insert
  38108. a copy of this License into the extracted document, and follow this
  38109. License in all other respects regarding verbatim copying of that
  38110. document.
  38111. 7. AGGREGATION WITH INDEPENDENT WORKS
  38112. A compilation of the Document or its derivatives with other
  38113. separate and independent documents or works, in or on a volume of a
  38114. storage or distribution medium, is called an "aggregate" if the
  38115. copyright resulting from the compilation is not used to limit the
  38116. legal rights of the compilation's users beyond what the individual
  38117. works permit. When the Document is included in an aggregate, this
  38118. License does not apply to the other works in the aggregate which
  38119. are not themselves derivative works of the Document.
  38120. If the Cover Text requirement of section 3 is applicable to these
  38121. copies of the Document, then if the Document is less than one half
  38122. of the entire aggregate, the Document's Cover Texts may be placed
  38123. on covers that bracket the Document within the aggregate, or the
  38124. electronic equivalent of covers if the Document is in electronic
  38125. form. Otherwise they must appear on printed covers that bracket
  38126. the whole aggregate.
  38127. 8. TRANSLATION
  38128. Translation is considered a kind of modification, so you may
  38129. distribute translations of the Document under the terms of section
  38130. 4. Replacing Invariant Sections with translations requires special
  38131. permission from their copyright holders, but you may include
  38132. translations of some or all Invariant Sections in addition to the
  38133. original versions of these Invariant Sections. You may include a
  38134. translation of this License, and all the license notices in the
  38135. Document, and any Warranty Disclaimers, provided that you also
  38136. include the original English version of this License and the
  38137. original versions of those notices and disclaimers. In case of a
  38138. disagreement between the translation and the original version of
  38139. this License or a notice or disclaimer, the original version will
  38140. prevail.
  38141. If a section in the Document is Entitled "Acknowledgements",
  38142. "Dedications", or "History", the requirement (section 4) to
  38143. Preserve its Title (section 1) will typically require changing the
  38144. actual title.
  38145. 9. TERMINATION
  38146. You may not copy, modify, sublicense, or distribute the Document
  38147. except as expressly provided under this License. Any attempt
  38148. otherwise to copy, modify, sublicense, or distribute it is void,
  38149. and will automatically terminate your rights under this License.
  38150. However, if you cease all violation of this License, then your
  38151. license from a particular copyright holder is reinstated (a)
  38152. provisionally, unless and until the copyright holder explicitly and
  38153. finally terminates your license, and (b) permanently, if the
  38154. copyright holder fails to notify you of the violation by some
  38155. reasonable means prior to 60 days after the cessation.
  38156. Moreover, your license from a particular copyright holder is
  38157. reinstated permanently if the copyright holder notifies you of the
  38158. violation by some reasonable means, this is the first time you have
  38159. received notice of violation of this License (for any work) from
  38160. that copyright holder, and you cure the violation prior to 30 days
  38161. after your receipt of the notice.
  38162. Termination of your rights under this section does not terminate
  38163. the licenses of parties who have received copies or rights from you
  38164. under this License. If your rights have been terminated and not
  38165. permanently reinstated, receipt of a copy of some or all of the
  38166. same material does not give you any rights to use it.
  38167. 10. FUTURE REVISIONS OF THIS LICENSE
  38168. The Free Software Foundation may publish new, revised versions of
  38169. the GNU Free Documentation License from time to time. Such new
  38170. versions will be similar in spirit to the present version, but may
  38171. differ in detail to address new problems or concerns. See
  38172. <http://www.gnu.org/copyleft/>.
  38173. Each version of the License is given a distinguishing version
  38174. number. If the Document specifies that a particular numbered
  38175. version of this License "or any later version" applies to it, you
  38176. have the option of following the terms and conditions either of
  38177. that specified version or of any later version that has been
  38178. published (not as a draft) by the Free Software Foundation. If the
  38179. Document does not specify a version number of this License, you may
  38180. choose any version ever published (not as a draft) by the Free
  38181. Software Foundation. If the Document specifies that a proxy can
  38182. decide which future versions of this License can be used, that
  38183. proxy's public statement of acceptance of a version permanently
  38184. authorizes you to choose that version for the Document.
  38185. 11. RELICENSING
  38186. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  38187. World Wide Web server that publishes copyrightable works and also
  38188. provides prominent facilities for anybody to edit those works. A
  38189. public wiki that anybody can edit is an example of such a server.
  38190. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  38191. site means any set of copyrightable works thus published on the MMC
  38192. site.
  38193. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  38194. license published by Creative Commons Corporation, a not-for-profit
  38195. corporation with a principal place of business in San Francisco,
  38196. California, as well as future copyleft versions of that license
  38197. published by that same organization.
  38198. "Incorporate" means to publish or republish a Document, in whole or
  38199. in part, as part of another Document.
  38200. An MMC is "eligible for relicensing" if it is licensed under this
  38201. License, and if all works that were first published under this
  38202. License somewhere other than this MMC, and subsequently
  38203. incorporated in whole or in part into the MMC, (1) had no cover
  38204. texts or invariant sections, and (2) were thus incorporated prior
  38205. to November 1, 2008.
  38206. The operator of an MMC Site may republish an MMC contained in the
  38207. site under CC-BY-SA on the same site at any time before August 1,
  38208. 2009, provided the MMC is eligible for relicensing.
  38209. ADDENDUM: How to use this License for your documents
  38210. ====================================================
  38211. To use this License in a document you have written, include a copy of
  38212. the License in the document and put the following copyright and license
  38213. notices just after the title page:
  38214. Copyright (C) YEAR YOUR NAME.
  38215. Permission is granted to copy, distribute and/or modify this document
  38216. under the terms of the GNU Free Documentation License, Version 1.3
  38217. or any later version published by the Free Software Foundation;
  38218. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  38219. Texts. A copy of the license is included in the section entitled ``GNU
  38220. Free Documentation License''.
  38221. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
  38222. replace the "with...Texts." line with this:
  38223. with the Invariant Sections being LIST THEIR TITLES, with
  38224. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  38225. being LIST.
  38226. If you have Invariant Sections without Cover Texts, or some other
  38227. combination of the three, merge those two alternatives to suit the
  38228. situation.
  38229. If your document contains nontrivial examples of program code, we
  38230. recommend releasing these examples in parallel under your choice of free
  38231. software license, such as the GNU General Public License, to permit
  38232. their use in free software.
  38233. 
  38234. File: gccint.info, Node: Contributors, Next: Option Index, Prev: GNU Free Documentation License, Up: Top
  38235. Contributors to GCC
  38236. *******************
  38237. The GCC project would like to thank its many contributors. Without them
  38238. the project would not have been nearly as successful as it has been.
  38239. Any omissions in this list are accidental. Feel free to contact
  38240. <law@redhat.com> or <gerald@pfeifer.com> if you have been left out or
  38241. some of your contributions are not listed. Please keep this list in
  38242. alphabetical order.
  38243. * Analog Devices helped implement the support for complex data types
  38244. and iterators.
  38245. * John David Anglin for threading-related fixes and improvements to
  38246. libstdc++-v3, and the HP-UX port.
  38247. * James van Artsdalen wrote the code that makes efficient use of the
  38248. Intel 80387 register stack.
  38249. * Abramo and Roberto Bagnara for the SysV68 Motorola 3300 Delta
  38250. Series port.
  38251. * Alasdair Baird for various bug fixes.
  38252. * Giovanni Bajo for analyzing lots of complicated C++ problem
  38253. reports.
  38254. * Peter Barada for his work to improve code generation for new
  38255. ColdFire cores.
  38256. * Gerald Baumgartner added the signature extension to the C++ front
  38257. end.
  38258. * Godmar Back for his Java improvements and encouragement.
  38259. * Scott Bambrough for help porting the Java compiler.
  38260. * Wolfgang Bangerth for processing tons of bug reports.
  38261. * Jon Beniston for his Microsoft Windows port of Java and port to
  38262. Lattice Mico32.
  38263. * Daniel Berlin for better DWARF 2 support, faster/better
  38264. optimizations, improved alias analysis, plus migrating GCC to
  38265. Bugzilla.
  38266. * Geoff Berry for his Java object serialization work and various
  38267. patches.
  38268. * David Binderman tests weekly snapshots of GCC trunk against Fedora
  38269. Rawhide for several architectures.
  38270. * Laurynas Biveinis for memory management work and DJGPP port fixes.
  38271. * Uros Bizjak for the implementation of x87 math built-in functions
  38272. and for various middle end and i386 back end improvements and bug
  38273. fixes.
  38274. * Eric Blake for helping to make GCJ and libgcj conform to the
  38275. specifications.
  38276. * Janne Blomqvist for contributions to GNU Fortran.
  38277. * Hans-J. Boehm for his garbage collector, IA-64 libffi port, and
  38278. other Java work.
  38279. * Segher Boessenkool for helping maintain the PowerPC port and the
  38280. instruction combiner plus various contributions to the middle end.
  38281. * Neil Booth for work on cpplib, lang hooks, debug hooks and other
  38282. miscellaneous clean-ups.
  38283. * Steven Bosscher for integrating the GNU Fortran front end into GCC
  38284. and for contributing to the tree-ssa branch.
  38285. * Eric Botcazou for fixing middle- and backend bugs left and right.
  38286. * Per Bothner for his direction via the steering committee and
  38287. various improvements to the infrastructure for supporting new
  38288. languages. Chill front end implementation. Initial
  38289. implementations of cpplib, fix-header, config.guess, libio, and
  38290. past C++ library (libg++) maintainer. Dreaming up, designing and
  38291. implementing much of GCJ.
  38292. * Devon Bowen helped port GCC to the Tahoe.
  38293. * Don Bowman for mips-vxworks contributions.
  38294. * James Bowman for the FT32 port.
  38295. * Dave Brolley for work on cpplib and Chill.
  38296. * Paul Brook for work on the ARM architecture and maintaining GNU
  38297. Fortran.
  38298. * Robert Brown implemented the support for Encore 32000 systems.
  38299. * Christian Bruel for improvements to local store elimination.
  38300. * Herman A.J. ten Brugge for various fixes.
  38301. * Joerg Brunsmann for Java compiler hacking and help with the GCJ
  38302. FAQ.
  38303. * Joe Buck for his direction via the steering committee from its
  38304. creation to 2013.
  38305. * Iain Buclaw for the D frontend.
  38306. * Craig Burley for leadership of the G77 Fortran effort.
  38307. * Tobias Burnus for contributions to GNU Fortran.
  38308. * Stephan Buys for contributing Doxygen notes for libstdc++.
  38309. * Paolo Carlini for libstdc++ work: lots of efficiency improvements
  38310. to the C++ strings, streambufs and formatted I/O, hard detective
  38311. work on the frustrating localization issues, and keeping up with
  38312. the problem reports.
  38313. * John Carr for his alias work, SPARC hacking, infrastructure
  38314. improvements, previous contributions to the steering committee,
  38315. loop optimizations, etc.
  38316. * Stephane Carrez for 68HC11 and 68HC12 ports.
  38317. * Steve Chamberlain for support for the Renesas SH and H8 processors
  38318. and the PicoJava processor, and for GCJ config fixes.
  38319. * Glenn Chambers for help with the GCJ FAQ.
  38320. * John-Marc Chandonia for various libgcj patches.
  38321. * Denis Chertykov for contributing and maintaining the AVR port, the
  38322. first GCC port for an 8-bit architecture.
  38323. * Kito Cheng for his work on the RISC-V port, including bringing up
  38324. the test suite and maintenance.
  38325. * Scott Christley for his Objective-C contributions.
  38326. * Eric Christopher for his Java porting help and clean-ups.
  38327. * Branko Cibej for more warning contributions.
  38328. * The GNU Classpath project for all of their merged runtime code.
  38329. * Nick Clifton for arm, mcore, fr30, v850, m32r, msp430 rx work,
  38330. '--help', and other random hacking.
  38331. * Michael Cook for libstdc++ cleanup patches to reduce warnings.
  38332. * R. Kelley Cook for making GCC buildable from a read-only directory
  38333. as well as other miscellaneous build process and documentation
  38334. clean-ups.
  38335. * Ralf Corsepius for SH testing and minor bug fixing.
  38336. * Franc,ois-Xavier Coudert for contributions to GNU Fortran.
  38337. * Stan Cox for care and feeding of the x86 port and lots of behind
  38338. the scenes hacking.
  38339. * Alex Crain provided changes for the 3b1.
  38340. * Ian Dall for major improvements to the NS32k port.
  38341. * Paul Dale for his work to add uClinux platform support to the m68k
  38342. backend.
  38343. * Palmer Dabbelt for his work maintaining the RISC-V port.
  38344. * Dario Dariol contributed the four varieties of sample programs that
  38345. print a copy of their source.
  38346. * Russell Davidson for fstream and stringstream fixes in libstdc++.
  38347. * Bud Davis for work on the G77 and GNU Fortran compilers.
  38348. * Mo DeJong for GCJ and libgcj bug fixes.
  38349. * Jerry DeLisle for contributions to GNU Fortran.
  38350. * DJ Delorie for the DJGPP port, build and libiberty maintenance,
  38351. various bug fixes, and the M32C, MeP, MSP430, and RL78 ports.
  38352. * Arnaud Desitter for helping to debug GNU Fortran.
  38353. * Gabriel Dos Reis for contributions to G++, contributions and
  38354. maintenance of GCC diagnostics infrastructure, libstdc++-v3,
  38355. including 'valarray<>', 'complex<>', maintaining the numerics
  38356. library (including that pesky '<limits>' :-) and keeping up-to-date
  38357. anything to do with numbers.
  38358. * Ulrich Drepper for his work on glibc, testing of GCC using glibc,
  38359. ISO C99 support, CFG dumping support, etc., plus support of the C++
  38360. runtime libraries including for all kinds of C interface issues,
  38361. contributing and maintaining 'complex<>', sanity checking and
  38362. disbursement, configuration architecture, libio maintenance, and
  38363. early math work.
  38364. * Franc,ois Dumont for his work on libstdc++-v3, especially
  38365. maintaining and improving 'debug-mode' and associative and
  38366. unordered containers.
  38367. * Zdenek Dvorak for a new loop unroller and various fixes.
  38368. * Michael Eager for his work on the Xilinx MicroBlaze port.
  38369. * Richard Earnshaw for his ongoing work with the ARM.
  38370. * David Edelsohn for his direction via the steering committee,
  38371. ongoing work with the RS6000/PowerPC port, help cleaning up Haifa
  38372. loop changes, doing the entire AIX port of libstdc++ with his bare
  38373. hands, and for ensuring GCC properly keeps working on AIX.
  38374. * Kevin Ediger for the floating point formatting of num_put::do_put
  38375. in libstdc++.
  38376. * Phil Edwards for libstdc++ work including configuration hackery,
  38377. documentation maintainer, chief breaker of the web pages, the
  38378. occasional iostream bug fix, and work on shared library symbol
  38379. versioning.
  38380. * Paul Eggert for random hacking all over GCC.
  38381. * Mark Elbrecht for various DJGPP improvements, and for libstdc++
  38382. configuration support for locales and fstream-related fixes.
  38383. * Vadim Egorov for libstdc++ fixes in strings, streambufs, and
  38384. iostreams.
  38385. * Christian Ehrhardt for dealing with bug reports.
  38386. * Ben Elliston for his work to move the Objective-C runtime into its
  38387. own subdirectory and for his work on autoconf.
  38388. * Revital Eres for work on the PowerPC 750CL port.
  38389. * Marc Espie for OpenBSD support.
  38390. * Doug Evans for much of the global optimization framework, arc,
  38391. m32r, and SPARC work.
  38392. * Christopher Faylor for his work on the Cygwin port and for caring
  38393. and feeding the gcc.gnu.org box and saving its users tons of spam.
  38394. * Fred Fish for BeOS support and Ada fixes.
  38395. * Ivan Fontes Garcia for the Portuguese translation of the GCJ FAQ.
  38396. * Peter Gerwinski for various bug fixes and the Pascal front end.
  38397. * Kaveh R. Ghazi for his direction via the steering committee,
  38398. amazing work to make '-W -Wall -W* -Werror' useful, and testing GCC
  38399. on a plethora of platforms. Kaveh extends his gratitude to the
  38400. CAIP Center at Rutgers University for providing him with computing
  38401. resources to work on Free Software from the late 1980s to 2010.
  38402. * John Gilmore for a donation to the FSF earmarked improving GNU
  38403. Java.
  38404. * Judy Goldberg for c++ contributions.
  38405. * Torbjorn Granlund for various fixes and the c-torture testsuite,
  38406. multiply- and divide-by-constant optimization, improved long long
  38407. support, improved leaf function register allocation, and his
  38408. direction via the steering committee.
  38409. * Jonny Grant for improvements to 'collect2's' '--help'
  38410. documentation.
  38411. * Anthony Green for his '-Os' contributions, the moxie port, and Java
  38412. front end work.
  38413. * Stu Grossman for gdb hacking, allowing GCJ developers to debug Java
  38414. code.
  38415. * Michael K. Gschwind contributed the port to the PDP-11.
  38416. * Richard Biener for his ongoing middle-end contributions and bug
  38417. fixes and for release management.
  38418. * Ron Guilmette implemented the 'protoize' and 'unprotoize' tools,
  38419. the support for DWARF 1 symbolic debugging information, and much of
  38420. the support for System V Release 4. He has also worked heavily on
  38421. the Intel 386 and 860 support.
  38422. * Sumanth Gundapaneni for contributing the CR16 port.
  38423. * Mostafa Hagog for Swing Modulo Scheduling (SMS) and post reload
  38424. GCSE.
  38425. * Bruno Haible for improvements in the runtime overhead for EH, new
  38426. warnings and assorted bug fixes.
  38427. * Andrew Haley for his amazing Java compiler and library efforts.
  38428. * Chris Hanson assisted in making GCC work on HP-UX for the 9000
  38429. series 300.
  38430. * Michael Hayes for various thankless work he's done trying to get
  38431. the c30/c40 ports functional. Lots of loop and unroll improvements
  38432. and fixes.
  38433. * Dara Hazeghi for wading through myriads of target-specific bug
  38434. reports.
  38435. * Kate Hedstrom for staking the G77 folks with an initial testsuite.
  38436. * Richard Henderson for his ongoing SPARC, alpha, ia32, and ia64
  38437. work, loop opts, and generally fixing lots of old problems we've
  38438. ignored for years, flow rewrite and lots of further stuff,
  38439. including reviewing tons of patches.
  38440. * Aldy Hernandez for working on the PowerPC port, SIMD support, and
  38441. various fixes.
  38442. * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  38443. contributed the support for the Sony NEWS machine.
  38444. * Kazu Hirata for caring and feeding the Renesas H8/300 port and
  38445. various fixes.
  38446. * Katherine Holcomb for work on GNU Fortran.
  38447. * Manfred Hollstein for his ongoing work to keep the m88k alive, lots
  38448. of testing and bug fixing, particularly of GCC configury code.
  38449. * Steve Holmgren for MachTen patches.
  38450. * Mat Hostetter for work on the TILE-Gx and TILEPro ports.
  38451. * Jan Hubicka for his x86 port improvements.
  38452. * Falk Hueffner for working on C and optimization bug reports.
  38453. * Bernardo Innocenti for his m68k work, including merging of ColdFire
  38454. improvements and uClinux support.
  38455. * Christian Iseli for various bug fixes.
  38456. * Kamil Iskra for general m68k hacking.
  38457. * Lee Iverson for random fixes and MIPS testing.
  38458. * Balaji V. Iyer for Cilk+ development and merging.
  38459. * Andreas Jaeger for testing and benchmarking of GCC and various bug
  38460. fixes.
  38461. * Martin Jambor for his work on inter-procedural optimizations, the
  38462. switch conversion pass, and scalar replacement of aggregates.
  38463. * Jakub Jelinek for his SPARC work and sibling call optimizations as
  38464. well as lots of bug fixes and test cases, and for improving the
  38465. Java build system.
  38466. * Janis Johnson for ia64 testing and fixes, her quality improvement
  38467. sidetracks, and web page maintenance.
  38468. * Kean Johnston for SCO OpenServer support and various fixes.
  38469. * Tim Josling for the sample language treelang based originally on
  38470. Richard Kenner's "toy" language.
  38471. * Nicolai Josuttis for additional libstdc++ documentation.
  38472. * Klaus Kaempf for his ongoing work to make alpha-vms a viable
  38473. target.
  38474. * Steven G. Kargl for work on GNU Fortran.
  38475. * David Kashtan of SRI adapted GCC to VMS.
  38476. * Ryszard Kabatek for many, many libstdc++ bug fixes and
  38477. optimizations of strings, especially member functions, and for
  38478. auto_ptr fixes.
  38479. * Geoffrey Keating for his ongoing work to make the PPC work for
  38480. GNU/Linux and his automatic regression tester.
  38481. * Brendan Kehoe for his ongoing work with G++ and for a lot of early
  38482. work in just about every part of libstdc++.
  38483. * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  38484. MIL-STD-1750A.
  38485. * Richard Kenner of the New York University Ultracomputer Research
  38486. Laboratory wrote the machine descriptions for the AMD 29000, the
  38487. DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  38488. support for instruction attributes. He also made changes to better
  38489. support RISC processors including changes to common subexpression
  38490. elimination, strength reduction, function calling sequence
  38491. handling, and condition code support, in addition to generalizing
  38492. the code for frame pointer elimination and delay slot scheduling.
  38493. Richard Kenner was also the head maintainer of GCC for several
  38494. years.
  38495. * Mumit Khan for various contributions to the Cygwin and Mingw32
  38496. ports and maintaining binary releases for Microsoft Windows hosts,
  38497. and for massive libstdc++ porting work to Cygwin/Mingw32.
  38498. * Robin Kirkham for cpu32 support.
  38499. * Mark Klein for PA improvements.
  38500. * Thomas Koenig for various bug fixes.
  38501. * Bruce Korb for the new and improved fixincludes code.
  38502. * Benjamin Kosnik for his G++ work and for leading the libstdc++-v3
  38503. effort.
  38504. * Maxim Kuvyrkov for contributions to the instruction scheduler, the
  38505. Android and m68k/Coldfire ports, and optimizations.
  38506. * Charles LaBrec contributed the support for the Integrated Solutions
  38507. 68020 system.
  38508. * Asher Langton and Mike Kumbera for contributing Cray pointer
  38509. support to GNU Fortran, and for other GNU Fortran improvements.
  38510. * Jeff Law for his direction via the steering committee, coordinating
  38511. the entire egcs project and GCC 2.95, rolling out snapshots and
  38512. releases, handling merges from GCC2, reviewing tons of patches that
  38513. might have fallen through the cracks else, and random but extensive
  38514. hacking.
  38515. * Walter Lee for work on the TILE-Gx and TILEPro ports.
  38516. * Marc Lehmann for his direction via the steering committee and
  38517. helping with analysis and improvements of x86 performance.
  38518. * Victor Leikehman for work on GNU Fortran.
  38519. * Ted Lemon wrote parts of the RTL reader and printer.
  38520. * Kriang Lerdsuwanakij for C++ improvements including template as
  38521. template parameter support, and many C++ fixes.
  38522. * Warren Levy for tremendous work on libgcj (Java Runtime Library)
  38523. and random work on the Java front end.
  38524. * Alain Lichnewsky ported GCC to the MIPS CPU.
  38525. * Oskar Liljeblad for hacking on AWT and his many Java bug reports
  38526. and patches.
  38527. * Robert Lipe for OpenServer support, new testsuites, testing, etc.
  38528. * Chen Liqin for various S+core related fixes/improvement, and for
  38529. maintaining the S+core port.
  38530. * Martin Liska for his work on identical code folding, the
  38531. sanitizers, HSA, general bug fixing and for running automated
  38532. regression testing of GCC and reporting numerous bugs.
  38533. * Weiwen Liu for testing and various bug fixes.
  38534. * Manuel Lo'pez-Iba'n~ez for improving '-Wconversion' and many other
  38535. diagnostics fixes and improvements.
  38536. * Dave Love for his ongoing work with the Fortran front end and
  38537. runtime libraries.
  38538. * Martin von Lo"wis for internal consistency checking infrastructure,
  38539. various C++ improvements including namespace support, and tons of
  38540. assistance with libstdc++/compiler merges.
  38541. * H.J. Lu for his previous contributions to the steering committee,
  38542. many x86 bug reports, prototype patches, and keeping the GNU/Linux
  38543. ports working.
  38544. * Greg McGary for random fixes and (someday) bounded pointers.
  38545. * Andrew MacLeod for his ongoing work in building a real EH system,
  38546. various code generation improvements, work on the global optimizer,
  38547. etc.
  38548. * Vladimir Makarov for hacking some ugly i960 problems, PowerPC
  38549. hacking improvements to compile-time performance, overall knowledge
  38550. and direction in the area of instruction scheduling, design and
  38551. implementation of the automaton based instruction scheduler and
  38552. design and implementation of the integrated and local register
  38553. allocators.
  38554. * David Malcolm for his work on improving GCC diagnostics, JIT,
  38555. self-tests and unit testing.
  38556. * Bob Manson for his behind the scenes work on dejagnu.
  38557. * John Marino for contributing the DragonFly BSD port.
  38558. * Philip Martin for lots of libstdc++ string and vector iterator
  38559. fixes and improvements, and string clean up and testsuites.
  38560. * Michael Matz for his work on dominance tree discovery, the x86-64
  38561. port, link-time optimization framework and general optimization
  38562. improvements.
  38563. * All of the Mauve project contributors for Java test code.
  38564. * Bryce McKinlay for numerous GCJ and libgcj fixes and improvements.
  38565. * Adam Megacz for his work on the Microsoft Windows port of GCJ.
  38566. * Michael Meissner for LRS framework, ia32, m32r, v850, m88k, MIPS,
  38567. powerpc, haifa, ECOFF debug support, and other assorted hacking.
  38568. * Jason Merrill for his direction via the steering committee and
  38569. leading the G++ effort.
  38570. * Martin Michlmayr for testing GCC on several architectures using the
  38571. entire Debian archive.
  38572. * David Miller for his direction via the steering committee, lots of
  38573. SPARC work, improvements in jump.c and interfacing with the Linux
  38574. kernel developers.
  38575. * Gary Miller ported GCC to Charles River Data Systems machines.
  38576. * Alfred Minarik for libstdc++ string and ios bug fixes, and turning
  38577. the entire libstdc++ testsuite namespace-compatible.
  38578. * Mark Mitchell for his direction via the steering committee,
  38579. mountains of C++ work, load/store hoisting out of loops, alias
  38580. analysis improvements, ISO C 'restrict' support, and serving as
  38581. release manager from 2000 to 2011.
  38582. * Alan Modra for various GNU/Linux bits and testing.
  38583. * Toon Moene for his direction via the steering committee, Fortran
  38584. maintenance, and his ongoing work to make us make Fortran run fast.
  38585. * Jason Molenda for major help in the care and feeding of all the
  38586. services on the gcc.gnu.org (formerly egcs.cygnus.com)
  38587. machine--mail, web services, ftp services, etc etc. Doing all this
  38588. work on scrap paper and the backs of envelopes would have been...
  38589. difficult.
  38590. * Catherine Moore for fixing various ugly problems we have sent her
  38591. way, including the haifa bug which was killing the Alpha & PowerPC
  38592. Linux kernels.
  38593. * Mike Moreton for his various Java patches.
  38594. * David Mosberger-Tang for various Alpha improvements, and for the
  38595. initial IA-64 port.
  38596. * Stephen Moshier contributed the floating point emulator that
  38597. assists in cross-compilation and permits support for floating point
  38598. numbers wider than 64 bits and for ISO C99 support.
  38599. * Bill Moyer for his behind the scenes work on various issues.
  38600. * Philippe De Muyter for his work on the m68k port.
  38601. * Joseph S. Myers for his work on the PDP-11 port, format checking
  38602. and ISO C99 support, and continuous emphasis on (and contributions
  38603. to) documentation.
  38604. * Nathan Myers for his work on libstdc++-v3: architecture and
  38605. authorship through the first three snapshots, including
  38606. implementation of locale infrastructure, string, shadow C headers,
  38607. and the initial project documentation (DESIGN, CHECKLIST, and so
  38608. forth). Later, more work on MT-safe string and shadow headers.
  38609. * Felix Natter for documentation on porting libstdc++.
  38610. * Nathanael Nerode for cleaning up the configuration/build process.
  38611. * NeXT, Inc. donated the front end that supports the Objective-C
  38612. language.
  38613. * Hans-Peter Nilsson for the CRIS and MMIX ports, improvements to the
  38614. search engine setup, various documentation fixes and other small
  38615. fixes.
  38616. * Geoff Noer for his work on getting cygwin native builds working.
  38617. * Vegard Nossum for running automated regression testing of GCC and
  38618. reporting numerous bugs.
  38619. * Diego Novillo for his work on Tree SSA, OpenMP, SPEC performance
  38620. tracking web pages, GIMPLE tuples, and assorted fixes.
  38621. * David O'Brien for the FreeBSD/alpha, FreeBSD/AMD x86-64,
  38622. FreeBSD/ARM, FreeBSD/PowerPC, and FreeBSD/SPARC64 ports and related
  38623. infrastructure improvements.
  38624. * Alexandre Oliva for various build infrastructure improvements,
  38625. scripts and amazing testing work, including keeping libtool issues
  38626. sane and happy.
  38627. * Stefan Olsson for work on mt_alloc.
  38628. * Melissa O'Neill for various NeXT fixes.
  38629. * Rainer Orth for random MIPS work, including improvements to GCC's
  38630. o32 ABI support, improvements to dejagnu's MIPS support, Java
  38631. configuration clean-ups and porting work, and maintaining the IRIX,
  38632. Solaris 2, and Tru64 UNIX ports.
  38633. * Steven Pemberton for his contribution of 'enquire' which allowed
  38634. GCC to determine various properties of the floating point unit and
  38635. generate 'float.h' in older versions of GCC.
  38636. * Hartmut Penner for work on the s390 port.
  38637. * Paul Petersen wrote the machine description for the Alliant FX/8.
  38638. * Alexandre Petit-Bianco for implementing much of the Java compiler
  38639. and continued Java maintainership.
  38640. * Matthias Pfaller for major improvements to the NS32k port.
  38641. * Gerald Pfeifer for his direction via the steering committee,
  38642. pointing out lots of problems we need to solve, maintenance of the
  38643. web pages, and taking care of documentation maintenance in general.
  38644. * Marek Polacek for his work on the C front end, the sanitizers and
  38645. general bug fixing.
  38646. * Andrew Pinski for processing bug reports by the dozen.
  38647. * Ovidiu Predescu for his work on the Objective-C front end and
  38648. runtime libraries.
  38649. * Jerry Quinn for major performance improvements in C++ formatted
  38650. I/O.
  38651. * Ken Raeburn for various improvements to checker, MIPS ports and
  38652. various cleanups in the compiler.
  38653. * Rolf W. Rasmussen for hacking on AWT.
  38654. * David Reese of Sun Microsystems contributed to the Solaris on
  38655. PowerPC port.
  38656. * John Regehr for running automated regression testing of GCC and
  38657. reporting numerous bugs.
  38658. * Volker Reichelt for running automated regression testing of GCC and
  38659. reporting numerous bugs and for keeping up with the problem
  38660. reports.
  38661. * Joern Rennecke for maintaining the sh port, loop, regmove & reload
  38662. hacking and developing and maintaining the Epiphany port.
  38663. * Loren J. Rittle for improvements to libstdc++-v3 including the
  38664. FreeBSD port, threading fixes, thread-related configury changes,
  38665. critical threading documentation, and solutions to really tricky
  38666. I/O problems, as well as keeping GCC properly working on FreeBSD
  38667. and continuous testing.
  38668. * Craig Rodrigues for processing tons of bug reports.
  38669. * Ola Ro"nnerup for work on mt_alloc.
  38670. * Gavin Romig-Koch for lots of behind the scenes MIPS work.
  38671. * David Ronis inspired and encouraged Craig to rewrite the G77
  38672. documentation in texinfo format by contributing a first pass at a
  38673. translation of the old 'g77-0.5.16/f/DOC' file.
  38674. * Ken Rose for fixes to GCC's delay slot filling code.
  38675. * Ira Rosen for her contributions to the auto-vectorizer.
  38676. * Paul Rubin wrote most of the preprocessor.
  38677. * Pe'tur Runo'lfsson for major performance improvements in C++
  38678. formatted I/O and large file support in C++ filebuf.
  38679. * Chip Salzenberg for libstdc++ patches and improvements to locales,
  38680. traits, Makefiles, libio, libtool hackery, and "long long" support.
  38681. * Juha Sarlin for improvements to the H8 code generator.
  38682. * Greg Satz assisted in making GCC work on HP-UX for the 9000 series
  38683. 300.
  38684. * Roger Sayle for improvements to constant folding and GCC's RTL
  38685. optimizers as well as for fixing numerous bugs.
  38686. * Bradley Schatz for his work on the GCJ FAQ.
  38687. * Peter Schauer wrote the code to allow debugging to work on the
  38688. Alpha.
  38689. * William Schelter did most of the work on the Intel 80386 support.
  38690. * Tobias Schlu"ter for work on GNU Fortran.
  38691. * Bernd Schmidt for various code generation improvements and major
  38692. work in the reload pass, serving as release manager for GCC 2.95.3,
  38693. and work on the Blackfin and C6X ports.
  38694. * Peter Schmid for constant testing of libstdc++--especially
  38695. application testing, going above and beyond what was requested for
  38696. the release criteria--and libstdc++ header file tweaks.
  38697. * Jason Schroeder for jcf-dump patches.
  38698. * Andreas Schwab for his work on the m68k port.
  38699. * Lars Segerlund for work on GNU Fortran.
  38700. * Dodji Seketeli for numerous C++ bug fixes and debug info
  38701. improvements.
  38702. * Tim Shen for major work on '<regex>'.
  38703. * Joel Sherrill for his direction via the steering committee, RTEMS
  38704. contributions and RTEMS testing.
  38705. * Nathan Sidwell for many C++ fixes/improvements.
  38706. * Jeffrey Siegal for helping RMS with the original design of GCC,
  38707. some code which handles the parse tree and RTL data structures,
  38708. constant folding and help with the original VAX & m68k ports.
  38709. * Kenny Simpson for prompting libstdc++ fixes due to defect reports
  38710. from the LWG (thereby keeping GCC in line with updates from the
  38711. ISO).
  38712. * Franz Sirl for his ongoing work with making the PPC port stable for
  38713. GNU/Linux.
  38714. * Andrey Slepuhin for assorted AIX hacking.
  38715. * Trevor Smigiel for contributing the SPU port.
  38716. * Christopher Smith did the port for Convex machines.
  38717. * Danny Smith for his major efforts on the Mingw (and Cygwin) ports.
  38718. Retired from GCC maintainership August 2010, having mentored two
  38719. new maintainers into the role.
  38720. * Randy Smith finished the Sun FPA support.
  38721. * Ed Smith-Rowland for his continuous work on libstdc++-v3, special
  38722. functions, '<random>', and various improvements to C++11 features.
  38723. * Scott Snyder for queue, iterator, istream, and string fixes and
  38724. libstdc++ testsuite entries. Also for providing the patch to G77
  38725. to add rudimentary support for 'INTEGER*1', 'INTEGER*2', and
  38726. 'LOGICAL*1'.
  38727. * Zdenek Sojka for running automated regression testing of GCC and
  38728. reporting numerous bugs.
  38729. * Arseny Solokha for running automated regression testing of GCC and
  38730. reporting numerous bugs.
  38731. * Jayant Sonar for contributing the CR16 port.
  38732. * Brad Spencer for contributions to the GLIBCPP_FORCE_NEW technique.
  38733. * Richard Stallman, for writing the original GCC and launching the
  38734. GNU project.
  38735. * Jan Stein of the Chalmers Computer Society provided support for
  38736. Genix, as well as part of the 32000 machine description.
  38737. * Gerhard Steinmetz for running automated regression testing of GCC
  38738. and reporting numerous bugs.
  38739. * Nigel Stephens for various mips16 related fixes/improvements.
  38740. * Jonathan Stone wrote the machine description for the Pyramid
  38741. computer.
  38742. * Graham Stott for various infrastructure improvements.
  38743. * John Stracke for his Java HTTP protocol fixes.
  38744. * Mike Stump for his Elxsi port, G++ contributions over the years and
  38745. more recently his vxworks contributions
  38746. * Jeff Sturm for Java porting help, bug fixes, and encouragement.
  38747. * Zhendong Su for running automated regression testing of GCC and
  38748. reporting numerous bugs.
  38749. * Chengnian Sun for running automated regression testing of GCC and
  38750. reporting numerous bugs.
  38751. * Shigeya Suzuki for this fixes for the bsdi platforms.
  38752. * Ian Lance Taylor for the Go frontend, the initial mips16 and mips64
  38753. support, general configury hacking, fixincludes, etc.
  38754. * Holger Teutsch provided the support for the Clipper CPU.
  38755. * Gary Thomas for his ongoing work to make the PPC work for
  38756. GNU/Linux.
  38757. * Paul Thomas for contributions to GNU Fortran.
  38758. * Philipp Thomas for random bug fixes throughout the compiler
  38759. * Jason Thorpe for thread support in libstdc++ on NetBSD.
  38760. * Kresten Krab Thorup wrote the run time support for the Objective-C
  38761. language and the fantastic Java bytecode interpreter.
  38762. * Michael Tiemann for random bug fixes, the first instruction
  38763. scheduler, initial C++ support, function integration, NS32k, SPARC
  38764. and M88k machine description work, delay slot scheduling.
  38765. * Andreas Tobler for his work porting libgcj to Darwin.
  38766. * Teemu Torma for thread safe exception handling support.
  38767. * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  38768. definitions, and of the VAX machine description.
  38769. * Daniel Towner and Hariharan Sandanagobalane contributed and
  38770. maintain the picoChip port.
  38771. * Tom Tromey for internationalization support and for his many Java
  38772. contributions and libgcj maintainership.
  38773. * Lassi Tuura for improvements to config.guess to determine HP
  38774. processor types.
  38775. * Petter Urkedal for libstdc++ CXXFLAGS, math, and algorithms fixes.
  38776. * Andy Vaught for the design and initial implementation of the GNU
  38777. Fortran front end.
  38778. * Brent Verner for work with the libstdc++ cshadow files and their
  38779. associated configure steps.
  38780. * Todd Vierling for contributions for NetBSD ports.
  38781. * Andrew Waterman for contributing the RISC-V port, as well as
  38782. maintaining it.
  38783. * Jonathan Wakely for contributing libstdc++ Doxygen notes and XHTML
  38784. guidance and maintaining libstdc++.
  38785. * Dean Wakerley for converting the install documentation from HTML to
  38786. texinfo in time for GCC 3.0.
  38787. * Krister Walfridsson for random bug fixes.
  38788. * Feng Wang for contributions to GNU Fortran.
  38789. * Stephen M. Webb for time and effort on making libstdc++ shadow
  38790. files work with the tricky Solaris 8+ headers, and for pushing the
  38791. build-time header tree. Also, for starting and driving the
  38792. '<regex>' effort.
  38793. * John Wehle for various improvements for the x86 code generator,
  38794. related infrastructure improvements to help x86 code generation,
  38795. value range propagation and other work, WE32k port.
  38796. * Ulrich Weigand for work on the s390 port.
  38797. * Janus Weil for contributions to GNU Fortran.
  38798. * Zack Weinberg for major work on cpplib and various other bug fixes.
  38799. * Matt Welsh for help with Linux Threads support in GCJ.
  38800. * Urban Widmark for help fixing java.io.
  38801. * Mark Wielaard for new Java library code and his work integrating
  38802. with Classpath.
  38803. * Dale Wiles helped port GCC to the Tahoe.
  38804. * Bob Wilson from Tensilica, Inc. for the Xtensa port.
  38805. * Jim Wilson for his direction via the steering committee, tackling
  38806. hard problems in various places that nobody else wanted to work on,
  38807. strength reduction and other loop optimizations.
  38808. * Paul Woegerer and Tal Agmon for the CRX port.
  38809. * Carlo Wood for various fixes.
  38810. * Tom Wood for work on the m88k port.
  38811. * Chung-Ju Wu for his work on the Andes NDS32 port.
  38812. * Canqun Yang for work on GNU Fortran.
  38813. * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  38814. description for the Tron architecture (specifically, the Gmicro).
  38815. * Kevin Zachmann helped port GCC to the Tahoe.
  38816. * Ayal Zaks for Swing Modulo Scheduling (SMS).
  38817. * Qirun Zhang for running automated regression testing of GCC and
  38818. reporting numerous bugs.
  38819. * Xiaoqiang Zhang for work on GNU Fortran.
  38820. * Gilles Zunino for help porting Java to Irix.
  38821. The following people are recognized for their contributions to GNAT,
  38822. the Ada front end of GCC:
  38823. * Bernard Banner
  38824. * Romain Berrendonner
  38825. * Geert Bosch
  38826. * Emmanuel Briot
  38827. * Joel Brobecker
  38828. * Ben Brosgol
  38829. * Vincent Celier
  38830. * Arnaud Charlet
  38831. * Chien Chieng
  38832. * Cyrille Comar
  38833. * Cyrille Crozes
  38834. * Robert Dewar
  38835. * Gary Dismukes
  38836. * Robert Duff
  38837. * Ed Falis
  38838. * Ramon Fernandez
  38839. * Sam Figueroa
  38840. * Vasiliy Fofanov
  38841. * Michael Friess
  38842. * Franco Gasperoni
  38843. * Ted Giering
  38844. * Matthew Gingell
  38845. * Laurent Guerby
  38846. * Jerome Guitton
  38847. * Olivier Hainque
  38848. * Jerome Hugues
  38849. * Hristian Kirtchev
  38850. * Jerome Lambourg
  38851. * Bruno Leclerc
  38852. * Albert Lee
  38853. * Sean McNeil
  38854. * Javier Miranda
  38855. * Laurent Nana
  38856. * Pascal Obry
  38857. * Dong-Ik Oh
  38858. * Laurent Pautet
  38859. * Brett Porter
  38860. * Thomas Quinot
  38861. * Nicolas Roche
  38862. * Pat Rogers
  38863. * Jose Ruiz
  38864. * Douglas Rupp
  38865. * Sergey Rybin
  38866. * Gail Schenker
  38867. * Ed Schonberg
  38868. * Nicolas Setton
  38869. * Samuel Tardieu
  38870. The following people are recognized for their contributions of new
  38871. features, bug reports, testing and integration of classpath/libgcj for
  38872. GCC version 4.1:
  38873. * Lillian Angel for 'JTree' implementation and lots Free Swing
  38874. additions and bug fixes.
  38875. * Wolfgang Baer for 'GapContent' bug fixes.
  38876. * Anthony Balkissoon for 'JList', Free Swing 1.5 updates and mouse
  38877. event fixes, lots of Free Swing work including 'JTable' editing.
  38878. * Stuart Ballard for RMI constant fixes.
  38879. * Goffredo Baroncelli for 'HTTPURLConnection' fixes.
  38880. * Gary Benson for 'MessageFormat' fixes.
  38881. * Daniel Bonniot for 'Serialization' fixes.
  38882. * Chris Burdess for lots of gnu.xml and http protocol fixes, 'StAX'
  38883. and 'DOM xml:id' support.
  38884. * Ka-Hing Cheung for 'TreePath' and 'TreeSelection' fixes.
  38885. * Archie Cobbs for build fixes, VM interface updates,
  38886. 'URLClassLoader' updates.
  38887. * Kelley Cook for build fixes.
  38888. * Martin Cordova for Suggestions for better 'SocketTimeoutException'.
  38889. * David Daney for 'BitSet' bug fixes, 'HttpURLConnection' rewrite and
  38890. improvements.
  38891. * Thomas Fitzsimmons for lots of upgrades to the gtk+ AWT and Cairo
  38892. 2D support. Lots of imageio framework additions, lots of AWT and
  38893. Free Swing bug fixes.
  38894. * Jeroen Frijters for 'ClassLoader' and nio cleanups, serialization
  38895. fixes, better 'Proxy' support, bug fixes and IKVM integration.
  38896. * Santiago Gala for 'AccessControlContext' fixes.
  38897. * Nicolas Geoffray for 'VMClassLoader' and 'AccessController'
  38898. improvements.
  38899. * David Gilbert for 'basic' and 'metal' icon and plaf support and
  38900. lots of documenting, Lots of Free Swing and metal theme additions.
  38901. 'MetalIconFactory' implementation.
  38902. * Anthony Green for 'MIDI' framework, 'ALSA' and 'DSSI' providers.
  38903. * Andrew Haley for 'Serialization' and 'URLClassLoader' fixes, gcj
  38904. build speedups.
  38905. * Kim Ho for 'JFileChooser' implementation.
  38906. * Andrew John Hughes for 'Locale' and net fixes, URI RFC2986 updates,
  38907. 'Serialization' fixes, 'Properties' XML support and generic branch
  38908. work, VMIntegration guide update.
  38909. * Bastiaan Huisman for 'TimeZone' bug fixing.
  38910. * Andreas Jaeger for mprec updates.
  38911. * Paul Jenner for better '-Werror' support.
  38912. * Ito Kazumitsu for 'NetworkInterface' implementation and updates.
  38913. * Roman Kennke for 'BoxLayout', 'GrayFilter' and 'SplitPane', plus
  38914. bug fixes all over. Lots of Free Swing work including styled text.
  38915. * Simon Kitching for 'String' cleanups and optimization suggestions.
  38916. * Michael Koch for configuration fixes, 'Locale' updates, bug and
  38917. build fixes.
  38918. * Guilhem Lavaux for configuration, thread and channel fixes and
  38919. Kaffe integration. JCL native 'Pointer' updates. Logger bug
  38920. fixes.
  38921. * David Lichteblau for JCL support library global/local reference
  38922. cleanups.
  38923. * Aaron Luchko for JDWP updates and documentation fixes.
  38924. * Ziga Mahkovec for 'Graphics2D' upgraded to Cairo 0.5 and new regex
  38925. features.
  38926. * Sven de Marothy for BMP imageio support, CSS and 'TextLayout'
  38927. fixes. 'GtkImage' rewrite, 2D, awt, free swing and date/time fixes
  38928. and implementing the Qt4 peers.
  38929. * Casey Marshall for crypto algorithm fixes, 'FileChannel' lock,
  38930. 'SystemLogger' and 'FileHandler' rotate implementations, NIO
  38931. 'FileChannel.map' support, security and policy updates.
  38932. * Bryce McKinlay for RMI work.
  38933. * Audrius Meskauskas for lots of Free Corba, RMI and HTML work plus
  38934. testing and documenting.
  38935. * Kalle Olavi Niemitalo for build fixes.
  38936. * Rainer Orth for build fixes.
  38937. * Andrew Overholt for 'File' locking fixes.
  38938. * Ingo Proetel for 'Image', 'Logger' and 'URLClassLoader' updates.
  38939. * Olga Rodimina for 'MenuSelectionManager' implementation.
  38940. * Jan Roehrich for 'BasicTreeUI' and 'JTree' fixes.
  38941. * Julian Scheid for documentation updates and gjdoc support.
  38942. * Christian Schlichtherle for zip fixes and cleanups.
  38943. * Robert Schuster for documentation updates and beans fixes,
  38944. 'TreeNode' enumerations and 'ActionCommand' and various fixes, XML
  38945. and URL, AWT and Free Swing bug fixes.
  38946. * Keith Seitz for lots of JDWP work.
  38947. * Christian Thalinger for 64-bit cleanups, Configuration and VM
  38948. interface fixes and 'CACAO' integration, 'fdlibm' updates.
  38949. * Gael Thomas for 'VMClassLoader' boot packages support suggestions.
  38950. * Andreas Tobler for Darwin and Solaris testing and fixing, 'Qt4'
  38951. support for Darwin/OS X, 'Graphics2D' support, 'gtk+' updates.
  38952. * Dalibor Topic for better 'DEBUG' support, build cleanups and Kaffe
  38953. integration. 'Qt4' build infrastructure, 'SHA1PRNG' and
  38954. 'GdkPixbugDecoder' updates.
  38955. * Tom Tromey for Eclipse integration, generics work, lots of bug
  38956. fixes and gcj integration including coordinating The Big Merge.
  38957. * Mark Wielaard for bug fixes, packaging and release management,
  38958. 'Clipboard' implementation, system call interrupts and network
  38959. timeouts and 'GdkPixpufDecoder' fixes.
  38960. In addition to the above, all of which also contributed time and energy
  38961. in testing GCC, we would like to thank the following for their
  38962. contributions to testing:
  38963. * Michael Abd-El-Malek
  38964. * Thomas Arend
  38965. * Bonzo Armstrong
  38966. * Steven Ashe
  38967. * Chris Baldwin
  38968. * David Billinghurst
  38969. * Jim Blandy
  38970. * Stephane Bortzmeyer
  38971. * Horst von Brand
  38972. * Frank Braun
  38973. * Rodney Brown
  38974. * Sidney Cadot
  38975. * Bradford Castalia
  38976. * Robert Clark
  38977. * Jonathan Corbet
  38978. * Ralph Doncaster
  38979. * Richard Emberson
  38980. * Levente Farkas
  38981. * Graham Fawcett
  38982. * Mark Fernyhough
  38983. * Robert A. French
  38984. * Jo"rgen Freyh
  38985. * Mark K. Gardner
  38986. * Charles-Antoine Gauthier
  38987. * Yung Shing Gene
  38988. * David Gilbert
  38989. * Simon Gornall
  38990. * Fred Gray
  38991. * John Griffin
  38992. * Patrik Hagglund
  38993. * Phil Hargett
  38994. * Amancio Hasty
  38995. * Takafumi Hayashi
  38996. * Bryan W. Headley
  38997. * Kevin B. Hendricks
  38998. * Joep Jansen
  38999. * Christian Joensson
  39000. * Michel Kern
  39001. * David Kidd
  39002. * Tobias Kuipers
  39003. * Anand Krishnaswamy
  39004. * A. O. V. Le Blanc
  39005. * llewelly
  39006. * Damon Love
  39007. * Brad Lucier
  39008. * Matthias Klose
  39009. * Martin Knoblauch
  39010. * Rick Lutowski
  39011. * Jesse Macnish
  39012. * Stefan Morrell
  39013. * Anon A. Mous
  39014. * Matthias Mueller
  39015. * Pekka Nikander
  39016. * Rick Niles
  39017. * Jon Olson
  39018. * Magnus Persson
  39019. * Chris Pollard
  39020. * Richard Polton
  39021. * Derk Reefman
  39022. * David Rees
  39023. * Paul Reilly
  39024. * Tom Reilly
  39025. * Torsten Rueger
  39026. * Danny Sadinoff
  39027. * Marc Schifer
  39028. * Erik Schnetter
  39029. * Wayne K. Schroll
  39030. * David Schuler
  39031. * Vin Shelton
  39032. * Tim Souder
  39033. * Adam Sulmicki
  39034. * Bill Thorson
  39035. * George Talbot
  39036. * Pedro A. M. Vazquez
  39037. * Gregory Warnes
  39038. * Ian Watson
  39039. * David E. Young
  39040. * And many others
  39041. And finally we'd like to thank everyone who uses the compiler, provides
  39042. feedback and generally reminds us why we're doing this work in the first
  39043. place.
  39044. 
  39045. File: gccint.info, Node: Option Index, Next: Concept Index, Prev: Contributors, Up: Top
  39046. Option Index
  39047. ************
  39048. GCC's command line options are indexed here without any initial '-' or
  39049. '--'. Where an option has both positive and negative forms (such as
  39050. '-fOPTION' and '-fno-OPTION'), relevant entries in the manual are
  39051. indexed under the most appropriate form; it may sometimes be useful to
  39052. look up both forms.
  39053. �[index�]
  39054. * Menu:
  39055. * fltrans: Internal flags. (line 18)
  39056. * fltrans-output-list: Internal flags. (line 23)
  39057. * fresolution: Internal flags. (line 27)
  39058. * fwpa: Internal flags. (line 9)
  39059. * msoft-float: Soft float library routines.
  39060. (line 6)
  39061. 
  39062. File: gccint.info, Node: Concept Index, Prev: Option Index, Up: Top
  39063. Concept Index
  39064. *************
  39065. �[index�]
  39066. * Menu:
  39067. * ! in constraint: Multi-Alternative. (line 48)
  39068. * # in constraint: Modifiers. (line 78)
  39069. * # in template: Output Template. (line 66)
  39070. * #pragma: Misc. (line 420)
  39071. * $ in constraint: Multi-Alternative. (line 57)
  39072. * % in constraint: Modifiers. (line 52)
  39073. * % in GTY option: GTY Options. (line 18)
  39074. * % in template: Output Template. (line 6)
  39075. * & in constraint: Modifiers. (line 25)
  39076. * (gimple: Logical Operators. (line 169)
  39077. * (gimple <1>: Logical Operators. (line 173)
  39078. * (gimple <2>: Logical Operators. (line 177)
  39079. * (gimple_stmt_iterator: GIMPLE API. (line 30)
  39080. * (nil): RTL Objects. (line 73)
  39081. * * in constraint: Modifiers. (line 83)
  39082. * * in template: Output Statement. (line 29)
  39083. * *gimple_build_asm_vec: GIMPLE_ASM. (line 6)
  39084. * *gimple_build_assign: GIMPLE_ASSIGN. (line 6)
  39085. * *gimple_build_assign <1>: GIMPLE_ASSIGN. (line 18)
  39086. * *gimple_build_assign <2>: GIMPLE_ASSIGN. (line 29)
  39087. * *gimple_build_assign <3>: GIMPLE_ASSIGN. (line 35)
  39088. * *gimple_build_bind: GIMPLE_BIND. (line 6)
  39089. * *gimple_build_call: GIMPLE_CALL. (line 6)
  39090. * *gimple_build_call_from_tree: GIMPLE_CALL. (line 15)
  39091. * *gimple_build_call_vec: GIMPLE_CALL. (line 25)
  39092. * *gimple_build_catch: GIMPLE_CATCH. (line 6)
  39093. * *gimple_build_cond: GIMPLE_COND. (line 6)
  39094. * *gimple_build_cond_from_tree: GIMPLE_COND. (line 14)
  39095. * *gimple_build_debug_bind: GIMPLE_DEBUG. (line 6)
  39096. * *gimple_build_eh_filter: GIMPLE_EH_FILTER. (line 6)
  39097. * *gimple_build_goto: GIMPLE_GOTO. (line 6)
  39098. * *gimple_build_label: GIMPLE_LABEL. (line 6)
  39099. * *gimple_build_omp_atomic_load: GIMPLE_OMP_ATOMIC_LOAD.
  39100. (line 6)
  39101. * *gimple_build_omp_atomic_store: GIMPLE_OMP_ATOMIC_STORE.
  39102. (line 6)
  39103. * *gimple_build_omp_continue: GIMPLE_OMP_CONTINUE.
  39104. (line 6)
  39105. * *gimple_build_omp_critical: GIMPLE_OMP_CRITICAL.
  39106. (line 6)
  39107. * *gimple_build_omp_for: GIMPLE_OMP_FOR. (line 6)
  39108. * *gimple_build_omp_parallel: GIMPLE_OMP_PARALLEL.
  39109. (line 6)
  39110. * *gimple_build_omp_sections: GIMPLE_OMP_SECTIONS.
  39111. (line 6)
  39112. * *gimple_build_omp_single: GIMPLE_OMP_SINGLE. (line 6)
  39113. * *gimple_build_resx: GIMPLE_RESX. (line 6)
  39114. * *gimple_build_return: GIMPLE_RETURN. (line 6)
  39115. * *gimple_build_switch: GIMPLE_SWITCH. (line 6)
  39116. * *gimple_build_try: GIMPLE_TRY. (line 6)
  39117. * + in constraint: Modifiers. (line 12)
  39118. * -fsection-anchors: Special Accessors. (line 117)
  39119. * -fsection-anchors <1>: Anchored Addresses. (line 6)
  39120. * /c in RTL dump: Flags. (line 230)
  39121. * /f in RTL dump: Flags. (line 238)
  39122. * /i in RTL dump: Flags. (line 283)
  39123. * /j in RTL dump: Flags. (line 295)
  39124. * /s in RTL dump: Flags. (line 254)
  39125. * /u in RTL dump: Flags. (line 307)
  39126. * /v in RTL dump: Flags. (line 339)
  39127. * 0 in constraint: Simple Constraints. (line 128)
  39128. * < in constraint: Simple Constraints. (line 47)
  39129. * = in constraint: Modifiers. (line 8)
  39130. * > in constraint: Simple Constraints. (line 59)
  39131. * ? in constraint: Multi-Alternative. (line 42)
  39132. * @ in instruction pattern names: Parameterized Names.
  39133. (line 6)
  39134. * \: Output Template. (line 46)
  39135. * ^ in constraint: Multi-Alternative. (line 53)
  39136. * __absvdi2: Integer library routines.
  39137. (line 106)
  39138. * __absvsi2: Integer library routines.
  39139. (line 105)
  39140. * __addda3: Fixed-point fractional library routines.
  39141. (line 52)
  39142. * __adddf3: Soft float library routines.
  39143. (line 22)
  39144. * __adddq3: Fixed-point fractional library routines.
  39145. (line 39)
  39146. * __addha3: Fixed-point fractional library routines.
  39147. (line 49)
  39148. * __addhq3: Fixed-point fractional library routines.
  39149. (line 37)
  39150. * __addqq3: Fixed-point fractional library routines.
  39151. (line 35)
  39152. * __addsa3: Fixed-point fractional library routines.
  39153. (line 51)
  39154. * __addsf3: Soft float library routines.
  39155. (line 21)
  39156. * __addsq3: Fixed-point fractional library routines.
  39157. (line 38)
  39158. * __addta3: Fixed-point fractional library routines.
  39159. (line 53)
  39160. * __addtf3: Soft float library routines.
  39161. (line 23)
  39162. * __adduda3: Fixed-point fractional library routines.
  39163. (line 59)
  39164. * __addudq3: Fixed-point fractional library routines.
  39165. (line 47)
  39166. * __adduha3: Fixed-point fractional library routines.
  39167. (line 55)
  39168. * __adduhq3: Fixed-point fractional library routines.
  39169. (line 43)
  39170. * __adduqq3: Fixed-point fractional library routines.
  39171. (line 41)
  39172. * __addusa3: Fixed-point fractional library routines.
  39173. (line 57)
  39174. * __addusq3: Fixed-point fractional library routines.
  39175. (line 45)
  39176. * __adduta3: Fixed-point fractional library routines.
  39177. (line 61)
  39178. * __addvdi3: Integer library routines.
  39179. (line 110)
  39180. * __addvsi3: Integer library routines.
  39181. (line 109)
  39182. * __addxf3: Soft float library routines.
  39183. (line 25)
  39184. * __ashlda3: Fixed-point fractional library routines.
  39185. (line 358)
  39186. * __ashldi3: Integer library routines.
  39187. (line 13)
  39188. * __ashldq3: Fixed-point fractional library routines.
  39189. (line 346)
  39190. * __ashlha3: Fixed-point fractional library routines.
  39191. (line 356)
  39192. * __ashlhq3: Fixed-point fractional library routines.
  39193. (line 344)
  39194. * __ashlqq3: Fixed-point fractional library routines.
  39195. (line 343)
  39196. * __ashlsa3: Fixed-point fractional library routines.
  39197. (line 357)
  39198. * __ashlsi3: Integer library routines.
  39199. (line 12)
  39200. * __ashlsq3: Fixed-point fractional library routines.
  39201. (line 345)
  39202. * __ashlta3: Fixed-point fractional library routines.
  39203. (line 359)
  39204. * __ashlti3: Integer library routines.
  39205. (line 14)
  39206. * __ashluda3: Fixed-point fractional library routines.
  39207. (line 365)
  39208. * __ashludq3: Fixed-point fractional library routines.
  39209. (line 354)
  39210. * __ashluha3: Fixed-point fractional library routines.
  39211. (line 361)
  39212. * __ashluhq3: Fixed-point fractional library routines.
  39213. (line 350)
  39214. * __ashluqq3: Fixed-point fractional library routines.
  39215. (line 348)
  39216. * __ashlusa3: Fixed-point fractional library routines.
  39217. (line 363)
  39218. * __ashlusq3: Fixed-point fractional library routines.
  39219. (line 352)
  39220. * __ashluta3: Fixed-point fractional library routines.
  39221. (line 367)
  39222. * __ashrda3: Fixed-point fractional library routines.
  39223. (line 378)
  39224. * __ashrdi3: Integer library routines.
  39225. (line 18)
  39226. * __ashrdq3: Fixed-point fractional library routines.
  39227. (line 374)
  39228. * __ashrha3: Fixed-point fractional library routines.
  39229. (line 376)
  39230. * __ashrhq3: Fixed-point fractional library routines.
  39231. (line 372)
  39232. * __ashrqq3: Fixed-point fractional library routines.
  39233. (line 371)
  39234. * __ashrsa3: Fixed-point fractional library routines.
  39235. (line 377)
  39236. * __ashrsi3: Integer library routines.
  39237. (line 17)
  39238. * __ashrsq3: Fixed-point fractional library routines.
  39239. (line 373)
  39240. * __ashrta3: Fixed-point fractional library routines.
  39241. (line 379)
  39242. * __ashrti3: Integer library routines.
  39243. (line 19)
  39244. * __bid_adddd3: Decimal float library routines.
  39245. (line 23)
  39246. * __bid_addsd3: Decimal float library routines.
  39247. (line 19)
  39248. * __bid_addtd3: Decimal float library routines.
  39249. (line 27)
  39250. * __bid_divdd3: Decimal float library routines.
  39251. (line 66)
  39252. * __bid_divsd3: Decimal float library routines.
  39253. (line 62)
  39254. * __bid_divtd3: Decimal float library routines.
  39255. (line 70)
  39256. * __bid_eqdd2: Decimal float library routines.
  39257. (line 258)
  39258. * __bid_eqsd2: Decimal float library routines.
  39259. (line 256)
  39260. * __bid_eqtd2: Decimal float library routines.
  39261. (line 260)
  39262. * __bid_extendddtd2: Decimal float library routines.
  39263. (line 91)
  39264. * __bid_extendddtf: Decimal float library routines.
  39265. (line 139)
  39266. * __bid_extendddxf: Decimal float library routines.
  39267. (line 133)
  39268. * __bid_extenddfdd: Decimal float library routines.
  39269. (line 146)
  39270. * __bid_extenddftd: Decimal float library routines.
  39271. (line 106)
  39272. * __bid_extendsddd2: Decimal float library routines.
  39273. (line 87)
  39274. * __bid_extendsddf: Decimal float library routines.
  39275. (line 127)
  39276. * __bid_extendsdtd2: Decimal float library routines.
  39277. (line 89)
  39278. * __bid_extendsdtf: Decimal float library routines.
  39279. (line 137)
  39280. * __bid_extendsdxf: Decimal float library routines.
  39281. (line 131)
  39282. * __bid_extendsfdd: Decimal float library routines.
  39283. (line 102)
  39284. * __bid_extendsfsd: Decimal float library routines.
  39285. (line 144)
  39286. * __bid_extendsftd: Decimal float library routines.
  39287. (line 104)
  39288. * __bid_extendtftd: Decimal float library routines.
  39289. (line 148)
  39290. * __bid_extendxftd: Decimal float library routines.
  39291. (line 108)
  39292. * __bid_fixdddi: Decimal float library routines.
  39293. (line 169)
  39294. * __bid_fixddsi: Decimal float library routines.
  39295. (line 161)
  39296. * __bid_fixsddi: Decimal float library routines.
  39297. (line 167)
  39298. * __bid_fixsdsi: Decimal float library routines.
  39299. (line 159)
  39300. * __bid_fixtddi: Decimal float library routines.
  39301. (line 171)
  39302. * __bid_fixtdsi: Decimal float library routines.
  39303. (line 163)
  39304. * __bid_fixunsdddi: Decimal float library routines.
  39305. (line 186)
  39306. * __bid_fixunsddsi: Decimal float library routines.
  39307. (line 177)
  39308. * __bid_fixunssddi: Decimal float library routines.
  39309. (line 184)
  39310. * __bid_fixunssdsi: Decimal float library routines.
  39311. (line 175)
  39312. * __bid_fixunstddi: Decimal float library routines.
  39313. (line 188)
  39314. * __bid_fixunstdsi: Decimal float library routines.
  39315. (line 179)
  39316. * __bid_floatdidd: Decimal float library routines.
  39317. (line 204)
  39318. * __bid_floatdisd: Decimal float library routines.
  39319. (line 202)
  39320. * __bid_floatditd: Decimal float library routines.
  39321. (line 206)
  39322. * __bid_floatsidd: Decimal float library routines.
  39323. (line 195)
  39324. * __bid_floatsisd: Decimal float library routines.
  39325. (line 193)
  39326. * __bid_floatsitd: Decimal float library routines.
  39327. (line 197)
  39328. * __bid_floatunsdidd: Decimal float library routines.
  39329. (line 222)
  39330. * __bid_floatunsdisd: Decimal float library routines.
  39331. (line 220)
  39332. * __bid_floatunsditd: Decimal float library routines.
  39333. (line 224)
  39334. * __bid_floatunssidd: Decimal float library routines.
  39335. (line 213)
  39336. * __bid_floatunssisd: Decimal float library routines.
  39337. (line 211)
  39338. * __bid_floatunssitd: Decimal float library routines.
  39339. (line 215)
  39340. * __bid_gedd2: Decimal float library routines.
  39341. (line 276)
  39342. * __bid_gesd2: Decimal float library routines.
  39343. (line 274)
  39344. * __bid_getd2: Decimal float library routines.
  39345. (line 278)
  39346. * __bid_gtdd2: Decimal float library routines.
  39347. (line 303)
  39348. * __bid_gtsd2: Decimal float library routines.
  39349. (line 301)
  39350. * __bid_gttd2: Decimal float library routines.
  39351. (line 305)
  39352. * __bid_ledd2: Decimal float library routines.
  39353. (line 294)
  39354. * __bid_lesd2: Decimal float library routines.
  39355. (line 292)
  39356. * __bid_letd2: Decimal float library routines.
  39357. (line 296)
  39358. * __bid_ltdd2: Decimal float library routines.
  39359. (line 285)
  39360. * __bid_ltsd2: Decimal float library routines.
  39361. (line 283)
  39362. * __bid_lttd2: Decimal float library routines.
  39363. (line 287)
  39364. * __bid_muldd3: Decimal float library routines.
  39365. (line 52)
  39366. * __bid_mulsd3: Decimal float library routines.
  39367. (line 48)
  39368. * __bid_multd3: Decimal float library routines.
  39369. (line 56)
  39370. * __bid_nedd2: Decimal float library routines.
  39371. (line 267)
  39372. * __bid_negdd2: Decimal float library routines.
  39373. (line 77)
  39374. * __bid_negsd2: Decimal float library routines.
  39375. (line 75)
  39376. * __bid_negtd2: Decimal float library routines.
  39377. (line 79)
  39378. * __bid_nesd2: Decimal float library routines.
  39379. (line 265)
  39380. * __bid_netd2: Decimal float library routines.
  39381. (line 269)
  39382. * __bid_subdd3: Decimal float library routines.
  39383. (line 37)
  39384. * __bid_subsd3: Decimal float library routines.
  39385. (line 33)
  39386. * __bid_subtd3: Decimal float library routines.
  39387. (line 41)
  39388. * __bid_truncdddf: Decimal float library routines.
  39389. (line 152)
  39390. * __bid_truncddsd2: Decimal float library routines.
  39391. (line 93)
  39392. * __bid_truncddsf: Decimal float library routines.
  39393. (line 123)
  39394. * __bid_truncdfsd: Decimal float library routines.
  39395. (line 110)
  39396. * __bid_truncsdsf: Decimal float library routines.
  39397. (line 150)
  39398. * __bid_trunctddd2: Decimal float library routines.
  39399. (line 97)
  39400. * __bid_trunctddf: Decimal float library routines.
  39401. (line 129)
  39402. * __bid_trunctdsd2: Decimal float library routines.
  39403. (line 95)
  39404. * __bid_trunctdsf: Decimal float library routines.
  39405. (line 125)
  39406. * __bid_trunctdtf: Decimal float library routines.
  39407. (line 154)
  39408. * __bid_trunctdxf: Decimal float library routines.
  39409. (line 135)
  39410. * __bid_trunctfdd: Decimal float library routines.
  39411. (line 118)
  39412. * __bid_trunctfsd: Decimal float library routines.
  39413. (line 114)
  39414. * __bid_truncxfdd: Decimal float library routines.
  39415. (line 116)
  39416. * __bid_truncxfsd: Decimal float library routines.
  39417. (line 112)
  39418. * __bid_unorddd2: Decimal float library routines.
  39419. (line 234)
  39420. * __bid_unordsd2: Decimal float library routines.
  39421. (line 232)
  39422. * __bid_unordtd2: Decimal float library routines.
  39423. (line 236)
  39424. * __bswapdi2: Integer library routines.
  39425. (line 161)
  39426. * __bswapsi2: Integer library routines.
  39427. (line 160)
  39428. * __builtin_classify_type: Varargs. (line 48)
  39429. * __builtin_next_arg: Varargs. (line 39)
  39430. * __builtin_saveregs: Varargs. (line 22)
  39431. * __clear_cache: Miscellaneous routines.
  39432. (line 9)
  39433. * __clzdi2: Integer library routines.
  39434. (line 130)
  39435. * __clzsi2: Integer library routines.
  39436. (line 129)
  39437. * __clzti2: Integer library routines.
  39438. (line 131)
  39439. * __cmpda2: Fixed-point fractional library routines.
  39440. (line 458)
  39441. * __cmpdf2: Soft float library routines.
  39442. (line 163)
  39443. * __cmpdi2: Integer library routines.
  39444. (line 86)
  39445. * __cmpdq2: Fixed-point fractional library routines.
  39446. (line 447)
  39447. * __cmpha2: Fixed-point fractional library routines.
  39448. (line 456)
  39449. * __cmphq2: Fixed-point fractional library routines.
  39450. (line 445)
  39451. * __cmpqq2: Fixed-point fractional library routines.
  39452. (line 444)
  39453. * __cmpsa2: Fixed-point fractional library routines.
  39454. (line 457)
  39455. * __cmpsf2: Soft float library routines.
  39456. (line 162)
  39457. * __cmpsq2: Fixed-point fractional library routines.
  39458. (line 446)
  39459. * __cmpta2: Fixed-point fractional library routines.
  39460. (line 459)
  39461. * __cmptf2: Soft float library routines.
  39462. (line 164)
  39463. * __cmpti2: Integer library routines.
  39464. (line 87)
  39465. * __cmpuda2: Fixed-point fractional library routines.
  39466. (line 464)
  39467. * __cmpudq2: Fixed-point fractional library routines.
  39468. (line 454)
  39469. * __cmpuha2: Fixed-point fractional library routines.
  39470. (line 461)
  39471. * __cmpuhq2: Fixed-point fractional library routines.
  39472. (line 451)
  39473. * __cmpuqq2: Fixed-point fractional library routines.
  39474. (line 449)
  39475. * __cmpusa2: Fixed-point fractional library routines.
  39476. (line 463)
  39477. * __cmpusq2: Fixed-point fractional library routines.
  39478. (line 452)
  39479. * __cmputa2: Fixed-point fractional library routines.
  39480. (line 466)
  39481. * __CTOR_LIST__: Initialization. (line 25)
  39482. * __ctzdi2: Integer library routines.
  39483. (line 137)
  39484. * __ctzsi2: Integer library routines.
  39485. (line 136)
  39486. * __ctzti2: Integer library routines.
  39487. (line 138)
  39488. * __divda3: Fixed-point fractional library routines.
  39489. (line 234)
  39490. * __divdc3: Soft float library routines.
  39491. (line 250)
  39492. * __divdf3: Soft float library routines.
  39493. (line 47)
  39494. * __divdi3: Integer library routines.
  39495. (line 24)
  39496. * __divdq3: Fixed-point fractional library routines.
  39497. (line 229)
  39498. * __divha3: Fixed-point fractional library routines.
  39499. (line 231)
  39500. * __divhq3: Fixed-point fractional library routines.
  39501. (line 227)
  39502. * __divqq3: Fixed-point fractional library routines.
  39503. (line 225)
  39504. * __divsa3: Fixed-point fractional library routines.
  39505. (line 233)
  39506. * __divsc3: Soft float library routines.
  39507. (line 248)
  39508. * __divsf3: Soft float library routines.
  39509. (line 46)
  39510. * __divsi3: Integer library routines.
  39511. (line 23)
  39512. * __divsq3: Fixed-point fractional library routines.
  39513. (line 228)
  39514. * __divta3: Fixed-point fractional library routines.
  39515. (line 235)
  39516. * __divtc3: Soft float library routines.
  39517. (line 252)
  39518. * __divtf3: Soft float library routines.
  39519. (line 48)
  39520. * __divti3: Integer library routines.
  39521. (line 25)
  39522. * __divxc3: Soft float library routines.
  39523. (line 254)
  39524. * __divxf3: Soft float library routines.
  39525. (line 50)
  39526. * __dpd_adddd3: Decimal float library routines.
  39527. (line 21)
  39528. * __dpd_addsd3: Decimal float library routines.
  39529. (line 17)
  39530. * __dpd_addtd3: Decimal float library routines.
  39531. (line 25)
  39532. * __dpd_divdd3: Decimal float library routines.
  39533. (line 64)
  39534. * __dpd_divsd3: Decimal float library routines.
  39535. (line 60)
  39536. * __dpd_divtd3: Decimal float library routines.
  39537. (line 68)
  39538. * __dpd_eqdd2: Decimal float library routines.
  39539. (line 257)
  39540. * __dpd_eqsd2: Decimal float library routines.
  39541. (line 255)
  39542. * __dpd_eqtd2: Decimal float library routines.
  39543. (line 259)
  39544. * __dpd_extendddtd2: Decimal float library routines.
  39545. (line 90)
  39546. * __dpd_extendddtf: Decimal float library routines.
  39547. (line 138)
  39548. * __dpd_extendddxf: Decimal float library routines.
  39549. (line 132)
  39550. * __dpd_extenddfdd: Decimal float library routines.
  39551. (line 145)
  39552. * __dpd_extenddftd: Decimal float library routines.
  39553. (line 105)
  39554. * __dpd_extendsddd2: Decimal float library routines.
  39555. (line 86)
  39556. * __dpd_extendsddf: Decimal float library routines.
  39557. (line 126)
  39558. * __dpd_extendsdtd2: Decimal float library routines.
  39559. (line 88)
  39560. * __dpd_extendsdtf: Decimal float library routines.
  39561. (line 136)
  39562. * __dpd_extendsdxf: Decimal float library routines.
  39563. (line 130)
  39564. * __dpd_extendsfdd: Decimal float library routines.
  39565. (line 101)
  39566. * __dpd_extendsfsd: Decimal float library routines.
  39567. (line 143)
  39568. * __dpd_extendsftd: Decimal float library routines.
  39569. (line 103)
  39570. * __dpd_extendtftd: Decimal float library routines.
  39571. (line 147)
  39572. * __dpd_extendxftd: Decimal float library routines.
  39573. (line 107)
  39574. * __dpd_fixdddi: Decimal float library routines.
  39575. (line 168)
  39576. * __dpd_fixddsi: Decimal float library routines.
  39577. (line 160)
  39578. * __dpd_fixsddi: Decimal float library routines.
  39579. (line 166)
  39580. * __dpd_fixsdsi: Decimal float library routines.
  39581. (line 158)
  39582. * __dpd_fixtddi: Decimal float library routines.
  39583. (line 170)
  39584. * __dpd_fixtdsi: Decimal float library routines.
  39585. (line 162)
  39586. * __dpd_fixunsdddi: Decimal float library routines.
  39587. (line 185)
  39588. * __dpd_fixunsddsi: Decimal float library routines.
  39589. (line 176)
  39590. * __dpd_fixunssddi: Decimal float library routines.
  39591. (line 183)
  39592. * __dpd_fixunssdsi: Decimal float library routines.
  39593. (line 174)
  39594. * __dpd_fixunstddi: Decimal float library routines.
  39595. (line 187)
  39596. * __dpd_fixunstdsi: Decimal float library routines.
  39597. (line 178)
  39598. * __dpd_floatdidd: Decimal float library routines.
  39599. (line 203)
  39600. * __dpd_floatdisd: Decimal float library routines.
  39601. (line 201)
  39602. * __dpd_floatditd: Decimal float library routines.
  39603. (line 205)
  39604. * __dpd_floatsidd: Decimal float library routines.
  39605. (line 194)
  39606. * __dpd_floatsisd: Decimal float library routines.
  39607. (line 192)
  39608. * __dpd_floatsitd: Decimal float library routines.
  39609. (line 196)
  39610. * __dpd_floatunsdidd: Decimal float library routines.
  39611. (line 221)
  39612. * __dpd_floatunsdisd: Decimal float library routines.
  39613. (line 219)
  39614. * __dpd_floatunsditd: Decimal float library routines.
  39615. (line 223)
  39616. * __dpd_floatunssidd: Decimal float library routines.
  39617. (line 212)
  39618. * __dpd_floatunssisd: Decimal float library routines.
  39619. (line 210)
  39620. * __dpd_floatunssitd: Decimal float library routines.
  39621. (line 214)
  39622. * __dpd_gedd2: Decimal float library routines.
  39623. (line 275)
  39624. * __dpd_gesd2: Decimal float library routines.
  39625. (line 273)
  39626. * __dpd_getd2: Decimal float library routines.
  39627. (line 277)
  39628. * __dpd_gtdd2: Decimal float library routines.
  39629. (line 302)
  39630. * __dpd_gtsd2: Decimal float library routines.
  39631. (line 300)
  39632. * __dpd_gttd2: Decimal float library routines.
  39633. (line 304)
  39634. * __dpd_ledd2: Decimal float library routines.
  39635. (line 293)
  39636. * __dpd_lesd2: Decimal float library routines.
  39637. (line 291)
  39638. * __dpd_letd2: Decimal float library routines.
  39639. (line 295)
  39640. * __dpd_ltdd2: Decimal float library routines.
  39641. (line 284)
  39642. * __dpd_ltsd2: Decimal float library routines.
  39643. (line 282)
  39644. * __dpd_lttd2: Decimal float library routines.
  39645. (line 286)
  39646. * __dpd_muldd3: Decimal float library routines.
  39647. (line 50)
  39648. * __dpd_mulsd3: Decimal float library routines.
  39649. (line 46)
  39650. * __dpd_multd3: Decimal float library routines.
  39651. (line 54)
  39652. * __dpd_nedd2: Decimal float library routines.
  39653. (line 266)
  39654. * __dpd_negdd2: Decimal float library routines.
  39655. (line 76)
  39656. * __dpd_negsd2: Decimal float library routines.
  39657. (line 74)
  39658. * __dpd_negtd2: Decimal float library routines.
  39659. (line 78)
  39660. * __dpd_nesd2: Decimal float library routines.
  39661. (line 264)
  39662. * __dpd_netd2: Decimal float library routines.
  39663. (line 268)
  39664. * __dpd_subdd3: Decimal float library routines.
  39665. (line 35)
  39666. * __dpd_subsd3: Decimal float library routines.
  39667. (line 31)
  39668. * __dpd_subtd3: Decimal float library routines.
  39669. (line 39)
  39670. * __dpd_truncdddf: Decimal float library routines.
  39671. (line 151)
  39672. * __dpd_truncddsd2: Decimal float library routines.
  39673. (line 92)
  39674. * __dpd_truncddsf: Decimal float library routines.
  39675. (line 122)
  39676. * __dpd_truncdfsd: Decimal float library routines.
  39677. (line 109)
  39678. * __dpd_truncsdsf: Decimal float library routines.
  39679. (line 149)
  39680. * __dpd_trunctddd2: Decimal float library routines.
  39681. (line 96)
  39682. * __dpd_trunctddf: Decimal float library routines.
  39683. (line 128)
  39684. * __dpd_trunctdsd2: Decimal float library routines.
  39685. (line 94)
  39686. * __dpd_trunctdsf: Decimal float library routines.
  39687. (line 124)
  39688. * __dpd_trunctdtf: Decimal float library routines.
  39689. (line 153)
  39690. * __dpd_trunctdxf: Decimal float library routines.
  39691. (line 134)
  39692. * __dpd_trunctfdd: Decimal float library routines.
  39693. (line 117)
  39694. * __dpd_trunctfsd: Decimal float library routines.
  39695. (line 113)
  39696. * __dpd_truncxfdd: Decimal float library routines.
  39697. (line 115)
  39698. * __dpd_truncxfsd: Decimal float library routines.
  39699. (line 111)
  39700. * __dpd_unorddd2: Decimal float library routines.
  39701. (line 233)
  39702. * __dpd_unordsd2: Decimal float library routines.
  39703. (line 231)
  39704. * __dpd_unordtd2: Decimal float library routines.
  39705. (line 235)
  39706. * __DTOR_LIST__: Initialization. (line 25)
  39707. * __eqdf2: Soft float library routines.
  39708. (line 193)
  39709. * __eqsf2: Soft float library routines.
  39710. (line 192)
  39711. * __eqtf2: Soft float library routines.
  39712. (line 194)
  39713. * __extenddftf2: Soft float library routines.
  39714. (line 67)
  39715. * __extenddfxf2: Soft float library routines.
  39716. (line 68)
  39717. * __extendsfdf2: Soft float library routines.
  39718. (line 64)
  39719. * __extendsftf2: Soft float library routines.
  39720. (line 65)
  39721. * __extendsfxf2: Soft float library routines.
  39722. (line 66)
  39723. * __ffsdi2: Integer library routines.
  39724. (line 143)
  39725. * __ffsti2: Integer library routines.
  39726. (line 144)
  39727. * __fixdfdi: Soft float library routines.
  39728. (line 87)
  39729. * __fixdfsi: Soft float library routines.
  39730. (line 80)
  39731. * __fixdfti: Soft float library routines.
  39732. (line 93)
  39733. * __fixsfdi: Soft float library routines.
  39734. (line 86)
  39735. * __fixsfsi: Soft float library routines.
  39736. (line 79)
  39737. * __fixsfti: Soft float library routines.
  39738. (line 92)
  39739. * __fixtfdi: Soft float library routines.
  39740. (line 88)
  39741. * __fixtfsi: Soft float library routines.
  39742. (line 81)
  39743. * __fixtfti: Soft float library routines.
  39744. (line 94)
  39745. * __fixunsdfdi: Soft float library routines.
  39746. (line 107)
  39747. * __fixunsdfsi: Soft float library routines.
  39748. (line 100)
  39749. * __fixunsdfti: Soft float library routines.
  39750. (line 114)
  39751. * __fixunssfdi: Soft float library routines.
  39752. (line 106)
  39753. * __fixunssfsi: Soft float library routines.
  39754. (line 99)
  39755. * __fixunssfti: Soft float library routines.
  39756. (line 113)
  39757. * __fixunstfdi: Soft float library routines.
  39758. (line 108)
  39759. * __fixunstfsi: Soft float library routines.
  39760. (line 101)
  39761. * __fixunstfti: Soft float library routines.
  39762. (line 115)
  39763. * __fixunsxfdi: Soft float library routines.
  39764. (line 109)
  39765. * __fixunsxfsi: Soft float library routines.
  39766. (line 102)
  39767. * __fixunsxfti: Soft float library routines.
  39768. (line 116)
  39769. * __fixxfdi: Soft float library routines.
  39770. (line 89)
  39771. * __fixxfsi: Soft float library routines.
  39772. (line 82)
  39773. * __fixxfti: Soft float library routines.
  39774. (line 95)
  39775. * __floatdidf: Soft float library routines.
  39776. (line 127)
  39777. * __floatdisf: Soft float library routines.
  39778. (line 126)
  39779. * __floatditf: Soft float library routines.
  39780. (line 128)
  39781. * __floatdixf: Soft float library routines.
  39782. (line 129)
  39783. * __floatsidf: Soft float library routines.
  39784. (line 121)
  39785. * __floatsisf: Soft float library routines.
  39786. (line 120)
  39787. * __floatsitf: Soft float library routines.
  39788. (line 122)
  39789. * __floatsixf: Soft float library routines.
  39790. (line 123)
  39791. * __floattidf: Soft float library routines.
  39792. (line 133)
  39793. * __floattisf: Soft float library routines.
  39794. (line 132)
  39795. * __floattitf: Soft float library routines.
  39796. (line 134)
  39797. * __floattixf: Soft float library routines.
  39798. (line 135)
  39799. * __floatundidf: Soft float library routines.
  39800. (line 145)
  39801. * __floatundisf: Soft float library routines.
  39802. (line 144)
  39803. * __floatunditf: Soft float library routines.
  39804. (line 146)
  39805. * __floatundixf: Soft float library routines.
  39806. (line 147)
  39807. * __floatunsidf: Soft float library routines.
  39808. (line 139)
  39809. * __floatunsisf: Soft float library routines.
  39810. (line 138)
  39811. * __floatunsitf: Soft float library routines.
  39812. (line 140)
  39813. * __floatunsixf: Soft float library routines.
  39814. (line 141)
  39815. * __floatuntidf: Soft float library routines.
  39816. (line 151)
  39817. * __floatuntisf: Soft float library routines.
  39818. (line 150)
  39819. * __floatuntitf: Soft float library routines.
  39820. (line 152)
  39821. * __floatuntixf: Soft float library routines.
  39822. (line 153)
  39823. * __fractdadf: Fixed-point fractional library routines.
  39824. (line 643)
  39825. * __fractdadi: Fixed-point fractional library routines.
  39826. (line 640)
  39827. * __fractdadq: Fixed-point fractional library routines.
  39828. (line 623)
  39829. * __fractdaha2: Fixed-point fractional library routines.
  39830. (line 624)
  39831. * __fractdahi: Fixed-point fractional library routines.
  39832. (line 638)
  39833. * __fractdahq: Fixed-point fractional library routines.
  39834. (line 621)
  39835. * __fractdaqi: Fixed-point fractional library routines.
  39836. (line 637)
  39837. * __fractdaqq: Fixed-point fractional library routines.
  39838. (line 620)
  39839. * __fractdasa2: Fixed-point fractional library routines.
  39840. (line 625)
  39841. * __fractdasf: Fixed-point fractional library routines.
  39842. (line 642)
  39843. * __fractdasi: Fixed-point fractional library routines.
  39844. (line 639)
  39845. * __fractdasq: Fixed-point fractional library routines.
  39846. (line 622)
  39847. * __fractdata2: Fixed-point fractional library routines.
  39848. (line 626)
  39849. * __fractdati: Fixed-point fractional library routines.
  39850. (line 641)
  39851. * __fractdauda: Fixed-point fractional library routines.
  39852. (line 634)
  39853. * __fractdaudq: Fixed-point fractional library routines.
  39854. (line 630)
  39855. * __fractdauha: Fixed-point fractional library routines.
  39856. (line 632)
  39857. * __fractdauhq: Fixed-point fractional library routines.
  39858. (line 628)
  39859. * __fractdauqq: Fixed-point fractional library routines.
  39860. (line 627)
  39861. * __fractdausa: Fixed-point fractional library routines.
  39862. (line 633)
  39863. * __fractdausq: Fixed-point fractional library routines.
  39864. (line 629)
  39865. * __fractdauta: Fixed-point fractional library routines.
  39866. (line 635)
  39867. * __fractdfda: Fixed-point fractional library routines.
  39868. (line 1032)
  39869. * __fractdfdq: Fixed-point fractional library routines.
  39870. (line 1029)
  39871. * __fractdfha: Fixed-point fractional library routines.
  39872. (line 1030)
  39873. * __fractdfhq: Fixed-point fractional library routines.
  39874. (line 1027)
  39875. * __fractdfqq: Fixed-point fractional library routines.
  39876. (line 1026)
  39877. * __fractdfsa: Fixed-point fractional library routines.
  39878. (line 1031)
  39879. * __fractdfsq: Fixed-point fractional library routines.
  39880. (line 1028)
  39881. * __fractdfta: Fixed-point fractional library routines.
  39882. (line 1033)
  39883. * __fractdfuda: Fixed-point fractional library routines.
  39884. (line 1040)
  39885. * __fractdfudq: Fixed-point fractional library routines.
  39886. (line 1037)
  39887. * __fractdfuha: Fixed-point fractional library routines.
  39888. (line 1038)
  39889. * __fractdfuhq: Fixed-point fractional library routines.
  39890. (line 1035)
  39891. * __fractdfuqq: Fixed-point fractional library routines.
  39892. (line 1034)
  39893. * __fractdfusa: Fixed-point fractional library routines.
  39894. (line 1039)
  39895. * __fractdfusq: Fixed-point fractional library routines.
  39896. (line 1036)
  39897. * __fractdfuta: Fixed-point fractional library routines.
  39898. (line 1041)
  39899. * __fractdida: Fixed-point fractional library routines.
  39900. (line 982)
  39901. * __fractdidq: Fixed-point fractional library routines.
  39902. (line 979)
  39903. * __fractdiha: Fixed-point fractional library routines.
  39904. (line 980)
  39905. * __fractdihq: Fixed-point fractional library routines.
  39906. (line 977)
  39907. * __fractdiqq: Fixed-point fractional library routines.
  39908. (line 976)
  39909. * __fractdisa: Fixed-point fractional library routines.
  39910. (line 981)
  39911. * __fractdisq: Fixed-point fractional library routines.
  39912. (line 978)
  39913. * __fractdita: Fixed-point fractional library routines.
  39914. (line 983)
  39915. * __fractdiuda: Fixed-point fractional library routines.
  39916. (line 990)
  39917. * __fractdiudq: Fixed-point fractional library routines.
  39918. (line 987)
  39919. * __fractdiuha: Fixed-point fractional library routines.
  39920. (line 988)
  39921. * __fractdiuhq: Fixed-point fractional library routines.
  39922. (line 985)
  39923. * __fractdiuqq: Fixed-point fractional library routines.
  39924. (line 984)
  39925. * __fractdiusa: Fixed-point fractional library routines.
  39926. (line 989)
  39927. * __fractdiusq: Fixed-point fractional library routines.
  39928. (line 986)
  39929. * __fractdiuta: Fixed-point fractional library routines.
  39930. (line 991)
  39931. * __fractdqda: Fixed-point fractional library routines.
  39932. (line 551)
  39933. * __fractdqdf: Fixed-point fractional library routines.
  39934. (line 573)
  39935. * __fractdqdi: Fixed-point fractional library routines.
  39936. (line 570)
  39937. * __fractdqha: Fixed-point fractional library routines.
  39938. (line 549)
  39939. * __fractdqhi: Fixed-point fractional library routines.
  39940. (line 568)
  39941. * __fractdqhq2: Fixed-point fractional library routines.
  39942. (line 547)
  39943. * __fractdqqi: Fixed-point fractional library routines.
  39944. (line 567)
  39945. * __fractdqqq2: Fixed-point fractional library routines.
  39946. (line 546)
  39947. * __fractdqsa: Fixed-point fractional library routines.
  39948. (line 550)
  39949. * __fractdqsf: Fixed-point fractional library routines.
  39950. (line 572)
  39951. * __fractdqsi: Fixed-point fractional library routines.
  39952. (line 569)
  39953. * __fractdqsq2: Fixed-point fractional library routines.
  39954. (line 548)
  39955. * __fractdqta: Fixed-point fractional library routines.
  39956. (line 552)
  39957. * __fractdqti: Fixed-point fractional library routines.
  39958. (line 571)
  39959. * __fractdquda: Fixed-point fractional library routines.
  39960. (line 563)
  39961. * __fractdqudq: Fixed-point fractional library routines.
  39962. (line 558)
  39963. * __fractdquha: Fixed-point fractional library routines.
  39964. (line 560)
  39965. * __fractdquhq: Fixed-point fractional library routines.
  39966. (line 555)
  39967. * __fractdquqq: Fixed-point fractional library routines.
  39968. (line 553)
  39969. * __fractdqusa: Fixed-point fractional library routines.
  39970. (line 562)
  39971. * __fractdqusq: Fixed-point fractional library routines.
  39972. (line 556)
  39973. * __fractdquta: Fixed-point fractional library routines.
  39974. (line 565)
  39975. * __fracthada2: Fixed-point fractional library routines.
  39976. (line 579)
  39977. * __fracthadf: Fixed-point fractional library routines.
  39978. (line 597)
  39979. * __fracthadi: Fixed-point fractional library routines.
  39980. (line 594)
  39981. * __fracthadq: Fixed-point fractional library routines.
  39982. (line 577)
  39983. * __fracthahi: Fixed-point fractional library routines.
  39984. (line 592)
  39985. * __fracthahq: Fixed-point fractional library routines.
  39986. (line 575)
  39987. * __fracthaqi: Fixed-point fractional library routines.
  39988. (line 591)
  39989. * __fracthaqq: Fixed-point fractional library routines.
  39990. (line 574)
  39991. * __fracthasa2: Fixed-point fractional library routines.
  39992. (line 578)
  39993. * __fracthasf: Fixed-point fractional library routines.
  39994. (line 596)
  39995. * __fracthasi: Fixed-point fractional library routines.
  39996. (line 593)
  39997. * __fracthasq: Fixed-point fractional library routines.
  39998. (line 576)
  39999. * __fracthata2: Fixed-point fractional library routines.
  40000. (line 580)
  40001. * __fracthati: Fixed-point fractional library routines.
  40002. (line 595)
  40003. * __fracthauda: Fixed-point fractional library routines.
  40004. (line 588)
  40005. * __fracthaudq: Fixed-point fractional library routines.
  40006. (line 584)
  40007. * __fracthauha: Fixed-point fractional library routines.
  40008. (line 586)
  40009. * __fracthauhq: Fixed-point fractional library routines.
  40010. (line 582)
  40011. * __fracthauqq: Fixed-point fractional library routines.
  40012. (line 581)
  40013. * __fracthausa: Fixed-point fractional library routines.
  40014. (line 587)
  40015. * __fracthausq: Fixed-point fractional library routines.
  40016. (line 583)
  40017. * __fracthauta: Fixed-point fractional library routines.
  40018. (line 589)
  40019. * __fracthida: Fixed-point fractional library routines.
  40020. (line 950)
  40021. * __fracthidq: Fixed-point fractional library routines.
  40022. (line 947)
  40023. * __fracthiha: Fixed-point fractional library routines.
  40024. (line 948)
  40025. * __fracthihq: Fixed-point fractional library routines.
  40026. (line 945)
  40027. * __fracthiqq: Fixed-point fractional library routines.
  40028. (line 944)
  40029. * __fracthisa: Fixed-point fractional library routines.
  40030. (line 949)
  40031. * __fracthisq: Fixed-point fractional library routines.
  40032. (line 946)
  40033. * __fracthita: Fixed-point fractional library routines.
  40034. (line 951)
  40035. * __fracthiuda: Fixed-point fractional library routines.
  40036. (line 958)
  40037. * __fracthiudq: Fixed-point fractional library routines.
  40038. (line 955)
  40039. * __fracthiuha: Fixed-point fractional library routines.
  40040. (line 956)
  40041. * __fracthiuhq: Fixed-point fractional library routines.
  40042. (line 953)
  40043. * __fracthiuqq: Fixed-point fractional library routines.
  40044. (line 952)
  40045. * __fracthiusa: Fixed-point fractional library routines.
  40046. (line 957)
  40047. * __fracthiusq: Fixed-point fractional library routines.
  40048. (line 954)
  40049. * __fracthiuta: Fixed-point fractional library routines.
  40050. (line 959)
  40051. * __fracthqda: Fixed-point fractional library routines.
  40052. (line 505)
  40053. * __fracthqdf: Fixed-point fractional library routines.
  40054. (line 521)
  40055. * __fracthqdi: Fixed-point fractional library routines.
  40056. (line 518)
  40057. * __fracthqdq2: Fixed-point fractional library routines.
  40058. (line 502)
  40059. * __fracthqha: Fixed-point fractional library routines.
  40060. (line 503)
  40061. * __fracthqhi: Fixed-point fractional library routines.
  40062. (line 516)
  40063. * __fracthqqi: Fixed-point fractional library routines.
  40064. (line 515)
  40065. * __fracthqqq2: Fixed-point fractional library routines.
  40066. (line 500)
  40067. * __fracthqsa: Fixed-point fractional library routines.
  40068. (line 504)
  40069. * __fracthqsf: Fixed-point fractional library routines.
  40070. (line 520)
  40071. * __fracthqsi: Fixed-point fractional library routines.
  40072. (line 517)
  40073. * __fracthqsq2: Fixed-point fractional library routines.
  40074. (line 501)
  40075. * __fracthqta: Fixed-point fractional library routines.
  40076. (line 506)
  40077. * __fracthqti: Fixed-point fractional library routines.
  40078. (line 519)
  40079. * __fracthquda: Fixed-point fractional library routines.
  40080. (line 513)
  40081. * __fracthqudq: Fixed-point fractional library routines.
  40082. (line 510)
  40083. * __fracthquha: Fixed-point fractional library routines.
  40084. (line 511)
  40085. * __fracthquhq: Fixed-point fractional library routines.
  40086. (line 508)
  40087. * __fracthquqq: Fixed-point fractional library routines.
  40088. (line 507)
  40089. * __fracthqusa: Fixed-point fractional library routines.
  40090. (line 512)
  40091. * __fracthqusq: Fixed-point fractional library routines.
  40092. (line 509)
  40093. * __fracthquta: Fixed-point fractional library routines.
  40094. (line 514)
  40095. * __fractqida: Fixed-point fractional library routines.
  40096. (line 932)
  40097. * __fractqidq: Fixed-point fractional library routines.
  40098. (line 929)
  40099. * __fractqiha: Fixed-point fractional library routines.
  40100. (line 930)
  40101. * __fractqihq: Fixed-point fractional library routines.
  40102. (line 927)
  40103. * __fractqiqq: Fixed-point fractional library routines.
  40104. (line 926)
  40105. * __fractqisa: Fixed-point fractional library routines.
  40106. (line 931)
  40107. * __fractqisq: Fixed-point fractional library routines.
  40108. (line 928)
  40109. * __fractqita: Fixed-point fractional library routines.
  40110. (line 933)
  40111. * __fractqiuda: Fixed-point fractional library routines.
  40112. (line 941)
  40113. * __fractqiudq: Fixed-point fractional library routines.
  40114. (line 937)
  40115. * __fractqiuha: Fixed-point fractional library routines.
  40116. (line 939)
  40117. * __fractqiuhq: Fixed-point fractional library routines.
  40118. (line 935)
  40119. * __fractqiuqq: Fixed-point fractional library routines.
  40120. (line 934)
  40121. * __fractqiusa: Fixed-point fractional library routines.
  40122. (line 940)
  40123. * __fractqiusq: Fixed-point fractional library routines.
  40124. (line 936)
  40125. * __fractqiuta: Fixed-point fractional library routines.
  40126. (line 942)
  40127. * __fractqqda: Fixed-point fractional library routines.
  40128. (line 481)
  40129. * __fractqqdf: Fixed-point fractional library routines.
  40130. (line 499)
  40131. * __fractqqdi: Fixed-point fractional library routines.
  40132. (line 496)
  40133. * __fractqqdq2: Fixed-point fractional library routines.
  40134. (line 478)
  40135. * __fractqqha: Fixed-point fractional library routines.
  40136. (line 479)
  40137. * __fractqqhi: Fixed-point fractional library routines.
  40138. (line 494)
  40139. * __fractqqhq2: Fixed-point fractional library routines.
  40140. (line 476)
  40141. * __fractqqqi: Fixed-point fractional library routines.
  40142. (line 493)
  40143. * __fractqqsa: Fixed-point fractional library routines.
  40144. (line 480)
  40145. * __fractqqsf: Fixed-point fractional library routines.
  40146. (line 498)
  40147. * __fractqqsi: Fixed-point fractional library routines.
  40148. (line 495)
  40149. * __fractqqsq2: Fixed-point fractional library routines.
  40150. (line 477)
  40151. * __fractqqta: Fixed-point fractional library routines.
  40152. (line 482)
  40153. * __fractqqti: Fixed-point fractional library routines.
  40154. (line 497)
  40155. * __fractqquda: Fixed-point fractional library routines.
  40156. (line 490)
  40157. * __fractqqudq: Fixed-point fractional library routines.
  40158. (line 486)
  40159. * __fractqquha: Fixed-point fractional library routines.
  40160. (line 488)
  40161. * __fractqquhq: Fixed-point fractional library routines.
  40162. (line 484)
  40163. * __fractqquqq: Fixed-point fractional library routines.
  40164. (line 483)
  40165. * __fractqqusa: Fixed-point fractional library routines.
  40166. (line 489)
  40167. * __fractqqusq: Fixed-point fractional library routines.
  40168. (line 485)
  40169. * __fractqquta: Fixed-point fractional library routines.
  40170. (line 491)
  40171. * __fractsada2: Fixed-point fractional library routines.
  40172. (line 603)
  40173. * __fractsadf: Fixed-point fractional library routines.
  40174. (line 619)
  40175. * __fractsadi: Fixed-point fractional library routines.
  40176. (line 616)
  40177. * __fractsadq: Fixed-point fractional library routines.
  40178. (line 601)
  40179. * __fractsaha2: Fixed-point fractional library routines.
  40180. (line 602)
  40181. * __fractsahi: Fixed-point fractional library routines.
  40182. (line 614)
  40183. * __fractsahq: Fixed-point fractional library routines.
  40184. (line 599)
  40185. * __fractsaqi: Fixed-point fractional library routines.
  40186. (line 613)
  40187. * __fractsaqq: Fixed-point fractional library routines.
  40188. (line 598)
  40189. * __fractsasf: Fixed-point fractional library routines.
  40190. (line 618)
  40191. * __fractsasi: Fixed-point fractional library routines.
  40192. (line 615)
  40193. * __fractsasq: Fixed-point fractional library routines.
  40194. (line 600)
  40195. * __fractsata2: Fixed-point fractional library routines.
  40196. (line 604)
  40197. * __fractsati: Fixed-point fractional library routines.
  40198. (line 617)
  40199. * __fractsauda: Fixed-point fractional library routines.
  40200. (line 611)
  40201. * __fractsaudq: Fixed-point fractional library routines.
  40202. (line 608)
  40203. * __fractsauha: Fixed-point fractional library routines.
  40204. (line 609)
  40205. * __fractsauhq: Fixed-point fractional library routines.
  40206. (line 606)
  40207. * __fractsauqq: Fixed-point fractional library routines.
  40208. (line 605)
  40209. * __fractsausa: Fixed-point fractional library routines.
  40210. (line 610)
  40211. * __fractsausq: Fixed-point fractional library routines.
  40212. (line 607)
  40213. * __fractsauta: Fixed-point fractional library routines.
  40214. (line 612)
  40215. * __fractsfda: Fixed-point fractional library routines.
  40216. (line 1016)
  40217. * __fractsfdq: Fixed-point fractional library routines.
  40218. (line 1013)
  40219. * __fractsfha: Fixed-point fractional library routines.
  40220. (line 1014)
  40221. * __fractsfhq: Fixed-point fractional library routines.
  40222. (line 1011)
  40223. * __fractsfqq: Fixed-point fractional library routines.
  40224. (line 1010)
  40225. * __fractsfsa: Fixed-point fractional library routines.
  40226. (line 1015)
  40227. * __fractsfsq: Fixed-point fractional library routines.
  40228. (line 1012)
  40229. * __fractsfta: Fixed-point fractional library routines.
  40230. (line 1017)
  40231. * __fractsfuda: Fixed-point fractional library routines.
  40232. (line 1024)
  40233. * __fractsfudq: Fixed-point fractional library routines.
  40234. (line 1021)
  40235. * __fractsfuha: Fixed-point fractional library routines.
  40236. (line 1022)
  40237. * __fractsfuhq: Fixed-point fractional library routines.
  40238. (line 1019)
  40239. * __fractsfuqq: Fixed-point fractional library routines.
  40240. (line 1018)
  40241. * __fractsfusa: Fixed-point fractional library routines.
  40242. (line 1023)
  40243. * __fractsfusq: Fixed-point fractional library routines.
  40244. (line 1020)
  40245. * __fractsfuta: Fixed-point fractional library routines.
  40246. (line 1025)
  40247. * __fractsida: Fixed-point fractional library routines.
  40248. (line 966)
  40249. * __fractsidq: Fixed-point fractional library routines.
  40250. (line 963)
  40251. * __fractsiha: Fixed-point fractional library routines.
  40252. (line 964)
  40253. * __fractsihq: Fixed-point fractional library routines.
  40254. (line 961)
  40255. * __fractsiqq: Fixed-point fractional library routines.
  40256. (line 960)
  40257. * __fractsisa: Fixed-point fractional library routines.
  40258. (line 965)
  40259. * __fractsisq: Fixed-point fractional library routines.
  40260. (line 962)
  40261. * __fractsita: Fixed-point fractional library routines.
  40262. (line 967)
  40263. * __fractsiuda: Fixed-point fractional library routines.
  40264. (line 974)
  40265. * __fractsiudq: Fixed-point fractional library routines.
  40266. (line 971)
  40267. * __fractsiuha: Fixed-point fractional library routines.
  40268. (line 972)
  40269. * __fractsiuhq: Fixed-point fractional library routines.
  40270. (line 969)
  40271. * __fractsiuqq: Fixed-point fractional library routines.
  40272. (line 968)
  40273. * __fractsiusa: Fixed-point fractional library routines.
  40274. (line 973)
  40275. * __fractsiusq: Fixed-point fractional library routines.
  40276. (line 970)
  40277. * __fractsiuta: Fixed-point fractional library routines.
  40278. (line 975)
  40279. * __fractsqda: Fixed-point fractional library routines.
  40280. (line 527)
  40281. * __fractsqdf: Fixed-point fractional library routines.
  40282. (line 545)
  40283. * __fractsqdi: Fixed-point fractional library routines.
  40284. (line 542)
  40285. * __fractsqdq2: Fixed-point fractional library routines.
  40286. (line 524)
  40287. * __fractsqha: Fixed-point fractional library routines.
  40288. (line 525)
  40289. * __fractsqhi: Fixed-point fractional library routines.
  40290. (line 540)
  40291. * __fractsqhq2: Fixed-point fractional library routines.
  40292. (line 523)
  40293. * __fractsqqi: Fixed-point fractional library routines.
  40294. (line 539)
  40295. * __fractsqqq2: Fixed-point fractional library routines.
  40296. (line 522)
  40297. * __fractsqsa: Fixed-point fractional library routines.
  40298. (line 526)
  40299. * __fractsqsf: Fixed-point fractional library routines.
  40300. (line 544)
  40301. * __fractsqsi: Fixed-point fractional library routines.
  40302. (line 541)
  40303. * __fractsqta: Fixed-point fractional library routines.
  40304. (line 528)
  40305. * __fractsqti: Fixed-point fractional library routines.
  40306. (line 543)
  40307. * __fractsquda: Fixed-point fractional library routines.
  40308. (line 536)
  40309. * __fractsqudq: Fixed-point fractional library routines.
  40310. (line 532)
  40311. * __fractsquha: Fixed-point fractional library routines.
  40312. (line 534)
  40313. * __fractsquhq: Fixed-point fractional library routines.
  40314. (line 530)
  40315. * __fractsquqq: Fixed-point fractional library routines.
  40316. (line 529)
  40317. * __fractsqusa: Fixed-point fractional library routines.
  40318. (line 535)
  40319. * __fractsqusq: Fixed-point fractional library routines.
  40320. (line 531)
  40321. * __fractsquta: Fixed-point fractional library routines.
  40322. (line 537)
  40323. * __fracttada2: Fixed-point fractional library routines.
  40324. (line 650)
  40325. * __fracttadf: Fixed-point fractional library routines.
  40326. (line 671)
  40327. * __fracttadi: Fixed-point fractional library routines.
  40328. (line 668)
  40329. * __fracttadq: Fixed-point fractional library routines.
  40330. (line 647)
  40331. * __fracttaha2: Fixed-point fractional library routines.
  40332. (line 648)
  40333. * __fracttahi: Fixed-point fractional library routines.
  40334. (line 666)
  40335. * __fracttahq: Fixed-point fractional library routines.
  40336. (line 645)
  40337. * __fracttaqi: Fixed-point fractional library routines.
  40338. (line 665)
  40339. * __fracttaqq: Fixed-point fractional library routines.
  40340. (line 644)
  40341. * __fracttasa2: Fixed-point fractional library routines.
  40342. (line 649)
  40343. * __fracttasf: Fixed-point fractional library routines.
  40344. (line 670)
  40345. * __fracttasi: Fixed-point fractional library routines.
  40346. (line 667)
  40347. * __fracttasq: Fixed-point fractional library routines.
  40348. (line 646)
  40349. * __fracttati: Fixed-point fractional library routines.
  40350. (line 669)
  40351. * __fracttauda: Fixed-point fractional library routines.
  40352. (line 661)
  40353. * __fracttaudq: Fixed-point fractional library routines.
  40354. (line 656)
  40355. * __fracttauha: Fixed-point fractional library routines.
  40356. (line 658)
  40357. * __fracttauhq: Fixed-point fractional library routines.
  40358. (line 653)
  40359. * __fracttauqq: Fixed-point fractional library routines.
  40360. (line 651)
  40361. * __fracttausa: Fixed-point fractional library routines.
  40362. (line 660)
  40363. * __fracttausq: Fixed-point fractional library routines.
  40364. (line 654)
  40365. * __fracttauta: Fixed-point fractional library routines.
  40366. (line 663)
  40367. * __fracttida: Fixed-point fractional library routines.
  40368. (line 998)
  40369. * __fracttidq: Fixed-point fractional library routines.
  40370. (line 995)
  40371. * __fracttiha: Fixed-point fractional library routines.
  40372. (line 996)
  40373. * __fracttihq: Fixed-point fractional library routines.
  40374. (line 993)
  40375. * __fracttiqq: Fixed-point fractional library routines.
  40376. (line 992)
  40377. * __fracttisa: Fixed-point fractional library routines.
  40378. (line 997)
  40379. * __fracttisq: Fixed-point fractional library routines.
  40380. (line 994)
  40381. * __fracttita: Fixed-point fractional library routines.
  40382. (line 999)
  40383. * __fracttiuda: Fixed-point fractional library routines.
  40384. (line 1007)
  40385. * __fracttiudq: Fixed-point fractional library routines.
  40386. (line 1003)
  40387. * __fracttiuha: Fixed-point fractional library routines.
  40388. (line 1005)
  40389. * __fracttiuhq: Fixed-point fractional library routines.
  40390. (line 1001)
  40391. * __fracttiuqq: Fixed-point fractional library routines.
  40392. (line 1000)
  40393. * __fracttiusa: Fixed-point fractional library routines.
  40394. (line 1006)
  40395. * __fracttiusq: Fixed-point fractional library routines.
  40396. (line 1002)
  40397. * __fracttiuta: Fixed-point fractional library routines.
  40398. (line 1008)
  40399. * __fractudada: Fixed-point fractional library routines.
  40400. (line 865)
  40401. * __fractudadf: Fixed-point fractional library routines.
  40402. (line 888)
  40403. * __fractudadi: Fixed-point fractional library routines.
  40404. (line 885)
  40405. * __fractudadq: Fixed-point fractional library routines.
  40406. (line 861)
  40407. * __fractudaha: Fixed-point fractional library routines.
  40408. (line 863)
  40409. * __fractudahi: Fixed-point fractional library routines.
  40410. (line 883)
  40411. * __fractudahq: Fixed-point fractional library routines.
  40412. (line 859)
  40413. * __fractudaqi: Fixed-point fractional library routines.
  40414. (line 882)
  40415. * __fractudaqq: Fixed-point fractional library routines.
  40416. (line 858)
  40417. * __fractudasa: Fixed-point fractional library routines.
  40418. (line 864)
  40419. * __fractudasf: Fixed-point fractional library routines.
  40420. (line 887)
  40421. * __fractudasi: Fixed-point fractional library routines.
  40422. (line 884)
  40423. * __fractudasq: Fixed-point fractional library routines.
  40424. (line 860)
  40425. * __fractudata: Fixed-point fractional library routines.
  40426. (line 866)
  40427. * __fractudati: Fixed-point fractional library routines.
  40428. (line 886)
  40429. * __fractudaudq: Fixed-point fractional library routines.
  40430. (line 874)
  40431. * __fractudauha2: Fixed-point fractional library routines.
  40432. (line 876)
  40433. * __fractudauhq: Fixed-point fractional library routines.
  40434. (line 870)
  40435. * __fractudauqq: Fixed-point fractional library routines.
  40436. (line 868)
  40437. * __fractudausa2: Fixed-point fractional library routines.
  40438. (line 878)
  40439. * __fractudausq: Fixed-point fractional library routines.
  40440. (line 872)
  40441. * __fractudauta2: Fixed-point fractional library routines.
  40442. (line 880)
  40443. * __fractudqda: Fixed-point fractional library routines.
  40444. (line 772)
  40445. * __fractudqdf: Fixed-point fractional library routines.
  40446. (line 798)
  40447. * __fractudqdi: Fixed-point fractional library routines.
  40448. (line 794)
  40449. * __fractudqdq: Fixed-point fractional library routines.
  40450. (line 767)
  40451. * __fractudqha: Fixed-point fractional library routines.
  40452. (line 769)
  40453. * __fractudqhi: Fixed-point fractional library routines.
  40454. (line 792)
  40455. * __fractudqhq: Fixed-point fractional library routines.
  40456. (line 764)
  40457. * __fractudqqi: Fixed-point fractional library routines.
  40458. (line 790)
  40459. * __fractudqqq: Fixed-point fractional library routines.
  40460. (line 762)
  40461. * __fractudqsa: Fixed-point fractional library routines.
  40462. (line 771)
  40463. * __fractudqsf: Fixed-point fractional library routines.
  40464. (line 797)
  40465. * __fractudqsi: Fixed-point fractional library routines.
  40466. (line 793)
  40467. * __fractudqsq: Fixed-point fractional library routines.
  40468. (line 765)
  40469. * __fractudqta: Fixed-point fractional library routines.
  40470. (line 774)
  40471. * __fractudqti: Fixed-point fractional library routines.
  40472. (line 795)
  40473. * __fractudquda: Fixed-point fractional library routines.
  40474. (line 786)
  40475. * __fractudquha: Fixed-point fractional library routines.
  40476. (line 782)
  40477. * __fractudquhq2: Fixed-point fractional library routines.
  40478. (line 778)
  40479. * __fractudquqq2: Fixed-point fractional library routines.
  40480. (line 776)
  40481. * __fractudqusa: Fixed-point fractional library routines.
  40482. (line 784)
  40483. * __fractudqusq2: Fixed-point fractional library routines.
  40484. (line 780)
  40485. * __fractudquta: Fixed-point fractional library routines.
  40486. (line 788)
  40487. * __fractuhada: Fixed-point fractional library routines.
  40488. (line 806)
  40489. * __fractuhadf: Fixed-point fractional library routines.
  40490. (line 829)
  40491. * __fractuhadi: Fixed-point fractional library routines.
  40492. (line 826)
  40493. * __fractuhadq: Fixed-point fractional library routines.
  40494. (line 802)
  40495. * __fractuhaha: Fixed-point fractional library routines.
  40496. (line 804)
  40497. * __fractuhahi: Fixed-point fractional library routines.
  40498. (line 824)
  40499. * __fractuhahq: Fixed-point fractional library routines.
  40500. (line 800)
  40501. * __fractuhaqi: Fixed-point fractional library routines.
  40502. (line 823)
  40503. * __fractuhaqq: Fixed-point fractional library routines.
  40504. (line 799)
  40505. * __fractuhasa: Fixed-point fractional library routines.
  40506. (line 805)
  40507. * __fractuhasf: Fixed-point fractional library routines.
  40508. (line 828)
  40509. * __fractuhasi: Fixed-point fractional library routines.
  40510. (line 825)
  40511. * __fractuhasq: Fixed-point fractional library routines.
  40512. (line 801)
  40513. * __fractuhata: Fixed-point fractional library routines.
  40514. (line 807)
  40515. * __fractuhati: Fixed-point fractional library routines.
  40516. (line 827)
  40517. * __fractuhauda2: Fixed-point fractional library routines.
  40518. (line 819)
  40519. * __fractuhaudq: Fixed-point fractional library routines.
  40520. (line 815)
  40521. * __fractuhauhq: Fixed-point fractional library routines.
  40522. (line 811)
  40523. * __fractuhauqq: Fixed-point fractional library routines.
  40524. (line 809)
  40525. * __fractuhausa2: Fixed-point fractional library routines.
  40526. (line 817)
  40527. * __fractuhausq: Fixed-point fractional library routines.
  40528. (line 813)
  40529. * __fractuhauta2: Fixed-point fractional library routines.
  40530. (line 821)
  40531. * __fractuhqda: Fixed-point fractional library routines.
  40532. (line 709)
  40533. * __fractuhqdf: Fixed-point fractional library routines.
  40534. (line 730)
  40535. * __fractuhqdi: Fixed-point fractional library routines.
  40536. (line 727)
  40537. * __fractuhqdq: Fixed-point fractional library routines.
  40538. (line 706)
  40539. * __fractuhqha: Fixed-point fractional library routines.
  40540. (line 707)
  40541. * __fractuhqhi: Fixed-point fractional library routines.
  40542. (line 725)
  40543. * __fractuhqhq: Fixed-point fractional library routines.
  40544. (line 704)
  40545. * __fractuhqqi: Fixed-point fractional library routines.
  40546. (line 724)
  40547. * __fractuhqqq: Fixed-point fractional library routines.
  40548. (line 703)
  40549. * __fractuhqsa: Fixed-point fractional library routines.
  40550. (line 708)
  40551. * __fractuhqsf: Fixed-point fractional library routines.
  40552. (line 729)
  40553. * __fractuhqsi: Fixed-point fractional library routines.
  40554. (line 726)
  40555. * __fractuhqsq: Fixed-point fractional library routines.
  40556. (line 705)
  40557. * __fractuhqta: Fixed-point fractional library routines.
  40558. (line 710)
  40559. * __fractuhqti: Fixed-point fractional library routines.
  40560. (line 728)
  40561. * __fractuhquda: Fixed-point fractional library routines.
  40562. (line 720)
  40563. * __fractuhqudq2: Fixed-point fractional library routines.
  40564. (line 715)
  40565. * __fractuhquha: Fixed-point fractional library routines.
  40566. (line 717)
  40567. * __fractuhquqq2: Fixed-point fractional library routines.
  40568. (line 711)
  40569. * __fractuhqusa: Fixed-point fractional library routines.
  40570. (line 719)
  40571. * __fractuhqusq2: Fixed-point fractional library routines.
  40572. (line 713)
  40573. * __fractuhquta: Fixed-point fractional library routines.
  40574. (line 722)
  40575. * __fractunsdadi: Fixed-point fractional library routines.
  40576. (line 1562)
  40577. * __fractunsdahi: Fixed-point fractional library routines.
  40578. (line 1560)
  40579. * __fractunsdaqi: Fixed-point fractional library routines.
  40580. (line 1559)
  40581. * __fractunsdasi: Fixed-point fractional library routines.
  40582. (line 1561)
  40583. * __fractunsdati: Fixed-point fractional library routines.
  40584. (line 1563)
  40585. * __fractunsdida: Fixed-point fractional library routines.
  40586. (line 1714)
  40587. * __fractunsdidq: Fixed-point fractional library routines.
  40588. (line 1711)
  40589. * __fractunsdiha: Fixed-point fractional library routines.
  40590. (line 1712)
  40591. * __fractunsdihq: Fixed-point fractional library routines.
  40592. (line 1709)
  40593. * __fractunsdiqq: Fixed-point fractional library routines.
  40594. (line 1708)
  40595. * __fractunsdisa: Fixed-point fractional library routines.
  40596. (line 1713)
  40597. * __fractunsdisq: Fixed-point fractional library routines.
  40598. (line 1710)
  40599. * __fractunsdita: Fixed-point fractional library routines.
  40600. (line 1715)
  40601. * __fractunsdiuda: Fixed-point fractional library routines.
  40602. (line 1726)
  40603. * __fractunsdiudq: Fixed-point fractional library routines.
  40604. (line 1721)
  40605. * __fractunsdiuha: Fixed-point fractional library routines.
  40606. (line 1723)
  40607. * __fractunsdiuhq: Fixed-point fractional library routines.
  40608. (line 1718)
  40609. * __fractunsdiuqq: Fixed-point fractional library routines.
  40610. (line 1716)
  40611. * __fractunsdiusa: Fixed-point fractional library routines.
  40612. (line 1725)
  40613. * __fractunsdiusq: Fixed-point fractional library routines.
  40614. (line 1719)
  40615. * __fractunsdiuta: Fixed-point fractional library routines.
  40616. (line 1728)
  40617. * __fractunsdqdi: Fixed-point fractional library routines.
  40618. (line 1546)
  40619. * __fractunsdqhi: Fixed-point fractional library routines.
  40620. (line 1544)
  40621. * __fractunsdqqi: Fixed-point fractional library routines.
  40622. (line 1543)
  40623. * __fractunsdqsi: Fixed-point fractional library routines.
  40624. (line 1545)
  40625. * __fractunsdqti: Fixed-point fractional library routines.
  40626. (line 1547)
  40627. * __fractunshadi: Fixed-point fractional library routines.
  40628. (line 1552)
  40629. * __fractunshahi: Fixed-point fractional library routines.
  40630. (line 1550)
  40631. * __fractunshaqi: Fixed-point fractional library routines.
  40632. (line 1549)
  40633. * __fractunshasi: Fixed-point fractional library routines.
  40634. (line 1551)
  40635. * __fractunshati: Fixed-point fractional library routines.
  40636. (line 1553)
  40637. * __fractunshida: Fixed-point fractional library routines.
  40638. (line 1670)
  40639. * __fractunshidq: Fixed-point fractional library routines.
  40640. (line 1667)
  40641. * __fractunshiha: Fixed-point fractional library routines.
  40642. (line 1668)
  40643. * __fractunshihq: Fixed-point fractional library routines.
  40644. (line 1665)
  40645. * __fractunshiqq: Fixed-point fractional library routines.
  40646. (line 1664)
  40647. * __fractunshisa: Fixed-point fractional library routines.
  40648. (line 1669)
  40649. * __fractunshisq: Fixed-point fractional library routines.
  40650. (line 1666)
  40651. * __fractunshita: Fixed-point fractional library routines.
  40652. (line 1671)
  40653. * __fractunshiuda: Fixed-point fractional library routines.
  40654. (line 1682)
  40655. * __fractunshiudq: Fixed-point fractional library routines.
  40656. (line 1677)
  40657. * __fractunshiuha: Fixed-point fractional library routines.
  40658. (line 1679)
  40659. * __fractunshiuhq: Fixed-point fractional library routines.
  40660. (line 1674)
  40661. * __fractunshiuqq: Fixed-point fractional library routines.
  40662. (line 1672)
  40663. * __fractunshiusa: Fixed-point fractional library routines.
  40664. (line 1681)
  40665. * __fractunshiusq: Fixed-point fractional library routines.
  40666. (line 1675)
  40667. * __fractunshiuta: Fixed-point fractional library routines.
  40668. (line 1684)
  40669. * __fractunshqdi: Fixed-point fractional library routines.
  40670. (line 1536)
  40671. * __fractunshqhi: Fixed-point fractional library routines.
  40672. (line 1534)
  40673. * __fractunshqqi: Fixed-point fractional library routines.
  40674. (line 1533)
  40675. * __fractunshqsi: Fixed-point fractional library routines.
  40676. (line 1535)
  40677. * __fractunshqti: Fixed-point fractional library routines.
  40678. (line 1537)
  40679. * __fractunsqida: Fixed-point fractional library routines.
  40680. (line 1648)
  40681. * __fractunsqidq: Fixed-point fractional library routines.
  40682. (line 1645)
  40683. * __fractunsqiha: Fixed-point fractional library routines.
  40684. (line 1646)
  40685. * __fractunsqihq: Fixed-point fractional library routines.
  40686. (line 1643)
  40687. * __fractunsqiqq: Fixed-point fractional library routines.
  40688. (line 1642)
  40689. * __fractunsqisa: Fixed-point fractional library routines.
  40690. (line 1647)
  40691. * __fractunsqisq: Fixed-point fractional library routines.
  40692. (line 1644)
  40693. * __fractunsqita: Fixed-point fractional library routines.
  40694. (line 1649)
  40695. * __fractunsqiuda: Fixed-point fractional library routines.
  40696. (line 1660)
  40697. * __fractunsqiudq: Fixed-point fractional library routines.
  40698. (line 1655)
  40699. * __fractunsqiuha: Fixed-point fractional library routines.
  40700. (line 1657)
  40701. * __fractunsqiuhq: Fixed-point fractional library routines.
  40702. (line 1652)
  40703. * __fractunsqiuqq: Fixed-point fractional library routines.
  40704. (line 1650)
  40705. * __fractunsqiusa: Fixed-point fractional library routines.
  40706. (line 1659)
  40707. * __fractunsqiusq: Fixed-point fractional library routines.
  40708. (line 1653)
  40709. * __fractunsqiuta: Fixed-point fractional library routines.
  40710. (line 1662)
  40711. * __fractunsqqdi: Fixed-point fractional library routines.
  40712. (line 1531)
  40713. * __fractunsqqhi: Fixed-point fractional library routines.
  40714. (line 1529)
  40715. * __fractunsqqqi: Fixed-point fractional library routines.
  40716. (line 1528)
  40717. * __fractunsqqsi: Fixed-point fractional library routines.
  40718. (line 1530)
  40719. * __fractunsqqti: Fixed-point fractional library routines.
  40720. (line 1532)
  40721. * __fractunssadi: Fixed-point fractional library routines.
  40722. (line 1557)
  40723. * __fractunssahi: Fixed-point fractional library routines.
  40724. (line 1555)
  40725. * __fractunssaqi: Fixed-point fractional library routines.
  40726. (line 1554)
  40727. * __fractunssasi: Fixed-point fractional library routines.
  40728. (line 1556)
  40729. * __fractunssati: Fixed-point fractional library routines.
  40730. (line 1558)
  40731. * __fractunssida: Fixed-point fractional library routines.
  40732. (line 1692)
  40733. * __fractunssidq: Fixed-point fractional library routines.
  40734. (line 1689)
  40735. * __fractunssiha: Fixed-point fractional library routines.
  40736. (line 1690)
  40737. * __fractunssihq: Fixed-point fractional library routines.
  40738. (line 1687)
  40739. * __fractunssiqq: Fixed-point fractional library routines.
  40740. (line 1686)
  40741. * __fractunssisa: Fixed-point fractional library routines.
  40742. (line 1691)
  40743. * __fractunssisq: Fixed-point fractional library routines.
  40744. (line 1688)
  40745. * __fractunssita: Fixed-point fractional library routines.
  40746. (line 1693)
  40747. * __fractunssiuda: Fixed-point fractional library routines.
  40748. (line 1704)
  40749. * __fractunssiudq: Fixed-point fractional library routines.
  40750. (line 1699)
  40751. * __fractunssiuha: Fixed-point fractional library routines.
  40752. (line 1701)
  40753. * __fractunssiuhq: Fixed-point fractional library routines.
  40754. (line 1696)
  40755. * __fractunssiuqq: Fixed-point fractional library routines.
  40756. (line 1694)
  40757. * __fractunssiusa: Fixed-point fractional library routines.
  40758. (line 1703)
  40759. * __fractunssiusq: Fixed-point fractional library routines.
  40760. (line 1697)
  40761. * __fractunssiuta: Fixed-point fractional library routines.
  40762. (line 1706)
  40763. * __fractunssqdi: Fixed-point fractional library routines.
  40764. (line 1541)
  40765. * __fractunssqhi: Fixed-point fractional library routines.
  40766. (line 1539)
  40767. * __fractunssqqi: Fixed-point fractional library routines.
  40768. (line 1538)
  40769. * __fractunssqsi: Fixed-point fractional library routines.
  40770. (line 1540)
  40771. * __fractunssqti: Fixed-point fractional library routines.
  40772. (line 1542)
  40773. * __fractunstadi: Fixed-point fractional library routines.
  40774. (line 1567)
  40775. * __fractunstahi: Fixed-point fractional library routines.
  40776. (line 1565)
  40777. * __fractunstaqi: Fixed-point fractional library routines.
  40778. (line 1564)
  40779. * __fractunstasi: Fixed-point fractional library routines.
  40780. (line 1566)
  40781. * __fractunstati: Fixed-point fractional library routines.
  40782. (line 1568)
  40783. * __fractunstida: Fixed-point fractional library routines.
  40784. (line 1737)
  40785. * __fractunstidq: Fixed-point fractional library routines.
  40786. (line 1733)
  40787. * __fractunstiha: Fixed-point fractional library routines.
  40788. (line 1735)
  40789. * __fractunstihq: Fixed-point fractional library routines.
  40790. (line 1731)
  40791. * __fractunstiqq: Fixed-point fractional library routines.
  40792. (line 1730)
  40793. * __fractunstisa: Fixed-point fractional library routines.
  40794. (line 1736)
  40795. * __fractunstisq: Fixed-point fractional library routines.
  40796. (line 1732)
  40797. * __fractunstita: Fixed-point fractional library routines.
  40798. (line 1738)
  40799. * __fractunstiuda: Fixed-point fractional library routines.
  40800. (line 1752)
  40801. * __fractunstiudq: Fixed-point fractional library routines.
  40802. (line 1746)
  40803. * __fractunstiuha: Fixed-point fractional library routines.
  40804. (line 1748)
  40805. * __fractunstiuhq: Fixed-point fractional library routines.
  40806. (line 1742)
  40807. * __fractunstiuqq: Fixed-point fractional library routines.
  40808. (line 1740)
  40809. * __fractunstiusa: Fixed-point fractional library routines.
  40810. (line 1750)
  40811. * __fractunstiusq: Fixed-point fractional library routines.
  40812. (line 1744)
  40813. * __fractunstiuta: Fixed-point fractional library routines.
  40814. (line 1754)
  40815. * __fractunsudadi: Fixed-point fractional library routines.
  40816. (line 1628)
  40817. * __fractunsudahi: Fixed-point fractional library routines.
  40818. (line 1624)
  40819. * __fractunsudaqi: Fixed-point fractional library routines.
  40820. (line 1622)
  40821. * __fractunsudasi: Fixed-point fractional library routines.
  40822. (line 1626)
  40823. * __fractunsudati: Fixed-point fractional library routines.
  40824. (line 1630)
  40825. * __fractunsudqdi: Fixed-point fractional library routines.
  40826. (line 1602)
  40827. * __fractunsudqhi: Fixed-point fractional library routines.
  40828. (line 1598)
  40829. * __fractunsudqqi: Fixed-point fractional library routines.
  40830. (line 1596)
  40831. * __fractunsudqsi: Fixed-point fractional library routines.
  40832. (line 1600)
  40833. * __fractunsudqti: Fixed-point fractional library routines.
  40834. (line 1604)
  40835. * __fractunsuhadi: Fixed-point fractional library routines.
  40836. (line 1612)
  40837. * __fractunsuhahi: Fixed-point fractional library routines.
  40838. (line 1608)
  40839. * __fractunsuhaqi: Fixed-point fractional library routines.
  40840. (line 1606)
  40841. * __fractunsuhasi: Fixed-point fractional library routines.
  40842. (line 1610)
  40843. * __fractunsuhati: Fixed-point fractional library routines.
  40844. (line 1614)
  40845. * __fractunsuhqdi: Fixed-point fractional library routines.
  40846. (line 1583)
  40847. * __fractunsuhqhi: Fixed-point fractional library routines.
  40848. (line 1581)
  40849. * __fractunsuhqqi: Fixed-point fractional library routines.
  40850. (line 1580)
  40851. * __fractunsuhqsi: Fixed-point fractional library routines.
  40852. (line 1582)
  40853. * __fractunsuhqti: Fixed-point fractional library routines.
  40854. (line 1584)
  40855. * __fractunsuqqdi: Fixed-point fractional library routines.
  40856. (line 1576)
  40857. * __fractunsuqqhi: Fixed-point fractional library routines.
  40858. (line 1572)
  40859. * __fractunsuqqqi: Fixed-point fractional library routines.
  40860. (line 1570)
  40861. * __fractunsuqqsi: Fixed-point fractional library routines.
  40862. (line 1574)
  40863. * __fractunsuqqti: Fixed-point fractional library routines.
  40864. (line 1578)
  40865. * __fractunsusadi: Fixed-point fractional library routines.
  40866. (line 1619)
  40867. * __fractunsusahi: Fixed-point fractional library routines.
  40868. (line 1617)
  40869. * __fractunsusaqi: Fixed-point fractional library routines.
  40870. (line 1616)
  40871. * __fractunsusasi: Fixed-point fractional library routines.
  40872. (line 1618)
  40873. * __fractunsusati: Fixed-point fractional library routines.
  40874. (line 1620)
  40875. * __fractunsusqdi: Fixed-point fractional library routines.
  40876. (line 1592)
  40877. * __fractunsusqhi: Fixed-point fractional library routines.
  40878. (line 1588)
  40879. * __fractunsusqqi: Fixed-point fractional library routines.
  40880. (line 1586)
  40881. * __fractunsusqsi: Fixed-point fractional library routines.
  40882. (line 1590)
  40883. * __fractunsusqti: Fixed-point fractional library routines.
  40884. (line 1594)
  40885. * __fractunsutadi: Fixed-point fractional library routines.
  40886. (line 1638)
  40887. * __fractunsutahi: Fixed-point fractional library routines.
  40888. (line 1634)
  40889. * __fractunsutaqi: Fixed-point fractional library routines.
  40890. (line 1632)
  40891. * __fractunsutasi: Fixed-point fractional library routines.
  40892. (line 1636)
  40893. * __fractunsutati: Fixed-point fractional library routines.
  40894. (line 1640)
  40895. * __fractuqqda: Fixed-point fractional library routines.
  40896. (line 679)
  40897. * __fractuqqdf: Fixed-point fractional library routines.
  40898. (line 702)
  40899. * __fractuqqdi: Fixed-point fractional library routines.
  40900. (line 699)
  40901. * __fractuqqdq: Fixed-point fractional library routines.
  40902. (line 675)
  40903. * __fractuqqha: Fixed-point fractional library routines.
  40904. (line 677)
  40905. * __fractuqqhi: Fixed-point fractional library routines.
  40906. (line 697)
  40907. * __fractuqqhq: Fixed-point fractional library routines.
  40908. (line 673)
  40909. * __fractuqqqi: Fixed-point fractional library routines.
  40910. (line 696)
  40911. * __fractuqqqq: Fixed-point fractional library routines.
  40912. (line 672)
  40913. * __fractuqqsa: Fixed-point fractional library routines.
  40914. (line 678)
  40915. * __fractuqqsf: Fixed-point fractional library routines.
  40916. (line 701)
  40917. * __fractuqqsi: Fixed-point fractional library routines.
  40918. (line 698)
  40919. * __fractuqqsq: Fixed-point fractional library routines.
  40920. (line 674)
  40921. * __fractuqqta: Fixed-point fractional library routines.
  40922. (line 680)
  40923. * __fractuqqti: Fixed-point fractional library routines.
  40924. (line 700)
  40925. * __fractuqquda: Fixed-point fractional library routines.
  40926. (line 692)
  40927. * __fractuqqudq2: Fixed-point fractional library routines.
  40928. (line 686)
  40929. * __fractuqquha: Fixed-point fractional library routines.
  40930. (line 688)
  40931. * __fractuqquhq2: Fixed-point fractional library routines.
  40932. (line 682)
  40933. * __fractuqqusa: Fixed-point fractional library routines.
  40934. (line 690)
  40935. * __fractuqqusq2: Fixed-point fractional library routines.
  40936. (line 684)
  40937. * __fractuqquta: Fixed-point fractional library routines.
  40938. (line 694)
  40939. * __fractusada: Fixed-point fractional library routines.
  40940. (line 836)
  40941. * __fractusadf: Fixed-point fractional library routines.
  40942. (line 857)
  40943. * __fractusadi: Fixed-point fractional library routines.
  40944. (line 854)
  40945. * __fractusadq: Fixed-point fractional library routines.
  40946. (line 833)
  40947. * __fractusaha: Fixed-point fractional library routines.
  40948. (line 834)
  40949. * __fractusahi: Fixed-point fractional library routines.
  40950. (line 852)
  40951. * __fractusahq: Fixed-point fractional library routines.
  40952. (line 831)
  40953. * __fractusaqi: Fixed-point fractional library routines.
  40954. (line 851)
  40955. * __fractusaqq: Fixed-point fractional library routines.
  40956. (line 830)
  40957. * __fractusasa: Fixed-point fractional library routines.
  40958. (line 835)
  40959. * __fractusasf: Fixed-point fractional library routines.
  40960. (line 856)
  40961. * __fractusasi: Fixed-point fractional library routines.
  40962. (line 853)
  40963. * __fractusasq: Fixed-point fractional library routines.
  40964. (line 832)
  40965. * __fractusata: Fixed-point fractional library routines.
  40966. (line 837)
  40967. * __fractusati: Fixed-point fractional library routines.
  40968. (line 855)
  40969. * __fractusauda2: Fixed-point fractional library routines.
  40970. (line 847)
  40971. * __fractusaudq: Fixed-point fractional library routines.
  40972. (line 843)
  40973. * __fractusauha2: Fixed-point fractional library routines.
  40974. (line 845)
  40975. * __fractusauhq: Fixed-point fractional library routines.
  40976. (line 840)
  40977. * __fractusauqq: Fixed-point fractional library routines.
  40978. (line 838)
  40979. * __fractusausq: Fixed-point fractional library routines.
  40980. (line 841)
  40981. * __fractusauta2: Fixed-point fractional library routines.
  40982. (line 849)
  40983. * __fractusqda: Fixed-point fractional library routines.
  40984. (line 738)
  40985. * __fractusqdf: Fixed-point fractional library routines.
  40986. (line 761)
  40987. * __fractusqdi: Fixed-point fractional library routines.
  40988. (line 758)
  40989. * __fractusqdq: Fixed-point fractional library routines.
  40990. (line 734)
  40991. * __fractusqha: Fixed-point fractional library routines.
  40992. (line 736)
  40993. * __fractusqhi: Fixed-point fractional library routines.
  40994. (line 756)
  40995. * __fractusqhq: Fixed-point fractional library routines.
  40996. (line 732)
  40997. * __fractusqqi: Fixed-point fractional library routines.
  40998. (line 755)
  40999. * __fractusqqq: Fixed-point fractional library routines.
  41000. (line 731)
  41001. * __fractusqsa: Fixed-point fractional library routines.
  41002. (line 737)
  41003. * __fractusqsf: Fixed-point fractional library routines.
  41004. (line 760)
  41005. * __fractusqsi: Fixed-point fractional library routines.
  41006. (line 757)
  41007. * __fractusqsq: Fixed-point fractional library routines.
  41008. (line 733)
  41009. * __fractusqta: Fixed-point fractional library routines.
  41010. (line 739)
  41011. * __fractusqti: Fixed-point fractional library routines.
  41012. (line 759)
  41013. * __fractusquda: Fixed-point fractional library routines.
  41014. (line 751)
  41015. * __fractusqudq2: Fixed-point fractional library routines.
  41016. (line 745)
  41017. * __fractusquha: Fixed-point fractional library routines.
  41018. (line 747)
  41019. * __fractusquhq2: Fixed-point fractional library routines.
  41020. (line 743)
  41021. * __fractusquqq2: Fixed-point fractional library routines.
  41022. (line 741)
  41023. * __fractusqusa: Fixed-point fractional library routines.
  41024. (line 749)
  41025. * __fractusquta: Fixed-point fractional library routines.
  41026. (line 753)
  41027. * __fractutada: Fixed-point fractional library routines.
  41028. (line 899)
  41029. * __fractutadf: Fixed-point fractional library routines.
  41030. (line 925)
  41031. * __fractutadi: Fixed-point fractional library routines.
  41032. (line 921)
  41033. * __fractutadq: Fixed-point fractional library routines.
  41034. (line 894)
  41035. * __fractutaha: Fixed-point fractional library routines.
  41036. (line 896)
  41037. * __fractutahi: Fixed-point fractional library routines.
  41038. (line 919)
  41039. * __fractutahq: Fixed-point fractional library routines.
  41040. (line 891)
  41041. * __fractutaqi: Fixed-point fractional library routines.
  41042. (line 917)
  41043. * __fractutaqq: Fixed-point fractional library routines.
  41044. (line 889)
  41045. * __fractutasa: Fixed-point fractional library routines.
  41046. (line 898)
  41047. * __fractutasf: Fixed-point fractional library routines.
  41048. (line 924)
  41049. * __fractutasi: Fixed-point fractional library routines.
  41050. (line 920)
  41051. * __fractutasq: Fixed-point fractional library routines.
  41052. (line 892)
  41053. * __fractutata: Fixed-point fractional library routines.
  41054. (line 901)
  41055. * __fractutati: Fixed-point fractional library routines.
  41056. (line 922)
  41057. * __fractutauda2: Fixed-point fractional library routines.
  41058. (line 915)
  41059. * __fractutaudq: Fixed-point fractional library routines.
  41060. (line 909)
  41061. * __fractutauha2: Fixed-point fractional library routines.
  41062. (line 911)
  41063. * __fractutauhq: Fixed-point fractional library routines.
  41064. (line 905)
  41065. * __fractutauqq: Fixed-point fractional library routines.
  41066. (line 903)
  41067. * __fractutausa2: Fixed-point fractional library routines.
  41068. (line 913)
  41069. * __fractutausq: Fixed-point fractional library routines.
  41070. (line 907)
  41071. * __gedf2: Soft float library routines.
  41072. (line 205)
  41073. * __gesf2: Soft float library routines.
  41074. (line 204)
  41075. * __getf2: Soft float library routines.
  41076. (line 206)
  41077. * __gtdf2: Soft float library routines.
  41078. (line 223)
  41079. * __gtsf2: Soft float library routines.
  41080. (line 222)
  41081. * __gttf2: Soft float library routines.
  41082. (line 224)
  41083. * __ledf2: Soft float library routines.
  41084. (line 217)
  41085. * __lesf2: Soft float library routines.
  41086. (line 216)
  41087. * __letf2: Soft float library routines.
  41088. (line 218)
  41089. * __lshrdi3: Integer library routines.
  41090. (line 30)
  41091. * __lshrsi3: Integer library routines.
  41092. (line 29)
  41093. * __lshrti3: Integer library routines.
  41094. (line 31)
  41095. * __lshruda3: Fixed-point fractional library routines.
  41096. (line 396)
  41097. * __lshrudq3: Fixed-point fractional library routines.
  41098. (line 390)
  41099. * __lshruha3: Fixed-point fractional library routines.
  41100. (line 392)
  41101. * __lshruhq3: Fixed-point fractional library routines.
  41102. (line 386)
  41103. * __lshruqq3: Fixed-point fractional library routines.
  41104. (line 384)
  41105. * __lshrusa3: Fixed-point fractional library routines.
  41106. (line 394)
  41107. * __lshrusq3: Fixed-point fractional library routines.
  41108. (line 388)
  41109. * __lshruta3: Fixed-point fractional library routines.
  41110. (line 398)
  41111. * __ltdf2: Soft float library routines.
  41112. (line 211)
  41113. * __ltsf2: Soft float library routines.
  41114. (line 210)
  41115. * __lttf2: Soft float library routines.
  41116. (line 212)
  41117. * __main: Collect2. (line 15)
  41118. * __moddi3: Integer library routines.
  41119. (line 36)
  41120. * __modsi3: Integer library routines.
  41121. (line 35)
  41122. * __modti3: Integer library routines.
  41123. (line 37)
  41124. * __morestack_current_segment: Miscellaneous routines.
  41125. (line 45)
  41126. * __morestack_initial_sp: Miscellaneous routines.
  41127. (line 46)
  41128. * __morestack_segments: Miscellaneous routines.
  41129. (line 44)
  41130. * __mulda3: Fixed-point fractional library routines.
  41131. (line 178)
  41132. * __muldc3: Soft float library routines.
  41133. (line 239)
  41134. * __muldf3: Soft float library routines.
  41135. (line 39)
  41136. * __muldi3: Integer library routines.
  41137. (line 42)
  41138. * __muldq3: Fixed-point fractional library routines.
  41139. (line 165)
  41140. * __mulha3: Fixed-point fractional library routines.
  41141. (line 175)
  41142. * __mulhq3: Fixed-point fractional library routines.
  41143. (line 163)
  41144. * __mulqq3: Fixed-point fractional library routines.
  41145. (line 161)
  41146. * __mulsa3: Fixed-point fractional library routines.
  41147. (line 177)
  41148. * __mulsc3: Soft float library routines.
  41149. (line 237)
  41150. * __mulsf3: Soft float library routines.
  41151. (line 38)
  41152. * __mulsi3: Integer library routines.
  41153. (line 41)
  41154. * __mulsq3: Fixed-point fractional library routines.
  41155. (line 164)
  41156. * __multa3: Fixed-point fractional library routines.
  41157. (line 179)
  41158. * __multc3: Soft float library routines.
  41159. (line 241)
  41160. * __multf3: Soft float library routines.
  41161. (line 40)
  41162. * __multi3: Integer library routines.
  41163. (line 43)
  41164. * __muluda3: Fixed-point fractional library routines.
  41165. (line 185)
  41166. * __muludq3: Fixed-point fractional library routines.
  41167. (line 173)
  41168. * __muluha3: Fixed-point fractional library routines.
  41169. (line 181)
  41170. * __muluhq3: Fixed-point fractional library routines.
  41171. (line 169)
  41172. * __muluqq3: Fixed-point fractional library routines.
  41173. (line 167)
  41174. * __mulusa3: Fixed-point fractional library routines.
  41175. (line 183)
  41176. * __mulusq3: Fixed-point fractional library routines.
  41177. (line 171)
  41178. * __muluta3: Fixed-point fractional library routines.
  41179. (line 187)
  41180. * __mulvdi3: Integer library routines.
  41181. (line 114)
  41182. * __mulvsi3: Integer library routines.
  41183. (line 113)
  41184. * __mulxc3: Soft float library routines.
  41185. (line 243)
  41186. * __mulxf3: Soft float library routines.
  41187. (line 42)
  41188. * __nedf2: Soft float library routines.
  41189. (line 199)
  41190. * __negda2: Fixed-point fractional library routines.
  41191. (line 306)
  41192. * __negdf2: Soft float library routines.
  41193. (line 55)
  41194. * __negdi2: Integer library routines.
  41195. (line 46)
  41196. * __negdq2: Fixed-point fractional library routines.
  41197. (line 296)
  41198. * __negha2: Fixed-point fractional library routines.
  41199. (line 304)
  41200. * __neghq2: Fixed-point fractional library routines.
  41201. (line 294)
  41202. * __negqq2: Fixed-point fractional library routines.
  41203. (line 293)
  41204. * __negsa2: Fixed-point fractional library routines.
  41205. (line 305)
  41206. * __negsf2: Soft float library routines.
  41207. (line 54)
  41208. * __negsq2: Fixed-point fractional library routines.
  41209. (line 295)
  41210. * __negta2: Fixed-point fractional library routines.
  41211. (line 307)
  41212. * __negtf2: Soft float library routines.
  41213. (line 56)
  41214. * __negti2: Integer library routines.
  41215. (line 47)
  41216. * __neguda2: Fixed-point fractional library routines.
  41217. (line 311)
  41218. * __negudq2: Fixed-point fractional library routines.
  41219. (line 302)
  41220. * __neguha2: Fixed-point fractional library routines.
  41221. (line 308)
  41222. * __neguhq2: Fixed-point fractional library routines.
  41223. (line 299)
  41224. * __neguqq2: Fixed-point fractional library routines.
  41225. (line 297)
  41226. * __negusa2: Fixed-point fractional library routines.
  41227. (line 310)
  41228. * __negusq2: Fixed-point fractional library routines.
  41229. (line 300)
  41230. * __neguta2: Fixed-point fractional library routines.
  41231. (line 313)
  41232. * __negvdi2: Integer library routines.
  41233. (line 118)
  41234. * __negvsi2: Integer library routines.
  41235. (line 117)
  41236. * __negxf2: Soft float library routines.
  41237. (line 57)
  41238. * __nesf2: Soft float library routines.
  41239. (line 198)
  41240. * __netf2: Soft float library routines.
  41241. (line 200)
  41242. * __paritydi2: Integer library routines.
  41243. (line 150)
  41244. * __paritysi2: Integer library routines.
  41245. (line 149)
  41246. * __parityti2: Integer library routines.
  41247. (line 151)
  41248. * __popcountdi2: Integer library routines.
  41249. (line 156)
  41250. * __popcountsi2: Integer library routines.
  41251. (line 155)
  41252. * __popcountti2: Integer library routines.
  41253. (line 157)
  41254. * __powidf2: Soft float library routines.
  41255. (line 232)
  41256. * __powisf2: Soft float library routines.
  41257. (line 231)
  41258. * __powitf2: Soft float library routines.
  41259. (line 233)
  41260. * __powixf2: Soft float library routines.
  41261. (line 234)
  41262. * __satfractdadq: Fixed-point fractional library routines.
  41263. (line 1160)
  41264. * __satfractdaha2: Fixed-point fractional library routines.
  41265. (line 1161)
  41266. * __satfractdahq: Fixed-point fractional library routines.
  41267. (line 1158)
  41268. * __satfractdaqq: Fixed-point fractional library routines.
  41269. (line 1157)
  41270. * __satfractdasa2: Fixed-point fractional library routines.
  41271. (line 1162)
  41272. * __satfractdasq: Fixed-point fractional library routines.
  41273. (line 1159)
  41274. * __satfractdata2: Fixed-point fractional library routines.
  41275. (line 1163)
  41276. * __satfractdauda: Fixed-point fractional library routines.
  41277. (line 1173)
  41278. * __satfractdaudq: Fixed-point fractional library routines.
  41279. (line 1168)
  41280. * __satfractdauha: Fixed-point fractional library routines.
  41281. (line 1170)
  41282. * __satfractdauhq: Fixed-point fractional library routines.
  41283. (line 1166)
  41284. * __satfractdauqq: Fixed-point fractional library routines.
  41285. (line 1164)
  41286. * __satfractdausa: Fixed-point fractional library routines.
  41287. (line 1172)
  41288. * __satfractdausq: Fixed-point fractional library routines.
  41289. (line 1167)
  41290. * __satfractdauta: Fixed-point fractional library routines.
  41291. (line 1174)
  41292. * __satfractdfda: Fixed-point fractional library routines.
  41293. (line 1513)
  41294. * __satfractdfdq: Fixed-point fractional library routines.
  41295. (line 1510)
  41296. * __satfractdfha: Fixed-point fractional library routines.
  41297. (line 1511)
  41298. * __satfractdfhq: Fixed-point fractional library routines.
  41299. (line 1508)
  41300. * __satfractdfqq: Fixed-point fractional library routines.
  41301. (line 1507)
  41302. * __satfractdfsa: Fixed-point fractional library routines.
  41303. (line 1512)
  41304. * __satfractdfsq: Fixed-point fractional library routines.
  41305. (line 1509)
  41306. * __satfractdfta: Fixed-point fractional library routines.
  41307. (line 1514)
  41308. * __satfractdfuda: Fixed-point fractional library routines.
  41309. (line 1522)
  41310. * __satfractdfudq: Fixed-point fractional library routines.
  41311. (line 1518)
  41312. * __satfractdfuha: Fixed-point fractional library routines.
  41313. (line 1520)
  41314. * __satfractdfuhq: Fixed-point fractional library routines.
  41315. (line 1516)
  41316. * __satfractdfuqq: Fixed-point fractional library routines.
  41317. (line 1515)
  41318. * __satfractdfusa: Fixed-point fractional library routines.
  41319. (line 1521)
  41320. * __satfractdfusq: Fixed-point fractional library routines.
  41321. (line 1517)
  41322. * __satfractdfuta: Fixed-point fractional library routines.
  41323. (line 1523)
  41324. * __satfractdida: Fixed-point fractional library routines.
  41325. (line 1463)
  41326. * __satfractdidq: Fixed-point fractional library routines.
  41327. (line 1460)
  41328. * __satfractdiha: Fixed-point fractional library routines.
  41329. (line 1461)
  41330. * __satfractdihq: Fixed-point fractional library routines.
  41331. (line 1458)
  41332. * __satfractdiqq: Fixed-point fractional library routines.
  41333. (line 1457)
  41334. * __satfractdisa: Fixed-point fractional library routines.
  41335. (line 1462)
  41336. * __satfractdisq: Fixed-point fractional library routines.
  41337. (line 1459)
  41338. * __satfractdita: Fixed-point fractional library routines.
  41339. (line 1464)
  41340. * __satfractdiuda: Fixed-point fractional library routines.
  41341. (line 1471)
  41342. * __satfractdiudq: Fixed-point fractional library routines.
  41343. (line 1468)
  41344. * __satfractdiuha: Fixed-point fractional library routines.
  41345. (line 1469)
  41346. * __satfractdiuhq: Fixed-point fractional library routines.
  41347. (line 1466)
  41348. * __satfractdiuqq: Fixed-point fractional library routines.
  41349. (line 1465)
  41350. * __satfractdiusa: Fixed-point fractional library routines.
  41351. (line 1470)
  41352. * __satfractdiusq: Fixed-point fractional library routines.
  41353. (line 1467)
  41354. * __satfractdiuta: Fixed-point fractional library routines.
  41355. (line 1472)
  41356. * __satfractdqda: Fixed-point fractional library routines.
  41357. (line 1105)
  41358. * __satfractdqha: Fixed-point fractional library routines.
  41359. (line 1103)
  41360. * __satfractdqhq2: Fixed-point fractional library routines.
  41361. (line 1101)
  41362. * __satfractdqqq2: Fixed-point fractional library routines.
  41363. (line 1100)
  41364. * __satfractdqsa: Fixed-point fractional library routines.
  41365. (line 1104)
  41366. * __satfractdqsq2: Fixed-point fractional library routines.
  41367. (line 1102)
  41368. * __satfractdqta: Fixed-point fractional library routines.
  41369. (line 1106)
  41370. * __satfractdquda: Fixed-point fractional library routines.
  41371. (line 1117)
  41372. * __satfractdqudq: Fixed-point fractional library routines.
  41373. (line 1112)
  41374. * __satfractdquha: Fixed-point fractional library routines.
  41375. (line 1114)
  41376. * __satfractdquhq: Fixed-point fractional library routines.
  41377. (line 1109)
  41378. * __satfractdquqq: Fixed-point fractional library routines.
  41379. (line 1107)
  41380. * __satfractdqusa: Fixed-point fractional library routines.
  41381. (line 1116)
  41382. * __satfractdqusq: Fixed-point fractional library routines.
  41383. (line 1110)
  41384. * __satfractdquta: Fixed-point fractional library routines.
  41385. (line 1119)
  41386. * __satfracthada2: Fixed-point fractional library routines.
  41387. (line 1126)
  41388. * __satfracthadq: Fixed-point fractional library routines.
  41389. (line 1124)
  41390. * __satfracthahq: Fixed-point fractional library routines.
  41391. (line 1122)
  41392. * __satfracthaqq: Fixed-point fractional library routines.
  41393. (line 1121)
  41394. * __satfracthasa2: Fixed-point fractional library routines.
  41395. (line 1125)
  41396. * __satfracthasq: Fixed-point fractional library routines.
  41397. (line 1123)
  41398. * __satfracthata2: Fixed-point fractional library routines.
  41399. (line 1127)
  41400. * __satfracthauda: Fixed-point fractional library routines.
  41401. (line 1138)
  41402. * __satfracthaudq: Fixed-point fractional library routines.
  41403. (line 1133)
  41404. * __satfracthauha: Fixed-point fractional library routines.
  41405. (line 1135)
  41406. * __satfracthauhq: Fixed-point fractional library routines.
  41407. (line 1130)
  41408. * __satfracthauqq: Fixed-point fractional library routines.
  41409. (line 1128)
  41410. * __satfracthausa: Fixed-point fractional library routines.
  41411. (line 1137)
  41412. * __satfracthausq: Fixed-point fractional library routines.
  41413. (line 1131)
  41414. * __satfracthauta: Fixed-point fractional library routines.
  41415. (line 1140)
  41416. * __satfracthida: Fixed-point fractional library routines.
  41417. (line 1431)
  41418. * __satfracthidq: Fixed-point fractional library routines.
  41419. (line 1428)
  41420. * __satfracthiha: Fixed-point fractional library routines.
  41421. (line 1429)
  41422. * __satfracthihq: Fixed-point fractional library routines.
  41423. (line 1426)
  41424. * __satfracthiqq: Fixed-point fractional library routines.
  41425. (line 1425)
  41426. * __satfracthisa: Fixed-point fractional library routines.
  41427. (line 1430)
  41428. * __satfracthisq: Fixed-point fractional library routines.
  41429. (line 1427)
  41430. * __satfracthita: Fixed-point fractional library routines.
  41431. (line 1432)
  41432. * __satfracthiuda: Fixed-point fractional library routines.
  41433. (line 1439)
  41434. * __satfracthiudq: Fixed-point fractional library routines.
  41435. (line 1436)
  41436. * __satfracthiuha: Fixed-point fractional library routines.
  41437. (line 1437)
  41438. * __satfracthiuhq: Fixed-point fractional library routines.
  41439. (line 1434)
  41440. * __satfracthiuqq: Fixed-point fractional library routines.
  41441. (line 1433)
  41442. * __satfracthiusa: Fixed-point fractional library routines.
  41443. (line 1438)
  41444. * __satfracthiusq: Fixed-point fractional library routines.
  41445. (line 1435)
  41446. * __satfracthiuta: Fixed-point fractional library routines.
  41447. (line 1440)
  41448. * __satfracthqda: Fixed-point fractional library routines.
  41449. (line 1071)
  41450. * __satfracthqdq2: Fixed-point fractional library routines.
  41451. (line 1068)
  41452. * __satfracthqha: Fixed-point fractional library routines.
  41453. (line 1069)
  41454. * __satfracthqqq2: Fixed-point fractional library routines.
  41455. (line 1066)
  41456. * __satfracthqsa: Fixed-point fractional library routines.
  41457. (line 1070)
  41458. * __satfracthqsq2: Fixed-point fractional library routines.
  41459. (line 1067)
  41460. * __satfracthqta: Fixed-point fractional library routines.
  41461. (line 1072)
  41462. * __satfracthquda: Fixed-point fractional library routines.
  41463. (line 1079)
  41464. * __satfracthqudq: Fixed-point fractional library routines.
  41465. (line 1076)
  41466. * __satfracthquha: Fixed-point fractional library routines.
  41467. (line 1077)
  41468. * __satfracthquhq: Fixed-point fractional library routines.
  41469. (line 1074)
  41470. * __satfracthquqq: Fixed-point fractional library routines.
  41471. (line 1073)
  41472. * __satfracthqusa: Fixed-point fractional library routines.
  41473. (line 1078)
  41474. * __satfracthqusq: Fixed-point fractional library routines.
  41475. (line 1075)
  41476. * __satfracthquta: Fixed-point fractional library routines.
  41477. (line 1080)
  41478. * __satfractqida: Fixed-point fractional library routines.
  41479. (line 1409)
  41480. * __satfractqidq: Fixed-point fractional library routines.
  41481. (line 1406)
  41482. * __satfractqiha: Fixed-point fractional library routines.
  41483. (line 1407)
  41484. * __satfractqihq: Fixed-point fractional library routines.
  41485. (line 1404)
  41486. * __satfractqiqq: Fixed-point fractional library routines.
  41487. (line 1403)
  41488. * __satfractqisa: Fixed-point fractional library routines.
  41489. (line 1408)
  41490. * __satfractqisq: Fixed-point fractional library routines.
  41491. (line 1405)
  41492. * __satfractqita: Fixed-point fractional library routines.
  41493. (line 1410)
  41494. * __satfractqiuda: Fixed-point fractional library routines.
  41495. (line 1421)
  41496. * __satfractqiudq: Fixed-point fractional library routines.
  41497. (line 1416)
  41498. * __satfractqiuha: Fixed-point fractional library routines.
  41499. (line 1418)
  41500. * __satfractqiuhq: Fixed-point fractional library routines.
  41501. (line 1413)
  41502. * __satfractqiuqq: Fixed-point fractional library routines.
  41503. (line 1411)
  41504. * __satfractqiusa: Fixed-point fractional library routines.
  41505. (line 1420)
  41506. * __satfractqiusq: Fixed-point fractional library routines.
  41507. (line 1414)
  41508. * __satfractqiuta: Fixed-point fractional library routines.
  41509. (line 1423)
  41510. * __satfractqqda: Fixed-point fractional library routines.
  41511. (line 1050)
  41512. * __satfractqqdq2: Fixed-point fractional library routines.
  41513. (line 1047)
  41514. * __satfractqqha: Fixed-point fractional library routines.
  41515. (line 1048)
  41516. * __satfractqqhq2: Fixed-point fractional library routines.
  41517. (line 1045)
  41518. * __satfractqqsa: Fixed-point fractional library routines.
  41519. (line 1049)
  41520. * __satfractqqsq2: Fixed-point fractional library routines.
  41521. (line 1046)
  41522. * __satfractqqta: Fixed-point fractional library routines.
  41523. (line 1051)
  41524. * __satfractqquda: Fixed-point fractional library routines.
  41525. (line 1062)
  41526. * __satfractqqudq: Fixed-point fractional library routines.
  41527. (line 1057)
  41528. * __satfractqquha: Fixed-point fractional library routines.
  41529. (line 1059)
  41530. * __satfractqquhq: Fixed-point fractional library routines.
  41531. (line 1054)
  41532. * __satfractqquqq: Fixed-point fractional library routines.
  41533. (line 1052)
  41534. * __satfractqqusa: Fixed-point fractional library routines.
  41535. (line 1061)
  41536. * __satfractqqusq: Fixed-point fractional library routines.
  41537. (line 1055)
  41538. * __satfractqquta: Fixed-point fractional library routines.
  41539. (line 1064)
  41540. * __satfractsada2: Fixed-point fractional library routines.
  41541. (line 1147)
  41542. * __satfractsadq: Fixed-point fractional library routines.
  41543. (line 1145)
  41544. * __satfractsaha2: Fixed-point fractional library routines.
  41545. (line 1146)
  41546. * __satfractsahq: Fixed-point fractional library routines.
  41547. (line 1143)
  41548. * __satfractsaqq: Fixed-point fractional library routines.
  41549. (line 1142)
  41550. * __satfractsasq: Fixed-point fractional library routines.
  41551. (line 1144)
  41552. * __satfractsata2: Fixed-point fractional library routines.
  41553. (line 1148)
  41554. * __satfractsauda: Fixed-point fractional library routines.
  41555. (line 1155)
  41556. * __satfractsaudq: Fixed-point fractional library routines.
  41557. (line 1152)
  41558. * __satfractsauha: Fixed-point fractional library routines.
  41559. (line 1153)
  41560. * __satfractsauhq: Fixed-point fractional library routines.
  41561. (line 1150)
  41562. * __satfractsauqq: Fixed-point fractional library routines.
  41563. (line 1149)
  41564. * __satfractsausa: Fixed-point fractional library routines.
  41565. (line 1154)
  41566. * __satfractsausq: Fixed-point fractional library routines.
  41567. (line 1151)
  41568. * __satfractsauta: Fixed-point fractional library routines.
  41569. (line 1156)
  41570. * __satfractsfda: Fixed-point fractional library routines.
  41571. (line 1497)
  41572. * __satfractsfdq: Fixed-point fractional library routines.
  41573. (line 1494)
  41574. * __satfractsfha: Fixed-point fractional library routines.
  41575. (line 1495)
  41576. * __satfractsfhq: Fixed-point fractional library routines.
  41577. (line 1492)
  41578. * __satfractsfqq: Fixed-point fractional library routines.
  41579. (line 1491)
  41580. * __satfractsfsa: Fixed-point fractional library routines.
  41581. (line 1496)
  41582. * __satfractsfsq: Fixed-point fractional library routines.
  41583. (line 1493)
  41584. * __satfractsfta: Fixed-point fractional library routines.
  41585. (line 1498)
  41586. * __satfractsfuda: Fixed-point fractional library routines.
  41587. (line 1505)
  41588. * __satfractsfudq: Fixed-point fractional library routines.
  41589. (line 1502)
  41590. * __satfractsfuha: Fixed-point fractional library routines.
  41591. (line 1503)
  41592. * __satfractsfuhq: Fixed-point fractional library routines.
  41593. (line 1500)
  41594. * __satfractsfuqq: Fixed-point fractional library routines.
  41595. (line 1499)
  41596. * __satfractsfusa: Fixed-point fractional library routines.
  41597. (line 1504)
  41598. * __satfractsfusq: Fixed-point fractional library routines.
  41599. (line 1501)
  41600. * __satfractsfuta: Fixed-point fractional library routines.
  41601. (line 1506)
  41602. * __satfractsida: Fixed-point fractional library routines.
  41603. (line 1447)
  41604. * __satfractsidq: Fixed-point fractional library routines.
  41605. (line 1444)
  41606. * __satfractsiha: Fixed-point fractional library routines.
  41607. (line 1445)
  41608. * __satfractsihq: Fixed-point fractional library routines.
  41609. (line 1442)
  41610. * __satfractsiqq: Fixed-point fractional library routines.
  41611. (line 1441)
  41612. * __satfractsisa: Fixed-point fractional library routines.
  41613. (line 1446)
  41614. * __satfractsisq: Fixed-point fractional library routines.
  41615. (line 1443)
  41616. * __satfractsita: Fixed-point fractional library routines.
  41617. (line 1448)
  41618. * __satfractsiuda: Fixed-point fractional library routines.
  41619. (line 1455)
  41620. * __satfractsiudq: Fixed-point fractional library routines.
  41621. (line 1452)
  41622. * __satfractsiuha: Fixed-point fractional library routines.
  41623. (line 1453)
  41624. * __satfractsiuhq: Fixed-point fractional library routines.
  41625. (line 1450)
  41626. * __satfractsiuqq: Fixed-point fractional library routines.
  41627. (line 1449)
  41628. * __satfractsiusa: Fixed-point fractional library routines.
  41629. (line 1454)
  41630. * __satfractsiusq: Fixed-point fractional library routines.
  41631. (line 1451)
  41632. * __satfractsiuta: Fixed-point fractional library routines.
  41633. (line 1456)
  41634. * __satfractsqda: Fixed-point fractional library routines.
  41635. (line 1086)
  41636. * __satfractsqdq2: Fixed-point fractional library routines.
  41637. (line 1083)
  41638. * __satfractsqha: Fixed-point fractional library routines.
  41639. (line 1084)
  41640. * __satfractsqhq2: Fixed-point fractional library routines.
  41641. (line 1082)
  41642. * __satfractsqqq2: Fixed-point fractional library routines.
  41643. (line 1081)
  41644. * __satfractsqsa: Fixed-point fractional library routines.
  41645. (line 1085)
  41646. * __satfractsqta: Fixed-point fractional library routines.
  41647. (line 1087)
  41648. * __satfractsquda: Fixed-point fractional library routines.
  41649. (line 1097)
  41650. * __satfractsqudq: Fixed-point fractional library routines.
  41651. (line 1092)
  41652. * __satfractsquha: Fixed-point fractional library routines.
  41653. (line 1094)
  41654. * __satfractsquhq: Fixed-point fractional library routines.
  41655. (line 1090)
  41656. * __satfractsquqq: Fixed-point fractional library routines.
  41657. (line 1088)
  41658. * __satfractsqusa: Fixed-point fractional library routines.
  41659. (line 1096)
  41660. * __satfractsqusq: Fixed-point fractional library routines.
  41661. (line 1091)
  41662. * __satfractsquta: Fixed-point fractional library routines.
  41663. (line 1098)
  41664. * __satfracttada2: Fixed-point fractional library routines.
  41665. (line 1182)
  41666. * __satfracttadq: Fixed-point fractional library routines.
  41667. (line 1179)
  41668. * __satfracttaha2: Fixed-point fractional library routines.
  41669. (line 1180)
  41670. * __satfracttahq: Fixed-point fractional library routines.
  41671. (line 1177)
  41672. * __satfracttaqq: Fixed-point fractional library routines.
  41673. (line 1176)
  41674. * __satfracttasa2: Fixed-point fractional library routines.
  41675. (line 1181)
  41676. * __satfracttasq: Fixed-point fractional library routines.
  41677. (line 1178)
  41678. * __satfracttauda: Fixed-point fractional library routines.
  41679. (line 1193)
  41680. * __satfracttaudq: Fixed-point fractional library routines.
  41681. (line 1188)
  41682. * __satfracttauha: Fixed-point fractional library routines.
  41683. (line 1190)
  41684. * __satfracttauhq: Fixed-point fractional library routines.
  41685. (line 1185)
  41686. * __satfracttauqq: Fixed-point fractional library routines.
  41687. (line 1183)
  41688. * __satfracttausa: Fixed-point fractional library routines.
  41689. (line 1192)
  41690. * __satfracttausq: Fixed-point fractional library routines.
  41691. (line 1186)
  41692. * __satfracttauta: Fixed-point fractional library routines.
  41693. (line 1195)
  41694. * __satfracttida: Fixed-point fractional library routines.
  41695. (line 1479)
  41696. * __satfracttidq: Fixed-point fractional library routines.
  41697. (line 1476)
  41698. * __satfracttiha: Fixed-point fractional library routines.
  41699. (line 1477)
  41700. * __satfracttihq: Fixed-point fractional library routines.
  41701. (line 1474)
  41702. * __satfracttiqq: Fixed-point fractional library routines.
  41703. (line 1473)
  41704. * __satfracttisa: Fixed-point fractional library routines.
  41705. (line 1478)
  41706. * __satfracttisq: Fixed-point fractional library routines.
  41707. (line 1475)
  41708. * __satfracttita: Fixed-point fractional library routines.
  41709. (line 1480)
  41710. * __satfracttiuda: Fixed-point fractional library routines.
  41711. (line 1488)
  41712. * __satfracttiudq: Fixed-point fractional library routines.
  41713. (line 1484)
  41714. * __satfracttiuha: Fixed-point fractional library routines.
  41715. (line 1486)
  41716. * __satfracttiuhq: Fixed-point fractional library routines.
  41717. (line 1482)
  41718. * __satfracttiuqq: Fixed-point fractional library routines.
  41719. (line 1481)
  41720. * __satfracttiusa: Fixed-point fractional library routines.
  41721. (line 1487)
  41722. * __satfracttiusq: Fixed-point fractional library routines.
  41723. (line 1483)
  41724. * __satfracttiuta: Fixed-point fractional library routines.
  41725. (line 1489)
  41726. * __satfractudada: Fixed-point fractional library routines.
  41727. (line 1358)
  41728. * __satfractudadq: Fixed-point fractional library routines.
  41729. (line 1353)
  41730. * __satfractudaha: Fixed-point fractional library routines.
  41731. (line 1355)
  41732. * __satfractudahq: Fixed-point fractional library routines.
  41733. (line 1351)
  41734. * __satfractudaqq: Fixed-point fractional library routines.
  41735. (line 1349)
  41736. * __satfractudasa: Fixed-point fractional library routines.
  41737. (line 1357)
  41738. * __satfractudasq: Fixed-point fractional library routines.
  41739. (line 1352)
  41740. * __satfractudata: Fixed-point fractional library routines.
  41741. (line 1359)
  41742. * __satfractudaudq: Fixed-point fractional library routines.
  41743. (line 1367)
  41744. * __satfractudauha2: Fixed-point fractional library routines.
  41745. (line 1369)
  41746. * __satfractudauhq: Fixed-point fractional library routines.
  41747. (line 1363)
  41748. * __satfractudauqq: Fixed-point fractional library routines.
  41749. (line 1361)
  41750. * __satfractudausa2: Fixed-point fractional library routines.
  41751. (line 1371)
  41752. * __satfractudausq: Fixed-point fractional library routines.
  41753. (line 1365)
  41754. * __satfractudauta2: Fixed-point fractional library routines.
  41755. (line 1373)
  41756. * __satfractudqda: Fixed-point fractional library routines.
  41757. (line 1282)
  41758. * __satfractudqdq: Fixed-point fractional library routines.
  41759. (line 1277)
  41760. * __satfractudqha: Fixed-point fractional library routines.
  41761. (line 1279)
  41762. * __satfractudqhq: Fixed-point fractional library routines.
  41763. (line 1274)
  41764. * __satfractudqqq: Fixed-point fractional library routines.
  41765. (line 1272)
  41766. * __satfractudqsa: Fixed-point fractional library routines.
  41767. (line 1281)
  41768. * __satfractudqsq: Fixed-point fractional library routines.
  41769. (line 1275)
  41770. * __satfractudqta: Fixed-point fractional library routines.
  41771. (line 1284)
  41772. * __satfractudquda: Fixed-point fractional library routines.
  41773. (line 1296)
  41774. * __satfractudquha: Fixed-point fractional library routines.
  41775. (line 1292)
  41776. * __satfractudquhq2: Fixed-point fractional library routines.
  41777. (line 1288)
  41778. * __satfractudquqq2: Fixed-point fractional library routines.
  41779. (line 1286)
  41780. * __satfractudqusa: Fixed-point fractional library routines.
  41781. (line 1294)
  41782. * __satfractudqusq2: Fixed-point fractional library routines.
  41783. (line 1290)
  41784. * __satfractudquta: Fixed-point fractional library routines.
  41785. (line 1298)
  41786. * __satfractuhada: Fixed-point fractional library routines.
  41787. (line 1310)
  41788. * __satfractuhadq: Fixed-point fractional library routines.
  41789. (line 1305)
  41790. * __satfractuhaha: Fixed-point fractional library routines.
  41791. (line 1307)
  41792. * __satfractuhahq: Fixed-point fractional library routines.
  41793. (line 1302)
  41794. * __satfractuhaqq: Fixed-point fractional library routines.
  41795. (line 1300)
  41796. * __satfractuhasa: Fixed-point fractional library routines.
  41797. (line 1309)
  41798. * __satfractuhasq: Fixed-point fractional library routines.
  41799. (line 1303)
  41800. * __satfractuhata: Fixed-point fractional library routines.
  41801. (line 1312)
  41802. * __satfractuhauda2: Fixed-point fractional library routines.
  41803. (line 1324)
  41804. * __satfractuhaudq: Fixed-point fractional library routines.
  41805. (line 1320)
  41806. * __satfractuhauhq: Fixed-point fractional library routines.
  41807. (line 1316)
  41808. * __satfractuhauqq: Fixed-point fractional library routines.
  41809. (line 1314)
  41810. * __satfractuhausa2: Fixed-point fractional library routines.
  41811. (line 1322)
  41812. * __satfractuhausq: Fixed-point fractional library routines.
  41813. (line 1318)
  41814. * __satfractuhauta2: Fixed-point fractional library routines.
  41815. (line 1326)
  41816. * __satfractuhqda: Fixed-point fractional library routines.
  41817. (line 1231)
  41818. * __satfractuhqdq: Fixed-point fractional library routines.
  41819. (line 1228)
  41820. * __satfractuhqha: Fixed-point fractional library routines.
  41821. (line 1229)
  41822. * __satfractuhqhq: Fixed-point fractional library routines.
  41823. (line 1226)
  41824. * __satfractuhqqq: Fixed-point fractional library routines.
  41825. (line 1225)
  41826. * __satfractuhqsa: Fixed-point fractional library routines.
  41827. (line 1230)
  41828. * __satfractuhqsq: Fixed-point fractional library routines.
  41829. (line 1227)
  41830. * __satfractuhqta: Fixed-point fractional library routines.
  41831. (line 1232)
  41832. * __satfractuhquda: Fixed-point fractional library routines.
  41833. (line 1242)
  41834. * __satfractuhqudq2: Fixed-point fractional library routines.
  41835. (line 1237)
  41836. * __satfractuhquha: Fixed-point fractional library routines.
  41837. (line 1239)
  41838. * __satfractuhquqq2: Fixed-point fractional library routines.
  41839. (line 1233)
  41840. * __satfractuhqusa: Fixed-point fractional library routines.
  41841. (line 1241)
  41842. * __satfractuhqusq2: Fixed-point fractional library routines.
  41843. (line 1235)
  41844. * __satfractuhquta: Fixed-point fractional library routines.
  41845. (line 1244)
  41846. * __satfractunsdida: Fixed-point fractional library routines.
  41847. (line 1841)
  41848. * __satfractunsdidq: Fixed-point fractional library routines.
  41849. (line 1837)
  41850. * __satfractunsdiha: Fixed-point fractional library routines.
  41851. (line 1839)
  41852. * __satfractunsdihq: Fixed-point fractional library routines.
  41853. (line 1835)
  41854. * __satfractunsdiqq: Fixed-point fractional library routines.
  41855. (line 1834)
  41856. * __satfractunsdisa: Fixed-point fractional library routines.
  41857. (line 1840)
  41858. * __satfractunsdisq: Fixed-point fractional library routines.
  41859. (line 1836)
  41860. * __satfractunsdita: Fixed-point fractional library routines.
  41861. (line 1842)
  41862. * __satfractunsdiuda: Fixed-point fractional library routines.
  41863. (line 1856)
  41864. * __satfractunsdiudq: Fixed-point fractional library routines.
  41865. (line 1850)
  41866. * __satfractunsdiuha: Fixed-point fractional library routines.
  41867. (line 1852)
  41868. * __satfractunsdiuhq: Fixed-point fractional library routines.
  41869. (line 1846)
  41870. * __satfractunsdiuqq: Fixed-point fractional library routines.
  41871. (line 1844)
  41872. * __satfractunsdiusa: Fixed-point fractional library routines.
  41873. (line 1854)
  41874. * __satfractunsdiusq: Fixed-point fractional library routines.
  41875. (line 1848)
  41876. * __satfractunsdiuta: Fixed-point fractional library routines.
  41877. (line 1858)
  41878. * __satfractunshida: Fixed-point fractional library routines.
  41879. (line 1793)
  41880. * __satfractunshidq: Fixed-point fractional library routines.
  41881. (line 1789)
  41882. * __satfractunshiha: Fixed-point fractional library routines.
  41883. (line 1791)
  41884. * __satfractunshihq: Fixed-point fractional library routines.
  41885. (line 1787)
  41886. * __satfractunshiqq: Fixed-point fractional library routines.
  41887. (line 1786)
  41888. * __satfractunshisa: Fixed-point fractional library routines.
  41889. (line 1792)
  41890. * __satfractunshisq: Fixed-point fractional library routines.
  41891. (line 1788)
  41892. * __satfractunshita: Fixed-point fractional library routines.
  41893. (line 1794)
  41894. * __satfractunshiuda: Fixed-point fractional library routines.
  41895. (line 1808)
  41896. * __satfractunshiudq: Fixed-point fractional library routines.
  41897. (line 1802)
  41898. * __satfractunshiuha: Fixed-point fractional library routines.
  41899. (line 1804)
  41900. * __satfractunshiuhq: Fixed-point fractional library routines.
  41901. (line 1798)
  41902. * __satfractunshiuqq: Fixed-point fractional library routines.
  41903. (line 1796)
  41904. * __satfractunshiusa: Fixed-point fractional library routines.
  41905. (line 1806)
  41906. * __satfractunshiusq: Fixed-point fractional library routines.
  41907. (line 1800)
  41908. * __satfractunshiuta: Fixed-point fractional library routines.
  41909. (line 1810)
  41910. * __satfractunsqida: Fixed-point fractional library routines.
  41911. (line 1767)
  41912. * __satfractunsqidq: Fixed-point fractional library routines.
  41913. (line 1763)
  41914. * __satfractunsqiha: Fixed-point fractional library routines.
  41915. (line 1765)
  41916. * __satfractunsqihq: Fixed-point fractional library routines.
  41917. (line 1761)
  41918. * __satfractunsqiqq: Fixed-point fractional library routines.
  41919. (line 1760)
  41920. * __satfractunsqisa: Fixed-point fractional library routines.
  41921. (line 1766)
  41922. * __satfractunsqisq: Fixed-point fractional library routines.
  41923. (line 1762)
  41924. * __satfractunsqita: Fixed-point fractional library routines.
  41925. (line 1768)
  41926. * __satfractunsqiuda: Fixed-point fractional library routines.
  41927. (line 1782)
  41928. * __satfractunsqiudq: Fixed-point fractional library routines.
  41929. (line 1776)
  41930. * __satfractunsqiuha: Fixed-point fractional library routines.
  41931. (line 1778)
  41932. * __satfractunsqiuhq: Fixed-point fractional library routines.
  41933. (line 1772)
  41934. * __satfractunsqiuqq: Fixed-point fractional library routines.
  41935. (line 1770)
  41936. * __satfractunsqiusa: Fixed-point fractional library routines.
  41937. (line 1780)
  41938. * __satfractunsqiusq: Fixed-point fractional library routines.
  41939. (line 1774)
  41940. * __satfractunsqiuta: Fixed-point fractional library routines.
  41941. (line 1784)
  41942. * __satfractunssida: Fixed-point fractional library routines.
  41943. (line 1818)
  41944. * __satfractunssidq: Fixed-point fractional library routines.
  41945. (line 1815)
  41946. * __satfractunssiha: Fixed-point fractional library routines.
  41947. (line 1816)
  41948. * __satfractunssihq: Fixed-point fractional library routines.
  41949. (line 1813)
  41950. * __satfractunssiqq: Fixed-point fractional library routines.
  41951. (line 1812)
  41952. * __satfractunssisa: Fixed-point fractional library routines.
  41953. (line 1817)
  41954. * __satfractunssisq: Fixed-point fractional library routines.
  41955. (line 1814)
  41956. * __satfractunssita: Fixed-point fractional library routines.
  41957. (line 1819)
  41958. * __satfractunssiuda: Fixed-point fractional library routines.
  41959. (line 1830)
  41960. * __satfractunssiudq: Fixed-point fractional library routines.
  41961. (line 1825)
  41962. * __satfractunssiuha: Fixed-point fractional library routines.
  41963. (line 1827)
  41964. * __satfractunssiuhq: Fixed-point fractional library routines.
  41965. (line 1822)
  41966. * __satfractunssiuqq: Fixed-point fractional library routines.
  41967. (line 1820)
  41968. * __satfractunssiusa: Fixed-point fractional library routines.
  41969. (line 1829)
  41970. * __satfractunssiusq: Fixed-point fractional library routines.
  41971. (line 1823)
  41972. * __satfractunssiuta: Fixed-point fractional library routines.
  41973. (line 1832)
  41974. * __satfractunstida: Fixed-point fractional library routines.
  41975. (line 1870)
  41976. * __satfractunstidq: Fixed-point fractional library routines.
  41977. (line 1865)
  41978. * __satfractunstiha: Fixed-point fractional library routines.
  41979. (line 1867)
  41980. * __satfractunstihq: Fixed-point fractional library routines.
  41981. (line 1862)
  41982. * __satfractunstiqq: Fixed-point fractional library routines.
  41983. (line 1860)
  41984. * __satfractunstisa: Fixed-point fractional library routines.
  41985. (line 1869)
  41986. * __satfractunstisq: Fixed-point fractional library routines.
  41987. (line 1863)
  41988. * __satfractunstita: Fixed-point fractional library routines.
  41989. (line 1872)
  41990. * __satfractunstiuda: Fixed-point fractional library routines.
  41991. (line 1886)
  41992. * __satfractunstiudq: Fixed-point fractional library routines.
  41993. (line 1880)
  41994. * __satfractunstiuha: Fixed-point fractional library routines.
  41995. (line 1882)
  41996. * __satfractunstiuhq: Fixed-point fractional library routines.
  41997. (line 1876)
  41998. * __satfractunstiuqq: Fixed-point fractional library routines.
  41999. (line 1874)
  42000. * __satfractunstiusa: Fixed-point fractional library routines.
  42001. (line 1884)
  42002. * __satfractunstiusq: Fixed-point fractional library routines.
  42003. (line 1878)
  42004. * __satfractunstiuta: Fixed-point fractional library routines.
  42005. (line 1888)
  42006. * __satfractuqqda: Fixed-point fractional library routines.
  42007. (line 1207)
  42008. * __satfractuqqdq: Fixed-point fractional library routines.
  42009. (line 1202)
  42010. * __satfractuqqha: Fixed-point fractional library routines.
  42011. (line 1204)
  42012. * __satfractuqqhq: Fixed-point fractional library routines.
  42013. (line 1199)
  42014. * __satfractuqqqq: Fixed-point fractional library routines.
  42015. (line 1197)
  42016. * __satfractuqqsa: Fixed-point fractional library routines.
  42017. (line 1206)
  42018. * __satfractuqqsq: Fixed-point fractional library routines.
  42019. (line 1200)
  42020. * __satfractuqqta: Fixed-point fractional library routines.
  42021. (line 1209)
  42022. * __satfractuqquda: Fixed-point fractional library routines.
  42023. (line 1221)
  42024. * __satfractuqqudq2: Fixed-point fractional library routines.
  42025. (line 1215)
  42026. * __satfractuqquha: Fixed-point fractional library routines.
  42027. (line 1217)
  42028. * __satfractuqquhq2: Fixed-point fractional library routines.
  42029. (line 1211)
  42030. * __satfractuqqusa: Fixed-point fractional library routines.
  42031. (line 1219)
  42032. * __satfractuqqusq2: Fixed-point fractional library routines.
  42033. (line 1213)
  42034. * __satfractuqquta: Fixed-point fractional library routines.
  42035. (line 1223)
  42036. * __satfractusada: Fixed-point fractional library routines.
  42037. (line 1334)
  42038. * __satfractusadq: Fixed-point fractional library routines.
  42039. (line 1331)
  42040. * __satfractusaha: Fixed-point fractional library routines.
  42041. (line 1332)
  42042. * __satfractusahq: Fixed-point fractional library routines.
  42043. (line 1329)
  42044. * __satfractusaqq: Fixed-point fractional library routines.
  42045. (line 1328)
  42046. * __satfractusasa: Fixed-point fractional library routines.
  42047. (line 1333)
  42048. * __satfractusasq: Fixed-point fractional library routines.
  42049. (line 1330)
  42050. * __satfractusata: Fixed-point fractional library routines.
  42051. (line 1335)
  42052. * __satfractusauda2: Fixed-point fractional library routines.
  42053. (line 1345)
  42054. * __satfractusaudq: Fixed-point fractional library routines.
  42055. (line 1341)
  42056. * __satfractusauha2: Fixed-point fractional library routines.
  42057. (line 1343)
  42058. * __satfractusauhq: Fixed-point fractional library routines.
  42059. (line 1338)
  42060. * __satfractusauqq: Fixed-point fractional library routines.
  42061. (line 1336)
  42062. * __satfractusausq: Fixed-point fractional library routines.
  42063. (line 1339)
  42064. * __satfractusauta2: Fixed-point fractional library routines.
  42065. (line 1347)
  42066. * __satfractusqda: Fixed-point fractional library routines.
  42067. (line 1255)
  42068. * __satfractusqdq: Fixed-point fractional library routines.
  42069. (line 1250)
  42070. * __satfractusqha: Fixed-point fractional library routines.
  42071. (line 1252)
  42072. * __satfractusqhq: Fixed-point fractional library routines.
  42073. (line 1248)
  42074. * __satfractusqqq: Fixed-point fractional library routines.
  42075. (line 1246)
  42076. * __satfractusqsa: Fixed-point fractional library routines.
  42077. (line 1254)
  42078. * __satfractusqsq: Fixed-point fractional library routines.
  42079. (line 1249)
  42080. * __satfractusqta: Fixed-point fractional library routines.
  42081. (line 1256)
  42082. * __satfractusquda: Fixed-point fractional library routines.
  42083. (line 1268)
  42084. * __satfractusqudq2: Fixed-point fractional library routines.
  42085. (line 1262)
  42086. * __satfractusquha: Fixed-point fractional library routines.
  42087. (line 1264)
  42088. * __satfractusquhq2: Fixed-point fractional library routines.
  42089. (line 1260)
  42090. * __satfractusquqq2: Fixed-point fractional library routines.
  42091. (line 1258)
  42092. * __satfractusqusa: Fixed-point fractional library routines.
  42093. (line 1266)
  42094. * __satfractusquta: Fixed-point fractional library routines.
  42095. (line 1270)
  42096. * __satfractutada: Fixed-point fractional library routines.
  42097. (line 1385)
  42098. * __satfractutadq: Fixed-point fractional library routines.
  42099. (line 1380)
  42100. * __satfractutaha: Fixed-point fractional library routines.
  42101. (line 1382)
  42102. * __satfractutahq: Fixed-point fractional library routines.
  42103. (line 1377)
  42104. * __satfractutaqq: Fixed-point fractional library routines.
  42105. (line 1375)
  42106. * __satfractutasa: Fixed-point fractional library routines.
  42107. (line 1384)
  42108. * __satfractutasq: Fixed-point fractional library routines.
  42109. (line 1378)
  42110. * __satfractutata: Fixed-point fractional library routines.
  42111. (line 1387)
  42112. * __satfractutauda2: Fixed-point fractional library routines.
  42113. (line 1401)
  42114. * __satfractutaudq: Fixed-point fractional library routines.
  42115. (line 1395)
  42116. * __satfractutauha2: Fixed-point fractional library routines.
  42117. (line 1397)
  42118. * __satfractutauhq: Fixed-point fractional library routines.
  42119. (line 1391)
  42120. * __satfractutauqq: Fixed-point fractional library routines.
  42121. (line 1389)
  42122. * __satfractutausa2: Fixed-point fractional library routines.
  42123. (line 1399)
  42124. * __satfractutausq: Fixed-point fractional library routines.
  42125. (line 1393)
  42126. * __splitstack_find: Miscellaneous routines.
  42127. (line 15)
  42128. * __ssaddda3: Fixed-point fractional library routines.
  42129. (line 74)
  42130. * __ssadddq3: Fixed-point fractional library routines.
  42131. (line 69)
  42132. * __ssaddha3: Fixed-point fractional library routines.
  42133. (line 71)
  42134. * __ssaddhq3: Fixed-point fractional library routines.
  42135. (line 67)
  42136. * __ssaddqq3: Fixed-point fractional library routines.
  42137. (line 65)
  42138. * __ssaddsa3: Fixed-point fractional library routines.
  42139. (line 73)
  42140. * __ssaddsq3: Fixed-point fractional library routines.
  42141. (line 68)
  42142. * __ssaddta3: Fixed-point fractional library routines.
  42143. (line 75)
  42144. * __ssashlda3: Fixed-point fractional library routines.
  42145. (line 409)
  42146. * __ssashldq3: Fixed-point fractional library routines.
  42147. (line 405)
  42148. * __ssashlha3: Fixed-point fractional library routines.
  42149. (line 407)
  42150. * __ssashlhq3: Fixed-point fractional library routines.
  42151. (line 403)
  42152. * __ssashlsa3: Fixed-point fractional library routines.
  42153. (line 408)
  42154. * __ssashlsq3: Fixed-point fractional library routines.
  42155. (line 404)
  42156. * __ssashlta3: Fixed-point fractional library routines.
  42157. (line 410)
  42158. * __ssdivda3: Fixed-point fractional library routines.
  42159. (line 268)
  42160. * __ssdivdq3: Fixed-point fractional library routines.
  42161. (line 263)
  42162. * __ssdivha3: Fixed-point fractional library routines.
  42163. (line 265)
  42164. * __ssdivhq3: Fixed-point fractional library routines.
  42165. (line 261)
  42166. * __ssdivqq3: Fixed-point fractional library routines.
  42167. (line 259)
  42168. * __ssdivsa3: Fixed-point fractional library routines.
  42169. (line 267)
  42170. * __ssdivsq3: Fixed-point fractional library routines.
  42171. (line 262)
  42172. * __ssdivta3: Fixed-point fractional library routines.
  42173. (line 269)
  42174. * __ssmulda3: Fixed-point fractional library routines.
  42175. (line 200)
  42176. * __ssmuldq3: Fixed-point fractional library routines.
  42177. (line 195)
  42178. * __ssmulha3: Fixed-point fractional library routines.
  42179. (line 197)
  42180. * __ssmulhq3: Fixed-point fractional library routines.
  42181. (line 193)
  42182. * __ssmulqq3: Fixed-point fractional library routines.
  42183. (line 191)
  42184. * __ssmulsa3: Fixed-point fractional library routines.
  42185. (line 199)
  42186. * __ssmulsq3: Fixed-point fractional library routines.
  42187. (line 194)
  42188. * __ssmulta3: Fixed-point fractional library routines.
  42189. (line 201)
  42190. * __ssnegda2: Fixed-point fractional library routines.
  42191. (line 323)
  42192. * __ssnegdq2: Fixed-point fractional library routines.
  42193. (line 320)
  42194. * __ssnegha2: Fixed-point fractional library routines.
  42195. (line 321)
  42196. * __ssneghq2: Fixed-point fractional library routines.
  42197. (line 318)
  42198. * __ssnegqq2: Fixed-point fractional library routines.
  42199. (line 317)
  42200. * __ssnegsa2: Fixed-point fractional library routines.
  42201. (line 322)
  42202. * __ssnegsq2: Fixed-point fractional library routines.
  42203. (line 319)
  42204. * __ssnegta2: Fixed-point fractional library routines.
  42205. (line 324)
  42206. * __sssubda3: Fixed-point fractional library routines.
  42207. (line 136)
  42208. * __sssubdq3: Fixed-point fractional library routines.
  42209. (line 131)
  42210. * __sssubha3: Fixed-point fractional library routines.
  42211. (line 133)
  42212. * __sssubhq3: Fixed-point fractional library routines.
  42213. (line 129)
  42214. * __sssubqq3: Fixed-point fractional library routines.
  42215. (line 127)
  42216. * __sssubsa3: Fixed-point fractional library routines.
  42217. (line 135)
  42218. * __sssubsq3: Fixed-point fractional library routines.
  42219. (line 130)
  42220. * __sssubta3: Fixed-point fractional library routines.
  42221. (line 137)
  42222. * __subda3: Fixed-point fractional library routines.
  42223. (line 114)
  42224. * __subdf3: Soft float library routines.
  42225. (line 30)
  42226. * __subdq3: Fixed-point fractional library routines.
  42227. (line 101)
  42228. * __subha3: Fixed-point fractional library routines.
  42229. (line 111)
  42230. * __subhq3: Fixed-point fractional library routines.
  42231. (line 99)
  42232. * __subqq3: Fixed-point fractional library routines.
  42233. (line 97)
  42234. * __subsa3: Fixed-point fractional library routines.
  42235. (line 113)
  42236. * __subsf3: Soft float library routines.
  42237. (line 29)
  42238. * __subsq3: Fixed-point fractional library routines.
  42239. (line 100)
  42240. * __subta3: Fixed-point fractional library routines.
  42241. (line 115)
  42242. * __subtf3: Soft float library routines.
  42243. (line 31)
  42244. * __subuda3: Fixed-point fractional library routines.
  42245. (line 121)
  42246. * __subudq3: Fixed-point fractional library routines.
  42247. (line 109)
  42248. * __subuha3: Fixed-point fractional library routines.
  42249. (line 117)
  42250. * __subuhq3: Fixed-point fractional library routines.
  42251. (line 105)
  42252. * __subuqq3: Fixed-point fractional library routines.
  42253. (line 103)
  42254. * __subusa3: Fixed-point fractional library routines.
  42255. (line 119)
  42256. * __subusq3: Fixed-point fractional library routines.
  42257. (line 107)
  42258. * __subuta3: Fixed-point fractional library routines.
  42259. (line 123)
  42260. * __subvdi3: Integer library routines.
  42261. (line 122)
  42262. * __subvsi3: Integer library routines.
  42263. (line 121)
  42264. * __subxf3: Soft float library routines.
  42265. (line 33)
  42266. * __truncdfsf2: Soft float library routines.
  42267. (line 75)
  42268. * __trunctfdf2: Soft float library routines.
  42269. (line 72)
  42270. * __trunctfsf2: Soft float library routines.
  42271. (line 74)
  42272. * __truncxfdf2: Soft float library routines.
  42273. (line 71)
  42274. * __truncxfsf2: Soft float library routines.
  42275. (line 73)
  42276. * __ucmpdi2: Integer library routines.
  42277. (line 92)
  42278. * __ucmpti2: Integer library routines.
  42279. (line 93)
  42280. * __udivdi3: Integer library routines.
  42281. (line 52)
  42282. * __udivmoddi4: Integer library routines.
  42283. (line 59)
  42284. * __udivmodti4: Integer library routines.
  42285. (line 61)
  42286. * __udivsi3: Integer library routines.
  42287. (line 50)
  42288. * __udivti3: Integer library routines.
  42289. (line 54)
  42290. * __udivuda3: Fixed-point fractional library routines.
  42291. (line 252)
  42292. * __udivudq3: Fixed-point fractional library routines.
  42293. (line 246)
  42294. * __udivuha3: Fixed-point fractional library routines.
  42295. (line 248)
  42296. * __udivuhq3: Fixed-point fractional library routines.
  42297. (line 242)
  42298. * __udivuqq3: Fixed-point fractional library routines.
  42299. (line 240)
  42300. * __udivusa3: Fixed-point fractional library routines.
  42301. (line 250)
  42302. * __udivusq3: Fixed-point fractional library routines.
  42303. (line 244)
  42304. * __udivuta3: Fixed-point fractional library routines.
  42305. (line 254)
  42306. * __umoddi3: Integer library routines.
  42307. (line 69)
  42308. * __umodsi3: Integer library routines.
  42309. (line 67)
  42310. * __umodti3: Integer library routines.
  42311. (line 71)
  42312. * __unorddf2: Soft float library routines.
  42313. (line 172)
  42314. * __unordsf2: Soft float library routines.
  42315. (line 171)
  42316. * __unordtf2: Soft float library routines.
  42317. (line 173)
  42318. * __usadduda3: Fixed-point fractional library routines.
  42319. (line 91)
  42320. * __usaddudq3: Fixed-point fractional library routines.
  42321. (line 85)
  42322. * __usadduha3: Fixed-point fractional library routines.
  42323. (line 87)
  42324. * __usadduhq3: Fixed-point fractional library routines.
  42325. (line 81)
  42326. * __usadduqq3: Fixed-point fractional library routines.
  42327. (line 79)
  42328. * __usaddusa3: Fixed-point fractional library routines.
  42329. (line 89)
  42330. * __usaddusq3: Fixed-point fractional library routines.
  42331. (line 83)
  42332. * __usadduta3: Fixed-point fractional library routines.
  42333. (line 93)
  42334. * __usashluda3: Fixed-point fractional library routines.
  42335. (line 427)
  42336. * __usashludq3: Fixed-point fractional library routines.
  42337. (line 421)
  42338. * __usashluha3: Fixed-point fractional library routines.
  42339. (line 423)
  42340. * __usashluhq3: Fixed-point fractional library routines.
  42341. (line 417)
  42342. * __usashluqq3: Fixed-point fractional library routines.
  42343. (line 415)
  42344. * __usashlusa3: Fixed-point fractional library routines.
  42345. (line 425)
  42346. * __usashlusq3: Fixed-point fractional library routines.
  42347. (line 419)
  42348. * __usashluta3: Fixed-point fractional library routines.
  42349. (line 429)
  42350. * __usdivuda3: Fixed-point fractional library routines.
  42351. (line 286)
  42352. * __usdivudq3: Fixed-point fractional library routines.
  42353. (line 280)
  42354. * __usdivuha3: Fixed-point fractional library routines.
  42355. (line 282)
  42356. * __usdivuhq3: Fixed-point fractional library routines.
  42357. (line 276)
  42358. * __usdivuqq3: Fixed-point fractional library routines.
  42359. (line 274)
  42360. * __usdivusa3: Fixed-point fractional library routines.
  42361. (line 284)
  42362. * __usdivusq3: Fixed-point fractional library routines.
  42363. (line 278)
  42364. * __usdivuta3: Fixed-point fractional library routines.
  42365. (line 288)
  42366. * __usmuluda3: Fixed-point fractional library routines.
  42367. (line 218)
  42368. * __usmuludq3: Fixed-point fractional library routines.
  42369. (line 212)
  42370. * __usmuluha3: Fixed-point fractional library routines.
  42371. (line 214)
  42372. * __usmuluhq3: Fixed-point fractional library routines.
  42373. (line 208)
  42374. * __usmuluqq3: Fixed-point fractional library routines.
  42375. (line 206)
  42376. * __usmulusa3: Fixed-point fractional library routines.
  42377. (line 216)
  42378. * __usmulusq3: Fixed-point fractional library routines.
  42379. (line 210)
  42380. * __usmuluta3: Fixed-point fractional library routines.
  42381. (line 220)
  42382. * __usneguda2: Fixed-point fractional library routines.
  42383. (line 337)
  42384. * __usnegudq2: Fixed-point fractional library routines.
  42385. (line 332)
  42386. * __usneguha2: Fixed-point fractional library routines.
  42387. (line 334)
  42388. * __usneguhq2: Fixed-point fractional library routines.
  42389. (line 329)
  42390. * __usneguqq2: Fixed-point fractional library routines.
  42391. (line 327)
  42392. * __usnegusa2: Fixed-point fractional library routines.
  42393. (line 336)
  42394. * __usnegusq2: Fixed-point fractional library routines.
  42395. (line 330)
  42396. * __usneguta2: Fixed-point fractional library routines.
  42397. (line 339)
  42398. * __ussubuda3: Fixed-point fractional library routines.
  42399. (line 154)
  42400. * __ussubudq3: Fixed-point fractional library routines.
  42401. (line 148)
  42402. * __ussubuha3: Fixed-point fractional library routines.
  42403. (line 150)
  42404. * __ussubuhq3: Fixed-point fractional library routines.
  42405. (line 144)
  42406. * __ussubuqq3: Fixed-point fractional library routines.
  42407. (line 142)
  42408. * __ussubusa3: Fixed-point fractional library routines.
  42409. (line 152)
  42410. * __ussubusq3: Fixed-point fractional library routines.
  42411. (line 146)
  42412. * __ussubuta3: Fixed-point fractional library routines.
  42413. (line 156)
  42414. * abort: Portability. (line 20)
  42415. * abs: Arithmetic. (line 200)
  42416. * abs and attributes: Expressions. (line 83)
  42417. * absence_set: Processor pipeline description.
  42418. (line 223)
  42419. * absM2 instruction pattern: Standard Names. (line 879)
  42420. * absolute value: Arithmetic. (line 200)
  42421. * ABSU_EXPR: Unary and Binary Expressions.
  42422. (line 6)
  42423. * ABS_EXPR: Unary and Binary Expressions.
  42424. (line 6)
  42425. * access to operands: Accessors. (line 6)
  42426. * access to special operands: Special Accessors. (line 6)
  42427. * accessors: Accessors. (line 6)
  42428. * ACCUMULATE_OUTGOING_ARGS: Stack Arguments. (line 48)
  42429. * ACCUMULATE_OUTGOING_ARGS and stack frames: Function Entry. (line 140)
  42430. * ACCUM_TYPE_SIZE: Type Layout. (line 87)
  42431. * acosM2 instruction pattern: Standard Names. (line 966)
  42432. * ADA_LONG_TYPE_SIZE: Type Layout. (line 25)
  42433. * Adding a new GIMPLE statement code: Adding a new GIMPLE statement code.
  42434. (line 6)
  42435. * ADDITIONAL_REGISTER_NAMES: Instruction Output. (line 14)
  42436. * addM3 instruction pattern: Standard Names. (line 436)
  42437. * addMODEcc instruction pattern: Standard Names. (line 1589)
  42438. * addptrM3 instruction pattern: Standard Names. (line 469)
  42439. * address constraints: Simple Constraints. (line 162)
  42440. * addressing modes: Addressing Modes. (line 6)
  42441. * address_operand: Machine-Independent Predicates.
  42442. (line 62)
  42443. * address_operand <1>: Simple Constraints. (line 166)
  42444. * addr_diff_vec: Side Effects. (line 314)
  42445. * addr_diff_vec, length of: Insn Lengths. (line 26)
  42446. * ADDR_EXPR: Storage References. (line 6)
  42447. * addr_vec: Side Effects. (line 309)
  42448. * addr_vec, length of: Insn Lengths. (line 26)
  42449. * addvM4 instruction pattern: Standard Names. (line 452)
  42450. * ADJUST_FIELD_ALIGN: Storage Layout. (line 212)
  42451. * ADJUST_INSN_LENGTH: Insn Lengths. (line 41)
  42452. * ADJUST_REG_ALLOC_ORDER: Allocation Order. (line 22)
  42453. * aggregates as return values: Aggregate Return. (line 6)
  42454. * alias: Alias analysis. (line 6)
  42455. * allocate_stack instruction pattern: Standard Names. (line 1956)
  42456. * ALL_REGS: Register Classes. (line 17)
  42457. * alternate entry points: Insns. (line 146)
  42458. * analyzer: Static Analyzer. (line 6)
  42459. * analyzer, debugging: Debugging the Analyzer.
  42460. (line 6)
  42461. * analyzer, internals: Analyzer Internals. (line 6)
  42462. * anchored addresses: Anchored Addresses. (line 6)
  42463. * and: Arithmetic. (line 158)
  42464. * and and attributes: Expressions. (line 50)
  42465. * and, canonicalization of: Insn Canonicalizations.
  42466. (line 67)
  42467. * andM3 instruction pattern: Standard Names. (line 442)
  42468. * ANNOTATE_EXPR: Unary and Binary Expressions.
  42469. (line 6)
  42470. * annotations: Annotations. (line 6)
  42471. * APPLY_RESULT_SIZE: Scalar Return. (line 112)
  42472. * ARGS_GROW_DOWNWARD: Frame Layout. (line 30)
  42473. * argument passing: Interface. (line 36)
  42474. * arguments in registers: Register Arguments. (line 6)
  42475. * arguments on stack: Stack Arguments. (line 6)
  42476. * ARG_POINTER_CFA_OFFSET: Frame Layout. (line 207)
  42477. * ARG_POINTER_REGNUM: Frame Registers. (line 40)
  42478. * ARG_POINTER_REGNUM and virtual registers: Regs and Memory. (line 65)
  42479. * arg_pointer_rtx: Frame Registers. (line 104)
  42480. * arithmetic library: Soft float library routines.
  42481. (line 6)
  42482. * arithmetic shift: Arithmetic. (line 173)
  42483. * arithmetic shift with signed saturation: Arithmetic. (line 173)
  42484. * arithmetic shift with unsigned saturation: Arithmetic. (line 173)
  42485. * arithmetic, in RTL: Arithmetic. (line 6)
  42486. * ARITHMETIC_TYPE_P: Types for C++. (line 59)
  42487. * array: Types. (line 6)
  42488. * ARRAY_RANGE_REF: Storage References. (line 6)
  42489. * ARRAY_REF: Storage References. (line 6)
  42490. * ARRAY_TYPE: Types. (line 6)
  42491. * ashift: Arithmetic. (line 173)
  42492. * ashift and attributes: Expressions. (line 83)
  42493. * ashiftrt: Arithmetic. (line 190)
  42494. * ashiftrt and attributes: Expressions. (line 83)
  42495. * ashlM3 instruction pattern: Standard Names. (line 828)
  42496. * ashrM3 instruction pattern: Standard Names. (line 840)
  42497. * asinM2 instruction pattern: Standard Names. (line 960)
  42498. * ASM_APP_OFF: File Framework. (line 76)
  42499. * ASM_APP_ON: File Framework. (line 69)
  42500. * ASM_COMMENT_START: File Framework. (line 64)
  42501. * ASM_DECLARE_COLD_FUNCTION_NAME: Label Output. (line 136)
  42502. * ASM_DECLARE_COLD_FUNCTION_SIZE: Label Output. (line 151)
  42503. * ASM_DECLARE_FUNCTION_NAME: Label Output. (line 108)
  42504. * ASM_DECLARE_FUNCTION_SIZE: Label Output. (line 123)
  42505. * ASM_DECLARE_OBJECT_NAME: Label Output. (line 164)
  42506. * ASM_DECLARE_REGISTER_GLOBAL: Label Output. (line 192)
  42507. * ASM_FINAL_SPEC: Driver. (line 81)
  42508. * ASM_FINISH_DECLARE_OBJECT: Label Output. (line 200)
  42509. * ASM_FORMAT_PRIVATE_NAME: Label Output. (line 426)
  42510. * asm_fprintf: Instruction Output. (line 150)
  42511. * ASM_FPRINTF_EXTENSIONS: Instruction Output. (line 160)
  42512. * ASM_GENERATE_INTERNAL_LABEL: Label Output. (line 410)
  42513. * asm_input: Side Effects. (line 296)
  42514. * asm_input and /v: Flags. (line 65)
  42515. * ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX: Exception Handling. (line 80)
  42516. * asm_noperands: Insns. (line 327)
  42517. * ASM_NO_SKIP_IN_TEXT: Alignment Output. (line 59)
  42518. * asm_operands and /v: Flags. (line 65)
  42519. * asm_operands, RTL sharing: Sharing. (line 48)
  42520. * asm_operands, usage: Assembler. (line 6)
  42521. * ASM_OUTPUT_ADDR_DIFF_ELT: Dispatch Tables. (line 8)
  42522. * ASM_OUTPUT_ADDR_VEC_ELT: Dispatch Tables. (line 25)
  42523. * ASM_OUTPUT_ALIGN: Alignment Output. (line 66)
  42524. * ASM_OUTPUT_ALIGNED_BSS: Uninitialized Data. (line 45)
  42525. * ASM_OUTPUT_ALIGNED_COMMON: Uninitialized Data. (line 29)
  42526. * ASM_OUTPUT_ALIGNED_DECL_COMMON: Uninitialized Data. (line 36)
  42527. * ASM_OUTPUT_ALIGNED_DECL_LOCAL: Uninitialized Data. (line 89)
  42528. * ASM_OUTPUT_ALIGNED_LOCAL: Uninitialized Data. (line 82)
  42529. * ASM_OUTPUT_ALIGN_WITH_NOP: Alignment Output. (line 71)
  42530. * ASM_OUTPUT_ASCII: Data Output. (line 60)
  42531. * ASM_OUTPUT_CASE_END: Dispatch Tables. (line 50)
  42532. * ASM_OUTPUT_CASE_LABEL: Dispatch Tables. (line 37)
  42533. * ASM_OUTPUT_COMMON: Uninitialized Data. (line 9)
  42534. * ASM_OUTPUT_DEBUG_LABEL: Label Output. (line 398)
  42535. * ASM_OUTPUT_DEF: Label Output. (line 447)
  42536. * ASM_OUTPUT_DEF_FROM_DECLS: Label Output. (line 454)
  42537. * ASM_OUTPUT_DWARF_DATAREL: DWARF. (line 110)
  42538. * ASM_OUTPUT_DWARF_DELTA: DWARF. (line 89)
  42539. * ASM_OUTPUT_DWARF_OFFSET: DWARF. (line 98)
  42540. * ASM_OUTPUT_DWARF_PCREL: DWARF. (line 105)
  42541. * ASM_OUTPUT_DWARF_TABLE_REF: DWARF. (line 115)
  42542. * ASM_OUTPUT_DWARF_VMS_DELTA: DWARF. (line 93)
  42543. * ASM_OUTPUT_EXTERNAL: Label Output. (line 327)
  42544. * ASM_OUTPUT_FDESC: Data Output. (line 69)
  42545. * ASM_OUTPUT_FUNCTION_LABEL: Label Output. (line 16)
  42546. * ASM_OUTPUT_INTERNAL_LABEL: Label Output. (line 27)
  42547. * ASM_OUTPUT_LABEL: Label Output. (line 8)
  42548. * ASM_OUTPUT_LABELREF: Label Output. (line 349)
  42549. * ASM_OUTPUT_LABEL_REF: Label Output. (line 371)
  42550. * ASM_OUTPUT_LOCAL: Uninitialized Data. (line 69)
  42551. * ASM_OUTPUT_MAX_SKIP_ALIGN: Alignment Output. (line 75)
  42552. * ASM_OUTPUT_MEASURED_SIZE: Label Output. (line 51)
  42553. * ASM_OUTPUT_OPCODE: Instruction Output. (line 35)
  42554. * ASM_OUTPUT_POOL_EPILOGUE: Data Output. (line 118)
  42555. * ASM_OUTPUT_POOL_PROLOGUE: Data Output. (line 82)
  42556. * ASM_OUTPUT_REG_POP: Instruction Output. (line 206)
  42557. * ASM_OUTPUT_REG_PUSH: Instruction Output. (line 201)
  42558. * ASM_OUTPUT_SIZE_DIRECTIVE: Label Output. (line 45)
  42559. * ASM_OUTPUT_SKIP: Alignment Output. (line 53)
  42560. * ASM_OUTPUT_SOURCE_FILENAME: File Framework. (line 83)
  42561. * ASM_OUTPUT_SPECIAL_POOL_ENTRY: Data Output. (line 93)
  42562. * ASM_OUTPUT_SYMBOL_REF: Label Output. (line 364)
  42563. * ASM_OUTPUT_TYPE_DIRECTIVE: Label Output. (line 98)
  42564. * ASM_OUTPUT_WEAKREF: Label Output. (line 259)
  42565. * ASM_OUTPUT_WEAK_ALIAS: Label Output. (line 473)
  42566. * ASM_PREFERRED_EH_DATA_FORMAT: Exception Handling. (line 66)
  42567. * ASM_SPEC: Driver. (line 73)
  42568. * ASM_STABD_OP: DBX Options. (line 34)
  42569. * ASM_STABN_OP: DBX Options. (line 41)
  42570. * ASM_STABS_OP: DBX Options. (line 28)
  42571. * ASM_WEAKEN_DECL: Label Output. (line 251)
  42572. * ASM_WEAKEN_LABEL: Label Output. (line 238)
  42573. * assembler format: File Framework. (line 6)
  42574. * assembler instructions in RTL: Assembler. (line 6)
  42575. * ASSEMBLER_DIALECT: Instruction Output. (line 172)
  42576. * assemble_name: Label Output. (line 8)
  42577. * assemble_name_raw: Label Output. (line 27)
  42578. * assigning attribute values to insns: Tagging Insns. (line 6)
  42579. * ASSUME_EXTENDED_UNWIND_CONTEXT: Frame Registers. (line 163)
  42580. * asterisk in template: Output Statement. (line 29)
  42581. * AS_NEEDS_DASH_FOR_PIPED_INPUT: Driver. (line 88)
  42582. * atan2M3 instruction pattern: Standard Names. (line 1061)
  42583. * atanM2 instruction pattern: Standard Names. (line 972)
  42584. * atomic: GTY Options. (line 197)
  42585. * atomic_addMODE instruction pattern: Standard Names. (line 2380)
  42586. * atomic_add_fetchMODE instruction pattern: Standard Names. (line 2409)
  42587. * atomic_andMODE instruction pattern: Standard Names. (line 2380)
  42588. * atomic_and_fetchMODE instruction pattern: Standard Names. (line 2409)
  42589. * atomic_bit_test_and_complementMODE instruction pattern: Standard Names.
  42590. (line 2437)
  42591. * atomic_bit_test_and_resetMODE instruction pattern: Standard Names.
  42592. (line 2437)
  42593. * atomic_bit_test_and_setMODE instruction pattern: Standard Names.
  42594. (line 2437)
  42595. * atomic_compare_and_swapMODE instruction pattern: Standard Names.
  42596. (line 2316)
  42597. * atomic_exchangeMODE instruction pattern: Standard Names. (line 2368)
  42598. * atomic_fetch_addMODE instruction pattern: Standard Names. (line 2394)
  42599. * atomic_fetch_andMODE instruction pattern: Standard Names. (line 2394)
  42600. * atomic_fetch_nandMODE instruction pattern: Standard Names. (line 2394)
  42601. * atomic_fetch_orMODE instruction pattern: Standard Names. (line 2394)
  42602. * atomic_fetch_subMODE instruction pattern: Standard Names. (line 2394)
  42603. * atomic_fetch_xorMODE instruction pattern: Standard Names. (line 2394)
  42604. * atomic_loadMODE instruction pattern: Standard Names. (line 2347)
  42605. * atomic_nandMODE instruction pattern: Standard Names. (line 2380)
  42606. * atomic_nand_fetchMODE instruction pattern: Standard Names. (line 2409)
  42607. * atomic_orMODE instruction pattern: Standard Names. (line 2380)
  42608. * atomic_or_fetchMODE instruction pattern: Standard Names. (line 2409)
  42609. * atomic_storeMODE instruction pattern: Standard Names. (line 2357)
  42610. * atomic_subMODE instruction pattern: Standard Names. (line 2380)
  42611. * atomic_sub_fetchMODE instruction pattern: Standard Names. (line 2409)
  42612. * atomic_test_and_set instruction pattern: Standard Names. (line 2426)
  42613. * atomic_xorMODE instruction pattern: Standard Names. (line 2380)
  42614. * atomic_xor_fetchMODE instruction pattern: Standard Names. (line 2409)
  42615. * attr: Expressions. (line 163)
  42616. * attr <1>: Tagging Insns. (line 54)
  42617. * attribute expressions: Expressions. (line 6)
  42618. * attribute specifications: Attr Example. (line 6)
  42619. * attribute specifications example: Attr Example. (line 6)
  42620. * attributes: Attributes. (line 6)
  42621. * attributes, defining: Defining Attributes.
  42622. (line 6)
  42623. * attributes, target-specific: Target Attributes. (line 6)
  42624. * ATTRIBUTE_ALIGNED_VALUE: Storage Layout. (line 194)
  42625. * attr_flag: Expressions. (line 138)
  42626. * autoincrement addressing, availability: Portability. (line 20)
  42627. * autoincrement/decrement addressing: Simple Constraints. (line 30)
  42628. * automata_option: Processor pipeline description.
  42629. (line 304)
  42630. * automaton based pipeline description: Processor pipeline description.
  42631. (line 6)
  42632. * automaton based pipeline description <1>: Processor pipeline description.
  42633. (line 49)
  42634. * automaton based scheduler: Processor pipeline description.
  42635. (line 6)
  42636. * avgM3_ceil instruction pattern: Standard Names. (line 860)
  42637. * avgM3_floor instruction pattern: Standard Names. (line 848)
  42638. * AVOID_CCMODE_COPIES: Values in Registers.
  42639. (line 148)
  42640. * backslash: Output Template. (line 46)
  42641. * barrier: Insns. (line 176)
  42642. * barrier and /f: Flags. (line 135)
  42643. * barrier and /v: Flags. (line 33)
  42644. * BASE_REG_CLASS: Register Classes. (line 111)
  42645. * basic block: Basic Blocks. (line 6)
  42646. * Basic Statements: Basic Statements. (line 6)
  42647. * basic-block.h: Control Flow. (line 6)
  42648. * basic_block: Basic Blocks. (line 6)
  42649. * BASIC_BLOCK: Basic Blocks. (line 14)
  42650. * BB_HEAD, BB_END: Maintaining the CFG.
  42651. (line 76)
  42652. * bb_seq: GIMPLE sequences. (line 72)
  42653. * BIGGEST_ALIGNMENT: Storage Layout. (line 179)
  42654. * BIGGEST_FIELD_ALIGNMENT: Storage Layout. (line 205)
  42655. * BImode: Machine Modes. (line 22)
  42656. * BIND_EXPR: Unary and Binary Expressions.
  42657. (line 6)
  42658. * BINFO_TYPE: Classes. (line 6)
  42659. * bit-fields: Bit-Fields. (line 6)
  42660. * BITFIELD_NBYTES_LIMITED: Storage Layout. (line 428)
  42661. * BITS_BIG_ENDIAN: Storage Layout. (line 11)
  42662. * BITS_BIG_ENDIAN, effect on sign_extract: Bit-Fields. (line 8)
  42663. * BITS_PER_UNIT: Machine Modes. (line 440)
  42664. * BITS_PER_WORD: Storage Layout. (line 50)
  42665. * bitwise complement: Arithmetic. (line 154)
  42666. * bitwise exclusive-or: Arithmetic. (line 168)
  42667. * bitwise inclusive-or: Arithmetic. (line 163)
  42668. * bitwise logical-and: Arithmetic. (line 158)
  42669. * BIT_AND_EXPR: Unary and Binary Expressions.
  42670. (line 6)
  42671. * BIT_IOR_EXPR: Unary and Binary Expressions.
  42672. (line 6)
  42673. * BIT_NOT_EXPR: Unary and Binary Expressions.
  42674. (line 6)
  42675. * BIT_XOR_EXPR: Unary and Binary Expressions.
  42676. (line 6)
  42677. * BLKmode: Machine Modes. (line 185)
  42678. * BLKmode, and function return values: Calls. (line 23)
  42679. * blockage instruction pattern: Standard Names. (line 2156)
  42680. * Blocks: Blocks. (line 6)
  42681. * BLOCK_FOR_INSN, gimple_bb: Maintaining the CFG.
  42682. (line 28)
  42683. * BLOCK_REG_PADDING: Register Arguments. (line 238)
  42684. * BND32mode: Machine Modes. (line 210)
  42685. * BND64mode: Machine Modes. (line 210)
  42686. * bool: Misc. (line 958)
  42687. * BOOLEAN_TYPE: Types. (line 6)
  42688. * BOOL_TYPE_SIZE: Type Layout. (line 43)
  42689. * branch prediction: Profile information.
  42690. (line 24)
  42691. * BRANCH_COST: Costs. (line 104)
  42692. * break_out_memory_refs: Addressing Modes. (line 134)
  42693. * BREAK_STMT: Statements for C++. (line 6)
  42694. * BSS_SECTION_ASM_OP: Sections. (line 67)
  42695. * bswap: Arithmetic. (line 246)
  42696. * bswapM2 instruction pattern: Standard Names. (line 868)
  42697. * btruncM2 instruction pattern: Standard Names. (line 1078)
  42698. * build0: Macros and Functions.
  42699. (line 16)
  42700. * build1: Macros and Functions.
  42701. (line 17)
  42702. * build2: Macros and Functions.
  42703. (line 18)
  42704. * build3: Macros and Functions.
  42705. (line 19)
  42706. * build4: Macros and Functions.
  42707. (line 20)
  42708. * build5: Macros and Functions.
  42709. (line 21)
  42710. * build6: Macros and Functions.
  42711. (line 22)
  42712. * builtin_longjmp instruction pattern: Standard Names. (line 2054)
  42713. * builtin_setjmp_receiver instruction pattern: Standard Names.
  42714. (line 2044)
  42715. * builtin_setjmp_setup instruction pattern: Standard Names. (line 2033)
  42716. * BYTES_BIG_ENDIAN: Storage Layout. (line 23)
  42717. * BYTES_BIG_ENDIAN, effect on subreg: Regs and Memory. (line 229)
  42718. * byte_mode: Machine Modes. (line 458)
  42719. * C statements for assembler output: Output Statement. (line 6)
  42720. * cache: GTY Options. (line 127)
  42721. * call: Flags. (line 230)
  42722. * call <1>: Side Effects. (line 92)
  42723. * call instruction pattern: Standard Names. (line 1709)
  42724. * call usage: Calls. (line 10)
  42725. * call, in call_insn: Flags. (line 129)
  42726. * call, in mem: Flags. (line 70)
  42727. * call-clobbered register: Register Basics. (line 35)
  42728. * call-clobbered register <1>: Register Basics. (line 50)
  42729. * call-clobbered register <2>: Register Basics. (line 58)
  42730. * call-clobbered register <3>: Register Basics. (line 76)
  42731. * call-saved register: Register Basics. (line 35)
  42732. * call-saved register <1>: Register Basics. (line 50)
  42733. * call-saved register <2>: Register Basics. (line 58)
  42734. * call-saved register <3>: Register Basics. (line 76)
  42735. * call-used register: Register Basics. (line 35)
  42736. * call-used register <1>: Register Basics. (line 50)
  42737. * call-used register <2>: Register Basics. (line 58)
  42738. * call-used register <3>: Register Basics. (line 76)
  42739. * calling conventions: Stack and Calling. (line 6)
  42740. * calling functions in RTL: Calls. (line 6)
  42741. * CALL_EXPR: Unary and Binary Expressions.
  42742. (line 6)
  42743. * call_insn: Insns. (line 95)
  42744. * call_insn and /c: Flags. (line 129)
  42745. * call_insn and /f: Flags. (line 135)
  42746. * call_insn and /i: Flags. (line 120)
  42747. * call_insn and /j: Flags. (line 175)
  42748. * call_insn and /s: Flags. (line 38)
  42749. * call_insn and /s <1>: Flags. (line 162)
  42750. * call_insn and /u: Flags. (line 28)
  42751. * call_insn and /u <1>: Flags. (line 115)
  42752. * call_insn and /u or /i: Flags. (line 125)
  42753. * call_insn and /v: Flags. (line 33)
  42754. * CALL_INSN_FUNCTION_USAGE: Insns. (line 101)
  42755. * call_pop instruction pattern: Standard Names. (line 1737)
  42756. * CALL_POPS_ARGS: Stack Arguments. (line 138)
  42757. * CALL_REALLY_USED_REGISTERS: Register Basics. (line 49)
  42758. * CALL_USED_REGISTERS: Register Basics. (line 34)
  42759. * call_used_regs: Register Basics. (line 102)
  42760. * call_value instruction pattern: Standard Names. (line 1729)
  42761. * call_value_pop instruction pattern: Standard Names. (line 1737)
  42762. * canadian: Configure Terms. (line 6)
  42763. * canonicalization of instructions: Insn Canonicalizations.
  42764. (line 6)
  42765. * canonicalize_funcptr_for_compare instruction pattern: Standard Names.
  42766. (line 1888)
  42767. * can_create_pseudo_p: Standard Names. (line 75)
  42768. * can_fallthru: Basic Blocks. (line 67)
  42769. * caret: Multi-Alternative. (line 53)
  42770. * caret <1>: Guidelines for Diagnostics.
  42771. (line 159)
  42772. * casesi instruction pattern: Standard Names. (line 1830)
  42773. * CASE_VECTOR_MODE: Misc. (line 26)
  42774. * CASE_VECTOR_PC_RELATIVE: Misc. (line 39)
  42775. * CASE_VECTOR_SHORTEN_MODE: Misc. (line 30)
  42776. * cbranchMODE4 instruction pattern: Standard Names. (line 1698)
  42777. * cc0: Regs and Memory. (line 329)
  42778. * cc0 <1>: CC0 Condition Codes.
  42779. (line 6)
  42780. * cc0, RTL sharing: Sharing. (line 30)
  42781. * cc0_rtx: Regs and Memory. (line 355)
  42782. * CC1PLUS_SPEC: Driver. (line 63)
  42783. * CC1_SPEC: Driver. (line 55)
  42784. * CCmode: Machine Modes. (line 178)
  42785. * CCmode <1>: MODE_CC Condition Codes.
  42786. (line 6)
  42787. * cc_status: CC0 Condition Codes.
  42788. (line 6)
  42789. * CC_STATUS_MDEP: CC0 Condition Codes.
  42790. (line 16)
  42791. * CC_STATUS_MDEP_INIT: CC0 Condition Codes.
  42792. (line 22)
  42793. * CDImode: Machine Modes. (line 204)
  42794. * ceilM2 instruction pattern: Standard Names. (line 1097)
  42795. * CEIL_DIV_EXPR: Unary and Binary Expressions.
  42796. (line 6)
  42797. * CEIL_MOD_EXPR: Unary and Binary Expressions.
  42798. (line 6)
  42799. * CFA_FRAME_BASE_OFFSET: Frame Layout. (line 239)
  42800. * CFG verification: Maintaining the CFG.
  42801. (line 116)
  42802. * CFG, Control Flow Graph: Control Flow. (line 6)
  42803. * cfghooks.h: Maintaining the CFG.
  42804. (line 6)
  42805. * cgraph_finalize_function: Parsing pass. (line 51)
  42806. * chain_circular: GTY Options. (line 160)
  42807. * chain_next: GTY Options. (line 160)
  42808. * chain_prev: GTY Options. (line 160)
  42809. * change_address: Standard Names. (line 47)
  42810. * CHAR_TYPE_SIZE: Type Layout. (line 38)
  42811. * check_raw_ptrsM instruction pattern: Standard Names. (line 330)
  42812. * check_stack instruction pattern: Standard Names. (line 1974)
  42813. * check_war_ptrsM instruction pattern: Standard Names. (line 349)
  42814. * CHImode: Machine Modes. (line 204)
  42815. * class definitions, register: Register Classes. (line 6)
  42816. * class preference constraints: Class Preferences. (line 6)
  42817. * class, scope: Classes. (line 6)
  42818. * classes of RTX codes: RTL Classes. (line 6)
  42819. * CLASSTYPE_DECLARED_CLASS: Classes. (line 6)
  42820. * CLASSTYPE_HAS_MUTABLE: Classes. (line 82)
  42821. * CLASSTYPE_NON_POD_P: Classes. (line 87)
  42822. * CLASS_MAX_NREGS: Register Classes. (line 531)
  42823. * CLASS_TYPE_P: Types for C++. (line 63)
  42824. * Cleanups: Cleanups. (line 6)
  42825. * CLEANUP_DECL: Statements for C++. (line 6)
  42826. * CLEANUP_EXPR: Statements for C++. (line 6)
  42827. * CLEANUP_POINT_EXPR: Unary and Binary Expressions.
  42828. (line 6)
  42829. * CLEANUP_STMT: Statements for C++. (line 6)
  42830. * clear_cache instruction pattern: Standard Names. (line 2543)
  42831. * CLEAR_INSN_CACHE: Trampolines. (line 151)
  42832. * CLEAR_RATIO: Costs. (line 225)
  42833. * clobber: Side Effects. (line 106)
  42834. * clrsb: Arithmetic. (line 215)
  42835. * clrsbM2 instruction pattern: Standard Names. (line 1170)
  42836. * clz: Arithmetic. (line 222)
  42837. * clzM2 instruction pattern: Standard Names. (line 1186)
  42838. * CLZ_DEFINED_VALUE_AT_ZERO: Misc. (line 338)
  42839. * cmpmemM instruction pattern: Standard Names. (line 1389)
  42840. * cmpstrM instruction pattern: Standard Names. (line 1368)
  42841. * cmpstrnM instruction pattern: Standard Names. (line 1355)
  42842. * code generation RTL sequences: Expander Definitions.
  42843. (line 6)
  42844. * code iterators in .md files: Code Iterators. (line 6)
  42845. * codes, RTL expression: RTL Objects. (line 47)
  42846. * code_label: Insns. (line 125)
  42847. * CODE_LABEL: Basic Blocks. (line 50)
  42848. * code_label and /i: Flags. (line 48)
  42849. * code_label and /v: Flags. (line 33)
  42850. * CODE_LABEL_NUMBER: Insns. (line 125)
  42851. * COImode: Machine Modes. (line 204)
  42852. * COLLECT2_HOST_INITIALIZATION: Host Misc. (line 32)
  42853. * COLLECT_EXPORT_LIST: Misc. (line 864)
  42854. * COLLECT_SHARED_FINI_FUNC: Macros for Initialization.
  42855. (line 43)
  42856. * COLLECT_SHARED_INIT_FUNC: Macros for Initialization.
  42857. (line 32)
  42858. * command-line options, guidelines for: Guidelines for Options.
  42859. (line 6)
  42860. * commit_edge_insertions: Maintaining the CFG.
  42861. (line 104)
  42862. * compare: Arithmetic. (line 46)
  42863. * compare, canonicalization of: Insn Canonicalizations.
  42864. (line 36)
  42865. * COMPARE_MAX_PIECES: Costs. (line 220)
  42866. * comparison_operator: Machine-Independent Predicates.
  42867. (line 110)
  42868. * compiler passes and files: Passes. (line 6)
  42869. * complement, bitwise: Arithmetic. (line 154)
  42870. * COMPLEX_CST: Constant expressions.
  42871. (line 6)
  42872. * COMPLEX_EXPR: Unary and Binary Expressions.
  42873. (line 6)
  42874. * complex_mode: Machine Modes. (line 302)
  42875. * COMPLEX_TYPE: Types. (line 6)
  42876. * COMPONENT_REF: Storage References. (line 6)
  42877. * Compound Expressions: Compound Expressions.
  42878. (line 6)
  42879. * Compound Lvalues: Compound Lvalues. (line 6)
  42880. * COMPOUND_EXPR: Unary and Binary Expressions.
  42881. (line 6)
  42882. * COMPOUND_LITERAL_EXPR: Unary and Binary Expressions.
  42883. (line 6)
  42884. * COMPOUND_LITERAL_EXPR_DECL: Unary and Binary Expressions.
  42885. (line 392)
  42886. * COMPOUND_LITERAL_EXPR_DECL_EXPR: Unary and Binary Expressions.
  42887. (line 392)
  42888. * computed jump: Edges. (line 127)
  42889. * computing the length of an insn: Insn Lengths. (line 6)
  42890. * concat: Regs and Memory. (line 407)
  42891. * concatn: Regs and Memory. (line 413)
  42892. * cond: Comparisons. (line 90)
  42893. * cond and attributes: Expressions. (line 37)
  42894. * condition code register: Regs and Memory. (line 329)
  42895. * condition code status: Condition Code. (line 6)
  42896. * condition codes: Comparisons. (line 20)
  42897. * conditional execution: Conditional Execution.
  42898. (line 6)
  42899. * Conditional Expressions: Conditional Expressions.
  42900. (line 6)
  42901. * conditions, in patterns: Patterns. (line 55)
  42902. * cond_addMODE instruction pattern: Standard Names. (line 1596)
  42903. * cond_andMODE instruction pattern: Standard Names. (line 1596)
  42904. * cond_divMODE instruction pattern: Standard Names. (line 1596)
  42905. * cond_exec: Side Effects. (line 254)
  42906. * COND_EXPR: Unary and Binary Expressions.
  42907. (line 6)
  42908. * cond_fmaMODE instruction pattern: Standard Names. (line 1634)
  42909. * cond_fmsMODE instruction pattern: Standard Names. (line 1634)
  42910. * cond_fnmaMODE instruction pattern: Standard Names. (line 1634)
  42911. * cond_fnmsMODE instruction pattern: Standard Names. (line 1634)
  42912. * cond_iorMODE instruction pattern: Standard Names. (line 1596)
  42913. * cond_modMODE instruction pattern: Standard Names. (line 1596)
  42914. * cond_mulMODE instruction pattern: Standard Names. (line 1596)
  42915. * cond_smaxMODE instruction pattern: Standard Names. (line 1596)
  42916. * cond_sminMODE instruction pattern: Standard Names. (line 1596)
  42917. * cond_subMODE instruction pattern: Standard Names. (line 1596)
  42918. * cond_udivMODE instruction pattern: Standard Names. (line 1596)
  42919. * cond_umaxMODE instruction pattern: Standard Names. (line 1596)
  42920. * cond_uminMODE instruction pattern: Standard Names. (line 1596)
  42921. * cond_umodMODE instruction pattern: Standard Names. (line 1596)
  42922. * cond_xorMODE instruction pattern: Standard Names. (line 1596)
  42923. * configuration file: Filesystem. (line 6)
  42924. * configuration file <1>: Host Misc. (line 6)
  42925. * configure terms: Configure Terms. (line 6)
  42926. * CONJ_EXPR: Unary and Binary Expressions.
  42927. (line 6)
  42928. * const: Constants. (line 212)
  42929. * const0_rtx: Constants. (line 21)
  42930. * CONST0_RTX: Constants. (line 230)
  42931. * const1_rtx: Constants. (line 21)
  42932. * CONST1_RTX: Constants. (line 230)
  42933. * const2_rtx: Constants. (line 21)
  42934. * CONST2_RTX: Constants. (line 230)
  42935. * constant attributes: Constant Attributes.
  42936. (line 6)
  42937. * constant definitions: Constant Definitions.
  42938. (line 6)
  42939. * constants in constraints: Simple Constraints. (line 68)
  42940. * CONSTANT_ADDRESS_P: Addressing Modes. (line 28)
  42941. * CONSTANT_P: Addressing Modes. (line 35)
  42942. * CONSTANT_POOL_ADDRESS_P: Flags. (line 19)
  42943. * CONSTANT_POOL_BEFORE_FUNCTION: Data Output. (line 74)
  42944. * constm1_rtx: Constants. (line 21)
  42945. * constraint modifier characters: Modifiers. (line 6)
  42946. * constraint, matching: Simple Constraints. (line 140)
  42947. * constraints: Constraints. (line 6)
  42948. * constraints, defining: Define Constraints. (line 6)
  42949. * constraints, machine specific: Machine Constraints.
  42950. (line 6)
  42951. * constraints, testing: C Constraint Interface.
  42952. (line 6)
  42953. * constraint_num: C Constraint Interface.
  42954. (line 30)
  42955. * constraint_satisfied_p: C Constraint Interface.
  42956. (line 42)
  42957. * CONSTRUCTOR: Unary and Binary Expressions.
  42958. (line 6)
  42959. * constructors, automatic calls: Collect2. (line 15)
  42960. * constructors, output of: Initialization. (line 6)
  42961. * CONST_DECL: Declarations. (line 6)
  42962. * const_double: Constants. (line 37)
  42963. * const_double, RTL sharing: Sharing. (line 32)
  42964. * CONST_DOUBLE_LOW: Constants. (line 54)
  42965. * const_double_operand: Machine-Independent Predicates.
  42966. (line 20)
  42967. * const_fixed: Constants. (line 93)
  42968. * const_int: Constants. (line 8)
  42969. * const_int and attribute tests: Expressions. (line 47)
  42970. * const_int and attributes: Expressions. (line 10)
  42971. * const_int, RTL sharing: Sharing. (line 23)
  42972. * const_int_operand: Machine-Independent Predicates.
  42973. (line 15)
  42974. * const_poly_int: Constants. (line 100)
  42975. * const_poly_int, RTL sharing: Sharing. (line 25)
  42976. * const_string: Constants. (line 184)
  42977. * const_string and attributes: Expressions. (line 20)
  42978. * const_true_rtx: Constants. (line 31)
  42979. * const_vector: Constants. (line 107)
  42980. * const_vector, RTL sharing: Sharing. (line 35)
  42981. * CONST_WIDE_INT: Constants. (line 67)
  42982. * CONST_WIDE_INT_ELT: Constants. (line 89)
  42983. * CONST_WIDE_INT_NUNITS: Constants. (line 84)
  42984. * CONST_WIDE_INT_VEC: Constants. (line 80)
  42985. * container: Containers. (line 6)
  42986. * CONTINUE_STMT: Statements for C++. (line 6)
  42987. * contributors: Contributors. (line 6)
  42988. * controlling register usage: Register Basics. (line 116)
  42989. * controlling the compilation driver: Driver. (line 6)
  42990. * conventions, run-time: Interface. (line 6)
  42991. * conversions: Conversions. (line 6)
  42992. * CONVERT_EXPR: Unary and Binary Expressions.
  42993. (line 6)
  42994. * copysignM3 instruction pattern: Standard Names. (line 1142)
  42995. * copy_rtx: Addressing Modes. (line 189)
  42996. * copy_rtx_if_shared: Sharing. (line 67)
  42997. * cosM2 instruction pattern: Standard Names. (line 931)
  42998. * costs of instructions: Costs. (line 6)
  42999. * CPLUSPLUS_CPP_SPEC: Driver. (line 50)
  43000. * CPP_SPEC: Driver. (line 43)
  43001. * CPSImode: Machine Modes. (line 204)
  43002. * cpymemM instruction pattern: Standard Names. (line 1244)
  43003. * CP_INTEGRAL_TYPE: Types for C++. (line 55)
  43004. * cp_namespace_decls: Namespaces. (line 49)
  43005. * CP_TYPE_CONST_NON_VOLATILE_P: Types for C++. (line 33)
  43006. * CP_TYPE_CONST_P: Types for C++. (line 24)
  43007. * cp_type_quals: Types for C++. (line 6)
  43008. * cp_type_quals <1>: Types for C++. (line 16)
  43009. * CP_TYPE_RESTRICT_P: Types for C++. (line 30)
  43010. * CP_TYPE_VOLATILE_P: Types for C++. (line 27)
  43011. * CQImode: Machine Modes. (line 204)
  43012. * cross compilation and floating point: Floating Point. (line 6)
  43013. * CROSSING_JUMP_P: Flags. (line 10)
  43014. * crtl->args.pops_args: Function Entry. (line 111)
  43015. * crtl->args.pretend_args_size: Function Entry. (line 117)
  43016. * crtl->outgoing_args_size: Stack Arguments. (line 48)
  43017. * CRTSTUFF_T_CFLAGS: Target Fragment. (line 15)
  43018. * CRTSTUFF_T_CFLAGS_S: Target Fragment. (line 19)
  43019. * CRT_CALL_STATIC_FUNCTION: Sections. (line 125)
  43020. * CSImode: Machine Modes. (line 204)
  43021. * cstoreMODE4 instruction pattern: Standard Names. (line 1659)
  43022. * CTImode: Machine Modes. (line 204)
  43023. * ctrapMM4 instruction pattern: Standard Names. (line 2125)
  43024. * ctz: Arithmetic. (line 230)
  43025. * ctzM2 instruction pattern: Standard Names. (line 1201)
  43026. * CTZ_DEFINED_VALUE_AT_ZERO: Misc. (line 339)
  43027. * CUMULATIVE_ARGS: Register Arguments. (line 137)
  43028. * current_function_is_leaf: Leaf Functions. (line 50)
  43029. * current_function_uses_only_leaf_regs: Leaf Functions. (line 50)
  43030. * current_insn_predicate: Conditional Execution.
  43031. (line 27)
  43032. * C_COMMON_OVERRIDE_OPTIONS: Run-time Target. (line 136)
  43033. * c_register_pragma: Misc. (line 440)
  43034. * c_register_pragma_with_expansion: Misc. (line 442)
  43035. * DAmode: Machine Modes. (line 154)
  43036. * data bypass: Processor pipeline description.
  43037. (line 105)
  43038. * data bypass <1>: Processor pipeline description.
  43039. (line 196)
  43040. * data dependence delays: Processor pipeline description.
  43041. (line 6)
  43042. * Data Dependency Analysis: Dependency analysis.
  43043. (line 6)
  43044. * data structures: Per-Function Data. (line 6)
  43045. * DATA_ABI_ALIGNMENT: Storage Layout. (line 263)
  43046. * DATA_ALIGNMENT: Storage Layout. (line 250)
  43047. * DATA_SECTION_ASM_OP: Sections. (line 52)
  43048. * DBR_OUTPUT_SEQEND: Instruction Output. (line 133)
  43049. * dbr_sequence_length: Instruction Output. (line 133)
  43050. * DBX_BLOCKS_FUNCTION_RELATIVE: DBX Options. (line 100)
  43051. * DBX_CONTIN_CHAR: DBX Options. (line 63)
  43052. * DBX_CONTIN_LENGTH: DBX Options. (line 53)
  43053. * DBX_DEBUGGING_INFO: DBX Options. (line 8)
  43054. * DBX_FUNCTION_FIRST: DBX Options. (line 94)
  43055. * DBX_LINES_FUNCTION_RELATIVE: DBX Options. (line 106)
  43056. * DBX_NO_XREFS: DBX Options. (line 47)
  43057. * DBX_OUTPUT_MAIN_SOURCE_FILENAME: File Names and DBX. (line 8)
  43058. * DBX_OUTPUT_MAIN_SOURCE_FILE_END: File Names and DBX. (line 33)
  43059. * DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END: File Names and DBX.
  43060. (line 41)
  43061. * DBX_OUTPUT_SOURCE_LINE: DBX Hooks. (line 8)
  43062. * DBX_REGISTER_NUMBER: All Debuggers. (line 8)
  43063. * DBX_REGPARM_STABS_CODE: DBX Options. (line 84)
  43064. * DBX_REGPARM_STABS_LETTER: DBX Options. (line 89)
  43065. * DBX_STATIC_CONST_VAR_CODE: DBX Options. (line 79)
  43066. * DBX_STATIC_STAB_DATA_SECTION: DBX Options. (line 70)
  43067. * DBX_TYPE_DECL_STABS_CODE: DBX Options. (line 75)
  43068. * DBX_USE_BINCL: DBX Options. (line 112)
  43069. * DCmode: Machine Modes. (line 199)
  43070. * DDmode: Machine Modes. (line 93)
  43071. * De Morgan's law: Insn Canonicalizations.
  43072. (line 67)
  43073. * dead_or_set_p: define_peephole. (line 65)
  43074. * DEBUGGER_ARG_OFFSET: All Debuggers. (line 35)
  43075. * DEBUGGER_AUTO_OFFSET: All Debuggers. (line 27)
  43076. * debug_expr: Debug Information. (line 22)
  43077. * DEBUG_EXPR_DECL: Declarations. (line 6)
  43078. * debug_implicit_ptr: Debug Information. (line 27)
  43079. * debug_insn: Insns. (line 247)
  43080. * debug_marker: Debug Information. (line 37)
  43081. * debug_parameter_ref: Debug Information. (line 34)
  43082. * DEBUG_SYMS_TEXT: DBX Options. (line 24)
  43083. * decimal float library: Decimal float library routines.
  43084. (line 6)
  43085. * declaration: Declarations. (line 6)
  43086. * declarations, RTL: RTL Declarations. (line 6)
  43087. * DECLARE_LIBRARY_RENAMES: Library Calls. (line 8)
  43088. * DECL_ALIGN: Declarations. (line 6)
  43089. * DECL_ANTICIPATED: Functions for C++. (line 42)
  43090. * DECL_ARGUMENTS: Function Basics. (line 36)
  43091. * DECL_ARRAY_DELETE_OPERATOR_P: Functions for C++. (line 158)
  43092. * DECL_ARTIFICIAL: Working with declarations.
  43093. (line 24)
  43094. * DECL_ARTIFICIAL <1>: Function Basics. (line 6)
  43095. * DECL_ARTIFICIAL <2>: Function Properties.
  43096. (line 47)
  43097. * DECL_ASSEMBLER_NAME: Function Basics. (line 6)
  43098. * DECL_ASSEMBLER_NAME <1>: Function Basics. (line 19)
  43099. * DECL_ATTRIBUTES: Attributes. (line 21)
  43100. * DECL_BASE_CONSTRUCTOR_P: Functions for C++. (line 88)
  43101. * DECL_COMPLETE_CONSTRUCTOR_P: Functions for C++. (line 84)
  43102. * DECL_COMPLETE_DESTRUCTOR_P: Functions for C++. (line 98)
  43103. * DECL_CONSTRUCTOR_P: Functions for C++. (line 77)
  43104. * DECL_CONST_MEMFUNC_P: Functions for C++. (line 71)
  43105. * DECL_CONTEXT: Namespaces. (line 31)
  43106. * DECL_CONV_FN_P: Functions for C++. (line 105)
  43107. * DECL_COPY_CONSTRUCTOR_P: Functions for C++. (line 92)
  43108. * DECL_DESTRUCTOR_P: Functions for C++. (line 95)
  43109. * DECL_EXTERNAL: Declarations. (line 6)
  43110. * DECL_EXTERNAL <1>: Function Properties.
  43111. (line 25)
  43112. * DECL_EXTERN_C_FUNCTION_P: Functions for C++. (line 46)
  43113. * DECL_FUNCTION_MEMBER_P: Functions for C++. (line 61)
  43114. * DECL_FUNCTION_SPECIFIC_OPTIMIZATION: Function Basics. (line 6)
  43115. * DECL_FUNCTION_SPECIFIC_OPTIMIZATION <1>: Function Properties.
  43116. (line 61)
  43117. * DECL_FUNCTION_SPECIFIC_TARGET: Function Basics. (line 6)
  43118. * DECL_FUNCTION_SPECIFIC_TARGET <1>: Function Properties.
  43119. (line 55)
  43120. * DECL_GLOBAL_CTOR_P: Functions for C++. (line 108)
  43121. * DECL_GLOBAL_DTOR_P: Functions for C++. (line 112)
  43122. * DECL_INITIAL: Declarations. (line 6)
  43123. * DECL_INITIAL <1>: Function Basics. (line 51)
  43124. * DECL_LINKONCE_P: Functions for C++. (line 50)
  43125. * DECL_LOCAL_FUNCTION_P: Functions for C++. (line 38)
  43126. * DECL_MAIN_P: Functions for C++. (line 34)
  43127. * DECL_NAME: Working with declarations.
  43128. (line 7)
  43129. * DECL_NAME <1>: Function Basics. (line 6)
  43130. * DECL_NAME <2>: Function Basics. (line 9)
  43131. * DECL_NAME <3>: Namespaces. (line 20)
  43132. * DECL_NAMESPACE_ALIAS: Namespaces. (line 35)
  43133. * DECL_NAMESPACE_STD_P: Namespaces. (line 45)
  43134. * DECL_NONCONVERTING_P: Functions for C++. (line 80)
  43135. * DECL_NONSTATIC_MEMBER_FUNCTION_P: Functions for C++. (line 68)
  43136. * DECL_NON_THUNK_FUNCTION_P: Functions for C++. (line 138)
  43137. * DECL_OVERLOADED_OPERATOR_P: Functions for C++. (line 102)
  43138. * DECL_PURE_P: Function Properties.
  43139. (line 40)
  43140. * DECL_RESULT: Function Basics. (line 41)
  43141. * DECL_SAVED_TREE: Function Basics. (line 44)
  43142. * DECL_SIZE: Declarations. (line 6)
  43143. * DECL_STATIC_FUNCTION_P: Functions for C++. (line 65)
  43144. * DECL_STMT: Statements for C++. (line 6)
  43145. * DECL_STMT_DECL: Statements for C++. (line 6)
  43146. * DECL_THUNK_P: Functions for C++. (line 116)
  43147. * DECL_VIRTUAL_P: Function Properties.
  43148. (line 44)
  43149. * DECL_VOLATILE_MEMFUNC_P: Functions for C++. (line 74)
  43150. * default: GTY Options. (line 90)
  43151. * default_file_start: File Framework. (line 8)
  43152. * DEFAULT_GDB_EXTENSIONS: DBX Options. (line 17)
  43153. * DEFAULT_INCOMING_FRAME_SP_OFFSET: Frame Layout. (line 199)
  43154. * DEFAULT_PCC_STRUCT_RETURN: Aggregate Return. (line 34)
  43155. * DEFAULT_SIGNED_CHAR: Type Layout. (line 117)
  43156. * define_address_constraint: Define Constraints. (line 113)
  43157. * define_asm_attributes: Tagging Insns. (line 73)
  43158. * define_attr: Defining Attributes.
  43159. (line 6)
  43160. * define_automaton: Processor pipeline description.
  43161. (line 53)
  43162. * define_bypass: Processor pipeline description.
  43163. (line 196)
  43164. * define_code_attr: Code Iterators. (line 6)
  43165. * define_code_iterator: Code Iterators. (line 6)
  43166. * define_cond_exec: Conditional Execution.
  43167. (line 13)
  43168. * define_constants: Constant Definitions.
  43169. (line 6)
  43170. * define_constraint: Define Constraints. (line 45)
  43171. * define_cpu_unit: Processor pipeline description.
  43172. (line 68)
  43173. * define_c_enum: Constant Definitions.
  43174. (line 49)
  43175. * define_delay: Delay Slots. (line 25)
  43176. * define_enum: Constant Definitions.
  43177. (line 118)
  43178. * define_enum_attr: Defining Attributes.
  43179. (line 83)
  43180. * define_enum_attr <1>: Constant Definitions.
  43181. (line 136)
  43182. * define_expand: Expander Definitions.
  43183. (line 11)
  43184. * define_insn: Patterns. (line 6)
  43185. * define_insn example: Example. (line 6)
  43186. * define_insn_and_rewrite: Insn Splitting. (line 236)
  43187. * define_insn_and_split: Insn Splitting. (line 190)
  43188. * define_insn_reservation: Processor pipeline description.
  43189. (line 105)
  43190. * define_int_attr: Int Iterators. (line 6)
  43191. * define_int_iterator: Int Iterators. (line 6)
  43192. * define_memory_constraint: Define Constraints. (line 80)
  43193. * define_mode_attr: Substitutions. (line 6)
  43194. * define_mode_iterator: Defining Mode Iterators.
  43195. (line 6)
  43196. * define_peephole: define_peephole. (line 6)
  43197. * define_peephole2: define_peephole2. (line 6)
  43198. * define_predicate: Defining Predicates.
  43199. (line 6)
  43200. * define_query_cpu_unit: Processor pipeline description.
  43201. (line 90)
  43202. * define_register_constraint: Define Constraints. (line 26)
  43203. * define_reservation: Processor pipeline description.
  43204. (line 185)
  43205. * define_special_memory_constraint: Define Constraints. (line 99)
  43206. * define_special_predicate: Defining Predicates.
  43207. (line 6)
  43208. * define_split: Insn Splitting. (line 32)
  43209. * define_subst: Define Subst. (line 6)
  43210. * define_subst <1>: Define Subst Example.
  43211. (line 6)
  43212. * define_subst <2>: Define Subst Pattern Matching.
  43213. (line 6)
  43214. * define_subst <3>: Define Subst Output Template.
  43215. (line 6)
  43216. * define_subst <4>: Define Subst. (line 14)
  43217. * define_subst <5>: Subst Iterators. (line 6)
  43218. * define_subst_attr: Subst Iterators. (line 6)
  43219. * define_subst_attr <1>: Subst Iterators. (line 26)
  43220. * defining attributes and their values: Defining Attributes.
  43221. (line 6)
  43222. * defining constraints: Define Constraints. (line 6)
  43223. * defining jump instruction patterns: Jump Patterns. (line 6)
  43224. * defining looping instruction patterns: Looping Patterns. (line 6)
  43225. * defining peephole optimizers: Peephole Definitions.
  43226. (line 6)
  43227. * defining predicates: Defining Predicates.
  43228. (line 6)
  43229. * defining RTL sequences for code generation: Expander Definitions.
  43230. (line 6)
  43231. * delay slots, defining: Delay Slots. (line 6)
  43232. * deletable: GTY Options. (line 134)
  43233. * DELETE_IF_ORDINARY: Filesystem. (line 79)
  43234. * Dependent Patterns: Dependent Patterns. (line 6)
  43235. * desc: GTY Options. (line 90)
  43236. * descriptors for nested functions: Trampolines. (line 6)
  43237. * destructors, output of: Initialization. (line 6)
  43238. * deterministic finite state automaton: Processor pipeline description.
  43239. (line 6)
  43240. * deterministic finite state automaton <1>: Processor pipeline description.
  43241. (line 304)
  43242. * DFmode: Machine Modes. (line 76)
  43243. * diagnostics guidelines, fix-it hints: Guidelines for Diagnostics.
  43244. (line 320)
  43245. * diagnostics, actionable: Guidelines for Diagnostics.
  43246. (line 15)
  43247. * diagnostics, false positive: Guidelines for Diagnostics.
  43248. (line 39)
  43249. * diagnostics, guidelines for: Guidelines for Diagnostics.
  43250. (line 5)
  43251. * diagnostics, locations: Guidelines for Diagnostics.
  43252. (line 159)
  43253. * diagnostics, true positive: Guidelines for Diagnostics.
  43254. (line 39)
  43255. * digits in constraint: Simple Constraints. (line 128)
  43256. * DImode: Machine Modes. (line 45)
  43257. * directory options .md: Including Patterns. (line 47)
  43258. * DIR_SEPARATOR: Filesystem. (line 18)
  43259. * DIR_SEPARATOR_2: Filesystem. (line 19)
  43260. * disabling certain registers: Register Basics. (line 116)
  43261. * dispatch table: Dispatch Tables. (line 8)
  43262. * div: Arithmetic. (line 116)
  43263. * div and attributes: Expressions. (line 83)
  43264. * division: Arithmetic. (line 116)
  43265. * division <1>: Arithmetic. (line 130)
  43266. * division <2>: Arithmetic. (line 136)
  43267. * divM3 instruction pattern: Standard Names. (line 442)
  43268. * divmodM4 instruction pattern: Standard Names. (line 808)
  43269. * dollar sign: Multi-Alternative. (line 57)
  43270. * DOLLARS_IN_IDENTIFIERS: Misc. (line 485)
  43271. * doloop_begin instruction pattern: Standard Names. (line 1879)
  43272. * doloop_end instruction pattern: Standard Names. (line 1867)
  43273. * DONE: Expander Definitions.
  43274. (line 77)
  43275. * DONE <1>: Insn Splitting. (line 61)
  43276. * DONE <2>: define_peephole2. (line 76)
  43277. * DONT_USE_BUILTIN_SETJMP: Exception Region Output.
  43278. (line 78)
  43279. * DOUBLE_TYPE_SIZE: Type Layout. (line 52)
  43280. * DO_BODY: Statements for C++. (line 6)
  43281. * DO_COND: Statements for C++. (line 6)
  43282. * DO_STMT: Statements for C++. (line 6)
  43283. * DQmode: Machine Modes. (line 118)
  43284. * driver: Driver. (line 6)
  43285. * DRIVER_SELF_SPECS: Driver. (line 8)
  43286. * dump examples: Dump examples. (line 6)
  43287. * dump setup: Dump setup. (line 6)
  43288. * dump types: Dump types. (line 6)
  43289. * dump verbosity: Dump output verbosity.
  43290. (line 6)
  43291. * DUMPFILE_FORMAT: Filesystem. (line 67)
  43292. * dump_basic_block: Dump types. (line 29)
  43293. * dump_generic_expr: Dump types. (line 31)
  43294. * dump_gimple_stmt: Dump types. (line 33)
  43295. * dump_printf: Dump types. (line 6)
  43296. * DWARF2_ASM_LINE_DEBUG_INFO: DWARF. (line 45)
  43297. * DWARF2_ASM_VIEW_DEBUG_INFO: DWARF. (line 51)
  43298. * DWARF2_DEBUGGING_INFO: DWARF. (line 8)
  43299. * DWARF2_FRAME_INFO: DWARF. (line 25)
  43300. * DWARF2_FRAME_REG_OUT: Frame Registers. (line 149)
  43301. * DWARF2_UNWIND_INFO: Exception Region Output.
  43302. (line 39)
  43303. * DWARF_ALT_FRAME_RETURN_COLUMN: Frame Layout. (line 146)
  43304. * DWARF_CIE_DATA_ALIGNMENT: Exception Region Output.
  43305. (line 90)
  43306. * DWARF_FRAME_REGISTERS: Frame Registers. (line 109)
  43307. * DWARF_FRAME_REGNUM: Frame Registers. (line 141)
  43308. * DWARF_LAZY_REGISTER_VALUE: Frame Registers. (line 170)
  43309. * DWARF_REG_TO_UNWIND_COLUMN: Frame Registers. (line 134)
  43310. * DWARF_ZERO_REG: Frame Layout. (line 157)
  43311. * DYNAMIC_CHAIN_ADDRESS: Frame Layout. (line 84)
  43312. * E in constraint: Simple Constraints. (line 87)
  43313. * earlyclobber operand: Modifiers. (line 25)
  43314. * edge: Edges. (line 6)
  43315. * edge in the flow graph: Edges. (line 6)
  43316. * edge iterators: Edges. (line 15)
  43317. * edge splitting: Maintaining the CFG.
  43318. (line 104)
  43319. * EDGE_ABNORMAL: Edges. (line 127)
  43320. * EDGE_ABNORMAL, EDGE_ABNORMAL_CALL: Edges. (line 171)
  43321. * EDGE_ABNORMAL, EDGE_EH: Edges. (line 95)
  43322. * EDGE_ABNORMAL, EDGE_SIBCALL: Edges. (line 121)
  43323. * EDGE_FALLTHRU, force_nonfallthru: Edges. (line 85)
  43324. * EDOM, implicit usage: Library Calls. (line 59)
  43325. * EH_FRAME_SECTION_NAME: Exception Region Output.
  43326. (line 9)
  43327. * EH_FRAME_THROUGH_COLLECT2: Exception Region Output.
  43328. (line 19)
  43329. * eh_return instruction pattern: Standard Names. (line 2060)
  43330. * EH_RETURN_DATA_REGNO: Exception Handling. (line 6)
  43331. * EH_RETURN_HANDLER_RTX: Exception Handling. (line 38)
  43332. * EH_RETURN_STACKADJ_RTX: Exception Handling. (line 21)
  43333. * EH_TABLES_CAN_BE_READ_ONLY: Exception Region Output.
  43334. (line 29)
  43335. * EH_USES: Function Entry. (line 162)
  43336. * ei_edge: Edges. (line 43)
  43337. * ei_end_p: Edges. (line 27)
  43338. * ei_last: Edges. (line 23)
  43339. * ei_next: Edges. (line 35)
  43340. * ei_one_before_end_p: Edges. (line 31)
  43341. * ei_prev: Edges. (line 39)
  43342. * ei_safe_safe: Edges. (line 47)
  43343. * ei_start: Edges. (line 19)
  43344. * ELIMINABLE_REGS: Elimination. (line 34)
  43345. * ELSE_CLAUSE: Statements for C++. (line 6)
  43346. * Embedded C: Fixed-point fractional library routines.
  43347. (line 6)
  43348. * Empty Statements: Empty Statements. (line 6)
  43349. * EMPTY_CLASS_EXPR: Statements for C++. (line 6)
  43350. * EMPTY_FIELD_BOUNDARY: Storage Layout. (line 341)
  43351. * Emulated TLS: Emulated TLS. (line 6)
  43352. * enabled: Disable Insn Alternatives.
  43353. (line 6)
  43354. * ENDFILE_SPEC: Driver. (line 155)
  43355. * endianness: Portability. (line 20)
  43356. * ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR: Basic Blocks. (line 10)
  43357. * entry_value: Debug Information. (line 30)
  43358. * enum reg_class: Register Classes. (line 70)
  43359. * ENUMERAL_TYPE: Types. (line 6)
  43360. * enumerations: Constant Definitions.
  43361. (line 49)
  43362. * epilogue: Function Entry. (line 6)
  43363. * epilogue instruction pattern: Standard Names. (line 2098)
  43364. * EPILOGUE_USES: Function Entry. (line 156)
  43365. * eq: Comparisons. (line 52)
  43366. * eq and attributes: Expressions. (line 83)
  43367. * equal: Comparisons. (line 52)
  43368. * eq_attr: Expressions. (line 104)
  43369. * EQ_EXPR: Unary and Binary Expressions.
  43370. (line 6)
  43371. * errno, implicit usage: Library Calls. (line 71)
  43372. * EXACT_DIV_EXPR: Unary and Binary Expressions.
  43373. (line 6)
  43374. * examining SSA_NAMEs: SSA. (line 182)
  43375. * exception handling: Edges. (line 95)
  43376. * exception handling <1>: Exception Handling. (line 6)
  43377. * exception_receiver instruction pattern: Standard Names. (line 2025)
  43378. * exclamation point: Multi-Alternative. (line 48)
  43379. * exclusion_set: Processor pipeline description.
  43380. (line 223)
  43381. * exclusive-or, bitwise: Arithmetic. (line 168)
  43382. * EXIT_EXPR: Unary and Binary Expressions.
  43383. (line 6)
  43384. * EXIT_IGNORE_STACK: Function Entry. (line 144)
  43385. * exp10M2 instruction pattern: Standard Names. (line 995)
  43386. * exp2M2 instruction pattern: Standard Names. (line 1002)
  43387. * expander definitions: Expander Definitions.
  43388. (line 6)
  43389. * expm1M2 instruction pattern: Standard Names. (line 985)
  43390. * expM2 instruction pattern: Standard Names. (line 978)
  43391. * expression: Expression trees. (line 6)
  43392. * expression codes: RTL Objects. (line 47)
  43393. * EXPR_FILENAME: Working with declarations.
  43394. (line 14)
  43395. * EXPR_LINENO: Working with declarations.
  43396. (line 20)
  43397. * expr_list: Insns. (line 568)
  43398. * EXPR_STMT: Statements for C++. (line 6)
  43399. * EXPR_STMT_EXPR: Statements for C++. (line 6)
  43400. * extendMN2 instruction pattern: Standard Names. (line 1447)
  43401. * extensible constraints: Simple Constraints. (line 171)
  43402. * extract_last_M instruction pattern: Standard Names. (line 543)
  43403. * EXTRA_SPECS: Driver. (line 182)
  43404. * extv instruction pattern: Standard Names. (line 1538)
  43405. * extvM instruction pattern: Standard Names. (line 1483)
  43406. * extvmisalignM instruction pattern: Standard Names. (line 1493)
  43407. * extzv instruction pattern: Standard Names. (line 1556)
  43408. * extzvM instruction pattern: Standard Names. (line 1507)
  43409. * extzvmisalignM instruction pattern: Standard Names. (line 1510)
  43410. * F in constraint: Simple Constraints. (line 92)
  43411. * FAIL: Expander Definitions.
  43412. (line 83)
  43413. * FAIL <1>: Insn Splitting. (line 68)
  43414. * FAIL <2>: define_peephole2. (line 83)
  43415. * fall-thru: Edges. (line 68)
  43416. * false positive: Guidelines for Diagnostics.
  43417. (line 39)
  43418. * FATAL_EXIT_CODE: Host Misc. (line 6)
  43419. * FDL, GNU Free Documentation License: GNU Free Documentation License.
  43420. (line 6)
  43421. * features, optional, in system conventions: Run-time Target.
  43422. (line 59)
  43423. * ffs: Arithmetic. (line 210)
  43424. * ffsM2 instruction pattern: Standard Names. (line 1157)
  43425. * FIELD_DECL: Declarations. (line 6)
  43426. * files and passes of the compiler: Passes. (line 6)
  43427. * files, generated: Files. (line 6)
  43428. * file_end_indicate_exec_stack: File Framework. (line 39)
  43429. * final_absence_set: Processor pipeline description.
  43430. (line 223)
  43431. * FINAL_PRESCAN_INSN: Instruction Output. (line 60)
  43432. * final_presence_set: Processor pipeline description.
  43433. (line 223)
  43434. * final_sequence: Instruction Output. (line 144)
  43435. * FIND_BASE_TERM: Addressing Modes. (line 117)
  43436. * finite state automaton minimization: Processor pipeline description.
  43437. (line 304)
  43438. * FINI_ARRAY_SECTION_ASM_OP: Sections. (line 113)
  43439. * FINI_SECTION_ASM_OP: Sections. (line 98)
  43440. * FIRST_PARM_OFFSET: Frame Layout. (line 59)
  43441. * FIRST_PARM_OFFSET and virtual registers: Regs and Memory. (line 65)
  43442. * FIRST_PSEUDO_REGISTER: Register Basics. (line 8)
  43443. * FIRST_STACK_REG: Stack Registers. (line 26)
  43444. * FIRST_VIRTUAL_REGISTER: Regs and Memory. (line 51)
  43445. * fix: Conversions. (line 66)
  43446. * fix-it hints: Guidelines for Diagnostics.
  43447. (line 320)
  43448. * fixed register: Register Basics. (line 15)
  43449. * fixed-point fractional library: Fixed-point fractional library routines.
  43450. (line 6)
  43451. * FIXED_CONVERT_EXPR: Unary and Binary Expressions.
  43452. (line 6)
  43453. * FIXED_CST: Constant expressions.
  43454. (line 6)
  43455. * FIXED_POINT_TYPE: Types. (line 6)
  43456. * FIXED_REGISTERS: Register Basics. (line 14)
  43457. * fixed_regs: Register Basics. (line 102)
  43458. * fixed_size_mode: Machine Modes. (line 305)
  43459. * fixMN2 instruction pattern: Standard Names. (line 1414)
  43460. * fixunsMN2 instruction pattern: Standard Names. (line 1423)
  43461. * fixuns_truncMN2 instruction pattern: Standard Names. (line 1438)
  43462. * fix_truncMN2 instruction pattern: Standard Names. (line 1434)
  43463. * FIX_TRUNC_EXPR: Unary and Binary Expressions.
  43464. (line 6)
  43465. * flags in RTL expression: Flags. (line 6)
  43466. * float: Conversions. (line 58)
  43467. * floating point and cross compilation: Floating Point. (line 6)
  43468. * floatMN2 instruction pattern: Standard Names. (line 1406)
  43469. * floatunsMN2 instruction pattern: Standard Names. (line 1410)
  43470. * FLOAT_EXPR: Unary and Binary Expressions.
  43471. (line 6)
  43472. * float_extend: Conversions. (line 33)
  43473. * FLOAT_LIB_COMPARE_RETURNS_BOOL: Library Calls. (line 32)
  43474. * FLOAT_STORE_FLAG_VALUE: Misc. (line 320)
  43475. * float_truncate: Conversions. (line 53)
  43476. * FLOAT_TYPE_SIZE: Type Layout. (line 48)
  43477. * FLOAT_WORDS_BIG_ENDIAN: Storage Layout. (line 41)
  43478. * FLOAT_WORDS_BIG_ENDIAN, (lack of) effect on subreg: Regs and Memory.
  43479. (line 234)
  43480. * floorM2 instruction pattern: Standard Names. (line 1069)
  43481. * FLOOR_DIV_EXPR: Unary and Binary Expressions.
  43482. (line 6)
  43483. * FLOOR_MOD_EXPR: Unary and Binary Expressions.
  43484. (line 6)
  43485. * flow-insensitive alias analysis: Alias analysis. (line 6)
  43486. * flow-sensitive alias analysis: Alias analysis. (line 6)
  43487. * fma: Arithmetic. (line 112)
  43488. * fmaM4 instruction pattern: Standard Names. (line 478)
  43489. * fmaxM3 instruction pattern: Standard Names. (line 509)
  43490. * fminM3 instruction pattern: Standard Names. (line 509)
  43491. * fmodM3 instruction pattern: Standard Names. (line 901)
  43492. * fmsM4 instruction pattern: Standard Names. (line 485)
  43493. * fnmaM4 instruction pattern: Standard Names. (line 491)
  43494. * fnmsM4 instruction pattern: Standard Names. (line 497)
  43495. * fold_extract_last_M instruction pattern: Standard Names. (line 550)
  43496. * fold_left_plus_M instruction pattern: Standard Names. (line 558)
  43497. * FORCE_CODE_SECTION_ALIGN: Sections. (line 149)
  43498. * force_reg: Standard Names. (line 36)
  43499. * FOR_BODY: Statements for C++. (line 6)
  43500. * FOR_COND: Statements for C++. (line 6)
  43501. * FOR_EXPR: Statements for C++. (line 6)
  43502. * FOR_INIT_STMT: Statements for C++. (line 6)
  43503. * FOR_STMT: Statements for C++. (line 6)
  43504. * for_user: GTY Options. (line 82)
  43505. * fractional types: Fixed-point fractional library routines.
  43506. (line 6)
  43507. * fractMN2 instruction pattern: Standard Names. (line 1456)
  43508. * fractunsMN2 instruction pattern: Standard Names. (line 1471)
  43509. * fract_convert: Conversions. (line 82)
  43510. * FRACT_TYPE_SIZE: Type Layout. (line 67)
  43511. * frame layout: Frame Layout. (line 6)
  43512. * FRAME_ADDR_RTX: Frame Layout. (line 108)
  43513. * FRAME_GROWS_DOWNWARD: Frame Layout. (line 26)
  43514. * FRAME_GROWS_DOWNWARD and virtual registers: Regs and Memory.
  43515. (line 69)
  43516. * FRAME_POINTER_CFA_OFFSET: Frame Layout. (line 225)
  43517. * frame_pointer_needed: Function Entry. (line 42)
  43518. * FRAME_POINTER_REGNUM: Frame Registers. (line 13)
  43519. * FRAME_POINTER_REGNUM and virtual registers: Regs and Memory.
  43520. (line 74)
  43521. * frame_pointer_rtx: Frame Registers. (line 104)
  43522. * frame_related: Flags. (line 238)
  43523. * frame_related, in insn, call_insn, jump_insn, barrier, and set: Flags.
  43524. (line 135)
  43525. * frame_related, in mem: Flags. (line 74)
  43526. * frame_related, in reg: Flags. (line 102)
  43527. * frame_related, in symbol_ref: Flags. (line 179)
  43528. * frequency, count, BB_FREQ_BASE: Profile information.
  43529. (line 30)
  43530. * ftruncM2 instruction pattern: Standard Names. (line 1429)
  43531. * function: Functions. (line 6)
  43532. * function <1>: Functions for C++. (line 6)
  43533. * function call conventions: Interface. (line 6)
  43534. * function entry and exit: Function Entry. (line 6)
  43535. * function entry point, alternate function entry point: Edges.
  43536. (line 180)
  43537. * function properties: Function Properties.
  43538. (line 6)
  43539. * function-call insns: Calls. (line 6)
  43540. * functions, leaf: Leaf Functions. (line 6)
  43541. * FUNCTION_ARG_REGNO_P: Register Arguments. (line 261)
  43542. * FUNCTION_BOUNDARY: Storage Layout. (line 176)
  43543. * FUNCTION_DECL: Functions. (line 6)
  43544. * FUNCTION_DECL <1>: Functions for C++. (line 6)
  43545. * FUNCTION_MODE: Misc. (line 375)
  43546. * FUNCTION_PROFILER: Profiling. (line 8)
  43547. * FUNCTION_TYPE: Types. (line 6)
  43548. * FUNCTION_VALUE: Scalar Return. (line 52)
  43549. * FUNCTION_VALUE_REGNO_P: Scalar Return. (line 78)
  43550. * fundamental type: Types. (line 6)
  43551. * G in constraint: Simple Constraints. (line 96)
  43552. * g in constraint: Simple Constraints. (line 118)
  43553. * garbage collector, invocation: Invoking the garbage collector.
  43554. (line 6)
  43555. * garbage collector, troubleshooting: Troubleshooting. (line 6)
  43556. * gather_loadMN instruction pattern: Standard Names. (line 232)
  43557. * GCC and portability: Portability. (line 6)
  43558. * GCC_DRIVER_HOST_INITIALIZATION: Host Misc. (line 36)
  43559. * gcov_type: Profile information.
  43560. (line 41)
  43561. * ge: Comparisons. (line 72)
  43562. * ge and attributes: Expressions. (line 83)
  43563. * gencodes: RTL passes. (line 18)
  43564. * general_operand: Machine-Independent Predicates.
  43565. (line 104)
  43566. * GENERAL_REGS: Register Classes. (line 22)
  43567. * generated files: Files. (line 6)
  43568. * generating assembler output: Output Statement. (line 6)
  43569. * generating insns: RTL Template. (line 6)
  43570. * GENERIC: Parsing pass. (line 6)
  43571. * GENERIC <1>: GENERIC. (line 6)
  43572. * generic predicates: Machine-Independent Predicates.
  43573. (line 6)
  43574. * genflags: RTL passes. (line 18)
  43575. * GEN_ERRNO_RTX: Library Calls. (line 71)
  43576. * get_attr: Expressions. (line 99)
  43577. * get_attr_length: Insn Lengths. (line 52)
  43578. * GET_CLASS_NARROWEST_MODE: Machine Modes. (line 430)
  43579. * GET_CODE: RTL Objects. (line 47)
  43580. * get_insns: Insns. (line 34)
  43581. * get_last_insn: Insns. (line 34)
  43582. * GET_MODE: Machine Modes. (line 377)
  43583. * GET_MODE_ALIGNMENT: Machine Modes. (line 417)
  43584. * GET_MODE_BITSIZE: Machine Modes. (line 401)
  43585. * GET_MODE_CLASS: Machine Modes. (line 391)
  43586. * GET_MODE_FBIT: Machine Modes. (line 408)
  43587. * GET_MODE_IBIT: Machine Modes. (line 404)
  43588. * GET_MODE_MASK: Machine Modes. (line 412)
  43589. * GET_MODE_NAME: Machine Modes. (line 388)
  43590. * GET_MODE_NUNITS: Machine Modes. (line 426)
  43591. * GET_MODE_SIZE: Machine Modes. (line 398)
  43592. * GET_MODE_UNIT_SIZE: Machine Modes. (line 420)
  43593. * GET_MODE_WIDER_MODE: Machine Modes. (line 394)
  43594. * GET_RTX_CLASS: RTL Classes. (line 6)
  43595. * GET_RTX_FORMAT: RTL Classes. (line 136)
  43596. * GET_RTX_LENGTH: RTL Classes. (line 133)
  43597. * get_thread_pointerMODE instruction pattern: Standard Names.
  43598. (line 2477)
  43599. * geu: Comparisons. (line 72)
  43600. * geu and attributes: Expressions. (line 83)
  43601. * GE_EXPR: Unary and Binary Expressions.
  43602. (line 6)
  43603. * GGC: Type Information. (line 6)
  43604. * ggc_collect: Invoking the garbage collector.
  43605. (line 6)
  43606. * GIMPLE: Parsing pass. (line 13)
  43607. * GIMPLE <1>: Gimplification pass.
  43608. (line 6)
  43609. * GIMPLE <2>: GIMPLE. (line 6)
  43610. * gimple: Tuple representation.
  43611. (line 14)
  43612. * GIMPLE API: GIMPLE API. (line 6)
  43613. * GIMPLE class hierarchy: Class hierarchy of GIMPLE statements.
  43614. (line 6)
  43615. * GIMPLE Exception Handling: GIMPLE Exception Handling.
  43616. (line 6)
  43617. * GIMPLE instruction set: GIMPLE instruction set.
  43618. (line 6)
  43619. * GIMPLE sequences: GIMPLE sequences. (line 6)
  43620. * GIMPLE statement iterators: Basic Blocks. (line 78)
  43621. * GIMPLE statement iterators <1>: Maintaining the CFG.
  43622. (line 33)
  43623. * gimple_addresses_taken: Manipulating GIMPLE statements.
  43624. (line 89)
  43625. * GIMPLE_ASM: GIMPLE_ASM. (line 6)
  43626. * gimple_asm_clobber_op: GIMPLE_ASM. (line 39)
  43627. * gimple_asm_input_op: GIMPLE_ASM. (line 23)
  43628. * gimple_asm_nclobbers: GIMPLE_ASM. (line 20)
  43629. * gimple_asm_ninputs: GIMPLE_ASM. (line 14)
  43630. * gimple_asm_noutputs: GIMPLE_ASM. (line 17)
  43631. * gimple_asm_output_op: GIMPLE_ASM. (line 31)
  43632. * gimple_asm_set_clobber_op: GIMPLE_ASM. (line 43)
  43633. * gimple_asm_set_input_op: GIMPLE_ASM. (line 27)
  43634. * gimple_asm_set_output_op: GIMPLE_ASM. (line 35)
  43635. * gimple_asm_set_volatile: GIMPLE_ASM. (line 54)
  43636. * gimple_asm_string: GIMPLE_ASM. (line 47)
  43637. * gimple_asm_volatile_p: GIMPLE_ASM. (line 51)
  43638. * GIMPLE_ASSIGN: GIMPLE_ASSIGN. (line 6)
  43639. * gimple_assign_cast_p: Logical Operators. (line 158)
  43640. * gimple_assign_cast_p <1>: GIMPLE_ASSIGN. (line 104)
  43641. * gimple_assign_lhs: GIMPLE_ASSIGN. (line 62)
  43642. * gimple_assign_lhs_ptr: GIMPLE_ASSIGN. (line 65)
  43643. * gimple_assign_rhs1: GIMPLE_ASSIGN. (line 68)
  43644. * gimple_assign_rhs1_ptr: GIMPLE_ASSIGN. (line 71)
  43645. * gimple_assign_rhs2: GIMPLE_ASSIGN. (line 75)
  43646. * gimple_assign_rhs2_ptr: GIMPLE_ASSIGN. (line 78)
  43647. * gimple_assign_rhs3: GIMPLE_ASSIGN. (line 82)
  43648. * gimple_assign_rhs3_ptr: GIMPLE_ASSIGN. (line 85)
  43649. * gimple_assign_rhs_class: GIMPLE_ASSIGN. (line 56)
  43650. * gimple_assign_rhs_code: GIMPLE_ASSIGN. (line 52)
  43651. * gimple_assign_set_lhs: GIMPLE_ASSIGN. (line 89)
  43652. * gimple_assign_set_rhs1: GIMPLE_ASSIGN. (line 92)
  43653. * gimple_assign_set_rhs2: GIMPLE_ASSIGN. (line 96)
  43654. * gimple_assign_set_rhs3: GIMPLE_ASSIGN. (line 100)
  43655. * gimple_bb: Manipulating GIMPLE statements.
  43656. (line 17)
  43657. * GIMPLE_BIND: GIMPLE_BIND. (line 6)
  43658. * gimple_bind_add_seq: GIMPLE_BIND. (line 34)
  43659. * gimple_bind_add_stmt: GIMPLE_BIND. (line 31)
  43660. * gimple_bind_append_vars: GIMPLE_BIND. (line 18)
  43661. * gimple_bind_block: GIMPLE_BIND. (line 39)
  43662. * gimple_bind_body: GIMPLE_BIND. (line 22)
  43663. * gimple_bind_set_block: GIMPLE_BIND. (line 44)
  43664. * gimple_bind_set_body: GIMPLE_BIND. (line 26)
  43665. * gimple_bind_set_vars: GIMPLE_BIND. (line 14)
  43666. * gimple_bind_vars: GIMPLE_BIND. (line 11)
  43667. * gimple_block: Manipulating GIMPLE statements.
  43668. (line 20)
  43669. * gimple_build: GIMPLE API. (line 34)
  43670. * gimple_build <1>: GIMPLE API. (line 36)
  43671. * gimple_build <2>: GIMPLE API. (line 38)
  43672. * gimple_build <3>: GIMPLE API. (line 41)
  43673. * gimple_build <4>: GIMPLE API. (line 44)
  43674. * gimple_build <5>: GIMPLE API. (line 47)
  43675. * gimple_build_debug_begin_stmt: GIMPLE_DEBUG. (line 72)
  43676. * gimple_build_debug_inline_entry: GIMPLE_DEBUG. (line 82)
  43677. * gimple_build_nop: GIMPLE_NOP. (line 6)
  43678. * gimple_build_omp_master: GIMPLE_OMP_MASTER. (line 6)
  43679. * gimple_build_omp_ordered: GIMPLE_OMP_ORDERED. (line 6)
  43680. * gimple_build_omp_return: GIMPLE_OMP_RETURN. (line 6)
  43681. * gimple_build_omp_section: GIMPLE_OMP_SECTION. (line 6)
  43682. * gimple_build_omp_sections_switch: GIMPLE_OMP_SECTIONS.
  43683. (line 13)
  43684. * gimple_build_wce: GIMPLE_WITH_CLEANUP_EXPR.
  43685. (line 6)
  43686. * GIMPLE_CALL: GIMPLE_CALL. (line 6)
  43687. * gimple_call_arg: GIMPLE_CALL. (line 67)
  43688. * gimple_call_arg_ptr: GIMPLE_CALL. (line 71)
  43689. * gimple_call_chain: GIMPLE_CALL. (line 58)
  43690. * gimple_call_copy_skip_args: GIMPLE_CALL. (line 92)
  43691. * gimple_call_fn: GIMPLE_CALL. (line 39)
  43692. * gimple_call_fndecl: GIMPLE_CALL. (line 47)
  43693. * gimple_call_lhs: GIMPLE_CALL. (line 30)
  43694. * gimple_call_lhs_ptr: GIMPLE_CALL. (line 33)
  43695. * gimple_call_noreturn_p: GIMPLE_CALL. (line 89)
  43696. * gimple_call_num_args: GIMPLE_CALL. (line 64)
  43697. * gimple_call_return_type: GIMPLE_CALL. (line 55)
  43698. * gimple_call_set_arg: GIMPLE_CALL. (line 76)
  43699. * gimple_call_set_chain: GIMPLE_CALL. (line 61)
  43700. * gimple_call_set_fn: GIMPLE_CALL. (line 43)
  43701. * gimple_call_set_fndecl: GIMPLE_CALL. (line 52)
  43702. * gimple_call_set_lhs: GIMPLE_CALL. (line 36)
  43703. * gimple_call_set_tail: GIMPLE_CALL. (line 81)
  43704. * gimple_call_tail_p: GIMPLE_CALL. (line 86)
  43705. * GIMPLE_CATCH: GIMPLE_CATCH. (line 6)
  43706. * gimple_catch_handler: GIMPLE_CATCH. (line 19)
  43707. * gimple_catch_set_handler: GIMPLE_CATCH. (line 26)
  43708. * gimple_catch_set_types: GIMPLE_CATCH. (line 23)
  43709. * gimple_catch_types: GIMPLE_CATCH. (line 12)
  43710. * gimple_catch_types_ptr: GIMPLE_CATCH. (line 15)
  43711. * gimple_code: Manipulating GIMPLE statements.
  43712. (line 14)
  43713. * GIMPLE_COND: GIMPLE_COND. (line 6)
  43714. * gimple_cond_code: GIMPLE_COND. (line 20)
  43715. * gimple_cond_false_label: GIMPLE_COND. (line 59)
  43716. * gimple_cond_lhs: GIMPLE_COND. (line 29)
  43717. * gimple_cond_make_false: GIMPLE_COND. (line 63)
  43718. * gimple_cond_make_true: GIMPLE_COND. (line 66)
  43719. * gimple_cond_rhs: GIMPLE_COND. (line 37)
  43720. * gimple_cond_set_code: GIMPLE_COND. (line 24)
  43721. * gimple_cond_set_false_label: GIMPLE_COND. (line 54)
  43722. * gimple_cond_set_lhs: GIMPLE_COND. (line 33)
  43723. * gimple_cond_set_rhs: GIMPLE_COND. (line 41)
  43724. * gimple_cond_set_true_label: GIMPLE_COND. (line 49)
  43725. * gimple_cond_true_label: GIMPLE_COND. (line 45)
  43726. * gimple_convert: GIMPLE API. (line 50)
  43727. * gimple_copy: Manipulating GIMPLE statements.
  43728. (line 146)
  43729. * GIMPLE_DEBUG: GIMPLE_DEBUG. (line 6)
  43730. * GIMPLE_DEBUG_BEGIN_STMT: GIMPLE_DEBUG. (line 6)
  43731. * GIMPLE_DEBUG_BIND: GIMPLE_DEBUG. (line 6)
  43732. * gimple_debug_bind_get_value: GIMPLE_DEBUG. (line 46)
  43733. * gimple_debug_bind_get_value_ptr: GIMPLE_DEBUG. (line 50)
  43734. * gimple_debug_bind_get_var: GIMPLE_DEBUG. (line 43)
  43735. * gimple_debug_bind_has_value_p: GIMPLE_DEBUG. (line 68)
  43736. * gimple_debug_bind_p: Logical Operators. (line 162)
  43737. * gimple_debug_bind_reset_value: GIMPLE_DEBUG. (line 64)
  43738. * gimple_debug_bind_set_value: GIMPLE_DEBUG. (line 59)
  43739. * gimple_debug_bind_set_var: GIMPLE_DEBUG. (line 55)
  43740. * GIMPLE_DEBUG_INLINE_ENTRY: GIMPLE_DEBUG. (line 6)
  43741. * gimple_def_ops: Manipulating GIMPLE statements.
  43742. (line 93)
  43743. * GIMPLE_EH_FILTER: GIMPLE_EH_FILTER. (line 6)
  43744. * gimple_eh_filter_failure: GIMPLE_EH_FILTER. (line 18)
  43745. * gimple_eh_filter_set_failure: GIMPLE_EH_FILTER. (line 27)
  43746. * gimple_eh_filter_set_types: GIMPLE_EH_FILTER. (line 22)
  43747. * gimple_eh_filter_types: GIMPLE_EH_FILTER. (line 11)
  43748. * gimple_eh_filter_types_ptr: GIMPLE_EH_FILTER. (line 14)
  43749. * gimple_eh_must_not_throw_fndecl: GIMPLE_EH_FILTER. (line 32)
  43750. * gimple_eh_must_not_throw_set_fndecl: GIMPLE_EH_FILTER. (line 36)
  43751. * gimple_expr_code: Manipulating GIMPLE statements.
  43752. (line 30)
  43753. * gimple_expr_type: Manipulating GIMPLE statements.
  43754. (line 23)
  43755. * GIMPLE_GOTO: GIMPLE_GOTO. (line 6)
  43756. * gimple_goto_dest: GIMPLE_GOTO. (line 9)
  43757. * gimple_goto_set_dest: GIMPLE_GOTO. (line 12)
  43758. * gimple_has_mem_ops: Manipulating GIMPLE statements.
  43759. (line 71)
  43760. * gimple_has_ops: Manipulating GIMPLE statements.
  43761. (line 68)
  43762. * gimple_has_volatile_ops: Manipulating GIMPLE statements.
  43763. (line 133)
  43764. * GIMPLE_LABEL: GIMPLE_LABEL. (line 6)
  43765. * gimple_label_label: GIMPLE_LABEL. (line 10)
  43766. * gimple_label_set_label: GIMPLE_LABEL. (line 13)
  43767. * gimple_loaded_syms: Manipulating GIMPLE statements.
  43768. (line 121)
  43769. * gimple_locus: Manipulating GIMPLE statements.
  43770. (line 41)
  43771. * gimple_locus_empty_p: Manipulating GIMPLE statements.
  43772. (line 47)
  43773. * gimple_modified_p: Manipulating GIMPLE statements.
  43774. (line 129)
  43775. * GIMPLE_NOP: GIMPLE_NOP. (line 6)
  43776. * gimple_nop_p: GIMPLE_NOP. (line 9)
  43777. * gimple_no_warning_p: Manipulating GIMPLE statements.
  43778. (line 50)
  43779. * gimple_num_ops: Logical Operators. (line 76)
  43780. * gimple_num_ops <1>: Manipulating GIMPLE statements.
  43781. (line 74)
  43782. * GIMPLE_OMP_ATOMIC_LOAD: GIMPLE_OMP_ATOMIC_LOAD.
  43783. (line 6)
  43784. * gimple_omp_atomic_load_lhs: GIMPLE_OMP_ATOMIC_LOAD.
  43785. (line 16)
  43786. * gimple_omp_atomic_load_rhs: GIMPLE_OMP_ATOMIC_LOAD.
  43787. (line 24)
  43788. * gimple_omp_atomic_load_set_lhs: GIMPLE_OMP_ATOMIC_LOAD.
  43789. (line 12)
  43790. * gimple_omp_atomic_load_set_rhs: GIMPLE_OMP_ATOMIC_LOAD.
  43791. (line 20)
  43792. * GIMPLE_OMP_ATOMIC_STORE: GIMPLE_OMP_ATOMIC_STORE.
  43793. (line 6)
  43794. * gimple_omp_atomic_store_set_val: GIMPLE_OMP_ATOMIC_STORE.
  43795. (line 11)
  43796. * gimple_omp_atomic_store_val: GIMPLE_OMP_ATOMIC_STORE.
  43797. (line 15)
  43798. * gimple_omp_body: GIMPLE_OMP_PARALLEL.
  43799. (line 23)
  43800. * GIMPLE_OMP_CONTINUE: GIMPLE_OMP_CONTINUE.
  43801. (line 6)
  43802. * gimple_omp_continue_control_def: GIMPLE_OMP_CONTINUE.
  43803. (line 12)
  43804. * gimple_omp_continue_control_def_ptr: GIMPLE_OMP_CONTINUE.
  43805. (line 17)
  43806. * gimple_omp_continue_control_use: GIMPLE_OMP_CONTINUE.
  43807. (line 26)
  43808. * gimple_omp_continue_control_use_ptr: GIMPLE_OMP_CONTINUE.
  43809. (line 31)
  43810. * gimple_omp_continue_set_control_def: GIMPLE_OMP_CONTINUE.
  43811. (line 21)
  43812. * gimple_omp_continue_set_control_use: GIMPLE_OMP_CONTINUE.
  43813. (line 35)
  43814. * GIMPLE_OMP_CRITICAL: GIMPLE_OMP_CRITICAL.
  43815. (line 6)
  43816. * gimple_omp_critical_name: GIMPLE_OMP_CRITICAL.
  43817. (line 12)
  43818. * gimple_omp_critical_name_ptr: GIMPLE_OMP_CRITICAL.
  43819. (line 16)
  43820. * gimple_omp_critical_set_name: GIMPLE_OMP_CRITICAL.
  43821. (line 21)
  43822. * GIMPLE_OMP_FOR: GIMPLE_OMP_FOR. (line 6)
  43823. * gimple_omp_for_clauses: GIMPLE_OMP_FOR. (line 17)
  43824. * gimple_omp_for_clauses_ptr: GIMPLE_OMP_FOR. (line 20)
  43825. * gimple_omp_for_cond: GIMPLE_OMP_FOR. (line 80)
  43826. * gimple_omp_for_final: GIMPLE_OMP_FOR. (line 48)
  43827. * gimple_omp_for_final_ptr: GIMPLE_OMP_FOR. (line 51)
  43828. * gimple_omp_for_incr: GIMPLE_OMP_FOR. (line 58)
  43829. * gimple_omp_for_incr_ptr: GIMPLE_OMP_FOR. (line 61)
  43830. * gimple_omp_for_index: GIMPLE_OMP_FOR. (line 28)
  43831. * gimple_omp_for_index_ptr: GIMPLE_OMP_FOR. (line 31)
  43832. * gimple_omp_for_initial: GIMPLE_OMP_FOR. (line 38)
  43833. * gimple_omp_for_initial_ptr: GIMPLE_OMP_FOR. (line 41)
  43834. * gimple_omp_for_pre_body: GIMPLE_OMP_FOR. (line 67)
  43835. * gimple_omp_for_set_clauses: GIMPLE_OMP_FOR. (line 23)
  43836. * gimple_omp_for_set_cond: GIMPLE_OMP_FOR. (line 76)
  43837. * gimple_omp_for_set_final: GIMPLE_OMP_FOR. (line 54)
  43838. * gimple_omp_for_set_incr: GIMPLE_OMP_FOR. (line 64)
  43839. * gimple_omp_for_set_index: GIMPLE_OMP_FOR. (line 34)
  43840. * gimple_omp_for_set_initial: GIMPLE_OMP_FOR. (line 44)
  43841. * gimple_omp_for_set_pre_body: GIMPLE_OMP_FOR. (line 71)
  43842. * GIMPLE_OMP_MASTER: GIMPLE_OMP_MASTER. (line 6)
  43843. * GIMPLE_OMP_ORDERED: GIMPLE_OMP_ORDERED. (line 6)
  43844. * GIMPLE_OMP_PARALLEL: GIMPLE_OMP_PARALLEL.
  43845. (line 6)
  43846. * gimple_omp_parallel_child_fn: GIMPLE_OMP_PARALLEL.
  43847. (line 42)
  43848. * gimple_omp_parallel_child_fn_ptr: GIMPLE_OMP_PARALLEL.
  43849. (line 47)
  43850. * gimple_omp_parallel_clauses: GIMPLE_OMP_PARALLEL.
  43851. (line 30)
  43852. * gimple_omp_parallel_clauses_ptr: GIMPLE_OMP_PARALLEL.
  43853. (line 33)
  43854. * gimple_omp_parallel_combined_p: GIMPLE_OMP_PARALLEL.
  43855. (line 15)
  43856. * gimple_omp_parallel_data_arg: GIMPLE_OMP_PARALLEL.
  43857. (line 56)
  43858. * gimple_omp_parallel_data_arg_ptr: GIMPLE_OMP_PARALLEL.
  43859. (line 61)
  43860. * gimple_omp_parallel_set_child_fn: GIMPLE_OMP_PARALLEL.
  43861. (line 52)
  43862. * gimple_omp_parallel_set_clauses: GIMPLE_OMP_PARALLEL.
  43863. (line 37)
  43864. * gimple_omp_parallel_set_combined_p: GIMPLE_OMP_PARALLEL.
  43865. (line 19)
  43866. * gimple_omp_parallel_set_data_arg: GIMPLE_OMP_PARALLEL.
  43867. (line 65)
  43868. * GIMPLE_OMP_RETURN: GIMPLE_OMP_RETURN. (line 6)
  43869. * gimple_omp_return_nowait_p: GIMPLE_OMP_RETURN. (line 13)
  43870. * gimple_omp_return_set_nowait: GIMPLE_OMP_RETURN. (line 10)
  43871. * GIMPLE_OMP_SECTION: GIMPLE_OMP_SECTION. (line 6)
  43872. * GIMPLE_OMP_SECTIONS: GIMPLE_OMP_SECTIONS.
  43873. (line 6)
  43874. * gimple_omp_sections_clauses: GIMPLE_OMP_SECTIONS.
  43875. (line 29)
  43876. * gimple_omp_sections_clauses_ptr: GIMPLE_OMP_SECTIONS.
  43877. (line 32)
  43878. * gimple_omp_sections_control: GIMPLE_OMP_SECTIONS.
  43879. (line 16)
  43880. * gimple_omp_sections_control_ptr: GIMPLE_OMP_SECTIONS.
  43881. (line 20)
  43882. * gimple_omp_sections_set_clauses: GIMPLE_OMP_SECTIONS.
  43883. (line 35)
  43884. * gimple_omp_sections_set_control: GIMPLE_OMP_SECTIONS.
  43885. (line 24)
  43886. * gimple_omp_section_last_p: GIMPLE_OMP_SECTION. (line 11)
  43887. * gimple_omp_section_set_last: GIMPLE_OMP_SECTION. (line 15)
  43888. * gimple_omp_set_body: GIMPLE_OMP_PARALLEL.
  43889. (line 26)
  43890. * GIMPLE_OMP_SINGLE: GIMPLE_OMP_SINGLE. (line 6)
  43891. * gimple_omp_single_clauses: GIMPLE_OMP_SINGLE. (line 13)
  43892. * gimple_omp_single_clauses_ptr: GIMPLE_OMP_SINGLE. (line 16)
  43893. * gimple_omp_single_set_clauses: GIMPLE_OMP_SINGLE. (line 19)
  43894. * gimple_op: Logical Operators. (line 79)
  43895. * gimple_op <1>: Manipulating GIMPLE statements.
  43896. (line 80)
  43897. * gimple_ops: Logical Operators. (line 82)
  43898. * gimple_ops <1>: Manipulating GIMPLE statements.
  43899. (line 77)
  43900. * gimple_op_ptr: Manipulating GIMPLE statements.
  43901. (line 83)
  43902. * GIMPLE_PHI: GIMPLE_PHI. (line 6)
  43903. * gimple_phi_arg: GIMPLE_PHI. (line 24)
  43904. * gimple_phi_arg <1>: SSA. (line 62)
  43905. * gimple_phi_arg_def: SSA. (line 68)
  43906. * gimple_phi_arg_edge: SSA. (line 65)
  43907. * gimple_phi_capacity: GIMPLE_PHI. (line 6)
  43908. * gimple_phi_num_args: GIMPLE_PHI. (line 10)
  43909. * gimple_phi_num_args <1>: SSA. (line 58)
  43910. * gimple_phi_result: GIMPLE_PHI. (line 15)
  43911. * gimple_phi_result <1>: SSA. (line 55)
  43912. * gimple_phi_result_ptr: GIMPLE_PHI. (line 18)
  43913. * gimple_phi_set_arg: GIMPLE_PHI. (line 28)
  43914. * gimple_phi_set_result: GIMPLE_PHI. (line 21)
  43915. * gimple_plf: Manipulating GIMPLE statements.
  43916. (line 64)
  43917. * GIMPLE_RESX: GIMPLE_RESX. (line 6)
  43918. * gimple_resx_region: GIMPLE_RESX. (line 12)
  43919. * gimple_resx_set_region: GIMPLE_RESX. (line 15)
  43920. * GIMPLE_RETURN: GIMPLE_RETURN. (line 6)
  43921. * gimple_return_retval: GIMPLE_RETURN. (line 9)
  43922. * gimple_return_set_retval: GIMPLE_RETURN. (line 12)
  43923. * gimple_seq_add_seq: GIMPLE sequences. (line 30)
  43924. * gimple_seq_add_stmt: GIMPLE sequences. (line 24)
  43925. * gimple_seq_alloc: GIMPLE sequences. (line 61)
  43926. * gimple_seq_copy: GIMPLE sequences. (line 65)
  43927. * gimple_seq_deep_copy: GIMPLE sequences. (line 36)
  43928. * gimple_seq_empty_p: GIMPLE sequences. (line 69)
  43929. * gimple_seq_first: GIMPLE sequences. (line 43)
  43930. * gimple_seq_init: GIMPLE sequences. (line 58)
  43931. * gimple_seq_last: GIMPLE sequences. (line 46)
  43932. * gimple_seq_reverse: GIMPLE sequences. (line 39)
  43933. * gimple_seq_set_first: GIMPLE sequences. (line 53)
  43934. * gimple_seq_set_last: GIMPLE sequences. (line 49)
  43935. * gimple_seq_singleton_p: GIMPLE sequences. (line 78)
  43936. * gimple_set_block: Manipulating GIMPLE statements.
  43937. (line 38)
  43938. * gimple_set_def_ops: Manipulating GIMPLE statements.
  43939. (line 96)
  43940. * gimple_set_has_volatile_ops: Manipulating GIMPLE statements.
  43941. (line 136)
  43942. * gimple_set_locus: Manipulating GIMPLE statements.
  43943. (line 44)
  43944. * gimple_set_op: Manipulating GIMPLE statements.
  43945. (line 86)
  43946. * gimple_set_plf: Manipulating GIMPLE statements.
  43947. (line 60)
  43948. * gimple_set_use_ops: Manipulating GIMPLE statements.
  43949. (line 103)
  43950. * gimple_set_vdef_ops: Manipulating GIMPLE statements.
  43951. (line 117)
  43952. * gimple_set_visited: Manipulating GIMPLE statements.
  43953. (line 53)
  43954. * gimple_set_vuse_ops: Manipulating GIMPLE statements.
  43955. (line 110)
  43956. * gimple_simplify: GIMPLE API. (line 6)
  43957. * gimple_simplify <1>: GIMPLE API. (line 8)
  43958. * gimple_simplify <2>: GIMPLE API. (line 10)
  43959. * gimple_simplify <3>: GIMPLE API. (line 12)
  43960. * gimple_simplify <4>: GIMPLE API. (line 14)
  43961. * gimple_simplify <5>: GIMPLE API. (line 16)
  43962. * gimple_statement_with_ops: Tuple representation.
  43963. (line 96)
  43964. * gimple_stored_syms: Manipulating GIMPLE statements.
  43965. (line 125)
  43966. * GIMPLE_SWITCH: GIMPLE_SWITCH. (line 6)
  43967. * gimple_switch_default_label: GIMPLE_SWITCH. (line 41)
  43968. * gimple_switch_index: GIMPLE_SWITCH. (line 24)
  43969. * gimple_switch_label: GIMPLE_SWITCH. (line 31)
  43970. * gimple_switch_num_labels: GIMPLE_SWITCH. (line 14)
  43971. * gimple_switch_set_default_label: GIMPLE_SWITCH. (line 45)
  43972. * gimple_switch_set_index: GIMPLE_SWITCH. (line 27)
  43973. * gimple_switch_set_label: GIMPLE_SWITCH. (line 36)
  43974. * gimple_switch_set_num_labels: GIMPLE_SWITCH. (line 19)
  43975. * GIMPLE_TRY: GIMPLE_TRY. (line 6)
  43976. * gimple_try_catch_is_cleanup: GIMPLE_TRY. (line 19)
  43977. * gimple_try_cleanup: GIMPLE_TRY. (line 26)
  43978. * gimple_try_eval: GIMPLE_TRY. (line 22)
  43979. * gimple_try_kind: GIMPLE_TRY. (line 15)
  43980. * gimple_try_set_catch_is_cleanup: GIMPLE_TRY. (line 30)
  43981. * gimple_try_set_cleanup: GIMPLE_TRY. (line 38)
  43982. * gimple_try_set_eval: GIMPLE_TRY. (line 34)
  43983. * gimple_use_ops: Manipulating GIMPLE statements.
  43984. (line 100)
  43985. * gimple_vdef_ops: Manipulating GIMPLE statements.
  43986. (line 114)
  43987. * gimple_visited_p: Manipulating GIMPLE statements.
  43988. (line 57)
  43989. * gimple_vuse_ops: Manipulating GIMPLE statements.
  43990. (line 107)
  43991. * gimple_wce_cleanup: GIMPLE_WITH_CLEANUP_EXPR.
  43992. (line 10)
  43993. * gimple_wce_cleanup_eh_only: GIMPLE_WITH_CLEANUP_EXPR.
  43994. (line 17)
  43995. * gimple_wce_set_cleanup: GIMPLE_WITH_CLEANUP_EXPR.
  43996. (line 13)
  43997. * gimple_wce_set_cleanup_eh_only: GIMPLE_WITH_CLEANUP_EXPR.
  43998. (line 20)
  43999. * GIMPLE_WITH_CLEANUP_EXPR: GIMPLE_WITH_CLEANUP_EXPR.
  44000. (line 6)
  44001. * gimplification: Parsing pass. (line 13)
  44002. * gimplification <1>: Gimplification pass.
  44003. (line 6)
  44004. * gimplifier: Parsing pass. (line 13)
  44005. * gimplify_assign: GIMPLE_ASSIGN. (line 41)
  44006. * gimplify_expr: Gimplification pass.
  44007. (line 18)
  44008. * gimplify_function_tree: Gimplification pass.
  44009. (line 18)
  44010. * GLOBAL_INIT_PRIORITY: Functions for C++. (line 141)
  44011. * global_regs: Register Basics. (line 102)
  44012. * GO_IF_LEGITIMATE_ADDRESS: Addressing Modes. (line 90)
  44013. * greater than: Comparisons. (line 60)
  44014. * greater than <1>: Comparisons. (line 64)
  44015. * greater than <2>: Comparisons. (line 72)
  44016. * gsi_after_labels: Sequence iterators. (line 74)
  44017. * gsi_bb: Sequence iterators. (line 82)
  44018. * gsi_commit_edge_inserts: Sequence iterators. (line 193)
  44019. * gsi_commit_edge_inserts <1>: Maintaining the CFG.
  44020. (line 104)
  44021. * gsi_commit_one_edge_insert: Sequence iterators. (line 188)
  44022. * gsi_end_p: Sequence iterators. (line 59)
  44023. * gsi_end_p <1>: Maintaining the CFG.
  44024. (line 48)
  44025. * gsi_for_stmt: Sequence iterators. (line 156)
  44026. * gsi_insert_after: Sequence iterators. (line 145)
  44027. * gsi_insert_after <1>: Maintaining the CFG.
  44028. (line 60)
  44029. * gsi_insert_before: Sequence iterators. (line 134)
  44030. * gsi_insert_before <1>: Maintaining the CFG.
  44031. (line 66)
  44032. * gsi_insert_on_edge: Sequence iterators. (line 173)
  44033. * gsi_insert_on_edge <1>: Maintaining the CFG.
  44034. (line 104)
  44035. * gsi_insert_on_edge_immediate: Sequence iterators. (line 183)
  44036. * gsi_insert_seq_after: Sequence iterators. (line 152)
  44037. * gsi_insert_seq_before: Sequence iterators. (line 141)
  44038. * gsi_insert_seq_on_edge: Sequence iterators. (line 177)
  44039. * gsi_last: Sequence iterators. (line 49)
  44040. * gsi_last <1>: Maintaining the CFG.
  44041. (line 44)
  44042. * gsi_last_bb: Sequence iterators. (line 55)
  44043. * gsi_link_after: Sequence iterators. (line 113)
  44044. * gsi_link_before: Sequence iterators. (line 103)
  44045. * gsi_link_seq_after: Sequence iterators. (line 108)
  44046. * gsi_link_seq_before: Sequence iterators. (line 97)
  44047. * gsi_move_after: Sequence iterators. (line 159)
  44048. * gsi_move_before: Sequence iterators. (line 164)
  44049. * gsi_move_to_bb_end: Sequence iterators. (line 169)
  44050. * gsi_next: Sequence iterators. (line 65)
  44051. * gsi_next <1>: Maintaining the CFG.
  44052. (line 52)
  44053. * gsi_one_before_end_p: Sequence iterators. (line 62)
  44054. * gsi_prev: Sequence iterators. (line 68)
  44055. * gsi_prev <1>: Maintaining the CFG.
  44056. (line 56)
  44057. * gsi_remove: Sequence iterators. (line 88)
  44058. * gsi_remove <1>: Maintaining the CFG.
  44059. (line 72)
  44060. * gsi_replace: Sequence iterators. (line 128)
  44061. * gsi_seq: Sequence iterators. (line 85)
  44062. * gsi_split_seq_after: Sequence iterators. (line 118)
  44063. * gsi_split_seq_before: Sequence iterators. (line 123)
  44064. * gsi_start: Sequence iterators. (line 39)
  44065. * gsi_start <1>: Maintaining the CFG.
  44066. (line 40)
  44067. * gsi_start_bb: Sequence iterators. (line 45)
  44068. * gsi_stmt: Sequence iterators. (line 71)
  44069. * gsi_stmt_ptr: Sequence iterators. (line 79)
  44070. * gt: Comparisons. (line 60)
  44071. * gt and attributes: Expressions. (line 83)
  44072. * gtu: Comparisons. (line 64)
  44073. * gtu and attributes: Expressions. (line 83)
  44074. * GTY: Type Information. (line 6)
  44075. * GT_EXPR: Unary and Binary Expressions.
  44076. (line 6)
  44077. * guidelines for diagnostics: Guidelines for Diagnostics.
  44078. (line 6)
  44079. * guidelines for options: Guidelines for Options.
  44080. (line 6)
  44081. * guidelines, user experience: User Experience Guidelines.
  44082. (line 6)
  44083. * H in constraint: Simple Constraints. (line 96)
  44084. * HAmode: Machine Modes. (line 146)
  44085. * HANDLER: Statements for C++. (line 6)
  44086. * HANDLER_BODY: Statements for C++. (line 6)
  44087. * HANDLER_PARMS: Statements for C++. (line 6)
  44088. * HANDLE_PRAGMA_PACK_WITH_EXPANSION: Misc. (line 475)
  44089. * hard registers: Regs and Memory. (line 9)
  44090. * HARD_FRAME_POINTER_IS_ARG_POINTER: Frame Registers. (line 57)
  44091. * HARD_FRAME_POINTER_IS_FRAME_POINTER: Frame Registers. (line 50)
  44092. * HARD_FRAME_POINTER_REGNUM: Frame Registers. (line 19)
  44093. * HARD_REGNO_CALLER_SAVE_MODE: Caller Saves. (line 10)
  44094. * HARD_REGNO_NREGS_HAS_PADDING: Values in Registers.
  44095. (line 21)
  44096. * HARD_REGNO_NREGS_WITH_PADDING: Values in Registers.
  44097. (line 39)
  44098. * HARD_REGNO_RENAME_OK: Values in Registers.
  44099. (line 113)
  44100. * HAS_INIT_SECTION: Macros for Initialization.
  44101. (line 18)
  44102. * HAS_LONG_COND_BRANCH: Misc. (line 8)
  44103. * HAS_LONG_UNCOND_BRANCH: Misc. (line 17)
  44104. * HAVE_DOS_BASED_FILE_SYSTEM: Filesystem. (line 11)
  44105. * HAVE_POST_DECREMENT: Addressing Modes. (line 11)
  44106. * HAVE_POST_INCREMENT: Addressing Modes. (line 10)
  44107. * HAVE_POST_MODIFY_DISP: Addressing Modes. (line 17)
  44108. * HAVE_POST_MODIFY_REG: Addressing Modes. (line 23)
  44109. * HAVE_PRE_DECREMENT: Addressing Modes. (line 9)
  44110. * HAVE_PRE_INCREMENT: Addressing Modes. (line 8)
  44111. * HAVE_PRE_MODIFY_DISP: Addressing Modes. (line 16)
  44112. * HAVE_PRE_MODIFY_REG: Addressing Modes. (line 22)
  44113. * HCmode: Machine Modes. (line 199)
  44114. * HFmode: Machine Modes. (line 61)
  44115. * high: Constants. (line 220)
  44116. * HImode: Machine Modes. (line 29)
  44117. * HImode, in insn: Insns. (line 291)
  44118. * HONOR_REG_ALLOC_ORDER: Allocation Order. (line 36)
  44119. * host configuration: Host Config. (line 6)
  44120. * host functions: Host Common. (line 6)
  44121. * host hooks: Host Common. (line 6)
  44122. * host makefile fragment: Host Fragment. (line 6)
  44123. * HOST_BIT_BUCKET: Filesystem. (line 51)
  44124. * HOST_EXECUTABLE_SUFFIX: Filesystem. (line 45)
  44125. * HOST_HOOKS_EXTRA_SIGNALS: Host Common. (line 11)
  44126. * HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY: Host Common. (line 43)
  44127. * HOST_HOOKS_GT_PCH_GET_ADDRESS: Host Common. (line 15)
  44128. * HOST_HOOKS_GT_PCH_USE_ADDRESS: Host Common. (line 24)
  44129. * HOST_LACKS_INODE_NUMBERS: Filesystem. (line 89)
  44130. * HOST_LONG_FORMAT: Host Misc. (line 45)
  44131. * HOST_LONG_LONG_FORMAT: Host Misc. (line 41)
  44132. * HOST_OBJECT_SUFFIX: Filesystem. (line 40)
  44133. * HOST_PTR_PRINTF: Host Misc. (line 49)
  44134. * HOT_TEXT_SECTION_NAME: Sections. (line 42)
  44135. * HQmode: Machine Modes. (line 110)
  44136. * i in constraint: Simple Constraints. (line 68)
  44137. * I in constraint: Simple Constraints. (line 79)
  44138. * identifier: Identifiers. (line 6)
  44139. * IDENTIFIER_LENGTH: Identifiers. (line 22)
  44140. * IDENTIFIER_NODE: Identifiers. (line 6)
  44141. * IDENTIFIER_OPNAME_P: Identifiers. (line 27)
  44142. * IDENTIFIER_POINTER: Identifiers. (line 17)
  44143. * IDENTIFIER_TYPENAME_P: Identifiers. (line 33)
  44144. * IEEE 754-2008: Decimal float library routines.
  44145. (line 6)
  44146. * IFCVT_MACHDEP_INIT: Misc. (line 601)
  44147. * IFCVT_MODIFY_CANCEL: Misc. (line 595)
  44148. * IFCVT_MODIFY_FINAL: Misc. (line 589)
  44149. * IFCVT_MODIFY_INSN: Misc. (line 583)
  44150. * IFCVT_MODIFY_MULTIPLE_TESTS: Misc. (line 575)
  44151. * IFCVT_MODIFY_TESTS: Misc. (line 565)
  44152. * IF_COND: Statements for C++. (line 6)
  44153. * IF_STMT: Statements for C++. (line 6)
  44154. * if_then_else: Comparisons. (line 80)
  44155. * if_then_else and attributes: Expressions. (line 32)
  44156. * if_then_else usage: Side Effects. (line 56)
  44157. * IMAGPART_EXPR: Unary and Binary Expressions.
  44158. (line 6)
  44159. * Immediate Uses: SSA Operands. (line 258)
  44160. * immediate_operand: Machine-Independent Predicates.
  44161. (line 10)
  44162. * IMMEDIATE_PREFIX: Instruction Output. (line 153)
  44163. * include: Including Patterns. (line 6)
  44164. * INCLUDE_DEFAULTS: Driver. (line 331)
  44165. * inclusive-or, bitwise: Arithmetic. (line 163)
  44166. * INCOMING_FRAME_SP_OFFSET: Frame Layout. (line 188)
  44167. * INCOMING_REGNO: Register Basics. (line 129)
  44168. * INCOMING_REG_PARM_STACK_SPACE: Stack Arguments. (line 73)
  44169. * INCOMING_RETURN_ADDR_RTX: Frame Layout. (line 133)
  44170. * INCOMING_STACK_BOUNDARY: Storage Layout. (line 171)
  44171. * INDEX_REG_CLASS: Register Classes. (line 140)
  44172. * indirect_jump instruction pattern: Standard Names. (line 1826)
  44173. * indirect_operand: Machine-Independent Predicates.
  44174. (line 70)
  44175. * INDIRECT_REF: Storage References. (line 6)
  44176. * initialization routines: Initialization. (line 6)
  44177. * INITIAL_ELIMINATION_OFFSET: Elimination. (line 68)
  44178. * INITIAL_FRAME_ADDRESS_RTX: Frame Layout. (line 75)
  44179. * INIT_ARRAY_SECTION_ASM_OP: Sections. (line 106)
  44180. * INIT_CUMULATIVE_ARGS: Register Arguments. (line 158)
  44181. * INIT_CUMULATIVE_INCOMING_ARGS: Register Arguments. (line 186)
  44182. * INIT_CUMULATIVE_LIBCALL_ARGS: Register Arguments. (line 180)
  44183. * INIT_ENVIRONMENT: Driver. (line 309)
  44184. * INIT_EXPANDERS: Per-Function Data. (line 36)
  44185. * INIT_EXPR: Unary and Binary Expressions.
  44186. (line 6)
  44187. * init_machine_status: Per-Function Data. (line 42)
  44188. * init_one_libfunc: Library Calls. (line 15)
  44189. * INIT_SECTION_ASM_OP: Sections. (line 90)
  44190. * INIT_SECTION_ASM_OP <1>: Macros for Initialization.
  44191. (line 9)
  44192. * inlining: Target Attributes. (line 103)
  44193. * insert_insn_on_edge: Maintaining the CFG.
  44194. (line 104)
  44195. * insn: Insns. (line 63)
  44196. * insn and /f: Flags. (line 135)
  44197. * insn and /j: Flags. (line 171)
  44198. * insn and /s: Flags. (line 38)
  44199. * insn and /s <1>: Flags. (line 162)
  44200. * insn and /u: Flags. (line 28)
  44201. * insn and /v: Flags. (line 33)
  44202. * insn attributes: Insn Attributes. (line 6)
  44203. * insn canonicalization: Insn Canonicalizations.
  44204. (line 6)
  44205. * insn includes: Including Patterns. (line 6)
  44206. * insn lengths, computing: Insn Lengths. (line 6)
  44207. * insn notes, notes: Basic Blocks. (line 52)
  44208. * insn splitting: Insn Splitting. (line 6)
  44209. * insn-attr.h: Defining Attributes.
  44210. (line 34)
  44211. * insns: Insns. (line 6)
  44212. * insns, generating: RTL Template. (line 6)
  44213. * insns, recognizing: RTL Template. (line 6)
  44214. * INSN_ANNULLED_BRANCH_P: Flags. (line 28)
  44215. * INSN_CODE: Insns. (line 318)
  44216. * INSN_DELETED_P: Flags. (line 33)
  44217. * INSN_FROM_TARGET_P: Flags. (line 38)
  44218. * insn_list: Insns. (line 568)
  44219. * INSN_REFERENCES_ARE_DELAYED: Misc. (line 502)
  44220. * INSN_SETS_ARE_DELAYED: Misc. (line 491)
  44221. * INSN_UID: Insns. (line 23)
  44222. * INSN_VAR_LOCATION: Insns. (line 247)
  44223. * instruction attributes: Insn Attributes. (line 6)
  44224. * instruction latency time: Processor pipeline description.
  44225. (line 6)
  44226. * instruction latency time <1>: Processor pipeline description.
  44227. (line 105)
  44228. * instruction latency time <2>: Processor pipeline description.
  44229. (line 196)
  44230. * instruction patterns: Patterns. (line 6)
  44231. * instruction splitting: Insn Splitting. (line 6)
  44232. * insv instruction pattern: Standard Names. (line 1562)
  44233. * insvM instruction pattern: Standard Names. (line 1514)
  44234. * insvmisalignM instruction pattern: Standard Names. (line 1524)
  44235. * int iterators in .md files: Int Iterators. (line 6)
  44236. * INT16_TYPE: Type Layout. (line 210)
  44237. * INT32_TYPE: Type Layout. (line 211)
  44238. * INT64_TYPE: Type Layout. (line 212)
  44239. * INT8_TYPE: Type Layout. (line 209)
  44240. * INTEGER_CST: Constant expressions.
  44241. (line 6)
  44242. * INTEGER_TYPE: Types. (line 6)
  44243. * inter-procedural optimization passes: IPA passes. (line 6)
  44244. * Interdependence of Patterns: Dependent Patterns. (line 6)
  44245. * interfacing to GCC output: Interface. (line 6)
  44246. * interlock delays: Processor pipeline description.
  44247. (line 6)
  44248. * intermediate representation lowering: Parsing pass. (line 13)
  44249. * INTMAX_TYPE: Type Layout. (line 186)
  44250. * INTPTR_TYPE: Type Layout. (line 233)
  44251. * introduction: Top. (line 6)
  44252. * INT_FAST16_TYPE: Type Layout. (line 226)
  44253. * INT_FAST32_TYPE: Type Layout. (line 227)
  44254. * INT_FAST64_TYPE: Type Layout. (line 228)
  44255. * INT_FAST8_TYPE: Type Layout. (line 225)
  44256. * INT_LEAST16_TYPE: Type Layout. (line 218)
  44257. * INT_LEAST32_TYPE: Type Layout. (line 219)
  44258. * INT_LEAST64_TYPE: Type Layout. (line 220)
  44259. * INT_LEAST8_TYPE: Type Layout. (line 217)
  44260. * INT_TYPE_SIZE: Type Layout. (line 11)
  44261. * INVOKE__main: Macros for Initialization.
  44262. (line 50)
  44263. * in_struct: Flags. (line 254)
  44264. * in_struct, in code_label and note: Flags. (line 48)
  44265. * in_struct, in insn and jump_insn and call_insn: Flags. (line 38)
  44266. * in_struct, in insn, call_insn, jump_insn and jump_table_data: Flags.
  44267. (line 162)
  44268. * in_struct, in subreg: Flags. (line 201)
  44269. * ior: Arithmetic. (line 163)
  44270. * ior and attributes: Expressions. (line 50)
  44271. * ior, canonicalization of: Insn Canonicalizations.
  44272. (line 67)
  44273. * iorM3 instruction pattern: Standard Names. (line 442)
  44274. * IPA passes: IPA passes. (line 6)
  44275. * IRA_HARD_REGNO_ADD_COST_MULTIPLIER: Allocation Order. (line 44)
  44276. * is_a: Machine Modes. (line 347)
  44277. * IS_ASM_LOGICAL_LINE_SEPARATOR: Data Output. (line 129)
  44278. * is_gimple_addressable: Logical Operators. (line 113)
  44279. * is_gimple_asm_val: Logical Operators. (line 117)
  44280. * is_gimple_assign: Logical Operators. (line 149)
  44281. * is_gimple_call: Logical Operators. (line 152)
  44282. * is_gimple_call_addr: Logical Operators. (line 120)
  44283. * is_gimple_constant: Logical Operators. (line 128)
  44284. * is_gimple_debug: Logical Operators. (line 155)
  44285. * is_gimple_ip_invariant: Logical Operators. (line 137)
  44286. * is_gimple_ip_invariant_address: Logical Operators. (line 142)
  44287. * is_gimple_mem_ref_addr: Logical Operators. (line 124)
  44288. * is_gimple_min_invariant: Logical Operators. (line 131)
  44289. * is_gimple_omp: Logical Operators. (line 166)
  44290. * is_gimple_val: Logical Operators. (line 107)
  44291. * iterators in .md files: Iterators. (line 6)
  44292. * IV analysis on GIMPLE: Scalar evolutions. (line 6)
  44293. * IV analysis on RTL: loop-iv. (line 6)
  44294. * JMP_BUF_SIZE: Exception Region Output.
  44295. (line 83)
  44296. * jump: Flags. (line 295)
  44297. * jump instruction pattern: Standard Names. (line 1704)
  44298. * jump instruction patterns: Jump Patterns. (line 6)
  44299. * jump instructions and set: Side Effects. (line 56)
  44300. * jump, in call_insn: Flags. (line 175)
  44301. * jump, in insn: Flags. (line 171)
  44302. * jump, in mem: Flags. (line 59)
  44303. * Jumps: Jumps. (line 6)
  44304. * JUMP_ALIGN: Alignment Output. (line 8)
  44305. * jump_insn: Insns. (line 73)
  44306. * jump_insn and /f: Flags. (line 135)
  44307. * jump_insn and /j: Flags. (line 10)
  44308. * jump_insn and /s: Flags. (line 38)
  44309. * jump_insn and /s <1>: Flags. (line 162)
  44310. * jump_insn and /u: Flags. (line 28)
  44311. * jump_insn and /v: Flags. (line 33)
  44312. * JUMP_LABEL: Insns. (line 80)
  44313. * JUMP_TABLES_IN_TEXT_SECTION: Sections. (line 155)
  44314. * jump_table_data: Insns. (line 166)
  44315. * jump_table_data and /s: Flags. (line 162)
  44316. * jump_table_data and /v: Flags. (line 33)
  44317. * LABEL_ALIGN: Alignment Output. (line 42)
  44318. * LABEL_ALIGN_AFTER_BARRIER: Alignment Output. (line 21)
  44319. * LABEL_ALTERNATE_NAME: Edges. (line 180)
  44320. * LABEL_ALT_ENTRY_P: Insns. (line 146)
  44321. * LABEL_DECL: Declarations. (line 6)
  44322. * LABEL_KIND: Insns. (line 146)
  44323. * LABEL_NUSES: Insns. (line 142)
  44324. * LABEL_PRESERVE_P: Flags. (line 48)
  44325. * label_ref: Constants. (line 199)
  44326. * label_ref and /v: Flags. (line 54)
  44327. * label_ref, RTL sharing: Sharing. (line 38)
  44328. * LABEL_REF_NONLOCAL_P: Flags. (line 54)
  44329. * language-dependent trees: Language-dependent trees.
  44330. (line 6)
  44331. * language-independent intermediate representation: Parsing pass.
  44332. (line 13)
  44333. * lang_hooks.gimplify_expr: Gimplification pass.
  44334. (line 18)
  44335. * lang_hooks.parse_file: Parsing pass. (line 6)
  44336. * large return values: Aggregate Return. (line 6)
  44337. * LAST_STACK_REG: Stack Registers. (line 30)
  44338. * LAST_VIRTUAL_REGISTER: Regs and Memory. (line 51)
  44339. * late IPA passes: Late IPA passes. (line 6)
  44340. * lceilMN2: Standard Names. (line 1137)
  44341. * LCSSA: LCSSA. (line 6)
  44342. * LDD_SUFFIX: Macros for Initialization.
  44343. (line 121)
  44344. * ldexpM3 instruction pattern: Standard Names. (line 922)
  44345. * LD_FINI_SWITCH: Macros for Initialization.
  44346. (line 28)
  44347. * LD_INIT_SWITCH: Macros for Initialization.
  44348. (line 24)
  44349. * le: Comparisons. (line 76)
  44350. * le and attributes: Expressions. (line 83)
  44351. * leaf functions: Leaf Functions. (line 6)
  44352. * leaf_function_p: Standard Names. (line 1788)
  44353. * LEAF_REGISTERS: Leaf Functions. (line 23)
  44354. * LEAF_REG_REMAP: Leaf Functions. (line 37)
  44355. * left rotate: Arithmetic. (line 195)
  44356. * left shift: Arithmetic. (line 173)
  44357. * LEGITIMATE_PIC_OPERAND_P: PIC. (line 31)
  44358. * LEGITIMIZE_RELOAD_ADDRESS: Addressing Modes. (line 150)
  44359. * length: GTY Options. (line 47)
  44360. * less than: Comparisons. (line 68)
  44361. * less than or equal: Comparisons. (line 76)
  44362. * leu: Comparisons. (line 76)
  44363. * leu and attributes: Expressions. (line 83)
  44364. * LE_EXPR: Unary and Binary Expressions.
  44365. (line 6)
  44366. * lfloorMN2: Standard Names. (line 1132)
  44367. * LIB2FUNCS_EXTRA: Target Fragment. (line 11)
  44368. * LIBCALL_VALUE: Scalar Return. (line 56)
  44369. * libgcc.a: Library Calls. (line 6)
  44370. * LIBGCC2_CFLAGS: Target Fragment. (line 8)
  44371. * LIBGCC2_GNU_PREFIX: Type Layout. (line 102)
  44372. * LIBGCC2_UNWIND_ATTRIBUTE: Misc. (line 1047)
  44373. * LIBGCC_SPEC: Driver. (line 115)
  44374. * library subroutine names: Library Calls. (line 6)
  44375. * LIBRARY_PATH_ENV: Misc. (line 543)
  44376. * LIB_SPEC: Driver. (line 107)
  44377. * LIMIT_RELOAD_CLASS: Register Classes. (line 296)
  44378. * LINK_COMMAND_SPEC: Driver. (line 240)
  44379. * LINK_EH_SPEC: Driver. (line 142)
  44380. * LINK_GCC_C_SEQUENCE_SPEC: Driver. (line 232)
  44381. * LINK_LIBGCC_SPECIAL_1: Driver. (line 227)
  44382. * LINK_SPEC: Driver. (line 100)
  44383. * list: Containers. (line 6)
  44384. * Liveness representation: Liveness information.
  44385. (line 6)
  44386. * load address instruction: Simple Constraints. (line 162)
  44387. * LOAD_EXTEND_OP: Misc. (line 80)
  44388. * load_multiple instruction pattern: Standard Names. (line 136)
  44389. * Local Register Allocator (LRA): RTL passes. (line 187)
  44390. * LOCAL_ALIGNMENT: Storage Layout. (line 284)
  44391. * LOCAL_CLASS_P: Classes. (line 70)
  44392. * LOCAL_DECL_ALIGNMENT: Storage Layout. (line 321)
  44393. * LOCAL_INCLUDE_DIR: Driver. (line 316)
  44394. * LOCAL_LABEL_PREFIX: Instruction Output. (line 151)
  44395. * LOCAL_REGNO: Register Basics. (line 143)
  44396. * location information: Guidelines for Diagnostics.
  44397. (line 159)
  44398. * log10M2 instruction pattern: Standard Names. (line 1026)
  44399. * log1pM2 instruction pattern: Standard Names. (line 1016)
  44400. * log2M2 instruction pattern: Standard Names. (line 1033)
  44401. * logbM2 instruction pattern: Standard Names. (line 1040)
  44402. * Logical Operators: Logical Operators. (line 6)
  44403. * logical-and, bitwise: Arithmetic. (line 158)
  44404. * LOGICAL_OP_NON_SHORT_CIRCUIT: Costs. (line 294)
  44405. * logM2 instruction pattern: Standard Names. (line 1009)
  44406. * LOG_LINKS: Insns. (line 337)
  44407. * longjmp and automatic variables: Interface. (line 52)
  44408. * LONG_ACCUM_TYPE_SIZE: Type Layout. (line 92)
  44409. * LONG_DOUBLE_TYPE_SIZE: Type Layout. (line 57)
  44410. * LONG_FRACT_TYPE_SIZE: Type Layout. (line 72)
  44411. * LONG_LONG_ACCUM_TYPE_SIZE: Type Layout. (line 97)
  44412. * LONG_LONG_FRACT_TYPE_SIZE: Type Layout. (line 77)
  44413. * LONG_LONG_TYPE_SIZE: Type Layout. (line 32)
  44414. * LONG_TYPE_SIZE: Type Layout. (line 21)
  44415. * Loop analysis: Loop representation.
  44416. (line 6)
  44417. * Loop manipulation: Loop manipulation. (line 6)
  44418. * Loop querying: Loop querying. (line 6)
  44419. * Loop representation: Loop representation.
  44420. (line 6)
  44421. * Loop-closed SSA form: LCSSA. (line 6)
  44422. * looping instruction patterns: Looping Patterns. (line 6)
  44423. * LOOP_ALIGN: Alignment Output. (line 29)
  44424. * LOOP_EXPR: Unary and Binary Expressions.
  44425. (line 6)
  44426. * lowering, language-dependent intermediate representation: Parsing pass.
  44427. (line 13)
  44428. * lo_sum: Arithmetic. (line 25)
  44429. * lrintMN2: Standard Names. (line 1122)
  44430. * lroundMN2: Standard Names. (line 1127)
  44431. * lshiftrt: Arithmetic. (line 190)
  44432. * lshiftrt and attributes: Expressions. (line 83)
  44433. * LSHIFT_EXPR: Unary and Binary Expressions.
  44434. (line 6)
  44435. * lshrM3 instruction pattern: Standard Names. (line 840)
  44436. * lt: Comparisons. (line 68)
  44437. * lt and attributes: Expressions. (line 83)
  44438. * LTGT_EXPR: Unary and Binary Expressions.
  44439. (line 6)
  44440. * lto: LTO. (line 6)
  44441. * ltrans: LTO. (line 6)
  44442. * ltu: Comparisons. (line 68)
  44443. * LT_EXPR: Unary and Binary Expressions.
  44444. (line 6)
  44445. * m in constraint: Simple Constraints. (line 17)
  44446. * machine attributes: Target Attributes. (line 6)
  44447. * machine description macros: Target Macros. (line 6)
  44448. * machine descriptions: Machine Desc. (line 6)
  44449. * machine mode conversions: Conversions. (line 6)
  44450. * machine mode wrapper classes: Machine Modes. (line 286)
  44451. * machine modes: Machine Modes. (line 6)
  44452. * machine specific constraints: Machine Constraints.
  44453. (line 6)
  44454. * machine-independent predicates: Machine-Independent Predicates.
  44455. (line 6)
  44456. * machine_mode: Machine Modes. (line 6)
  44457. * MACH_DEP_SECTION_ASM_FLAG: Sections. (line 120)
  44458. * macros, target description: Target Macros. (line 6)
  44459. * maddMN4 instruction pattern: Standard Names. (line 761)
  44460. * makefile fragment: Fragments. (line 6)
  44461. * makefile targets: Makefile. (line 6)
  44462. * MAKE_DECL_ONE_ONLY: Label Output. (line 281)
  44463. * make_safe_from: Expander Definitions.
  44464. (line 151)
  44465. * MALLOC_ABI_ALIGNMENT: Storage Layout. (line 190)
  44466. * Manipulating GIMPLE statements: Manipulating GIMPLE statements.
  44467. (line 6)
  44468. * marking roots: GGC Roots. (line 6)
  44469. * maskloadMN instruction pattern: Standard Names. (line 396)
  44470. * maskstoreMN instruction pattern: Standard Names. (line 403)
  44471. * mask_fold_left_plus_M instruction pattern: Standard Names. (line 564)
  44472. * mask_gather_loadMN instruction pattern: Standard Names. (line 249)
  44473. * MASK_RETURN_ADDR: Exception Region Output.
  44474. (line 35)
  44475. * mask_scatter_storeMN instruction pattern: Standard Names. (line 272)
  44476. * Match and Simplify: Match and Simplify. (line 6)
  44477. * matching constraint: Simple Constraints. (line 140)
  44478. * matching operands: Output Template. (line 49)
  44479. * match_dup: RTL Template. (line 73)
  44480. * match_dup <1>: define_peephole2. (line 28)
  44481. * match_dup and attributes: Insn Lengths. (line 16)
  44482. * match_operand: RTL Template. (line 16)
  44483. * match_operand and attributes: Expressions. (line 55)
  44484. * match_operator: RTL Template. (line 95)
  44485. * match_op_dup: RTL Template. (line 163)
  44486. * match_parallel: RTL Template. (line 172)
  44487. * match_par_dup: RTL Template. (line 219)
  44488. * match_scratch: RTL Template. (line 58)
  44489. * match_scratch <1>: define_peephole2. (line 28)
  44490. * match_test and attributes: Expressions. (line 64)
  44491. * math library: Soft float library routines.
  44492. (line 6)
  44493. * math, in RTL: Arithmetic. (line 6)
  44494. * matherr: Library Calls. (line 59)
  44495. * MATH_LIBRARY: Misc. (line 536)
  44496. * maxM3 instruction pattern: Standard Names. (line 503)
  44497. * MAX_BITSIZE_MODE_ANY_INT: Machine Modes. (line 444)
  44498. * MAX_BITSIZE_MODE_ANY_MODE: Machine Modes. (line 450)
  44499. * MAX_BITS_PER_WORD: Storage Layout. (line 54)
  44500. * MAX_CONDITIONAL_EXECUTE: Misc. (line 558)
  44501. * MAX_FIXED_MODE_SIZE: Storage Layout. (line 466)
  44502. * MAX_MOVE_MAX: Misc. (line 127)
  44503. * MAX_OFILE_ALIGNMENT: Storage Layout. (line 228)
  44504. * MAX_REGS_PER_ADDRESS: Addressing Modes. (line 42)
  44505. * MAX_STACK_ALIGNMENT: Storage Layout. (line 222)
  44506. * maybe_undef: GTY Options. (line 141)
  44507. * may_trap_p, tree_could_trap_p: Edges. (line 114)
  44508. * mcount: Profiling. (line 12)
  44509. * MD_EXEC_PREFIX: Driver. (line 271)
  44510. * MD_FALLBACK_FRAME_STATE_FOR: Exception Handling. (line 93)
  44511. * MD_HANDLE_UNWABI: Exception Handling. (line 112)
  44512. * MD_STARTFILE_PREFIX: Driver. (line 299)
  44513. * MD_STARTFILE_PREFIX_1: Driver. (line 304)
  44514. * mem: Regs and Memory. (line 396)
  44515. * mem and /c: Flags. (line 70)
  44516. * mem and /f: Flags. (line 74)
  44517. * mem and /j: Flags. (line 59)
  44518. * mem and /u: Flags. (line 78)
  44519. * mem and /v: Flags. (line 65)
  44520. * mem, RTL sharing: Sharing. (line 43)
  44521. * memory model: Memory model. (line 6)
  44522. * memory reference, nonoffsettable: Simple Constraints. (line 254)
  44523. * memory references in constraints: Simple Constraints. (line 17)
  44524. * memory_barrier instruction pattern: Standard Names. (line 2172)
  44525. * memory_blockage instruction pattern: Standard Names. (line 2163)
  44526. * MEMORY_MOVE_COST: Costs. (line 53)
  44527. * memory_operand: Machine-Independent Predicates.
  44528. (line 57)
  44529. * MEM_ADDR_SPACE: Special Accessors. (line 48)
  44530. * MEM_ALIAS_SET: Special Accessors. (line 9)
  44531. * MEM_ALIGN: Special Accessors. (line 45)
  44532. * MEM_EXPR: Special Accessors. (line 19)
  44533. * MEM_KEEP_ALIAS_SET_P: Flags. (line 59)
  44534. * MEM_NOTRAP_P: Flags. (line 70)
  44535. * MEM_OFFSET: Special Accessors. (line 31)
  44536. * MEM_OFFSET_KNOWN_P: Special Accessors. (line 27)
  44537. * MEM_POINTER: Flags. (line 74)
  44538. * MEM_READONLY_P: Flags. (line 78)
  44539. * MEM_REF: Storage References. (line 6)
  44540. * MEM_SIZE: Special Accessors. (line 39)
  44541. * MEM_SIZE_KNOWN_P: Special Accessors. (line 35)
  44542. * mem_thread_fence instruction pattern: Standard Names. (line 2462)
  44543. * MEM_VOLATILE_P: Flags. (line 65)
  44544. * METHOD_TYPE: Types. (line 6)
  44545. * MINIMUM_ALIGNMENT: Storage Layout. (line 334)
  44546. * MINIMUM_ATOMIC_ALIGNMENT: Storage Layout. (line 198)
  44547. * minM3 instruction pattern: Standard Names. (line 503)
  44548. * minus: Arithmetic. (line 38)
  44549. * minus and attributes: Expressions. (line 83)
  44550. * minus, canonicalization of: Insn Canonicalizations.
  44551. (line 27)
  44552. * MINUS_EXPR: Unary and Binary Expressions.
  44553. (line 6)
  44554. * MIN_UNITS_PER_WORD: Storage Layout. (line 64)
  44555. * MIPS coprocessor-definition macros: MIPS Coprocessors. (line 6)
  44556. * miscellaneous register hooks: Miscellaneous Register Hooks.
  44557. (line 6)
  44558. * mnemonic attribute: Mnemonic Attribute. (line 6)
  44559. * mod: Arithmetic. (line 136)
  44560. * mod and attributes: Expressions. (line 83)
  44561. * mode classes: Machine Modes. (line 226)
  44562. * mode iterators in .md files: Mode Iterators. (line 6)
  44563. * mode switching: Mode Switching. (line 6)
  44564. * MODE_ACCUM: Machine Modes. (line 256)
  44565. * MODE_BASE_REG_CLASS: Register Classes. (line 116)
  44566. * MODE_BASE_REG_REG_CLASS: Register Classes. (line 122)
  44567. * MODE_CC: Machine Modes. (line 271)
  44568. * MODE_CC <1>: MODE_CC Condition Codes.
  44569. (line 6)
  44570. * MODE_CODE_BASE_REG_CLASS: Register Classes. (line 129)
  44571. * MODE_COMPLEX_FLOAT: Machine Modes. (line 267)
  44572. * MODE_COMPLEX_INT: Machine Modes. (line 264)
  44573. * MODE_DECIMAL_FLOAT: Machine Modes. (line 244)
  44574. * MODE_FLOAT: Machine Modes. (line 240)
  44575. * MODE_FRACT: Machine Modes. (line 248)
  44576. * MODE_INT: Machine Modes. (line 232)
  44577. * MODE_PARTIAL_INT: Machine Modes. (line 236)
  44578. * MODE_POINTER_BOUNDS: Machine Modes. (line 276)
  44579. * MODE_RANDOM: Machine Modes. (line 281)
  44580. * MODE_UACCUM: Machine Modes. (line 260)
  44581. * MODE_UFRACT: Machine Modes. (line 252)
  44582. * modifiers in constraints: Modifiers. (line 6)
  44583. * MODIFY_EXPR: Unary and Binary Expressions.
  44584. (line 6)
  44585. * modM3 instruction pattern: Standard Names. (line 442)
  44586. * modulo scheduling: RTL passes. (line 123)
  44587. * MOVE_MAX: Misc. (line 122)
  44588. * MOVE_MAX_PIECES: Costs. (line 210)
  44589. * MOVE_RATIO: Costs. (line 149)
  44590. * movM instruction pattern: Standard Names. (line 11)
  44591. * movmemM instruction pattern: Standard Names. (line 1281)
  44592. * movmisalignM instruction pattern: Standard Names. (line 125)
  44593. * movMODEcc instruction pattern: Standard Names. (line 1576)
  44594. * movstr instruction pattern: Standard Names. (line 1317)
  44595. * movstrictM instruction pattern: Standard Names. (line 119)
  44596. * msubMN4 instruction pattern: Standard Names. (line 784)
  44597. * mulhisi3 instruction pattern: Standard Names. (line 737)
  44598. * mulM3 instruction pattern: Standard Names. (line 442)
  44599. * mulqihi3 instruction pattern: Standard Names. (line 741)
  44600. * mulsidi3 instruction pattern: Standard Names. (line 741)
  44601. * mult: Arithmetic. (line 93)
  44602. * mult and attributes: Expressions. (line 83)
  44603. * mult, canonicalization of: Insn Canonicalizations.
  44604. (line 27)
  44605. * mult, canonicalization of <1>: Insn Canonicalizations.
  44606. (line 107)
  44607. * MULTIARCH_DIRNAME: Target Fragment. (line 173)
  44608. * MULTILIB_DEFAULTS: Driver. (line 256)
  44609. * MULTILIB_DIRNAMES: Target Fragment. (line 44)
  44610. * MULTILIB_EXCEPTIONS: Target Fragment. (line 70)
  44611. * MULTILIB_EXTRA_OPTS: Target Fragment. (line 135)
  44612. * MULTILIB_MATCHES: Target Fragment. (line 63)
  44613. * MULTILIB_OPTIONS: Target Fragment. (line 24)
  44614. * MULTILIB_OSDIRNAMES: Target Fragment. (line 142)
  44615. * MULTILIB_REQUIRED: Target Fragment. (line 82)
  44616. * MULTILIB_REUSE: Target Fragment. (line 103)
  44617. * multiple alternative constraints: Multi-Alternative. (line 6)
  44618. * MULTIPLE_SYMBOL_SPACES: Misc. (line 515)
  44619. * multiplication: Arithmetic. (line 93)
  44620. * multiplication with signed saturation: Arithmetic. (line 93)
  44621. * multiplication with unsigned saturation: Arithmetic. (line 93)
  44622. * MULT_EXPR: Unary and Binary Expressions.
  44623. (line 6)
  44624. * MULT_HIGHPART_EXPR: Unary and Binary Expressions.
  44625. (line 6)
  44626. * mulvM4 instruction pattern: Standard Names. (line 458)
  44627. * n in constraint: Simple Constraints. (line 73)
  44628. * name: Identifiers. (line 6)
  44629. * named address spaces: Named Address Spaces.
  44630. (line 6)
  44631. * named patterns and conditions: Patterns. (line 61)
  44632. * names, pattern: Standard Names. (line 6)
  44633. * namespace, scope: Namespaces. (line 6)
  44634. * NAMESPACE_DECL: Declarations. (line 6)
  44635. * NAMESPACE_DECL <1>: Namespaces. (line 6)
  44636. * NATIVE_SYSTEM_HEADER_COMPONENT: Driver. (line 326)
  44637. * ne: Comparisons. (line 56)
  44638. * ne and attributes: Expressions. (line 83)
  44639. * nearbyintM2 instruction pattern: Standard Names. (line 1106)
  44640. * neg: Arithmetic. (line 82)
  44641. * neg and attributes: Expressions. (line 83)
  44642. * neg, canonicalization of: Insn Canonicalizations.
  44643. (line 27)
  44644. * NEGATE_EXPR: Unary and Binary Expressions.
  44645. (line 6)
  44646. * negation: Arithmetic. (line 82)
  44647. * negation with signed saturation: Arithmetic. (line 82)
  44648. * negation with unsigned saturation: Arithmetic. (line 82)
  44649. * negM2 instruction pattern: Standard Names. (line 872)
  44650. * negMODEcc instruction pattern: Standard Names. (line 1645)
  44651. * negvM3 instruction pattern: Standard Names. (line 875)
  44652. * nested functions, support for: Trampolines. (line 6)
  44653. * nested_ptr: GTY Options. (line 149)
  44654. * next_bb, prev_bb, FOR_EACH_BB, FOR_ALL_BB: Basic Blocks. (line 25)
  44655. * NEXT_INSN: Insns. (line 30)
  44656. * NEXT_OBJC_RUNTIME: Library Calls. (line 86)
  44657. * NE_EXPR: Unary and Binary Expressions.
  44658. (line 6)
  44659. * nil: RTL Objects. (line 73)
  44660. * NM_FLAGS: Macros for Initialization.
  44661. (line 110)
  44662. * nondeterministic finite state automaton: Processor pipeline description.
  44663. (line 304)
  44664. * nonimmediate_operand: Machine-Independent Predicates.
  44665. (line 100)
  44666. * nonlocal goto handler: Edges. (line 171)
  44667. * nonlocal_goto instruction pattern: Standard Names. (line 1998)
  44668. * nonlocal_goto_receiver instruction pattern: Standard Names.
  44669. (line 2015)
  44670. * nonmemory_operand: Machine-Independent Predicates.
  44671. (line 96)
  44672. * nonoffsettable memory reference: Simple Constraints. (line 254)
  44673. * NON_LVALUE_EXPR: Unary and Binary Expressions.
  44674. (line 6)
  44675. * nop instruction pattern: Standard Names. (line 1821)
  44676. * NOP_EXPR: Unary and Binary Expressions.
  44677. (line 6)
  44678. * normal predicates: Predicates. (line 31)
  44679. * not: Arithmetic. (line 154)
  44680. * not and attributes: Expressions. (line 50)
  44681. * not equal: Comparisons. (line 56)
  44682. * not, canonicalization of: Insn Canonicalizations.
  44683. (line 27)
  44684. * note: Insns. (line 183)
  44685. * note and /i: Flags. (line 48)
  44686. * note and /v: Flags. (line 33)
  44687. * NOTE_INSN_BASIC_BLOCK: Basic Blocks. (line 50)
  44688. * NOTE_INSN_BASIC_BLOCK <1>: Basic Blocks. (line 52)
  44689. * NOTE_INSN_BEGIN_STMT: Insns. (line 233)
  44690. * NOTE_INSN_BLOCK_BEG: Insns. (line 208)
  44691. * NOTE_INSN_BLOCK_END: Insns. (line 208)
  44692. * NOTE_INSN_DELETED: Insns. (line 198)
  44693. * NOTE_INSN_DELETED_LABEL: Insns. (line 203)
  44694. * NOTE_INSN_EH_REGION_BEG: Insns. (line 214)
  44695. * NOTE_INSN_EH_REGION_END: Insns. (line 214)
  44696. * NOTE_INSN_FUNCTION_BEG: Insns. (line 221)
  44697. * NOTE_INSN_INLINE_ENTRY: Insns. (line 238)
  44698. * NOTE_INSN_VAR_LOCATION: Insns. (line 225)
  44699. * NOTE_LINE_NUMBER: Insns. (line 183)
  44700. * NOTE_SOURCE_FILE: Insns. (line 183)
  44701. * NOTE_VAR_LOCATION: Insns. (line 225)
  44702. * NOTICE_UPDATE_CC: CC0 Condition Codes.
  44703. (line 30)
  44704. * notMODEcc instruction pattern: Standard Names. (line 1652)
  44705. * NO_DBX_BNSYM_ENSYM: DBX Hooks. (line 25)
  44706. * NO_DBX_FUNCTION_END: DBX Hooks. (line 19)
  44707. * NO_DBX_GCC_MARKER: File Names and DBX. (line 27)
  44708. * NO_DBX_MAIN_SOURCE_DIRECTORY: File Names and DBX. (line 22)
  44709. * NO_DOLLAR_IN_LABEL: Label Output. (line 64)
  44710. * NO_DOT_IN_LABEL: Label Output. (line 70)
  44711. * NO_FUNCTION_CSE: Costs. (line 289)
  44712. * NO_PROFILE_COUNTERS: Profiling. (line 27)
  44713. * NO_REGS: Register Classes. (line 17)
  44714. * Number of iterations analysis: Number of iterations.
  44715. (line 6)
  44716. * NUM_MACHINE_MODES: Machine Modes. (line 383)
  44717. * NUM_MODES_FOR_MODE_SWITCHING: Mode Switching. (line 30)
  44718. * NUM_POLY_INT_COEFFS: Overview of poly_int.
  44719. (line 24)
  44720. * N_REG_CLASSES: Register Classes. (line 81)
  44721. * o in constraint: Simple Constraints. (line 23)
  44722. * OACC_CACHE: OpenACC. (line 6)
  44723. * OACC_DATA: OpenACC. (line 6)
  44724. * OACC_DECLARE: OpenACC. (line 6)
  44725. * OACC_ENTER_DATA: OpenACC. (line 6)
  44726. * OACC_EXIT_DATA: OpenACC. (line 6)
  44727. * OACC_HOST_DATA: OpenACC. (line 6)
  44728. * OACC_KERNELS: OpenACC. (line 6)
  44729. * OACC_LOOP: OpenACC. (line 6)
  44730. * OACC_PARALLEL: OpenACC. (line 6)
  44731. * OACC_SERIAL: OpenACC. (line 6)
  44732. * OACC_UPDATE: OpenACC. (line 6)
  44733. * OBJC_GEN_METHOD_LABEL: Label Output. (line 482)
  44734. * OBJC_JBLEN: Misc. (line 1042)
  44735. * OBJECT_FORMAT_COFF: Macros for Initialization.
  44736. (line 96)
  44737. * offsettable address: Simple Constraints. (line 23)
  44738. * OFFSET_TYPE: Types. (line 6)
  44739. * OImode: Machine Modes. (line 51)
  44740. * OMP_ATOMIC: OpenMP. (line 6)
  44741. * OMP_CLAUSE: OpenMP. (line 6)
  44742. * OMP_CONTINUE: OpenMP. (line 6)
  44743. * OMP_CRITICAL: OpenMP. (line 6)
  44744. * OMP_FOR: OpenMP. (line 6)
  44745. * OMP_MASTER: OpenMP. (line 6)
  44746. * OMP_ORDERED: OpenMP. (line 6)
  44747. * OMP_PARALLEL: OpenMP. (line 6)
  44748. * OMP_RETURN: OpenMP. (line 6)
  44749. * OMP_SECTION: OpenMP. (line 6)
  44750. * OMP_SECTIONS: OpenMP. (line 6)
  44751. * OMP_SINGLE: OpenMP. (line 6)
  44752. * one_cmplM2 instruction pattern: Standard Names. (line 1241)
  44753. * operand access: Accessors. (line 6)
  44754. * Operand Access Routines: SSA Operands. (line 116)
  44755. * operand constraints: Constraints. (line 6)
  44756. * Operand Iterators: SSA Operands. (line 116)
  44757. * operand predicates: Predicates. (line 6)
  44758. * operand substitution: Output Template. (line 6)
  44759. * Operands: Operands. (line 6)
  44760. * operands: SSA Operands. (line 6)
  44761. * operands <1>: Patterns. (line 67)
  44762. * operator predicates: Predicates. (line 6)
  44763. * optc-gen.awk: Options. (line 6)
  44764. * OPTGROUP_ALL: Optimization groups.
  44765. (line 28)
  44766. * OPTGROUP_INLINE: Optimization groups.
  44767. (line 15)
  44768. * OPTGROUP_IPA: Optimization groups.
  44769. (line 9)
  44770. * OPTGROUP_LOOP: Optimization groups.
  44771. (line 12)
  44772. * OPTGROUP_OMP: Optimization groups.
  44773. (line 18)
  44774. * OPTGROUP_OTHER: Optimization groups.
  44775. (line 24)
  44776. * OPTGROUP_VEC: Optimization groups.
  44777. (line 21)
  44778. * optimization dumps: Optimization info. (line 6)
  44779. * optimization groups: Optimization groups.
  44780. (line 6)
  44781. * optimization info file names: Dump files and streams.
  44782. (line 6)
  44783. * Optimization infrastructure for GIMPLE: Tree SSA. (line 6)
  44784. * OPTIMIZE_MODE_SWITCHING: Mode Switching. (line 8)
  44785. * option specification files: Options. (line 6)
  44786. * optional hardware or system features: Run-time Target. (line 59)
  44787. * options, directory search: Including Patterns. (line 47)
  44788. * options, guidelines for: Guidelines for Options.
  44789. (line 6)
  44790. * OPTION_DEFAULT_SPECS: Driver. (line 25)
  44791. * opt_mode: Machine Modes. (line 322)
  44792. * order of register allocation: Allocation Order. (line 6)
  44793. * ordered_comparison_operator: Machine-Independent Predicates.
  44794. (line 115)
  44795. * ORDERED_EXPR: Unary and Binary Expressions.
  44796. (line 6)
  44797. * Ordering of Patterns: Pattern Ordering. (line 6)
  44798. * ORIGINAL_REGNO: Special Accessors. (line 53)
  44799. * other register constraints: Simple Constraints. (line 171)
  44800. * outgoing_args_size: Stack Arguments. (line 48)
  44801. * OUTGOING_REGNO: Register Basics. (line 136)
  44802. * OUTGOING_REG_PARM_STACK_SPACE: Stack Arguments. (line 79)
  44803. * output of assembler code: File Framework. (line 6)
  44804. * output statements: Output Statement. (line 6)
  44805. * output templates: Output Template. (line 6)
  44806. * output_asm_insn: Output Statement. (line 52)
  44807. * OUTPUT_QUOTED_STRING: File Framework. (line 105)
  44808. * OVERLAPPING_REGISTER_NAMES: Instruction Output. (line 20)
  44809. * OVERLOAD: Functions for C++. (line 6)
  44810. * OVERRIDE_ABI_FORMAT: Register Arguments. (line 150)
  44811. * OVL_CURRENT: Functions for C++. (line 6)
  44812. * OVL_NEXT: Functions for C++. (line 6)
  44813. * p in constraint: Simple Constraints. (line 162)
  44814. * PAD_VARARGS_DOWN: Register Arguments. (line 230)
  44815. * parallel: Side Effects. (line 210)
  44816. * parameters, c++ abi: C++ ABI. (line 6)
  44817. * parameters, d abi: D Language and ABI. (line 6)
  44818. * parameters, miscellaneous: Misc. (line 6)
  44819. * parameters, precompiled headers: PCH Target. (line 6)
  44820. * parity: Arithmetic. (line 242)
  44821. * parityM2 instruction pattern: Standard Names. (line 1228)
  44822. * PARM_BOUNDARY: Storage Layout. (line 150)
  44823. * PARM_DECL: Declarations. (line 6)
  44824. * PARSE_LDD_OUTPUT: Macros for Initialization.
  44825. (line 125)
  44826. * pass dumps: Passes. (line 6)
  44827. * passes and files of the compiler: Passes. (line 6)
  44828. * passing arguments: Interface. (line 36)
  44829. * pass_duplicate_computed_gotos: Edges. (line 161)
  44830. * PATH_SEPARATOR: Filesystem. (line 31)
  44831. * PATTERN: Insns. (line 307)
  44832. * pattern conditions: Patterns. (line 55)
  44833. * pattern names: Standard Names. (line 6)
  44834. * Pattern Ordering: Pattern Ordering. (line 6)
  44835. * patterns: Patterns. (line 6)
  44836. * pc: Regs and Memory. (line 383)
  44837. * pc and attributes: Insn Lengths. (line 20)
  44838. * pc, RTL sharing: Sharing. (line 28)
  44839. * PCC_BITFIELD_TYPE_MATTERS: Storage Layout. (line 360)
  44840. * PCC_STATIC_STRUCT_RETURN: Aggregate Return. (line 64)
  44841. * PC_REGNUM: Register Basics. (line 150)
  44842. * pc_rtx: Regs and Memory. (line 388)
  44843. * PDImode: Machine Modes. (line 40)
  44844. * peephole optimization, RTL representation: Side Effects. (line 244)
  44845. * peephole optimizer definitions: Peephole Definitions.
  44846. (line 6)
  44847. * per-function data: Per-Function Data. (line 6)
  44848. * percent sign: Output Template. (line 6)
  44849. * PHI nodes: SSA. (line 31)
  44850. * PIC: PIC. (line 6)
  44851. * PIC_OFFSET_TABLE_REGNUM: PIC. (line 15)
  44852. * PIC_OFFSET_TABLE_REG_CALL_CLOBBERED: PIC. (line 25)
  44853. * pipeline hazard recognizer: Processor pipeline description.
  44854. (line 6)
  44855. * pipeline hazard recognizer <1>: Processor pipeline description.
  44856. (line 53)
  44857. * Plugins: Plugins. (line 6)
  44858. * plus: Arithmetic. (line 14)
  44859. * plus and attributes: Expressions. (line 83)
  44860. * plus, canonicalization of: Insn Canonicalizations.
  44861. (line 27)
  44862. * PLUS_EXPR: Unary and Binary Expressions.
  44863. (line 6)
  44864. * Pmode: Misc. (line 363)
  44865. * pmode_register_operand: Machine-Independent Predicates.
  44866. (line 34)
  44867. * pointer: Types. (line 6)
  44868. * POINTERS_EXTEND_UNSIGNED: Storage Layout. (line 76)
  44869. * POINTER_DIFF_EXPR: Unary and Binary Expressions.
  44870. (line 6)
  44871. * POINTER_PLUS_EXPR: Unary and Binary Expressions.
  44872. (line 6)
  44873. * POINTER_SIZE: Storage Layout. (line 70)
  44874. * POINTER_TYPE: Types. (line 6)
  44875. * polynomial integers: poly_int. (line 6)
  44876. * poly_int: poly_int. (line 6)
  44877. * poly_int, invariant range: Overview of poly_int.
  44878. (line 31)
  44879. * poly_int, main typedefs: Overview of poly_int.
  44880. (line 46)
  44881. * poly_int, runtime value: Overview of poly_int.
  44882. (line 6)
  44883. * poly_int, template parameters: Overview of poly_int.
  44884. (line 24)
  44885. * poly_int, use in target-independent code: Consequences of using poly_int.
  44886. (line 32)
  44887. * poly_int, use in target-specific code: Consequences of using poly_int.
  44888. (line 40)
  44889. * POLY_INT_CST: Constant expressions.
  44890. (line 6)
  44891. * popcount: Arithmetic. (line 238)
  44892. * popcountM2 instruction pattern: Standard Names. (line 1216)
  44893. * pops_args: Function Entry. (line 111)
  44894. * pop_operand: Machine-Independent Predicates.
  44895. (line 87)
  44896. * portability: Portability. (line 6)
  44897. * position independent code: PIC. (line 6)
  44898. * POSTDECREMENT_EXPR: Unary and Binary Expressions.
  44899. (line 6)
  44900. * POSTINCREMENT_EXPR: Unary and Binary Expressions.
  44901. (line 6)
  44902. * post_dec: Incdec. (line 25)
  44903. * post_inc: Incdec. (line 30)
  44904. * POST_LINK_SPEC: Driver. (line 236)
  44905. * post_modify: Incdec. (line 33)
  44906. * post_order_compute, inverted_post_order_compute, walk_dominator_tree: Basic Blocks.
  44907. (line 34)
  44908. * POWI_MAX_MULTS: Misc. (line 927)
  44909. * powM3 instruction pattern: Standard Names. (line 1054)
  44910. * pragma: Misc. (line 420)
  44911. * PREDECREMENT_EXPR: Unary and Binary Expressions.
  44912. (line 6)
  44913. * predefined macros: Run-time Target. (line 6)
  44914. * predicates: Predicates. (line 6)
  44915. * predicates and machine modes: Predicates. (line 31)
  44916. * predication: Conditional Execution.
  44917. (line 6)
  44918. * predict.def: Profile information.
  44919. (line 24)
  44920. * PREFERRED_DEBUGGING_TYPE: All Debuggers. (line 40)
  44921. * PREFERRED_RELOAD_CLASS: Register Classes. (line 249)
  44922. * PREFERRED_STACK_BOUNDARY: Storage Layout. (line 164)
  44923. * prefetch: Side Effects. (line 324)
  44924. * prefetch and /v: Flags. (line 92)
  44925. * prefetch instruction pattern: Standard Names. (line 2140)
  44926. * PREFETCH_SCHEDULE_BARRIER_P: Flags. (line 92)
  44927. * PREINCREMENT_EXPR: Unary and Binary Expressions.
  44928. (line 6)
  44929. * presence_set: Processor pipeline description.
  44930. (line 223)
  44931. * preserving SSA form: SSA. (line 74)
  44932. * pretend_args_size: Function Entry. (line 117)
  44933. * prev_active_insn: define_peephole. (line 60)
  44934. * PREV_INSN: Insns. (line 26)
  44935. * pre_dec: Incdec. (line 8)
  44936. * PRE_GCC3_DWARF_FRAME_REGISTERS: Frame Registers. (line 126)
  44937. * pre_inc: Incdec. (line 22)
  44938. * pre_modify: Incdec. (line 52)
  44939. * PRINT_OPERAND: Instruction Output. (line 95)
  44940. * PRINT_OPERAND_ADDRESS: Instruction Output. (line 122)
  44941. * PRINT_OPERAND_PUNCT_VALID_P: Instruction Output. (line 115)
  44942. * probe_stack instruction pattern: Standard Names. (line 1990)
  44943. * probe_stack_address instruction pattern: Standard Names. (line 1983)
  44944. * processor functional units: Processor pipeline description.
  44945. (line 6)
  44946. * processor functional units <1>: Processor pipeline description.
  44947. (line 68)
  44948. * processor pipeline description: Processor pipeline description.
  44949. (line 6)
  44950. * product: Arithmetic. (line 93)
  44951. * profile feedback: Profile information.
  44952. (line 14)
  44953. * profile representation: Profile information.
  44954. (line 6)
  44955. * PROFILE_BEFORE_PROLOGUE: Profiling. (line 34)
  44956. * PROFILE_HOOK: Profiling. (line 22)
  44957. * profiling, code generation: Profiling. (line 6)
  44958. * program counter: Regs and Memory. (line 384)
  44959. * prologue: Function Entry. (line 6)
  44960. * prologue instruction pattern: Standard Names. (line 2079)
  44961. * PROMOTE_MODE: Storage Layout. (line 87)
  44962. * pseudo registers: Regs and Memory. (line 9)
  44963. * PSImode: Machine Modes. (line 32)
  44964. * PTRDIFF_TYPE: Type Layout. (line 157)
  44965. * purge_dead_edges: Edges. (line 103)
  44966. * purge_dead_edges <1>: Maintaining the CFG.
  44967. (line 81)
  44968. * push address instruction: Simple Constraints. (line 162)
  44969. * pushM1 instruction pattern: Standard Names. (line 429)
  44970. * PUSH_ARGS: Stack Arguments. (line 17)
  44971. * PUSH_ARGS_REVERSED: Stack Arguments. (line 25)
  44972. * push_operand: Machine-Independent Predicates.
  44973. (line 80)
  44974. * push_reload: Addressing Modes. (line 176)
  44975. * PUSH_ROUNDING: Stack Arguments. (line 31)
  44976. * PUT_CODE: RTL Objects. (line 47)
  44977. * PUT_MODE: Machine Modes. (line 380)
  44978. * PUT_REG_NOTE_KIND: Insns. (line 369)
  44979. * QCmode: Machine Modes. (line 199)
  44980. * QFmode: Machine Modes. (line 57)
  44981. * QImode: Machine Modes. (line 25)
  44982. * QImode, in insn: Insns. (line 291)
  44983. * QQmode: Machine Modes. (line 106)
  44984. * qualified type: Types. (line 6)
  44985. * qualified type <1>: Types for C++. (line 6)
  44986. * querying function unit reservations: Processor pipeline description.
  44987. (line 90)
  44988. * question mark: Multi-Alternative. (line 42)
  44989. * quotient: Arithmetic. (line 116)
  44990. * r in constraint: Simple Constraints. (line 64)
  44991. * RDIV_EXPR: Unary and Binary Expressions.
  44992. (line 6)
  44993. * READONLY_DATA_SECTION_ASM_OP: Sections. (line 62)
  44994. * real operands: SSA Operands. (line 6)
  44995. * REALPART_EXPR: Unary and Binary Expressions.
  44996. (line 6)
  44997. * REAL_CST: Constant expressions.
  44998. (line 6)
  44999. * REAL_LIBGCC_SPEC: Driver. (line 124)
  45000. * REAL_NM_FILE_NAME: Macros for Initialization.
  45001. (line 105)
  45002. * REAL_TYPE: Types. (line 6)
  45003. * REAL_VALUE_ABS: Floating Point. (line 58)
  45004. * REAL_VALUE_ATOF: Floating Point. (line 39)
  45005. * REAL_VALUE_FIX: Floating Point. (line 31)
  45006. * REAL_VALUE_ISINF: Floating Point. (line 49)
  45007. * REAL_VALUE_ISNAN: Floating Point. (line 52)
  45008. * REAL_VALUE_NEGATE: Floating Point. (line 55)
  45009. * REAL_VALUE_NEGATIVE: Floating Point. (line 46)
  45010. * REAL_VALUE_TO_TARGET_DECIMAL128: Data Output. (line 153)
  45011. * REAL_VALUE_TO_TARGET_DECIMAL32: Data Output. (line 151)
  45012. * REAL_VALUE_TO_TARGET_DECIMAL64: Data Output. (line 152)
  45013. * REAL_VALUE_TO_TARGET_DOUBLE: Data Output. (line 149)
  45014. * REAL_VALUE_TO_TARGET_LONG_DOUBLE: Data Output. (line 150)
  45015. * REAL_VALUE_TO_TARGET_SINGLE: Data Output. (line 148)
  45016. * REAL_VALUE_TYPE: Floating Point. (line 25)
  45017. * REAL_VALUE_UNSIGNED_FIX: Floating Point. (line 34)
  45018. * recognizing insns: RTL Template. (line 6)
  45019. * recog_data.operand: Instruction Output. (line 54)
  45020. * RECORD_TYPE: Types. (line 6)
  45021. * RECORD_TYPE <1>: Classes. (line 6)
  45022. * redirect_edge_and_branch: Profile information.
  45023. (line 71)
  45024. * redirect_edge_and_branch, redirect_jump: Maintaining the CFG.
  45025. (line 89)
  45026. * reduc_and_scal_M instruction pattern: Standard Names. (line 535)
  45027. * reduc_ior_scal_M instruction pattern: Standard Names. (line 536)
  45028. * reduc_plus_scal_M instruction pattern: Standard Names. (line 530)
  45029. * reduc_smax_scal_M instruction pattern: Standard Names. (line 520)
  45030. * reduc_smin_scal_M instruction pattern: Standard Names. (line 520)
  45031. * reduc_umax_scal_M instruction pattern: Standard Names. (line 525)
  45032. * reduc_umin_scal_M instruction pattern: Standard Names. (line 525)
  45033. * reduc_xor_scal_M instruction pattern: Standard Names. (line 537)
  45034. * reference: Types. (line 6)
  45035. * REFERENCE_TYPE: Types. (line 6)
  45036. * reg: Regs and Memory. (line 9)
  45037. * reg and /f: Flags. (line 102)
  45038. * reg and /i: Flags. (line 97)
  45039. * reg and /v: Flags. (line 106)
  45040. * reg, RTL sharing: Sharing. (line 17)
  45041. * register allocation order: Allocation Order. (line 6)
  45042. * register class definitions: Register Classes. (line 6)
  45043. * register class preference constraints: Class Preferences. (line 6)
  45044. * register pairs: Values in Registers.
  45045. (line 65)
  45046. * Register Transfer Language (RTL): RTL. (line 6)
  45047. * register usage: Registers. (line 6)
  45048. * registers arguments: Register Arguments. (line 6)
  45049. * registers in constraints: Simple Constraints. (line 64)
  45050. * REGISTER_MOVE_COST: Costs. (line 9)
  45051. * REGISTER_NAMES: Instruction Output. (line 8)
  45052. * register_operand: Machine-Independent Predicates.
  45053. (line 29)
  45054. * REGISTER_PREFIX: Instruction Output. (line 150)
  45055. * REGISTER_TARGET_PRAGMAS: Misc. (line 420)
  45056. * REGMODE_NATURAL_SIZE: Regs and Memory. (line 191)
  45057. * REGMODE_NATURAL_SIZE <1>: Regs and Memory. (line 268)
  45058. * REGMODE_NATURAL_SIZE <2>: Values in Registers.
  45059. (line 46)
  45060. * REGNO_MODE_CODE_OK_FOR_BASE_P: Register Classes. (line 172)
  45061. * REGNO_MODE_OK_FOR_BASE_P: Register Classes. (line 150)
  45062. * REGNO_MODE_OK_FOR_REG_BASE_P: Register Classes. (line 160)
  45063. * REGNO_OK_FOR_BASE_P: Register Classes. (line 146)
  45064. * REGNO_OK_FOR_INDEX_P: Register Classes. (line 186)
  45065. * REGNO_REG_CLASS: Register Classes. (line 105)
  45066. * regs_ever_live: Function Entry. (line 29)
  45067. * regular expressions: Processor pipeline description.
  45068. (line 6)
  45069. * regular expressions <1>: Processor pipeline description.
  45070. (line 105)
  45071. * regular IPA passes: Regular IPA passes. (line 6)
  45072. * REG_ALLOC_ORDER: Allocation Order. (line 8)
  45073. * REG_BR_PRED: Insns. (line 541)
  45074. * REG_BR_PROB: Insns. (line 533)
  45075. * REG_BR_PROB_BASE, BB_FREQ_BASE, count: Profile information.
  45076. (line 82)
  45077. * REG_BR_PROB_BASE, EDGE_FREQUENCY: Profile information.
  45078. (line 52)
  45079. * REG_CALL_NOCF_CHECK: Insns. (line 557)
  45080. * REG_CC_SETTER: Insns. (line 505)
  45081. * REG_CC_USER: Insns. (line 505)
  45082. * reg_class_contents: Register Basics. (line 102)
  45083. * REG_CLASS_CONTENTS: Register Classes. (line 91)
  45084. * reg_class_for_constraint: C Constraint Interface.
  45085. (line 48)
  45086. * REG_CLASS_NAMES: Register Classes. (line 86)
  45087. * REG_DEAD: Insns. (line 380)
  45088. * REG_DEAD, REG_UNUSED: Liveness information.
  45089. (line 32)
  45090. * REG_DEP_ANTI: Insns. (line 527)
  45091. * REG_DEP_OUTPUT: Insns. (line 523)
  45092. * REG_DEP_TRUE: Insns. (line 520)
  45093. * REG_EH_REGION, EDGE_ABNORMAL_CALL: Edges. (line 109)
  45094. * REG_EQUAL: Insns. (line 434)
  45095. * REG_EQUIV: Insns. (line 434)
  45096. * REG_EXPR: Special Accessors. (line 58)
  45097. * REG_FRAME_RELATED_EXPR: Insns. (line 547)
  45098. * REG_FUNCTION_VALUE_P: Flags. (line 97)
  45099. * REG_INC: Insns. (line 396)
  45100. * reg_label and /v: Flags. (line 54)
  45101. * REG_LABEL_OPERAND: Insns. (line 410)
  45102. * REG_LABEL_TARGET: Insns. (line 419)
  45103. * reg_names: Register Basics. (line 102)
  45104. * reg_names <1>: Instruction Output. (line 107)
  45105. * REG_NONNEG: Insns. (line 402)
  45106. * REG_NOTES: Insns. (line 344)
  45107. * REG_NOTE_KIND: Insns. (line 369)
  45108. * REG_OFFSET: Special Accessors. (line 62)
  45109. * REG_OK_STRICT: Addressing Modes. (line 99)
  45110. * REG_PARM_STACK_SPACE: Stack Arguments. (line 58)
  45111. * REG_PARM_STACK_SPACE, and TARGET_FUNCTION_ARG: Register Arguments.
  45112. (line 49)
  45113. * REG_POINTER: Flags. (line 102)
  45114. * REG_SETJMP: Insns. (line 428)
  45115. * REG_UNUSED: Insns. (line 389)
  45116. * REG_USERVAR_P: Flags. (line 106)
  45117. * REG_VALUE_IN_UNWIND_CONTEXT: Frame Registers. (line 156)
  45118. * REG_WORDS_BIG_ENDIAN: Storage Layout. (line 35)
  45119. * relative costs: Costs. (line 6)
  45120. * RELATIVE_PREFIX_NOT_LINKDIR: Driver. (line 266)
  45121. * reloading: RTL passes. (line 170)
  45122. * reload_completed: Standard Names. (line 1788)
  45123. * reload_in instruction pattern: Standard Names. (line 98)
  45124. * reload_in_progress: Standard Names. (line 57)
  45125. * reload_out instruction pattern: Standard Names. (line 98)
  45126. * remainder: Arithmetic. (line 136)
  45127. * remainderM3 instruction pattern: Standard Names. (line 908)
  45128. * reorder: GTY Options. (line 175)
  45129. * representation of RTL: RTL. (line 6)
  45130. * reservation delays: Processor pipeline description.
  45131. (line 6)
  45132. * restore_stack_block instruction pattern: Standard Names. (line 1904)
  45133. * restore_stack_function instruction pattern: Standard Names.
  45134. (line 1904)
  45135. * restore_stack_nonlocal instruction pattern: Standard Names.
  45136. (line 1904)
  45137. * rest_of_decl_compilation: Parsing pass. (line 51)
  45138. * rest_of_type_compilation: Parsing pass. (line 51)
  45139. * RESULT_DECL: Declarations. (line 6)
  45140. * return: Side Effects. (line 72)
  45141. * return instruction pattern: Standard Names. (line 1762)
  45142. * return values in registers: Scalar Return. (line 6)
  45143. * returning aggregate values: Aggregate Return. (line 6)
  45144. * returning structures and unions: Interface. (line 10)
  45145. * RETURN_ADDRESS_POINTER_REGNUM: Frame Registers. (line 64)
  45146. * RETURN_ADDR_IN_PREVIOUS_FRAME: Frame Layout. (line 127)
  45147. * RETURN_ADDR_OFFSET: Exception Handling. (line 59)
  45148. * RETURN_ADDR_RTX: Frame Layout. (line 116)
  45149. * RETURN_EXPR: Statements for C++. (line 6)
  45150. * RETURN_STMT: Statements for C++. (line 6)
  45151. * return_val: Flags. (line 283)
  45152. * return_val, in call_insn: Flags. (line 120)
  45153. * return_val, in reg: Flags. (line 97)
  45154. * return_val, in symbol_ref: Flags. (line 216)
  45155. * reverse probability: Profile information.
  45156. (line 66)
  45157. * REVERSE_CONDITION: MODE_CC Condition Codes.
  45158. (line 92)
  45159. * REVERSIBLE_CC_MODE: MODE_CC Condition Codes.
  45160. (line 77)
  45161. * right rotate: Arithmetic. (line 195)
  45162. * right shift: Arithmetic. (line 190)
  45163. * rintM2 instruction pattern: Standard Names. (line 1114)
  45164. * RISC: Processor pipeline description.
  45165. (line 6)
  45166. * RISC <1>: Processor pipeline description.
  45167. (line 223)
  45168. * roots, marking: GGC Roots. (line 6)
  45169. * rotate: Arithmetic. (line 195)
  45170. * rotate <1>: Arithmetic. (line 195)
  45171. * rotatert: Arithmetic. (line 195)
  45172. * rotlM3 instruction pattern: Standard Names. (line 840)
  45173. * rotrM3 instruction pattern: Standard Names. (line 840)
  45174. * roundM2 instruction pattern: Standard Names. (line 1087)
  45175. * ROUND_DIV_EXPR: Unary and Binary Expressions.
  45176. (line 6)
  45177. * ROUND_MOD_EXPR: Unary and Binary Expressions.
  45178. (line 6)
  45179. * ROUND_TYPE_ALIGN: Storage Layout. (line 457)
  45180. * RSHIFT_EXPR: Unary and Binary Expressions.
  45181. (line 6)
  45182. * rsqrtM2 instruction pattern: Standard Names. (line 888)
  45183. * RTL addition: Arithmetic. (line 14)
  45184. * RTL addition with signed saturation: Arithmetic. (line 14)
  45185. * RTL addition with unsigned saturation: Arithmetic. (line 14)
  45186. * RTL classes: RTL Classes. (line 6)
  45187. * RTL comparison: Arithmetic. (line 46)
  45188. * RTL comparison operations: Comparisons. (line 6)
  45189. * RTL constant expression types: Constants. (line 6)
  45190. * RTL constants: Constants. (line 6)
  45191. * RTL declarations: RTL Declarations. (line 6)
  45192. * RTL difference: Arithmetic. (line 38)
  45193. * RTL expression: RTL Objects. (line 6)
  45194. * RTL expressions for arithmetic: Arithmetic. (line 6)
  45195. * RTL format: RTL Classes. (line 73)
  45196. * RTL format characters: RTL Classes. (line 78)
  45197. * RTL function-call insns: Calls. (line 6)
  45198. * RTL insn template: RTL Template. (line 6)
  45199. * RTL integers: RTL Objects. (line 6)
  45200. * RTL memory expressions: Regs and Memory. (line 6)
  45201. * RTL object types: RTL Objects. (line 6)
  45202. * RTL postdecrement: Incdec. (line 6)
  45203. * RTL postincrement: Incdec. (line 6)
  45204. * RTL predecrement: Incdec. (line 6)
  45205. * RTL preincrement: Incdec. (line 6)
  45206. * RTL register expressions: Regs and Memory. (line 6)
  45207. * RTL representation: RTL. (line 6)
  45208. * RTL side effect expressions: Side Effects. (line 6)
  45209. * RTL strings: RTL Objects. (line 6)
  45210. * RTL structure sharing assumptions: Sharing. (line 6)
  45211. * RTL subtraction: Arithmetic. (line 38)
  45212. * RTL subtraction with signed saturation: Arithmetic. (line 38)
  45213. * RTL subtraction with unsigned saturation: Arithmetic. (line 38)
  45214. * RTL sum: Arithmetic. (line 14)
  45215. * RTL vectors: RTL Objects. (line 6)
  45216. * RTL_CONST_CALL_P: Flags. (line 115)
  45217. * RTL_CONST_OR_PURE_CALL_P: Flags. (line 125)
  45218. * RTL_LOOPING_CONST_OR_PURE_CALL_P: Flags. (line 129)
  45219. * RTL_PURE_CALL_P: Flags. (line 120)
  45220. * RTX (See RTL): RTL Objects. (line 6)
  45221. * RTX codes, classes of: RTL Classes. (line 6)
  45222. * RTX_FRAME_RELATED_P: Flags. (line 135)
  45223. * run-time conventions: Interface. (line 6)
  45224. * run-time target specification: Run-time Target. (line 6)
  45225. * s in constraint: Simple Constraints. (line 100)
  45226. * SAD_EXPR: Vectors. (line 6)
  45227. * same_type_p: Types. (line 86)
  45228. * SAmode: Machine Modes. (line 150)
  45229. * satfractMN2 instruction pattern: Standard Names. (line 1464)
  45230. * satfractunsMN2 instruction pattern: Standard Names. (line 1477)
  45231. * satisfies_constraint_M: C Constraint Interface.
  45232. (line 36)
  45233. * sat_fract: Conversions. (line 90)
  45234. * SAVE_EXPR: Unary and Binary Expressions.
  45235. (line 6)
  45236. * save_stack_block instruction pattern: Standard Names. (line 1904)
  45237. * save_stack_function instruction pattern: Standard Names. (line 1904)
  45238. * save_stack_nonlocal instruction pattern: Standard Names. (line 1904)
  45239. * SBSS_SECTION_ASM_OP: Sections. (line 75)
  45240. * Scalar evolutions: Scalar evolutions. (line 6)
  45241. * scalars, returned as values: Scalar Return. (line 6)
  45242. * scalar_float_mode: Machine Modes. (line 293)
  45243. * scalar_int_mode: Machine Modes. (line 290)
  45244. * scalar_mode: Machine Modes. (line 296)
  45245. * scalbM3 instruction pattern: Standard Names. (line 915)
  45246. * scatter_storeMN instruction pattern: Standard Names. (line 255)
  45247. * SCHED_GROUP_P: Flags. (line 162)
  45248. * SCmode: Machine Modes. (line 199)
  45249. * scratch: Regs and Memory. (line 320)
  45250. * scratch operands: Regs and Memory. (line 320)
  45251. * scratch, RTL sharing: Sharing. (line 38)
  45252. * scratch_operand: Machine-Independent Predicates.
  45253. (line 49)
  45254. * SDATA_SECTION_ASM_OP: Sections. (line 57)
  45255. * sdiv_pow2M3 instruction pattern: Standard Names. (line 614)
  45256. * sdiv_pow2M3 instruction pattern <1>: Standard Names. (line 615)
  45257. * SDmode: Machine Modes. (line 88)
  45258. * sdot_prodM instruction pattern: Standard Names. (line 569)
  45259. * search options: Including Patterns. (line 47)
  45260. * SECONDARY_INPUT_RELOAD_CLASS: Register Classes. (line 391)
  45261. * SECONDARY_MEMORY_NEEDED_RTX: Register Classes. (line 457)
  45262. * SECONDARY_OUTPUT_RELOAD_CLASS: Register Classes. (line 392)
  45263. * SECONDARY_RELOAD_CLASS: Register Classes. (line 390)
  45264. * SELECT_CC_MODE: MODE_CC Condition Codes.
  45265. (line 6)
  45266. * sequence: Side Effects. (line 259)
  45267. * Sequence iterators: Sequence iterators. (line 6)
  45268. * set: Side Effects. (line 15)
  45269. * set and /f: Flags. (line 135)
  45270. * setmemM instruction pattern: Standard Names. (line 1328)
  45271. * SETUP_FRAME_ADDRESSES: Frame Layout. (line 94)
  45272. * SET_ASM_OP: Label Output. (line 451)
  45273. * SET_ASM_OP <1>: Label Output. (line 462)
  45274. * set_attr: Tagging Insns. (line 31)
  45275. * set_attr_alternative: Tagging Insns. (line 49)
  45276. * set_bb_seq: GIMPLE sequences. (line 75)
  45277. * SET_DEST: Side Effects. (line 69)
  45278. * SET_IS_RETURN_P: Flags. (line 171)
  45279. * SET_LABEL_KIND: Insns. (line 146)
  45280. * set_optab_libfunc: Library Calls. (line 15)
  45281. * SET_RATIO: Costs. (line 237)
  45282. * SET_SRC: Side Effects. (line 69)
  45283. * set_thread_pointerMODE instruction pattern: Standard Names.
  45284. (line 2477)
  45285. * SET_TYPE_STRUCTURAL_EQUALITY: Types. (line 6)
  45286. * SET_TYPE_STRUCTURAL_EQUALITY <1>: Types. (line 81)
  45287. * SFmode: Machine Modes. (line 69)
  45288. * sharing of RTL components: Sharing. (line 6)
  45289. * shift: Arithmetic. (line 173)
  45290. * SHIFT_COUNT_TRUNCATED: Misc. (line 134)
  45291. * SHLIB_SUFFIX: Macros for Initialization.
  45292. (line 133)
  45293. * SHORT_ACCUM_TYPE_SIZE: Type Layout. (line 82)
  45294. * SHORT_FRACT_TYPE_SIZE: Type Layout. (line 62)
  45295. * SHORT_IMMEDIATES_SIGN_EXTEND: Misc. (line 108)
  45296. * SHORT_TYPE_SIZE: Type Layout. (line 15)
  45297. * shrink-wrapping separate components: Shrink-wrapping separate components.
  45298. (line 6)
  45299. * sibcall_epilogue instruction pattern: Standard Names. (line 2111)
  45300. * sibling call: Edges. (line 121)
  45301. * SIBLING_CALL_P: Flags. (line 175)
  45302. * signal-to-noise ratio (metaphorical usage for diagnostics): Guidelines for Diagnostics.
  45303. (line 39)
  45304. * signed division: Arithmetic. (line 116)
  45305. * signed division with signed saturation: Arithmetic. (line 116)
  45306. * signed maximum: Arithmetic. (line 141)
  45307. * signed minimum: Arithmetic. (line 141)
  45308. * significandM2 instruction pattern: Standard Names. (line 1047)
  45309. * sign_extend: Conversions. (line 23)
  45310. * sign_extract: Bit-Fields. (line 8)
  45311. * sign_extract, canonicalization of: Insn Canonicalizations.
  45312. (line 103)
  45313. * SIG_ATOMIC_TYPE: Type Layout. (line 208)
  45314. * SImode: Machine Modes. (line 37)
  45315. * simple constraints: Simple Constraints. (line 6)
  45316. * simple_return: Side Effects. (line 86)
  45317. * simple_return instruction pattern: Standard Names. (line 1777)
  45318. * sincosM3 instruction pattern: Standard Names. (line 943)
  45319. * sinM2 instruction pattern: Standard Names. (line 937)
  45320. * SIZETYPE: Type Layout. (line 147)
  45321. * SIZE_ASM_OP: Label Output. (line 33)
  45322. * SIZE_TYPE: Type Layout. (line 131)
  45323. * skip: GTY Options. (line 76)
  45324. * SLOW_BYTE_ACCESS: Costs. (line 117)
  45325. * small IPA passes: Small IPA passes. (line 6)
  45326. * smax: Arithmetic. (line 141)
  45327. * smin: Arithmetic. (line 141)
  45328. * sms, swing, software pipelining: RTL passes. (line 123)
  45329. * smulhrsM3 instruction pattern: Standard Names. (line 604)
  45330. * smulhsM3 instruction pattern: Standard Names. (line 594)
  45331. * smulM3_highpart instruction pattern: Standard Names. (line 753)
  45332. * soft float library: Soft float library routines.
  45333. (line 6)
  45334. * source code, location information: Guidelines for Diagnostics.
  45335. (line 159)
  45336. * special: GTY Options. (line 238)
  45337. * special predicates: Predicates. (line 31)
  45338. * SPECS: Target Fragment. (line 194)
  45339. * speculation_barrier instruction pattern: Standard Names. (line 2178)
  45340. * speed of instructions: Costs. (line 6)
  45341. * splitting instructions: Insn Splitting. (line 6)
  45342. * split_block: Maintaining the CFG.
  45343. (line 96)
  45344. * SQmode: Machine Modes. (line 114)
  45345. * sqrt: Arithmetic. (line 206)
  45346. * sqrtM2 instruction pattern: Standard Names. (line 882)
  45347. * square root: Arithmetic. (line 206)
  45348. * SSA: SSA. (line 6)
  45349. * ssaddM3 instruction pattern: Standard Names. (line 442)
  45350. * ssadM instruction pattern: Standard Names. (line 578)
  45351. * ssashlM3 instruction pattern: Standard Names. (line 828)
  45352. * SSA_NAME_DEF_STMT: SSA. (line 184)
  45353. * SSA_NAME_VERSION: SSA. (line 189)
  45354. * ssdivM3 instruction pattern: Standard Names. (line 442)
  45355. * ssmaddMN4 instruction pattern: Standard Names. (line 776)
  45356. * ssmsubMN4 instruction pattern: Standard Names. (line 800)
  45357. * ssmulM3 instruction pattern: Standard Names. (line 442)
  45358. * ssnegM2 instruction pattern: Standard Names. (line 872)
  45359. * sssubM3 instruction pattern: Standard Names. (line 442)
  45360. * ss_abs: Arithmetic. (line 200)
  45361. * ss_ashift: Arithmetic. (line 173)
  45362. * ss_div: Arithmetic. (line 116)
  45363. * ss_minus: Arithmetic. (line 38)
  45364. * ss_mult: Arithmetic. (line 93)
  45365. * ss_neg: Arithmetic. (line 82)
  45366. * ss_plus: Arithmetic. (line 14)
  45367. * ss_truncate: Conversions. (line 43)
  45368. * stack arguments: Stack Arguments. (line 6)
  45369. * stack frame layout: Frame Layout. (line 6)
  45370. * stack smashing protection: Stack Smashing Protection.
  45371. (line 6)
  45372. * STACK_ALIGNMENT_NEEDED: Frame Layout. (line 41)
  45373. * STACK_BOUNDARY: Storage Layout. (line 156)
  45374. * STACK_CHECK_BUILTIN: Stack Checking. (line 31)
  45375. * STACK_CHECK_FIXED_FRAME_SIZE: Stack Checking. (line 83)
  45376. * STACK_CHECK_MAX_FRAME_SIZE: Stack Checking. (line 74)
  45377. * STACK_CHECK_MAX_VAR_SIZE: Stack Checking. (line 90)
  45378. * STACK_CHECK_MOVING_SP: Stack Checking. (line 53)
  45379. * STACK_CHECK_PROBE_INTERVAL_EXP: Stack Checking. (line 45)
  45380. * STACK_CHECK_PROTECT: Stack Checking. (line 62)
  45381. * STACK_CHECK_STATIC_BUILTIN: Stack Checking. (line 38)
  45382. * STACK_DYNAMIC_OFFSET: Frame Layout. (line 67)
  45383. * STACK_DYNAMIC_OFFSET and virtual registers: Regs and Memory.
  45384. (line 83)
  45385. * STACK_GROWS_DOWNWARD: Frame Layout. (line 8)
  45386. * STACK_PARMS_IN_REG_PARM_AREA: Stack Arguments. (line 89)
  45387. * STACK_POINTER_OFFSET: Frame Layout. (line 51)
  45388. * STACK_POINTER_OFFSET and virtual registers: Regs and Memory.
  45389. (line 93)
  45390. * STACK_POINTER_REGNUM: Frame Registers. (line 8)
  45391. * STACK_POINTER_REGNUM and virtual registers: Regs and Memory.
  45392. (line 83)
  45393. * stack_pointer_rtx: Frame Registers. (line 104)
  45394. * stack_protect_combined_set instruction pattern: Standard Names.
  45395. (line 2487)
  45396. * stack_protect_combined_test instruction pattern: Standard Names.
  45397. (line 2517)
  45398. * stack_protect_set instruction pattern: Standard Names. (line 2503)
  45399. * stack_protect_test instruction pattern: Standard Names. (line 2534)
  45400. * STACK_PUSH_CODE: Frame Layout. (line 12)
  45401. * STACK_REGS: Stack Registers. (line 19)
  45402. * STACK_REG_COVER_CLASS: Stack Registers. (line 22)
  45403. * STACK_SAVEAREA_MODE: Storage Layout. (line 473)
  45404. * STACK_SIZE_MODE: Storage Layout. (line 484)
  45405. * STACK_SLOT_ALIGNMENT: Storage Layout. (line 305)
  45406. * standard pattern names: Standard Names. (line 6)
  45407. * STANDARD_STARTFILE_PREFIX: Driver. (line 278)
  45408. * STANDARD_STARTFILE_PREFIX_1: Driver. (line 285)
  45409. * STANDARD_STARTFILE_PREFIX_2: Driver. (line 292)
  45410. * STARTFILE_SPEC: Driver. (line 147)
  45411. * Statement and operand traversals: Statement and operand traversals.
  45412. (line 6)
  45413. * Statement Sequences: Statement Sequences.
  45414. (line 6)
  45415. * Statements: Statements. (line 6)
  45416. * statements: Function Properties.
  45417. (line 6)
  45418. * statements <1>: Statements for C++. (line 6)
  45419. * static analysis: Static Analyzer. (line 6)
  45420. * static analyzer: Static Analyzer. (line 6)
  45421. * static analyzer, debugging: Debugging the Analyzer.
  45422. (line 5)
  45423. * static analyzer, internals: Analyzer Internals. (line 5)
  45424. * Static profile estimation: Profile information.
  45425. (line 24)
  45426. * static single assignment: SSA. (line 6)
  45427. * STATIC_CHAIN_INCOMING_REGNUM: Frame Registers. (line 77)
  45428. * STATIC_CHAIN_REGNUM: Frame Registers. (line 76)
  45429. * stdarg.h and register arguments: Register Arguments. (line 44)
  45430. * STDC_0_IN_SYSTEM_HEADERS: Misc. (line 384)
  45431. * STMT_EXPR: Unary and Binary Expressions.
  45432. (line 6)
  45433. * STMT_IS_FULL_EXPR_P: Statements for C++. (line 22)
  45434. * storage layout: Storage Layout. (line 6)
  45435. * STORE_FLAG_VALUE: Misc. (line 235)
  45436. * STORE_MAX_PIECES: Costs. (line 215)
  45437. * store_multiple instruction pattern: Standard Names. (line 159)
  45438. * strcpy: Storage Layout. (line 258)
  45439. * STRICT_ALIGNMENT: Storage Layout. (line 355)
  45440. * strict_low_part: RTL Declarations. (line 9)
  45441. * strict_memory_address_p: Addressing Modes. (line 186)
  45442. * STRING_CST: Constant expressions.
  45443. (line 6)
  45444. * STRING_POOL_ADDRESS_P: Flags. (line 179)
  45445. * strlenM instruction pattern: Standard Names. (line 1399)
  45446. * structure value address: Aggregate Return. (line 6)
  45447. * structures, returning: Interface. (line 10)
  45448. * STRUCTURE_SIZE_BOUNDARY: Storage Layout. (line 347)
  45449. * subM3 instruction pattern: Standard Names. (line 442)
  45450. * SUBOBJECT: Statements for C++. (line 6)
  45451. * SUBOBJECT_CLEANUP: Statements for C++. (line 6)
  45452. * subreg: Regs and Memory. (line 97)
  45453. * subreg and /s: Flags. (line 201)
  45454. * subreg and /u: Flags. (line 194)
  45455. * subreg and /u and /v: Flags. (line 184)
  45456. * subreg, in strict_low_part: RTL Declarations. (line 9)
  45457. * SUBREG_BYTE: Regs and Memory. (line 311)
  45458. * SUBREG_PROMOTED_UNSIGNED_P: Flags. (line 184)
  45459. * SUBREG_PROMOTED_UNSIGNED_SET: Flags. (line 194)
  45460. * SUBREG_PROMOTED_VAR_P: Flags. (line 201)
  45461. * SUBREG_REG: Regs and Memory. (line 311)
  45462. * subst iterators in .md files: Subst Iterators. (line 6)
  45463. * subvM4 instruction pattern: Standard Names. (line 458)
  45464. * SUCCESS_EXIT_CODE: Host Misc. (line 12)
  45465. * support for nested functions: Trampolines. (line 6)
  45466. * SUPPORTS_INIT_PRIORITY: Macros for Initialization.
  45467. (line 57)
  45468. * SUPPORTS_ONE_ONLY: Label Output. (line 290)
  45469. * SUPPORTS_WEAK: Label Output. (line 264)
  45470. * SWITCHABLE_TARGET: Run-time Target. (line 160)
  45471. * SWITCH_BODY: Statements for C++. (line 6)
  45472. * SWITCH_COND: Statements for C++. (line 6)
  45473. * SWITCH_STMT: Statements for C++. (line 6)
  45474. * symbolic label: Sharing. (line 20)
  45475. * SYMBOL_FLAG_ANCHOR: Special Accessors. (line 117)
  45476. * SYMBOL_FLAG_EXTERNAL: Special Accessors. (line 99)
  45477. * SYMBOL_FLAG_FUNCTION: Special Accessors. (line 92)
  45478. * SYMBOL_FLAG_HAS_BLOCK_INFO: Special Accessors. (line 113)
  45479. * SYMBOL_FLAG_LOCAL: Special Accessors. (line 95)
  45480. * SYMBOL_FLAG_SMALL: Special Accessors. (line 104)
  45481. * SYMBOL_FLAG_TLS_SHIFT: Special Accessors. (line 108)
  45482. * symbol_ref: Constants. (line 189)
  45483. * symbol_ref and /f: Flags. (line 179)
  45484. * symbol_ref and /i: Flags. (line 216)
  45485. * symbol_ref and /u: Flags. (line 19)
  45486. * symbol_ref and /v: Flags. (line 220)
  45487. * symbol_ref, RTL sharing: Sharing. (line 20)
  45488. * SYMBOL_REF_ANCHOR_P: Special Accessors. (line 117)
  45489. * SYMBOL_REF_BLOCK: Special Accessors. (line 130)
  45490. * SYMBOL_REF_BLOCK_OFFSET: Special Accessors. (line 135)
  45491. * SYMBOL_REF_CONSTANT: Special Accessors. (line 78)
  45492. * SYMBOL_REF_DATA: Special Accessors. (line 82)
  45493. * SYMBOL_REF_DECL: Special Accessors. (line 67)
  45494. * SYMBOL_REF_EXTERNAL_P: Special Accessors. (line 99)
  45495. * SYMBOL_REF_FLAG: Flags. (line 220)
  45496. * SYMBOL_REF_FLAG, in TARGET_ENCODE_SECTION_INFO: Sections. (line 289)
  45497. * SYMBOL_REF_FLAGS: Special Accessors. (line 86)
  45498. * SYMBOL_REF_FUNCTION_P: Special Accessors. (line 92)
  45499. * SYMBOL_REF_HAS_BLOCK_INFO_P: Special Accessors. (line 113)
  45500. * SYMBOL_REF_LOCAL_P: Special Accessors. (line 95)
  45501. * SYMBOL_REF_SMALL_P: Special Accessors. (line 104)
  45502. * SYMBOL_REF_TLS_MODEL: Special Accessors. (line 108)
  45503. * SYMBOL_REF_USED: Flags. (line 211)
  45504. * SYMBOL_REF_WEAK: Flags. (line 216)
  45505. * sync_addMODE instruction pattern: Standard Names. (line 2232)
  45506. * sync_andMODE instruction pattern: Standard Names. (line 2232)
  45507. * sync_compare_and_swapMODE instruction pattern: Standard Names.
  45508. (line 2192)
  45509. * sync_iorMODE instruction pattern: Standard Names. (line 2232)
  45510. * sync_lock_releaseMODE instruction pattern: Standard Names. (line 2297)
  45511. * sync_lock_test_and_setMODE instruction pattern: Standard Names.
  45512. (line 2271)
  45513. * sync_nandMODE instruction pattern: Standard Names. (line 2232)
  45514. * sync_new_addMODE instruction pattern: Standard Names. (line 2264)
  45515. * sync_new_andMODE instruction pattern: Standard Names. (line 2264)
  45516. * sync_new_iorMODE instruction pattern: Standard Names. (line 2264)
  45517. * sync_new_nandMODE instruction pattern: Standard Names. (line 2264)
  45518. * sync_new_subMODE instruction pattern: Standard Names. (line 2264)
  45519. * sync_new_xorMODE instruction pattern: Standard Names. (line 2264)
  45520. * sync_old_addMODE instruction pattern: Standard Names. (line 2247)
  45521. * sync_old_andMODE instruction pattern: Standard Names. (line 2247)
  45522. * sync_old_iorMODE instruction pattern: Standard Names. (line 2247)
  45523. * sync_old_nandMODE instruction pattern: Standard Names. (line 2247)
  45524. * sync_old_subMODE instruction pattern: Standard Names. (line 2247)
  45525. * sync_old_xorMODE instruction pattern: Standard Names. (line 2247)
  45526. * sync_subMODE instruction pattern: Standard Names. (line 2232)
  45527. * sync_xorMODE instruction pattern: Standard Names. (line 2232)
  45528. * SYSROOT_HEADERS_SUFFIX_SPEC: Driver. (line 176)
  45529. * SYSROOT_SUFFIX_SPEC: Driver. (line 171)
  45530. * SYSTEM_IMPLICIT_EXTERN_C: Misc. (line 415)
  45531. * t-TARGET: Target Fragment. (line 6)
  45532. * table jump: Basic Blocks. (line 67)
  45533. * tablejump instruction pattern: Standard Names. (line 1850)
  45534. * tag: GTY Options. (line 90)
  45535. * tagging insns: Tagging Insns. (line 6)
  45536. * tail calls: Tail Calls. (line 6)
  45537. * TAmode: Machine Modes. (line 158)
  45538. * tanM2 instruction pattern: Standard Names. (line 954)
  45539. * target attributes: Target Attributes. (line 6)
  45540. * target description macros: Target Macros. (line 6)
  45541. * target functions: Target Structure. (line 6)
  45542. * target hooks: Target Structure. (line 6)
  45543. * target makefile fragment: Target Fragment. (line 6)
  45544. * target specifications: Run-time Target. (line 6)
  45545. * targetm: Target Structure. (line 6)
  45546. * targets, makefile: Makefile. (line 6)
  45547. * TARGET_ABSOLUTE_BIGGEST_ALIGNMENT: Storage Layout. (line 185)
  45548. * TARGET_ADDITIONAL_ALLOCNO_CLASS_P: Register Classes. (line 639)
  45549. * TARGET_ADDRESS_COST: Costs. (line 344)
  45550. * TARGET_ADDR_SPACE_ADDRESS_MODE: Named Address Spaces.
  45551. (line 42)
  45552. * TARGET_ADDR_SPACE_CONVERT: Named Address Spaces.
  45553. (line 89)
  45554. * TARGET_ADDR_SPACE_DEBUG: Named Address Spaces.
  45555. (line 99)
  45556. * TARGET_ADDR_SPACE_DIAGNOSE_USAGE: Named Address Spaces.
  45557. (line 103)
  45558. * TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P: Named Address Spaces.
  45559. (line 59)
  45560. * TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS: Named Address Spaces.
  45561. (line 67)
  45562. * TARGET_ADDR_SPACE_POINTER_MODE: Named Address Spaces.
  45563. (line 36)
  45564. * TARGET_ADDR_SPACE_SUBSET_P: Named Address Spaces.
  45565. (line 74)
  45566. * TARGET_ADDR_SPACE_VALID_POINTER_MODE: Named Address Spaces.
  45567. (line 48)
  45568. * TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID: Named Address Spaces.
  45569. (line 83)
  45570. * TARGET_ALIGN_ANON_BITFIELD: Storage Layout. (line 432)
  45571. * TARGET_ALLOCATE_INITIAL_VALUE: Misc. (line 807)
  45572. * TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS: Misc. (line 1064)
  45573. * TARGET_ALWAYS_STRIP_DOTDOT: Driver. (line 250)
  45574. * TARGET_ARG_PARTIAL_BYTES: Register Arguments. (line 92)
  45575. * TARGET_ARM_EABI_UNWINDER: Exception Region Output.
  45576. (line 133)
  45577. * TARGET_ARRAY_MODE: Register Arguments. (line 373)
  45578. * TARGET_ARRAY_MODE_SUPPORTED_P: Register Arguments. (line 388)
  45579. * TARGET_ASAN_SHADOW_OFFSET: Misc. (line 1092)
  45580. * TARGET_ASM_ALIGNED_DI_OP: Data Output. (line 11)
  45581. * TARGET_ASM_ALIGNED_HI_OP: Data Output. (line 7)
  45582. * TARGET_ASM_ALIGNED_PDI_OP: Data Output. (line 10)
  45583. * TARGET_ASM_ALIGNED_PSI_OP: Data Output. (line 8)
  45584. * TARGET_ASM_ALIGNED_PTI_OP: Data Output. (line 12)
  45585. * TARGET_ASM_ALIGNED_SI_OP: Data Output. (line 9)
  45586. * TARGET_ASM_ALIGNED_TI_OP: Data Output. (line 13)
  45587. * TARGET_ASM_ASSEMBLE_UNDEFINED_DECL: Label Output. (line 231)
  45588. * TARGET_ASM_ASSEMBLE_VISIBILITY: Label Output. (line 301)
  45589. * TARGET_ASM_BYTE_OP: Data Output. (line 6)
  45590. * TARGET_ASM_CAN_OUTPUT_MI_THUNK: Function Entry. (line 209)
  45591. * TARGET_ASM_CLOSE_PAREN: Data Output. (line 139)
  45592. * TARGET_ASM_CODE_END: File Framework. (line 57)
  45593. * TARGET_ASM_CONSTRUCTOR: Macros for Initialization.
  45594. (line 68)
  45595. * TARGET_ASM_DECLARE_CONSTANT_NAME: Label Output. (line 177)
  45596. * TARGET_ASM_DECL_END: Data Output. (line 44)
  45597. * TARGET_ASM_DESTRUCTOR: Macros for Initialization.
  45598. (line 82)
  45599. * TARGET_ASM_ELF_FLAGS_NUMERIC: File Framework. (line 120)
  45600. * TARGET_ASM_EMIT_EXCEPT_PERSONALITY: Dispatch Tables. (line 89)
  45601. * TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL: Dispatch Tables. (line 82)
  45602. * TARGET_ASM_EMIT_UNWIND_LABEL: Dispatch Tables. (line 70)
  45603. * TARGET_ASM_EXTERNAL_LIBCALL: Label Output. (line 337)
  45604. * TARGET_ASM_FILE_END: File Framework. (line 35)
  45605. * TARGET_ASM_FILE_START: File Framework. (line 8)
  45606. * TARGET_ASM_FILE_START_APP_OFF: File Framework. (line 16)
  45607. * TARGET_ASM_FILE_START_FILE_DIRECTIVE: File Framework. (line 29)
  45608. * TARGET_ASM_FINAL_POSTSCAN_INSN: Instruction Output. (line 82)
  45609. * TARGET_ASM_FUNCTION_BEGIN_EPILOGUE: Function Entry. (line 67)
  45610. * TARGET_ASM_FUNCTION_END_PROLOGUE: Function Entry. (line 61)
  45611. * TARGET_ASM_FUNCTION_EPILOGUE: Function Entry. (line 73)
  45612. * TARGET_ASM_FUNCTION_PROLOGUE: Function Entry. (line 18)
  45613. * TARGET_ASM_FUNCTION_RODATA_SECTION: Sections. (line 225)
  45614. * TARGET_ASM_FUNCTION_SECTION: File Framework. (line 132)
  45615. * TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS: File Framework.
  45616. (line 142)
  45617. * TARGET_ASM_GENERATE_PIC_ADDR_DIFF_VEC: Sections. (line 184)
  45618. * TARGET_ASM_GLOBALIZE_DECL_NAME: Label Output. (line 222)
  45619. * TARGET_ASM_GLOBALIZE_LABEL: Label Output. (line 213)
  45620. * TARGET_ASM_INIT_SECTIONS: Sections. (line 164)
  45621. * TARGET_ASM_INTEGER: Data Output. (line 31)
  45622. * TARGET_ASM_INTERNAL_LABEL: Label Output. (line 380)
  45623. * TARGET_ASM_LTO_END: File Framework. (line 52)
  45624. * TARGET_ASM_LTO_START: File Framework. (line 47)
  45625. * TARGET_ASM_MARK_DECL_PRESERVED: Label Output. (line 343)
  45626. * TARGET_ASM_MERGEABLE_RODATA_PREFIX: Sections. (line 233)
  45627. * TARGET_ASM_NAMED_SECTION: File Framework. (line 112)
  45628. * TARGET_ASM_OPEN_PAREN: Data Output. (line 138)
  45629. * TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA: Data Output. (line 48)
  45630. * TARGET_ASM_OUTPUT_ANCHOR: Anchored Addresses. (line 42)
  45631. * TARGET_ASM_OUTPUT_DWARF_DTPREL: DWARF. (line 121)
  45632. * TARGET_ASM_OUTPUT_IDENT: File Framework. (line 99)
  45633. * TARGET_ASM_OUTPUT_MI_THUNK: Function Entry. (line 167)
  45634. * TARGET_ASM_OUTPUT_SOURCE_FILENAME: File Framework. (line 91)
  45635. * TARGET_ASM_POST_CFI_STARTPROC: Dispatch Tables. (line 61)
  45636. * TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY: Function Entry. (line 9)
  45637. * TARGET_ASM_RECORD_GCC_SWITCHES: File Framework. (line 173)
  45638. * TARGET_ASM_RECORD_GCC_SWITCHES_SECTION: File Framework. (line 218)
  45639. * TARGET_ASM_RELOC_RW_MASK: Sections. (line 173)
  45640. * TARGET_ASM_SELECT_RTX_SECTION: Sections. (line 242)
  45641. * TARGET_ASM_SELECT_SECTION: Sections. (line 191)
  45642. * TARGET_ASM_TM_CLONE_TABLE_SECTION: Sections. (line 238)
  45643. * TARGET_ASM_TRAMPOLINE_TEMPLATE: Trampolines. (line 81)
  45644. * TARGET_ASM_TTYPE: Exception Region Output.
  45645. (line 127)
  45646. * TARGET_ASM_UNALIGNED_DI_OP: Data Output. (line 18)
  45647. * TARGET_ASM_UNALIGNED_HI_OP: Data Output. (line 14)
  45648. * TARGET_ASM_UNALIGNED_PDI_OP: Data Output. (line 17)
  45649. * TARGET_ASM_UNALIGNED_PSI_OP: Data Output. (line 15)
  45650. * TARGET_ASM_UNALIGNED_PTI_OP: Data Output. (line 19)
  45651. * TARGET_ASM_UNALIGNED_SI_OP: Data Output. (line 16)
  45652. * TARGET_ASM_UNALIGNED_TI_OP: Data Output. (line 20)
  45653. * TARGET_ASM_UNIQUE_SECTION: Sections. (line 213)
  45654. * TARGET_ASM_UNWIND_EMIT: Dispatch Tables. (line 96)
  45655. * TARGET_ASM_UNWIND_EMIT_BEFORE_INSN: Dispatch Tables. (line 102)
  45656. * TARGET_ATOMIC_ALIGN_FOR_MODE: Misc. (line 1111)
  45657. * TARGET_ATOMIC_ASSIGN_EXPAND_FENV: Misc. (line 1117)
  45658. * TARGET_ATOMIC_TEST_AND_SET_TRUEVAL: Misc. (line 1102)
  45659. * TARGET_ATTRIBUTE_TABLE: Target Attributes. (line 10)
  45660. * TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P: Target Attributes. (line 17)
  45661. * TARGET_BINDS_LOCAL_P: Sections. (line 320)
  45662. * TARGET_BUILD_BUILTIN_VA_LIST: Register Arguments. (line 281)
  45663. * TARGET_BUILTIN_DECL: Misc. (line 637)
  45664. * TARGET_BUILTIN_RECIPROCAL: Addressing Modes. (line 261)
  45665. * TARGET_BUILTIN_SETJMP_FRAME_VALUE: Frame Layout. (line 101)
  45666. * TARGET_CALLEE_COPIES: Register Arguments. (line 124)
  45667. * TARGET_CALL_ARGS: Varargs. (line 123)
  45668. * TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS: Miscellaneous Register Hooks.
  45669. (line 6)
  45670. * TARGET_CANNOT_FORCE_CONST_MEM: Addressing Modes. (line 234)
  45671. * TARGET_CANNOT_MODIFY_JUMPS_P: Misc. (line 871)
  45672. * TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P: Register Classes. (line 610)
  45673. * TARGET_CANONICALIZE_COMPARISON: MODE_CC Condition Codes.
  45674. (line 55)
  45675. * TARGET_CANONICAL_VA_LIST_TYPE: Register Arguments. (line 302)
  45676. * TARGET_CAN_CHANGE_MODE_CLASS: Register Classes. (line 543)
  45677. * TARGET_CAN_CHANGE_MODE_CLASS and subreg semantics: Regs and Memory.
  45678. (line 294)
  45679. * TARGET_CAN_ELIMINATE: Elimination. (line 58)
  45680. * TARGET_CAN_FOLLOW_JUMP: Misc. (line 793)
  45681. * TARGET_CAN_INLINE_P: Target Attributes. (line 173)
  45682. * TARGET_CAN_USE_DOLOOP_P: Misc. (line 757)
  45683. * TARGET_CASE_VALUES_THRESHOLD: Misc. (line 46)
  45684. * TARGET_CC_MODES_COMPATIBLE: MODE_CC Condition Codes.
  45685. (line 120)
  45686. * TARGET_CHECK_BUILTIN_CALL: Misc. (line 669)
  45687. * TARGET_CHECK_PCH_TARGET_FLAGS: PCH Target. (line 26)
  45688. * TARGET_CHECK_STRING_OBJECT_FORMAT_ARG: Run-time Target. (line 119)
  45689. * TARGET_CLASS_LIKELY_SPILLED_P: Register Classes. (line 499)
  45690. * TARGET_CLASS_MAX_NREGS: Register Classes. (line 515)
  45691. * TARGET_COMMUTATIVE_P: Misc. (line 800)
  45692. * TARGET_COMPARE_BY_PIECES_BRANCH_RATIO: Costs. (line 200)
  45693. * TARGET_COMPARE_VERSION_PRIORITY: Misc. (line 701)
  45694. * TARGET_COMPATIBLE_VECTOR_TYPES_P: Register Arguments. (line 350)
  45695. * TARGET_COMPUTE_FRAME_LAYOUT: Elimination. (line 74)
  45696. * TARGET_COMPUTE_PRESSURE_CLASSES: Register Classes. (line 655)
  45697. * TARGET_COMP_TYPE_ATTRIBUTES: Target Attributes. (line 25)
  45698. * TARGET_CONDITIONAL_REGISTER_USAGE: Register Basics. (line 102)
  45699. * TARGET_CONSTANT_ALIGNMENT: Storage Layout. (line 271)
  45700. * TARGET_CONST_ANCHOR: Misc. (line 1075)
  45701. * TARGET_CONST_NOT_OK_FOR_DEBUG_P: Addressing Modes. (line 230)
  45702. * TARGET_CONVERT_TO_TYPE: Misc. (line 1022)
  45703. * TARGET_CPU_CPP_BUILTINS: Run-time Target. (line 8)
  45704. * TARGET_CSTORE_MODE: Register Classes. (line 647)
  45705. * TARGET_CUSTOM_FUNCTION_DESCRIPTORS: Trampolines. (line 39)
  45706. * TARGET_CXX_ADJUST_CLASS_AT_DEFINITION: C++ ABI. (line 86)
  45707. * TARGET_CXX_CDTOR_RETURNS_THIS: C++ ABI. (line 37)
  45708. * TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT: C++ ABI. (line 61)
  45709. * TARGET_CXX_COOKIE_HAS_SIZE: C++ ABI. (line 24)
  45710. * TARGET_CXX_DECL_MANGLING_CONTEXT: C++ ABI. (line 92)
  45711. * TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY: C++ ABI. (line 52)
  45712. * TARGET_CXX_GET_COOKIE_SIZE: C++ ABI. (line 17)
  45713. * TARGET_CXX_GUARD_MASK_BIT: C++ ABI. (line 11)
  45714. * TARGET_CXX_GUARD_TYPE: C++ ABI. (line 6)
  45715. * TARGET_CXX_IMPLICIT_EXTERN_C: Misc. (line 407)
  45716. * TARGET_CXX_IMPORT_EXPORT_CLASS: C++ ABI. (line 28)
  45717. * TARGET_CXX_KEY_METHOD_MAY_BE_INLINE: C++ ABI. (line 42)
  45718. * TARGET_CXX_LIBRARY_RTTI_COMDAT: C++ ABI. (line 68)
  45719. * TARGET_CXX_USE_AEABI_ATEXIT: C++ ABI. (line 73)
  45720. * TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT: C++ ABI. (line 79)
  45721. * TARGET_C_EXCESS_PRECISION: Storage Layout. (line 109)
  45722. * TARGET_C_PREINCLUDE: Misc. (line 395)
  45723. * TARGET_DEBUG_UNWIND_INFO: DWARF. (line 32)
  45724. * TARGET_DECIMAL_FLOAT_SUPPORTED_P: Storage Layout. (line 537)
  45725. * TARGET_DECLSPEC: Target Attributes. (line 72)
  45726. * TARGET_DEFAULT_PACK_STRUCT: Misc. (line 479)
  45727. * TARGET_DEFAULT_SHORT_ENUMS: Type Layout. (line 123)
  45728. * TARGET_DEFAULT_TARGET_FLAGS: Run-time Target. (line 55)
  45729. * TARGET_DEFERRED_OUTPUT_DEFS: Label Output. (line 465)
  45730. * TARGET_DELAY_SCHED2: DWARF. (line 77)
  45731. * TARGET_DELAY_VARTRACK: DWARF. (line 81)
  45732. * TARGET_DELEGITIMIZE_ADDRESS: Addressing Modes. (line 221)
  45733. * TARGET_DIFFERENT_ADDR_DISPLACEMENT_P: Register Classes. (line 603)
  45734. * TARGET_DLLIMPORT_DECL_ATTRIBUTES: Target Attributes. (line 55)
  45735. * TARGET_DOLOOP_COST_FOR_ADDRESS: Misc. (line 746)
  45736. * TARGET_DOLOOP_COST_FOR_GENERIC: Misc. (line 735)
  45737. * TARGET_DWARF_CALLING_CONVENTION: DWARF. (line 12)
  45738. * TARGET_DWARF_FRAME_REG_MODE: Exception Region Output.
  45739. (line 113)
  45740. * TARGET_DWARF_HANDLE_FRAME_UNSPEC: Frame Layout. (line 165)
  45741. * TARGET_DWARF_POLY_INDETERMINATE_VALUE: Frame Layout. (line 177)
  45742. * TARGET_DWARF_REGISTER_SPAN: Exception Region Output.
  45743. (line 104)
  45744. * TARGET_D_CPU_VERSIONS: D Language and ABI. (line 6)
  45745. * TARGET_D_CRITSEC_SIZE: D Language and ABI. (line 17)
  45746. * TARGET_D_OS_VERSIONS: D Language and ABI. (line 13)
  45747. * TARGET_EDOM: Library Calls. (line 59)
  45748. * TARGET_EMPTY_RECORD_P: Aggregate Return. (line 86)
  45749. * TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS: Emulated TLS. (line 67)
  45750. * TARGET_EMUTLS_GET_ADDRESS: Emulated TLS. (line 18)
  45751. * TARGET_EMUTLS_REGISTER_COMMON: Emulated TLS. (line 23)
  45752. * TARGET_EMUTLS_TMPL_PREFIX: Emulated TLS. (line 44)
  45753. * TARGET_EMUTLS_TMPL_SECTION: Emulated TLS. (line 35)
  45754. * TARGET_EMUTLS_VAR_ALIGN_FIXED: Emulated TLS. (line 62)
  45755. * TARGET_EMUTLS_VAR_FIELDS: Emulated TLS. (line 48)
  45756. * TARGET_EMUTLS_VAR_INIT: Emulated TLS. (line 55)
  45757. * TARGET_EMUTLS_VAR_PREFIX: Emulated TLS. (line 40)
  45758. * TARGET_EMUTLS_VAR_SECTION: Emulated TLS. (line 30)
  45759. * TARGET_ENCODE_SECTION_INFO: Sections. (line 263)
  45760. * TARGET_ENCODE_SECTION_INFO and address validation: Addressing Modes.
  45761. (line 82)
  45762. * TARGET_ENCODE_SECTION_INFO usage: Instruction Output. (line 127)
  45763. * TARGET_END_CALL_ARGS: Varargs. (line 137)
  45764. * TARGET_ENUM_VA_LIST_P: Register Arguments. (line 285)
  45765. * TARGET_ESTIMATED_POLY_VALUE: Costs. (line 432)
  45766. * TARGET_EXCEPT_UNWIND_INFO: Exception Region Output.
  45767. (line 46)
  45768. * TARGET_EXECUTABLE_SUFFIX: Misc. (line 858)
  45769. * TARGET_EXPAND_BUILTIN: Misc. (line 647)
  45770. * TARGET_EXPAND_BUILTIN_SAVEREGS: Varargs. (line 64)
  45771. * TARGET_EXPAND_DIVMOD_LIBFUNC: Scheduling. (line 461)
  45772. * TARGET_EXPAND_TO_RTL_HOOK: Storage Layout. (line 543)
  45773. * TARGET_EXPR: Unary and Binary Expressions.
  45774. (line 6)
  45775. * TARGET_EXTRA_INCLUDES: Misc. (line 937)
  45776. * TARGET_EXTRA_LIVE_ON_ENTRY: Tail Calls. (line 20)
  45777. * TARGET_EXTRA_PRE_INCLUDES: Misc. (line 944)
  45778. * TARGET_FIXED_CONDITION_CODE_REGS: MODE_CC Condition Codes.
  45779. (line 105)
  45780. * TARGET_FIXED_POINT_SUPPORTED_P: Storage Layout. (line 540)
  45781. * target_flags: Run-time Target. (line 51)
  45782. * TARGET_FLAGS_REGNUM: MODE_CC Condition Codes.
  45783. (line 133)
  45784. * TARGET_FLOATN_BUILTIN_P: Register Arguments. (line 438)
  45785. * TARGET_FLOATN_MODE: Register Arguments. (line 420)
  45786. * TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P: Run-time Target.
  45787. (line 179)
  45788. * TARGET_FNTYPE_ABI: Register Basics. (line 58)
  45789. * TARGET_FN_ABI_VA_LIST: Register Arguments. (line 297)
  45790. * TARGET_FOLD_BUILTIN: Misc. (line 684)
  45791. * TARGET_FORMAT_TYPES: Misc. (line 965)
  45792. * TARGET_FRAME_POINTER_REQUIRED: Elimination. (line 8)
  45793. * TARGET_FUNCTION_ARG: Register Arguments. (line 10)
  45794. * TARGET_FUNCTION_ARG_ADVANCE: Register Arguments. (line 195)
  45795. * TARGET_FUNCTION_ARG_BOUNDARY: Register Arguments. (line 248)
  45796. * TARGET_FUNCTION_ARG_OFFSET: Register Arguments. (line 206)
  45797. * TARGET_FUNCTION_ARG_PADDING: Register Arguments. (line 214)
  45798. * TARGET_FUNCTION_ARG_ROUND_BOUNDARY: Register Arguments. (line 254)
  45799. * TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P: Target Attributes. (line 101)
  45800. * TARGET_FUNCTION_INCOMING_ARG: Register Arguments. (line 64)
  45801. * TARGET_FUNCTION_OK_FOR_SIBCALL: Tail Calls. (line 6)
  45802. * TARGET_FUNCTION_VALUE: Scalar Return. (line 9)
  45803. * TARGET_FUNCTION_VALUE_REGNO_P: Scalar Return. (line 96)
  45804. * TARGET_GENERATE_VERSION_DISPATCHER_BODY: Misc. (line 717)
  45805. * TARGET_GEN_CCMP_FIRST: Misc. (line 890)
  45806. * TARGET_GEN_CCMP_NEXT: Misc. (line 901)
  45807. * TARGET_GET_DRAP_RTX: Misc. (line 1058)
  45808. * TARGET_GET_FUNCTION_VERSIONS_DISPATCHER: Misc. (line 710)
  45809. * TARGET_GET_MULTILIB_ABI_NAME: Register Basics. (line 99)
  45810. * TARGET_GET_PCH_VALIDITY: PCH Target. (line 6)
  45811. * TARGET_GET_RAW_ARG_MODE: Aggregate Return. (line 81)
  45812. * TARGET_GET_RAW_RESULT_MODE: Aggregate Return. (line 76)
  45813. * TARGET_GET_VALID_OPTION_VALUES: Stack Smashing Protection.
  45814. (line 39)
  45815. * TARGET_GIMPLE_FOLD_BUILTIN: Misc. (line 694)
  45816. * TARGET_GIMPLIFY_VA_ARG_EXPR: Register Arguments. (line 307)
  45817. * TARGET_GOACC_DIM_LIMIT: Addressing Modes. (line 540)
  45818. * TARGET_GOACC_FORK_JOIN: Addressing Modes. (line 544)
  45819. * TARGET_GOACC_REDUCTION: Addressing Modes. (line 555)
  45820. * TARGET_GOACC_VALIDATE_DIMS: Addressing Modes. (line 527)
  45821. * TARGET_HANDLE_C_OPTION: Run-time Target. (line 73)
  45822. * TARGET_HANDLE_GENERIC_ATTRIBUTE: Target Attributes. (line 93)
  45823. * TARGET_HANDLE_OPTION: Run-time Target. (line 59)
  45824. * TARGET_HARD_REGNO_CALL_PART_CLOBBERED: Register Basics. (line 76)
  45825. * TARGET_HARD_REGNO_MODE_OK: Values in Registers.
  45826. (line 54)
  45827. * TARGET_HARD_REGNO_NREGS: Values in Registers.
  45828. (line 10)
  45829. * TARGET_HARD_REGNO_SCRATCH_OK: Values in Registers.
  45830. (line 139)
  45831. * TARGET_HAS_IFUNC_P: Misc. (line 1106)
  45832. * TARGET_HAS_NO_HW_DIVIDE: Library Calls. (line 52)
  45833. * TARGET_HAVE_CONDITIONAL_EXECUTION: Misc. (line 884)
  45834. * TARGET_HAVE_COUNT_REG_DECR_P: Misc. (line 731)
  45835. * TARGET_HAVE_CTORS_DTORS: Macros for Initialization.
  45836. (line 63)
  45837. * TARGET_HAVE_NAMED_SECTIONS: File Framework. (line 150)
  45838. * TARGET_HAVE_SPECULATION_SAFE_VALUE: Misc. (line 1189)
  45839. * TARGET_HAVE_SRODATA_SECTION: Sections. (line 309)
  45840. * TARGET_HAVE_SWITCHABLE_BSS_SECTIONS: File Framework. (line 155)
  45841. * TARGET_HAVE_TLS: Sections. (line 329)
  45842. * TARGET_INIT_BUILTINS: Misc. (line 621)
  45843. * TARGET_INIT_DWARF_REG_SIZES_EXTRA: Exception Region Output.
  45844. (line 119)
  45845. * TARGET_INIT_LIBFUNCS: Library Calls. (line 15)
  45846. * TARGET_INIT_PIC_REG: Register Arguments. (line 88)
  45847. * TARGET_INSERT_ATTRIBUTES: Target Attributes. (line 80)
  45848. * TARGET_INSN_CALLEE_ABI: Register Basics. (line 65)
  45849. * TARGET_INSN_COST: Costs. (line 380)
  45850. * TARGET_INSTANTIATE_DECLS: Storage Layout. (line 551)
  45851. * TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN: Misc. (line 989)
  45852. * TARGET_INVALID_BINARY_OP: Misc. (line 1008)
  45853. * TARGET_INVALID_CONVERSION: Misc. (line 995)
  45854. * TARGET_INVALID_UNARY_OP: Misc. (line 1001)
  45855. * TARGET_INVALID_WITHIN_DOLOOP: Misc. (line 774)
  45856. * TARGET_IN_SMALL_DATA_P: Sections. (line 305)
  45857. * TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS: Register Classes. (line 570)
  45858. * TARGET_KEEP_LEAF_WHEN_PROFILED: Profiling. (line 39)
  45859. * TARGET_LEGITIMATE_ADDRESS_P: Addressing Modes. (line 48)
  45860. * TARGET_LEGITIMATE_COMBINED_INSN: Misc. (line 788)
  45861. * TARGET_LEGITIMATE_CONSTANT_P: Addressing Modes. (line 213)
  45862. * TARGET_LEGITIMIZE_ADDRESS: Addressing Modes. (line 129)
  45863. * TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT: Register Classes. (line 618)
  45864. * TARGET_LIBCALL_VALUE: Scalar Return. (line 65)
  45865. * TARGET_LIBC_HAS_FAST_FUNCTION: Library Calls. (line 82)
  45866. * TARGET_LIBC_HAS_FUNCTION: Library Calls. (line 77)
  45867. * TARGET_LIBFUNC_GNU_PREFIX: Library Calls. (line 24)
  45868. * TARGET_LIBGCC_CMP_RETURN_MODE: Storage Layout. (line 493)
  45869. * TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P: Register Arguments.
  45870. (line 412)
  45871. * TARGET_LIBGCC_SDATA_SECTION: Sections. (line 136)
  45872. * TARGET_LIBGCC_SHIFT_COUNT_MODE: Storage Layout. (line 499)
  45873. * TARGET_LIB_INT_CMP_BIASED: Library Calls. (line 42)
  45874. * TARGET_LOAD_BOUNDS_FOR_ARG: Varargs. (line 153)
  45875. * TARGET_LOAD_RETURNED_BOUNDS: Varargs. (line 172)
  45876. * TARGET_LOOP_UNROLL_ADJUST: Misc. (line 918)
  45877. * TARGET_LRA_P: Register Classes. (line 577)
  45878. * TARGET_MACHINE_DEPENDENT_REORG: Misc. (line 606)
  45879. * TARGET_MANGLE_ASSEMBLER_NAME: Label Output. (line 356)
  45880. * TARGET_MANGLE_DECL_ASSEMBLER_NAME: Sections. (line 253)
  45881. * TARGET_MANGLE_TYPE: Storage Layout. (line 555)
  45882. * TARGET_MAX_ANCHOR_OFFSET: Anchored Addresses. (line 38)
  45883. * TARGET_MAX_NOCE_IFCVT_SEQ_COST: Costs. (line 390)
  45884. * TARGET_MD_ASM_ADJUST: Misc. (line 524)
  45885. * TARGET_MEMBER_TYPE_FORCES_BLK: Storage Layout. (line 445)
  45886. * TARGET_MEMMODEL_CHECK: Misc. (line 1097)
  45887. * TARGET_MEMORY_MOVE_COST: Costs. (line 79)
  45888. * TARGET_MEM_CONSTRAINT: Addressing Modes. (line 107)
  45889. * TARGET_MEM_REF: Storage References. (line 6)
  45890. * TARGET_MERGE_DECL_ATTRIBUTES: Target Attributes. (line 45)
  45891. * TARGET_MERGE_TYPE_ATTRIBUTES: Target Attributes. (line 37)
  45892. * TARGET_MIN_ANCHOR_OFFSET: Anchored Addresses. (line 32)
  45893. * TARGET_MIN_ARITHMETIC_PRECISION: Misc. (line 63)
  45894. * TARGET_MIN_DIVISIONS_FOR_RECIP_MUL: Misc. (line 112)
  45895. * TARGET_MODES_TIEABLE_P: Values in Registers.
  45896. (line 123)
  45897. * TARGET_MODE_AFTER: Mode Switching. (line 57)
  45898. * TARGET_MODE_DEPENDENT_ADDRESS_P: Addressing Modes. (line 196)
  45899. * TARGET_MODE_EMIT: Mode Switching. (line 42)
  45900. * TARGET_MODE_ENTRY: Mode Switching. (line 64)
  45901. * TARGET_MODE_EXIT: Mode Switching. (line 71)
  45902. * TARGET_MODE_NEEDED: Mode Switching. (line 50)
  45903. * TARGET_MODE_PRIORITY: Mode Switching. (line 78)
  45904. * TARGET_MODE_REP_EXTENDED: Misc. (line 197)
  45905. * TARGET_MS_BITFIELD_LAYOUT_P: Storage Layout. (line 509)
  45906. * TARGET_MUST_PASS_IN_STACK: Register Arguments. (line 57)
  45907. * TARGET_MUST_PASS_IN_STACK, and TARGET_FUNCTION_ARG: Register Arguments.
  45908. (line 49)
  45909. * TARGET_NARROW_VOLATILE_BITFIELD: Storage Layout. (line 438)
  45910. * TARGET_NEW_ADDRESS_PROFITABLE_P: Costs. (line 415)
  45911. * TARGET_NOCE_CONVERSION_PROFITABLE_P: Costs. (line 409)
  45912. * TARGET_NO_REGISTER_ALLOCATION: DWARF. (line 85)
  45913. * TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P: Costs. (line 422)
  45914. * TARGET_N_FORMAT_TYPES: Misc. (line 970)
  45915. * TARGET_OBJC_CONSTRUCT_STRING_OBJECT: Run-time Target. (line 88)
  45916. * TARGET_OBJC_DECLARE_CLASS_DEFINITION: Run-time Target. (line 109)
  45917. * TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE: Run-time Target.
  45918. (line 104)
  45919. * TARGET_OBJECT_SUFFIX: Misc. (line 853)
  45920. * TARGET_OBJFMT_CPP_BUILTINS: Run-time Target. (line 45)
  45921. * TARGET_OFFLOAD_OPTIONS: Misc. (line 1140)
  45922. * TARGET_OMIT_STRUCT_RETURN_REG: Scalar Return. (line 117)
  45923. * TARGET_OMP_DEVICE_KIND_ARCH_ISA: Addressing Modes. (line 519)
  45924. * TARGET_OPTAB_SUPPORTED_P: Costs. (line 299)
  45925. * TARGET_OPTF: Misc. (line 952)
  45926. * TARGET_OPTION_FUNCTION_VERSIONS: Target Attributes. (line 165)
  45927. * TARGET_OPTION_INIT_STRUCT: Run-time Target. (line 156)
  45928. * TARGET_OPTION_OPTIMIZATION_TABLE: Run-time Target. (line 142)
  45929. * TARGET_OPTION_OVERRIDE: Target Attributes. (line 152)
  45930. * TARGET_OPTION_POST_STREAM_IN: Target Attributes. (line 133)
  45931. * TARGET_OPTION_PRAGMA_PARSE: Target Attributes. (line 145)
  45932. * TARGET_OPTION_PRINT: Target Attributes. (line 139)
  45933. * TARGET_OPTION_RESTORE: Target Attributes. (line 127)
  45934. * TARGET_OPTION_SAVE: Target Attributes. (line 120)
  45935. * TARGET_OPTION_VALID_ATTRIBUTE_P: Target Attributes. (line 108)
  45936. * TARGET_OS_CPP_BUILTINS: Run-time Target. (line 41)
  45937. * TARGET_OVERRIDES_FORMAT_ATTRIBUTES: Misc. (line 974)
  45938. * TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT: Misc. (line 980)
  45939. * TARGET_OVERRIDES_FORMAT_INIT: Misc. (line 984)
  45940. * TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE: Run-time Target. (line 126)
  45941. * TARGET_PASS_BY_REFERENCE: Register Arguments. (line 112)
  45942. * TARGET_PCH_VALID_P: PCH Target. (line 11)
  45943. * TARGET_POSIX_IO: Misc. (line 550)
  45944. * TARGET_PREDICT_DOLOOP_P: Misc. (line 724)
  45945. * TARGET_PREFERRED_ELSE_VALUE: Addressing Modes. (line 563)
  45946. * TARGET_PREFERRED_OUTPUT_RELOAD_CLASS: Register Classes. (line 284)
  45947. * TARGET_PREFERRED_RELOAD_CLASS: Register Classes. (line 213)
  45948. * TARGET_PREFERRED_RENAME_CLASS: Register Classes. (line 201)
  45949. * TARGET_PREPARE_PCH_SAVE: PCH Target. (line 34)
  45950. * TARGET_PRETEND_OUTGOING_VARARGS_NAMED: Varargs. (line 144)
  45951. * TARGET_PROFILE_BEFORE_PROLOGUE: Sections. (line 313)
  45952. * TARGET_PROMOTED_TYPE: Misc. (line 1014)
  45953. * TARGET_PROMOTE_FUNCTION_MODE: Storage Layout. (line 126)
  45954. * TARGET_PROMOTE_PROTOTYPES: Stack Arguments. (line 10)
  45955. * TARGET_PTRMEMFUNC_VBIT_LOCATION: Type Layout. (line 250)
  45956. * TARGET_RECORD_OFFLOAD_SYMBOL: Misc. (line 1135)
  45957. * TARGET_REF_MAY_ALIAS_ERRNO: Register Arguments. (line 318)
  45958. * TARGET_REGISTER_MOVE_COST: Costs. (line 31)
  45959. * TARGET_REGISTER_PRIORITY: Register Classes. (line 582)
  45960. * TARGET_REGISTER_USAGE_LEVELING_P: Register Classes. (line 593)
  45961. * TARGET_RELAYOUT_FUNCTION: Target Attributes. (line 180)
  45962. * TARGET_RESET_LOCATION_VIEW: DWARF. (line 57)
  45963. * TARGET_RESOLVE_OVERLOADED_BUILTIN: Misc. (line 658)
  45964. * TARGET_RETURN_IN_MEMORY: Aggregate Return. (line 15)
  45965. * TARGET_RETURN_IN_MSB: Scalar Return. (line 124)
  45966. * TARGET_RETURN_POPS_ARGS: Stack Arguments. (line 98)
  45967. * TARGET_RTX_COSTS: Costs. (line 313)
  45968. * TARGET_RUN_TARGET_SELFTESTS: Misc. (line 1226)
  45969. * TARGET_SCALAR_MODE_SUPPORTED_P: Register Arguments. (line 334)
  45970. * TARGET_SCHED_ADJUST_COST: Scheduling. (line 35)
  45971. * TARGET_SCHED_ADJUST_PRIORITY: Scheduling. (line 50)
  45972. * TARGET_SCHED_ALLOC_SCHED_CONTEXT: Scheduling. (line 294)
  45973. * TARGET_SCHED_CAN_SPECULATE_INSN: Scheduling. (line 354)
  45974. * TARGET_SCHED_CLEAR_SCHED_CONTEXT: Scheduling. (line 309)
  45975. * TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK: Scheduling. (line 101)
  45976. * TARGET_SCHED_DFA_NEW_CYCLE: Scheduling. (line 255)
  45977. * TARGET_SCHED_DFA_POST_ADVANCE_CYCLE: Scheduling. (line 172)
  45978. * TARGET_SCHED_DFA_POST_CYCLE_INSN: Scheduling. (line 156)
  45979. * TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE: Scheduling. (line 165)
  45980. * TARGET_SCHED_DFA_PRE_CYCLE_INSN: Scheduling. (line 144)
  45981. * TARGET_SCHED_DISPATCH: Scheduling. (line 370)
  45982. * TARGET_SCHED_DISPATCH_DO: Scheduling. (line 375)
  45983. * TARGET_SCHED_EXPOSED_PIPELINE: Scheduling. (line 379)
  45984. * TARGET_SCHED_FINISH: Scheduling. (line 122)
  45985. * TARGET_SCHED_FINISH_GLOBAL: Scheduling. (line 137)
  45986. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BACKTRACK: Scheduling. (line 235)
  45987. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BEGIN: Scheduling. (line 223)
  45988. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD: Scheduling.
  45989. (line 179)
  45990. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD: Scheduling.
  45991. (line 207)
  45992. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_END: Scheduling. (line 240)
  45993. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_FINI: Scheduling. (line 250)
  45994. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_INIT: Scheduling. (line 245)
  45995. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_ISSUE: Scheduling. (line 229)
  45996. * TARGET_SCHED_FREE_SCHED_CONTEXT: Scheduling. (line 313)
  45997. * TARGET_SCHED_FUSION_PRIORITY: Scheduling. (line 389)
  45998. * TARGET_SCHED_GEN_SPEC_CHECK: Scheduling. (line 335)
  45999. * TARGET_SCHED_H_I_D_EXTENDED: Scheduling. (line 289)
  46000. * TARGET_SCHED_INIT: Scheduling. (line 111)
  46001. * TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN: Scheduling. (line 161)
  46002. * TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN: Scheduling. (line 153)
  46003. * TARGET_SCHED_INIT_GLOBAL: Scheduling. (line 129)
  46004. * TARGET_SCHED_INIT_SCHED_CONTEXT: Scheduling. (line 298)
  46005. * TARGET_SCHED_ISSUE_RATE: Scheduling. (line 11)
  46006. * TARGET_SCHED_IS_COSTLY_DEPENDENCE: Scheduling. (line 267)
  46007. * TARGET_SCHED_MACRO_FUSION_P: Scheduling. (line 87)
  46008. * TARGET_SCHED_MACRO_FUSION_PAIR_P: Scheduling. (line 91)
  46009. * TARGET_SCHED_NEEDS_BLOCK_P: Scheduling. (line 328)
  46010. * TARGET_SCHED_REASSOCIATION_WIDTH: Scheduling. (line 384)
  46011. * TARGET_SCHED_REORDER: Scheduling. (line 58)
  46012. * TARGET_SCHED_REORDER2: Scheduling. (line 75)
  46013. * TARGET_SCHED_SET_SCHED_CONTEXT: Scheduling. (line 305)
  46014. * TARGET_SCHED_SET_SCHED_FLAGS: Scheduling. (line 347)
  46015. * TARGET_SCHED_SMS_RES_MII: Scheduling. (line 361)
  46016. * TARGET_SCHED_SPECULATE_INSN: Scheduling. (line 316)
  46017. * TARGET_SCHED_VARIABLE_ISSUE: Scheduling. (line 22)
  46018. * TARGET_SECONDARY_MEMORY_NEEDED: Register Classes. (line 447)
  46019. * TARGET_SECONDARY_MEMORY_NEEDED_MODE: Register Classes. (line 466)
  46020. * TARGET_SECONDARY_RELOAD: Register Classes. (line 312)
  46021. * TARGET_SECTION_TYPE_FLAGS: File Framework. (line 160)
  46022. * TARGET_SELECT_EARLY_REMAT_MODES: Register Classes. (line 488)
  46023. * TARGET_SETJMP_PRESERVES_NONVOLATILE_REGS_P: Misc. (line 223)
  46024. * TARGET_SETUP_INCOMING_VARARGS: Varargs. (line 71)
  46025. * TARGET_SET_CURRENT_FUNCTION: Misc. (line 835)
  46026. * TARGET_SET_DEFAULT_TYPE_ATTRIBUTES: Target Attributes. (line 33)
  46027. * TARGET_SET_UP_BY_PROLOGUE: Tail Calls. (line 29)
  46028. * TARGET_SHIFT_TRUNCATION_MASK: Misc. (line 160)
  46029. * TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB: Shrink-wrapping separate components.
  46030. (line 36)
  46031. * TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS: Shrink-wrapping separate components.
  46032. (line 43)
  46033. * TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS: Shrink-wrapping separate components.
  46034. (line 54)
  46035. * TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS: Shrink-wrapping separate components.
  46036. (line 50)
  46037. * TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS: Shrink-wrapping separate components.
  46038. (line 27)
  46039. * TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS: Shrink-wrapping separate components.
  46040. (line 58)
  46041. * TARGET_SIMD_CLONE_ADJUST: Addressing Modes. (line 506)
  46042. * TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN: Addressing Modes.
  46043. (line 498)
  46044. * TARGET_SIMD_CLONE_USABLE: Addressing Modes. (line 510)
  46045. * TARGET_SIMT_VF: Addressing Modes. (line 516)
  46046. * TARGET_SLOW_UNALIGNED_ACCESS: Costs. (line 132)
  46047. * TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P: Register Arguments.
  46048. (line 448)
  46049. * TARGET_SPECULATION_SAFE_VALUE: Misc. (line 1208)
  46050. * TARGET_SPILL_CLASS: Register Classes. (line 632)
  46051. * TARGET_SPLIT_COMPLEX_ARG: Register Arguments. (line 269)
  46052. * TARGET_STACK_CLASH_PROTECTION_ALLOCA_PROBE_RANGE: Stack Checking.
  46053. (line 97)
  46054. * TARGET_STACK_PROTECT_FAIL: Stack Smashing Protection.
  46055. (line 16)
  46056. * TARGET_STACK_PROTECT_GUARD: Stack Smashing Protection.
  46057. (line 6)
  46058. * TARGET_STACK_PROTECT_RUNTIME_ENABLED_P: Stack Smashing Protection.
  46059. (line 25)
  46060. * TARGET_STARTING_FRAME_OFFSET: Frame Layout. (line 34)
  46061. * TARGET_STARTING_FRAME_OFFSET and virtual registers: Regs and Memory.
  46062. (line 74)
  46063. * TARGET_STATIC_CHAIN: Frame Registers. (line 90)
  46064. * TARGET_STATIC_RTX_ALIGNMENT: Storage Layout. (line 243)
  46065. * TARGET_STORE_BOUNDS_FOR_ARG: Varargs. (line 163)
  46066. * TARGET_STORE_RETURNED_BOUNDS: Varargs. (line 177)
  46067. * TARGET_STRICT_ARGUMENT_NAMING: Varargs. (line 107)
  46068. * TARGET_STRING_OBJECT_REF_TYPE_P: Run-time Target. (line 114)
  46069. * TARGET_STRIP_NAME_ENCODING: Sections. (line 300)
  46070. * TARGET_STRUCT_VALUE_RTX: Aggregate Return. (line 44)
  46071. * TARGET_SUPPORTS_SPLIT_STACK: Stack Smashing Protection.
  46072. (line 30)
  46073. * TARGET_SUPPORTS_WEAK: Label Output. (line 272)
  46074. * TARGET_SUPPORTS_WIDE_INT: Misc. (line 1148)
  46075. * TARGET_TERMINATE_DW2_EH_FRAME_INFO: Exception Region Output.
  46076. (line 98)
  46077. * TARGET_TRAMPOLINE_ADJUST_ADDRESS: Trampolines. (line 127)
  46078. * TARGET_TRAMPOLINE_INIT: Trampolines. (line 107)
  46079. * TARGET_TRANSLATE_MODE_ATTRIBUTE: Register Arguments. (line 325)
  46080. * TARGET_TRULY_NOOP_TRUNCATION: Misc. (line 184)
  46081. * TARGET_UNSPEC_MAY_TRAP_P: Misc. (line 826)
  46082. * TARGET_UNWIND_TABLES_DEFAULT: Exception Region Output.
  46083. (line 73)
  46084. * TARGET_UNWIND_WORD_MODE: Storage Layout. (line 505)
  46085. * TARGET_UPDATE_STACK_BOUNDARY: Misc. (line 1054)
  46086. * TARGET_USES_WEAK_UNWIND_INFO: Exception Handling. (line 123)
  46087. * TARGET_USE_ANCHORS_FOR_SYMBOL_P: Anchored Addresses. (line 53)
  46088. * TARGET_USE_BLOCKS_FOR_CONSTANT_P: Addressing Modes. (line 248)
  46089. * TARGET_USE_BLOCKS_FOR_DECL_P: Addressing Modes. (line 255)
  46090. * TARGET_USE_BY_PIECES_INFRASTRUCTURE_P: Costs. (line 165)
  46091. * TARGET_USE_PSEUDO_PIC_REG: Register Arguments. (line 84)
  46092. * TARGET_VALID_DLLIMPORT_ATTRIBUTE_P: Target Attributes. (line 66)
  46093. * TARGET_VALID_POINTER_MODE: Register Arguments. (line 313)
  46094. * TARGET_VECTORIZE_ADD_STMT_COST: Addressing Modes. (line 461)
  46095. * TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES: Addressing Modes.
  46096. (line 376)
  46097. * TARGET_VECTORIZE_BUILTIN_GATHER: Addressing Modes. (line 484)
  46098. * TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD: Addressing Modes. (line 266)
  46099. * TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION: Addressing Modes.
  46100. (line 344)
  46101. * TARGET_VECTORIZE_BUILTIN_SCATTER: Addressing Modes. (line 491)
  46102. * TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST: Addressing Modes.
  46103. (line 292)
  46104. * TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION: Addressing Modes.
  46105. (line 336)
  46106. * TARGET_VECTORIZE_DESTROY_COST_DATA: Addressing Modes. (line 479)
  46107. * TARGET_VECTORIZE_EMPTY_MASK_IS_EXPENSIVE: Addressing Modes.
  46108. (line 445)
  46109. * TARGET_VECTORIZE_FINISH_COST: Addressing Modes. (line 472)
  46110. * TARGET_VECTORIZE_GET_MASK_MODE: Addressing Modes. (line 433)
  46111. * TARGET_VECTORIZE_INIT_COST: Addressing Modes. (line 452)
  46112. * TARGET_VECTORIZE_PREFERRED_SIMD_MODE: Addressing Modes. (line 361)
  46113. * TARGET_VECTORIZE_PREFERRED_VECTOR_ALIGNMENT: Addressing Modes.
  46114. (line 298)
  46115. * TARGET_VECTORIZE_RELATED_MODE: Addressing Modes. (line 407)
  46116. * TARGET_VECTORIZE_SPLIT_REDUCTION: Addressing Modes. (line 368)
  46117. * TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT: Addressing Modes.
  46118. (line 351)
  46119. * TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE: Addressing Modes.
  46120. (line 310)
  46121. * TARGET_VECTORIZE_VEC_PERM_CONST: Addressing Modes. (line 316)
  46122. * TARGET_VECTOR_ALIGNMENT: Storage Layout. (line 298)
  46123. * TARGET_VECTOR_MODE_SUPPORTED_P: Register Arguments. (line 345)
  46124. * TARGET_VERIFY_TYPE_CONTEXT: Misc. (line 1029)
  46125. * TARGET_VTABLE_DATA_ENTRY_DISTANCE: Type Layout. (line 303)
  46126. * TARGET_VTABLE_ENTRY_ALIGN: Type Layout. (line 297)
  46127. * TARGET_VTABLE_USES_DESCRIPTORS: Type Layout. (line 286)
  46128. * TARGET_WANT_DEBUG_PUB_SECTIONS: DWARF. (line 72)
  46129. * TARGET_WARN_FUNC_RETURN: Tail Calls. (line 35)
  46130. * TARGET_WARN_PARAMETER_PASSING_ABI: Aggregate Return. (line 90)
  46131. * TARGET_WEAK_NOT_IN_ARCHIVE_TOC: Label Output. (line 308)
  46132. * TCmode: Machine Modes. (line 199)
  46133. * TDmode: Machine Modes. (line 97)
  46134. * TEMPLATE_DECL: Declarations. (line 6)
  46135. * Temporaries: Temporaries. (line 6)
  46136. * termination routines: Initialization. (line 6)
  46137. * testing constraints: C Constraint Interface.
  46138. (line 6)
  46139. * TEXT_SECTION_ASM_OP: Sections. (line 37)
  46140. * TFmode: Machine Modes. (line 101)
  46141. * The Language: The Language. (line 6)
  46142. * THEN_CLAUSE: Statements for C++. (line 6)
  46143. * THREAD_MODEL_SPEC: Driver. (line 162)
  46144. * THROW_EXPR: Unary and Binary Expressions.
  46145. (line 6)
  46146. * THUNK_DECL: Declarations. (line 6)
  46147. * THUNK_DELTA: Declarations. (line 6)
  46148. * TImode: Machine Modes. (line 48)
  46149. * TImode, in insn: Insns. (line 291)
  46150. * TLS_COMMON_ASM_OP: Sections. (line 80)
  46151. * TLS_SECTION_ASM_FLAG: Sections. (line 85)
  46152. * tm.h macros: Target Macros. (line 6)
  46153. * TQFmode: Machine Modes. (line 65)
  46154. * TQmode: Machine Modes. (line 122)
  46155. * trampolines for nested functions: Trampolines. (line 6)
  46156. * TRAMPOLINE_ALIGNMENT: Trampolines. (line 101)
  46157. * TRAMPOLINE_SECTION: Trampolines. (line 92)
  46158. * TRAMPOLINE_SIZE: Trampolines. (line 97)
  46159. * TRANSFER_FROM_TRAMPOLINE: Trampolines. (line 163)
  46160. * trap instruction pattern: Standard Names. (line 2121)
  46161. * tree: Tree overview. (line 6)
  46162. * tree <1>: Macros and Functions.
  46163. (line 6)
  46164. * Tree SSA: Tree SSA. (line 6)
  46165. * TREE_CHAIN: Macros and Functions.
  46166. (line 6)
  46167. * TREE_CODE: Tree overview. (line 6)
  46168. * tree_fits_shwi_p: Constant expressions.
  46169. (line 6)
  46170. * tree_fits_uhwi_p: Constant expressions.
  46171. (line 6)
  46172. * TREE_INT_CST_ELT: Constant expressions.
  46173. (line 6)
  46174. * tree_int_cst_equal: Constant expressions.
  46175. (line 6)
  46176. * TREE_INT_CST_LOW: Constant expressions.
  46177. (line 6)
  46178. * tree_int_cst_lt: Constant expressions.
  46179. (line 6)
  46180. * TREE_INT_CST_NUNITS: Constant expressions.
  46181. (line 6)
  46182. * TREE_LIST: Containers. (line 6)
  46183. * TREE_OPERAND: Expression trees. (line 6)
  46184. * TREE_PUBLIC: Function Basics. (line 6)
  46185. * TREE_PUBLIC <1>: Function Properties.
  46186. (line 28)
  46187. * TREE_PURPOSE: Containers. (line 6)
  46188. * TREE_READONLY: Function Properties.
  46189. (line 37)
  46190. * tree_size: Macros and Functions.
  46191. (line 13)
  46192. * TREE_STATIC: Function Properties.
  46193. (line 31)
  46194. * TREE_STRING_LENGTH: Constant expressions.
  46195. (line 6)
  46196. * TREE_STRING_POINTER: Constant expressions.
  46197. (line 6)
  46198. * TREE_THIS_VOLATILE: Function Properties.
  46199. (line 34)
  46200. * tree_to_shwi: Constant expressions.
  46201. (line 6)
  46202. * tree_to_uhwi: Constant expressions.
  46203. (line 6)
  46204. * TREE_TYPE: Macros and Functions.
  46205. (line 6)
  46206. * TREE_TYPE <1>: Types. (line 6)
  46207. * TREE_TYPE <2>: Working with declarations.
  46208. (line 11)
  46209. * TREE_TYPE <3>: Expression trees. (line 6)
  46210. * TREE_TYPE <4>: Expression trees. (line 17)
  46211. * TREE_TYPE <5>: Function Basics. (line 47)
  46212. * TREE_TYPE <6>: Types for C++. (line 6)
  46213. * TREE_VALUE: Containers. (line 6)
  46214. * TREE_VEC: Containers. (line 6)
  46215. * TREE_VEC_ELT: Containers. (line 6)
  46216. * TREE_VEC_LENGTH: Containers. (line 6)
  46217. * true positive: Guidelines for Diagnostics.
  46218. (line 39)
  46219. * truncate: Conversions. (line 38)
  46220. * truncMN2 instruction pattern: Standard Names. (line 1442)
  46221. * TRUNC_DIV_EXPR: Unary and Binary Expressions.
  46222. (line 6)
  46223. * TRUNC_MOD_EXPR: Unary and Binary Expressions.
  46224. (line 6)
  46225. * TRUTH_ANDIF_EXPR: Unary and Binary Expressions.
  46226. (line 6)
  46227. * TRUTH_AND_EXPR: Unary and Binary Expressions.
  46228. (line 6)
  46229. * TRUTH_NOT_EXPR: Unary and Binary Expressions.
  46230. (line 6)
  46231. * TRUTH_ORIF_EXPR: Unary and Binary Expressions.
  46232. (line 6)
  46233. * TRUTH_OR_EXPR: Unary and Binary Expressions.
  46234. (line 6)
  46235. * TRUTH_XOR_EXPR: Unary and Binary Expressions.
  46236. (line 6)
  46237. * TRY_BLOCK: Statements for C++. (line 6)
  46238. * TRY_HANDLERS: Statements for C++. (line 6)
  46239. * TRY_STMTS: Statements for C++. (line 6)
  46240. * Tuple specific accessors: Tuple specific accessors.
  46241. (line 6)
  46242. * tuples: Tuple representation.
  46243. (line 6)
  46244. * type: Types. (line 6)
  46245. * type declaration: Declarations. (line 6)
  46246. * TYPENAME_TYPE: Types for C++. (line 6)
  46247. * TYPENAME_TYPE_FULLNAME: Types. (line 6)
  46248. * TYPENAME_TYPE_FULLNAME <1>: Types for C++. (line 6)
  46249. * TYPEOF_TYPE: Types for C++. (line 6)
  46250. * TYPE_ALIGN: Types. (line 6)
  46251. * TYPE_ALIGN <1>: Types. (line 30)
  46252. * TYPE_ALIGN <2>: Types for C++. (line 6)
  46253. * TYPE_ALIGN <3>: Types for C++. (line 44)
  46254. * TYPE_ARG_TYPES: Types. (line 6)
  46255. * TYPE_ARG_TYPES <1>: Types for C++. (line 6)
  46256. * TYPE_ASM_OP: Label Output. (line 76)
  46257. * TYPE_ATTRIBUTES: Attributes. (line 24)
  46258. * TYPE_BINFO: Classes. (line 6)
  46259. * TYPE_BUILT_IN: Types for C++. (line 66)
  46260. * TYPE_CANONICAL: Types. (line 6)
  46261. * TYPE_CANONICAL <1>: Types. (line 41)
  46262. * TYPE_CONTEXT: Types. (line 6)
  46263. * TYPE_CONTEXT <1>: Types for C++. (line 6)
  46264. * TYPE_DECL: Declarations. (line 6)
  46265. * TYPE_FIELDS: Types. (line 6)
  46266. * TYPE_FIELDS <1>: Types for C++. (line 6)
  46267. * TYPE_FIELDS <2>: Classes. (line 6)
  46268. * TYPE_HAS_ARRAY_NEW_OPERATOR: Classes. (line 93)
  46269. * TYPE_HAS_DEFAULT_CONSTRUCTOR: Classes. (line 78)
  46270. * TYPE_HAS_MUTABLE_P: Classes. (line 83)
  46271. * TYPE_HAS_NEW_OPERATOR: Classes. (line 90)
  46272. * TYPE_MAIN_VARIANT: Types. (line 6)
  46273. * TYPE_MAIN_VARIANT <1>: Types. (line 19)
  46274. * TYPE_MAIN_VARIANT <2>: Types for C++. (line 6)
  46275. * TYPE_MAX_VALUE: Types. (line 6)
  46276. * TYPE_METHOD_BASETYPE: Types. (line 6)
  46277. * TYPE_METHOD_BASETYPE <1>: Types for C++. (line 6)
  46278. * TYPE_MIN_VALUE: Types. (line 6)
  46279. * TYPE_NAME: Types. (line 6)
  46280. * TYPE_NAME <1>: Types. (line 33)
  46281. * TYPE_NAME <2>: Types for C++. (line 6)
  46282. * TYPE_NAME <3>: Types for C++. (line 47)
  46283. * TYPE_NOTHROW_P: Functions for C++. (line 154)
  46284. * TYPE_OFFSET_BASETYPE: Types. (line 6)
  46285. * TYPE_OFFSET_BASETYPE <1>: Types for C++. (line 6)
  46286. * TYPE_OPERAND_FMT: Label Output. (line 87)
  46287. * TYPE_OVERLOADS_ARRAY_REF: Classes. (line 101)
  46288. * TYPE_OVERLOADS_ARROW: Classes. (line 104)
  46289. * TYPE_OVERLOADS_CALL_EXPR: Classes. (line 97)
  46290. * TYPE_POLYMORPHIC_P: Classes. (line 74)
  46291. * TYPE_PRECISION: Types. (line 6)
  46292. * TYPE_PRECISION <1>: Types for C++. (line 6)
  46293. * TYPE_PTRDATAMEM_P: Types for C++. (line 6)
  46294. * TYPE_PTRDATAMEM_P <1>: Types for C++. (line 69)
  46295. * TYPE_PTRFN_P: Types for C++. (line 76)
  46296. * TYPE_PTROBV_P: Types for C++. (line 6)
  46297. * TYPE_PTROB_P: Types for C++. (line 79)
  46298. * TYPE_PTR_P: Types for C++. (line 72)
  46299. * TYPE_QUAL_CONST: Types. (line 6)
  46300. * TYPE_QUAL_CONST <1>: Types for C++. (line 6)
  46301. * TYPE_QUAL_RESTRICT: Types. (line 6)
  46302. * TYPE_QUAL_RESTRICT <1>: Types for C++. (line 6)
  46303. * TYPE_QUAL_VOLATILE: Types. (line 6)
  46304. * TYPE_QUAL_VOLATILE <1>: Types for C++. (line 6)
  46305. * TYPE_RAISES_EXCEPTIONS: Functions for C++. (line 149)
  46306. * TYPE_SIZE: Types. (line 6)
  46307. * TYPE_SIZE <1>: Types. (line 25)
  46308. * TYPE_SIZE <2>: Types for C++. (line 6)
  46309. * TYPE_SIZE <3>: Types for C++. (line 39)
  46310. * TYPE_STRUCTURAL_EQUALITY_P: Types. (line 6)
  46311. * TYPE_STRUCTURAL_EQUALITY_P <1>: Types. (line 77)
  46312. * TYPE_UNQUALIFIED: Types. (line 6)
  46313. * TYPE_UNQUALIFIED <1>: Types for C++. (line 6)
  46314. * TYPE_VFIELD: Classes. (line 6)
  46315. * uaddvM4 instruction pattern: Standard Names. (line 461)
  46316. * uavgM3_ceil instruction pattern: Standard Names. (line 860)
  46317. * uavgM3_floor instruction pattern: Standard Names. (line 848)
  46318. * UDAmode: Machine Modes. (line 170)
  46319. * udiv: Arithmetic. (line 130)
  46320. * udivM3 instruction pattern: Standard Names. (line 442)
  46321. * udivmodM4 instruction pattern: Standard Names. (line 825)
  46322. * udot_prodM instruction pattern: Standard Names. (line 570)
  46323. * UDQmode: Machine Modes. (line 138)
  46324. * UHAmode: Machine Modes. (line 162)
  46325. * UHQmode: Machine Modes. (line 130)
  46326. * UINT16_TYPE: Type Layout. (line 214)
  46327. * UINT32_TYPE: Type Layout. (line 215)
  46328. * UINT64_TYPE: Type Layout. (line 216)
  46329. * UINT8_TYPE: Type Layout. (line 213)
  46330. * UINTMAX_TYPE: Type Layout. (line 197)
  46331. * UINTPTR_TYPE: Type Layout. (line 234)
  46332. * UINT_FAST16_TYPE: Type Layout. (line 230)
  46333. * UINT_FAST32_TYPE: Type Layout. (line 231)
  46334. * UINT_FAST64_TYPE: Type Layout. (line 232)
  46335. * UINT_FAST8_TYPE: Type Layout. (line 229)
  46336. * UINT_LEAST16_TYPE: Type Layout. (line 222)
  46337. * UINT_LEAST32_TYPE: Type Layout. (line 223)
  46338. * UINT_LEAST64_TYPE: Type Layout. (line 224)
  46339. * UINT_LEAST8_TYPE: Type Layout. (line 221)
  46340. * umaddMN4 instruction pattern: Standard Names. (line 772)
  46341. * umax: Arithmetic. (line 149)
  46342. * umaxM3 instruction pattern: Standard Names. (line 442)
  46343. * umin: Arithmetic. (line 149)
  46344. * uminM3 instruction pattern: Standard Names. (line 442)
  46345. * umod: Arithmetic. (line 136)
  46346. * umodM3 instruction pattern: Standard Names. (line 442)
  46347. * umsubMN4 instruction pattern: Standard Names. (line 796)
  46348. * umulhisi3 instruction pattern: Standard Names. (line 744)
  46349. * umulhrsM3 instruction pattern: Standard Names. (line 605)
  46350. * umulhsM3 instruction pattern: Standard Names. (line 595)
  46351. * umulM3_highpart instruction pattern: Standard Names. (line 758)
  46352. * umulqihi3 instruction pattern: Standard Names. (line 744)
  46353. * umulsidi3 instruction pattern: Standard Names. (line 744)
  46354. * umulvM4 instruction pattern: Standard Names. (line 466)
  46355. * unchanging: Flags. (line 307)
  46356. * unchanging, in call_insn: Flags. (line 115)
  46357. * unchanging, in jump_insn, call_insn and insn: Flags. (line 28)
  46358. * unchanging, in mem: Flags. (line 78)
  46359. * unchanging, in subreg: Flags. (line 184)
  46360. * unchanging, in subreg <1>: Flags. (line 194)
  46361. * unchanging, in symbol_ref: Flags. (line 19)
  46362. * UNEQ_EXPR: Unary and Binary Expressions.
  46363. (line 6)
  46364. * UNGE_EXPR: Unary and Binary Expressions.
  46365. (line 6)
  46366. * UNGT_EXPR: Unary and Binary Expressions.
  46367. (line 6)
  46368. * unions, returning: Interface. (line 10)
  46369. * UNION_TYPE: Types. (line 6)
  46370. * UNION_TYPE <1>: Classes. (line 6)
  46371. * UNITS_PER_WORD: Storage Layout. (line 60)
  46372. * UNKNOWN_TYPE: Types. (line 6)
  46373. * UNKNOWN_TYPE <1>: Types for C++. (line 6)
  46374. * UNLE_EXPR: Unary and Binary Expressions.
  46375. (line 6)
  46376. * UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Sections. (line 48)
  46377. * UNLT_EXPR: Unary and Binary Expressions.
  46378. (line 6)
  46379. * UNORDERED_EXPR: Unary and Binary Expressions.
  46380. (line 6)
  46381. * unshare_all_rtl: Sharing. (line 61)
  46382. * unsigned division: Arithmetic. (line 130)
  46383. * unsigned division with unsigned saturation: Arithmetic. (line 130)
  46384. * unsigned greater than: Comparisons. (line 64)
  46385. * unsigned greater than <1>: Comparisons. (line 72)
  46386. * unsigned less than: Comparisons. (line 68)
  46387. * unsigned less than <1>: Comparisons. (line 76)
  46388. * unsigned minimum and maximum: Arithmetic. (line 149)
  46389. * unsigned_fix: Conversions. (line 77)
  46390. * unsigned_float: Conversions. (line 62)
  46391. * unsigned_fract_convert: Conversions. (line 97)
  46392. * unsigned_sat_fract: Conversions. (line 103)
  46393. * unspec: Side Effects. (line 299)
  46394. * unspec <1>: Constant Definitions.
  46395. (line 111)
  46396. * unspec_volatile: Side Effects. (line 299)
  46397. * unspec_volatile <1>: Constant Definitions.
  46398. (line 99)
  46399. * untyped_call instruction pattern: Standard Names. (line 1747)
  46400. * untyped_return instruction pattern: Standard Names. (line 1810)
  46401. * UPDATE_PATH_HOST_CANONICALIZE (PATH): Filesystem. (line 59)
  46402. * update_ssa: SSA. (line 74)
  46403. * update_stmt: Manipulating GIMPLE statements.
  46404. (line 140)
  46405. * update_stmt <1>: SSA Operands. (line 6)
  46406. * update_stmt_if_modified: Manipulating GIMPLE statements.
  46407. (line 143)
  46408. * UQQmode: Machine Modes. (line 126)
  46409. * usaddM3 instruction pattern: Standard Names. (line 442)
  46410. * usadM instruction pattern: Standard Names. (line 579)
  46411. * USAmode: Machine Modes. (line 166)
  46412. * usashlM3 instruction pattern: Standard Names. (line 828)
  46413. * usdivM3 instruction pattern: Standard Names. (line 442)
  46414. * use: Side Effects. (line 168)
  46415. * used: Flags. (line 325)
  46416. * used, in symbol_ref: Flags. (line 211)
  46417. * user: GTY Options. (line 245)
  46418. * user experience guidelines: User Experience Guidelines.
  46419. (line 6)
  46420. * user gc: User GC. (line 6)
  46421. * USER_LABEL_PREFIX: Instruction Output. (line 152)
  46422. * USE_C_ALLOCA: Host Misc. (line 19)
  46423. * USE_LD_AS_NEEDED: Driver. (line 135)
  46424. * USE_LOAD_POST_DECREMENT: Costs. (line 254)
  46425. * USE_LOAD_POST_INCREMENT: Costs. (line 249)
  46426. * USE_LOAD_PRE_DECREMENT: Costs. (line 264)
  46427. * USE_LOAD_PRE_INCREMENT: Costs. (line 259)
  46428. * USE_SELECT_SECTION_FOR_FUNCTIONS: Sections. (line 205)
  46429. * USE_STORE_POST_DECREMENT: Costs. (line 274)
  46430. * USE_STORE_POST_INCREMENT: Costs. (line 269)
  46431. * USE_STORE_PRE_DECREMENT: Costs. (line 284)
  46432. * USE_STORE_PRE_INCREMENT: Costs. (line 279)
  46433. * USING_STMT: Statements for C++. (line 6)
  46434. * usmaddMN4 instruction pattern: Standard Names. (line 780)
  46435. * usmsubMN4 instruction pattern: Standard Names. (line 804)
  46436. * usmulhisi3 instruction pattern: Standard Names. (line 748)
  46437. * usmulM3 instruction pattern: Standard Names. (line 442)
  46438. * usmulqihi3 instruction pattern: Standard Names. (line 748)
  46439. * usmulsidi3 instruction pattern: Standard Names. (line 748)
  46440. * usnegM2 instruction pattern: Standard Names. (line 872)
  46441. * USQmode: Machine Modes. (line 134)
  46442. * ussubM3 instruction pattern: Standard Names. (line 442)
  46443. * usubvM4 instruction pattern: Standard Names. (line 466)
  46444. * us_ashift: Arithmetic. (line 173)
  46445. * us_minus: Arithmetic. (line 38)
  46446. * us_mult: Arithmetic. (line 93)
  46447. * us_neg: Arithmetic. (line 82)
  46448. * us_plus: Arithmetic. (line 14)
  46449. * us_truncate: Conversions. (line 48)
  46450. * UTAmode: Machine Modes. (line 174)
  46451. * UTQmode: Machine Modes. (line 142)
  46452. * V in constraint: Simple Constraints. (line 43)
  46453. * values, returned by functions: Scalar Return. (line 6)
  46454. * varargs implementation: Varargs. (line 6)
  46455. * variable: Declarations. (line 6)
  46456. * Variable Location Debug Information in RTL: Debug Information.
  46457. (line 6)
  46458. * VAR_DECL: Declarations. (line 6)
  46459. * var_location: Debug Information. (line 14)
  46460. * vashlM3 instruction pattern: Standard Names. (line 844)
  46461. * vashrM3 instruction pattern: Standard Names. (line 844)
  46462. * VA_ARG_EXPR: Unary and Binary Expressions.
  46463. (line 6)
  46464. * vcondeqMN instruction pattern: Standard Names. (line 385)
  46465. * vcondMN instruction pattern: Standard Names. (line 372)
  46466. * vconduMN instruction pattern: Standard Names. (line 382)
  46467. * vcond_mask_MN instruction pattern: Standard Names. (line 392)
  46468. * vector: Containers. (line 6)
  46469. * vector operations: Vector Operations. (line 6)
  46470. * VECTOR_CST: Constant expressions.
  46471. (line 6)
  46472. * VECTOR_STORE_FLAG_VALUE: Misc. (line 327)
  46473. * vec_cmpeqMN instruction pattern: Standard Names. (line 365)
  46474. * vec_cmpMN instruction pattern: Standard Names. (line 355)
  46475. * vec_cmpuMN instruction pattern: Standard Names. (line 362)
  46476. * vec_concat: Vector Operations. (line 29)
  46477. * VEC_COND_EXPR: Vectors. (line 6)
  46478. * vec_duplicate: Vector Operations. (line 34)
  46479. * vec_duplicateM instruction pattern: Standard Names. (line 298)
  46480. * VEC_DUPLICATE_EXPR: Vectors. (line 6)
  46481. * vec_extractMN instruction pattern: Standard Names. (line 282)
  46482. * vec_initMN instruction pattern: Standard Names. (line 291)
  46483. * vec_load_lanesMN instruction pattern: Standard Names. (line 165)
  46484. * VEC_LSHIFT_EXPR: Vectors. (line 6)
  46485. * vec_mask_load_lanesMN instruction pattern: Standard Names. (line 189)
  46486. * vec_mask_store_lanesMN instruction pattern: Standard Names.
  46487. (line 219)
  46488. * vec_merge: Vector Operations. (line 11)
  46489. * vec_packs_float_M instruction pattern: Standard Names. (line 670)
  46490. * vec_packu_float_M instruction pattern: Standard Names. (line 670)
  46491. * VEC_PACK_FIX_TRUNC_EXPR: Vectors. (line 6)
  46492. * VEC_PACK_FLOAT_EXPR: Vectors. (line 6)
  46493. * VEC_PACK_SAT_EXPR: Vectors. (line 6)
  46494. * vec_pack_sbool_trunc_M instruction pattern: Standard Names.
  46495. (line 647)
  46496. * vec_pack_sfix_trunc_M instruction pattern: Standard Names. (line 663)
  46497. * vec_pack_ssat_M instruction pattern: Standard Names. (line 656)
  46498. * VEC_PACK_TRUNC_EXPR: Vectors. (line 6)
  46499. * vec_pack_trunc_M instruction pattern: Standard Names. (line 640)
  46500. * vec_pack_ufix_trunc_M instruction pattern: Standard Names. (line 663)
  46501. * vec_pack_usat_M instruction pattern: Standard Names. (line 656)
  46502. * vec_permM instruction pattern: Standard Names. (line 410)
  46503. * vec_permM instruction pattern <1>: Addressing Modes. (line 330)
  46504. * VEC_RSHIFT_EXPR: Vectors. (line 6)
  46505. * vec_select: Vector Operations. (line 19)
  46506. * vec_series: Vector Operations. (line 41)
  46507. * vec_seriesM instruction pattern: Standard Names. (line 308)
  46508. * VEC_SERIES_EXPR: Vectors. (line 6)
  46509. * vec_setM instruction pattern: Standard Names. (line 277)
  46510. * vec_shl_insert_M instruction pattern: Standard Names. (line 621)
  46511. * vec_shl_M instruction pattern: Standard Names. (line 628)
  46512. * vec_shr_M instruction pattern: Standard Names. (line 634)
  46513. * vec_store_lanesMN instruction pattern: Standard Names. (line 206)
  46514. * vec_unpacks_float_hi_M instruction pattern: Standard Names.
  46515. (line 700)
  46516. * vec_unpacks_float_lo_M instruction pattern: Standard Names.
  46517. (line 700)
  46518. * vec_unpacks_hi_M instruction pattern: Standard Names. (line 677)
  46519. * vec_unpacks_lo_M instruction pattern: Standard Names. (line 677)
  46520. * vec_unpacks_sbool_hi_M instruction pattern: Standard Names.
  46521. (line 691)
  46522. * vec_unpacks_sbool_lo_M instruction pattern: Standard Names.
  46523. (line 691)
  46524. * vec_unpacku_float_hi_M instruction pattern: Standard Names.
  46525. (line 700)
  46526. * vec_unpacku_float_lo_M instruction pattern: Standard Names.
  46527. (line 700)
  46528. * vec_unpacku_hi_M instruction pattern: Standard Names. (line 684)
  46529. * vec_unpacku_lo_M instruction pattern: Standard Names. (line 684)
  46530. * VEC_UNPACK_FIX_TRUNC_HI_EXPR: Vectors. (line 6)
  46531. * VEC_UNPACK_FIX_TRUNC_LO_EXPR: Vectors. (line 6)
  46532. * VEC_UNPACK_FLOAT_HI_EXPR: Vectors. (line 6)
  46533. * VEC_UNPACK_FLOAT_LO_EXPR: Vectors. (line 6)
  46534. * VEC_UNPACK_HI_EXPR: Vectors. (line 6)
  46535. * VEC_UNPACK_LO_EXPR: Vectors. (line 6)
  46536. * vec_unpack_sfix_trunc_hi_M instruction pattern: Standard Names.
  46537. (line 709)
  46538. * vec_unpack_sfix_trunc_lo_M instruction pattern: Standard Names.
  46539. (line 709)
  46540. * vec_unpack_ufix_trunc_hi_M instruction pattern: Standard Names.
  46541. (line 709)
  46542. * vec_unpack_ufix_trunc_lo_M instruction pattern: Standard Names.
  46543. (line 709)
  46544. * VEC_WIDEN_MULT_HI_EXPR: Vectors. (line 6)
  46545. * VEC_WIDEN_MULT_LO_EXPR: Vectors. (line 6)
  46546. * vec_widen_smult_even_M instruction pattern: Standard Names.
  46547. (line 719)
  46548. * vec_widen_smult_hi_M instruction pattern: Standard Names. (line 719)
  46549. * vec_widen_smult_lo_M instruction pattern: Standard Names. (line 719)
  46550. * vec_widen_smult_odd_M instruction pattern: Standard Names. (line 719)
  46551. * vec_widen_sshiftl_hi_M instruction pattern: Standard Names.
  46552. (line 730)
  46553. * vec_widen_sshiftl_lo_M instruction pattern: Standard Names.
  46554. (line 730)
  46555. * vec_widen_umult_even_M instruction pattern: Standard Names.
  46556. (line 719)
  46557. * vec_widen_umult_hi_M instruction pattern: Standard Names. (line 719)
  46558. * vec_widen_umult_lo_M instruction pattern: Standard Names. (line 719)
  46559. * vec_widen_umult_odd_M instruction pattern: Standard Names. (line 719)
  46560. * vec_widen_ushiftl_hi_M instruction pattern: Standard Names.
  46561. (line 730)
  46562. * vec_widen_ushiftl_lo_M instruction pattern: Standard Names.
  46563. (line 730)
  46564. * verify_flow_info: Maintaining the CFG.
  46565. (line 116)
  46566. * virtual operands: SSA Operands. (line 6)
  46567. * VIRTUAL_INCOMING_ARGS_REGNUM: Regs and Memory. (line 59)
  46568. * VIRTUAL_OUTGOING_ARGS_REGNUM: Regs and Memory. (line 87)
  46569. * VIRTUAL_STACK_DYNAMIC_REGNUM: Regs and Memory. (line 78)
  46570. * VIRTUAL_STACK_VARS_REGNUM: Regs and Memory. (line 69)
  46571. * VLIW: Processor pipeline description.
  46572. (line 6)
  46573. * VLIW <1>: Processor pipeline description.
  46574. (line 223)
  46575. * vlshrM3 instruction pattern: Standard Names. (line 844)
  46576. * VMS: Filesystem. (line 37)
  46577. * VMS_DEBUGGING_INFO: VMS Debug. (line 8)
  46578. * VOIDmode: Machine Modes. (line 192)
  46579. * VOID_TYPE: Types. (line 6)
  46580. * volatil: Flags. (line 339)
  46581. * volatil, in insn, call_insn, jump_insn, code_label, jump_table_data, barrier, and note: Flags.
  46582. (line 33)
  46583. * volatil, in label_ref and reg_label: Flags. (line 54)
  46584. * volatil, in mem, asm_operands, and asm_input: Flags. (line 65)
  46585. * volatil, in reg: Flags. (line 106)
  46586. * volatil, in subreg: Flags. (line 184)
  46587. * volatil, in subreg <1>: Flags. (line 194)
  46588. * volatil, in symbol_ref: Flags. (line 220)
  46589. * volatile memory references: Flags. (line 340)
  46590. * volatile, in prefetch: Flags. (line 92)
  46591. * voting between constraint alternatives: Class Preferences. (line 6)
  46592. * vrotlM3 instruction pattern: Standard Names. (line 844)
  46593. * vrotrM3 instruction pattern: Standard Names. (line 844)
  46594. * walk_dominator_tree: SSA. (line 195)
  46595. * walk_gimple_op: Statement and operand traversals.
  46596. (line 30)
  46597. * walk_gimple_seq: Statement and operand traversals.
  46598. (line 47)
  46599. * walk_gimple_stmt: Statement and operand traversals.
  46600. (line 10)
  46601. * WCHAR_TYPE: Type Layout. (line 165)
  46602. * WCHAR_TYPE_SIZE: Type Layout. (line 173)
  46603. * which_alternative: Output Statement. (line 58)
  46604. * WHILE_BODY: Statements for C++. (line 6)
  46605. * WHILE_COND: Statements for C++. (line 6)
  46606. * WHILE_STMT: Statements for C++. (line 6)
  46607. * while_ultMN instruction pattern: Standard Names. (line 320)
  46608. * whopr: LTO. (line 6)
  46609. * widen_ssumM3 instruction pattern: Standard Names. (line 587)
  46610. * widen_usumM3 instruction pattern: Standard Names. (line 588)
  46611. * WIDEST_HARDWARE_FP_SIZE: Type Layout. (line 110)
  46612. * window_save instruction pattern: Standard Names. (line 2092)
  46613. * WINT_TYPE: Type Layout. (line 178)
  46614. * WORDS_BIG_ENDIAN: Storage Layout. (line 28)
  46615. * WORDS_BIG_ENDIAN, effect on subreg: Regs and Memory. (line 225)
  46616. * word_mode: Machine Modes. (line 458)
  46617. * WORD_REGISTER_OPERATIONS: Misc. (line 53)
  46618. * wpa: LTO. (line 6)
  46619. * X in constraint: Simple Constraints. (line 122)
  46620. * x-HOST: Host Fragment. (line 6)
  46621. * XCmode: Machine Modes. (line 199)
  46622. * XCOFF_DEBUGGING_INFO: DBX Options. (line 12)
  46623. * XEXP: Accessors. (line 6)
  46624. * XFmode: Machine Modes. (line 82)
  46625. * XImode: Machine Modes. (line 54)
  46626. * XINT: Accessors. (line 6)
  46627. * xm-MACHINE.h: Filesystem. (line 6)
  46628. * xm-MACHINE.h <1>: Host Misc. (line 6)
  46629. * xor: Arithmetic. (line 168)
  46630. * xor, canonicalization of: Insn Canonicalizations.
  46631. (line 94)
  46632. * xorM3 instruction pattern: Standard Names. (line 442)
  46633. * xorsignM3 instruction pattern: Standard Names. (line 1149)
  46634. * XSTR: Accessors. (line 6)
  46635. * XVEC: Accessors. (line 38)
  46636. * XVECEXP: Accessors. (line 45)
  46637. * XVECLEN: Accessors. (line 41)
  46638. * XWINT: Accessors. (line 6)
  46639. * zero_extend: Conversions. (line 28)
  46640. * zero_extendMN2 instruction pattern: Standard Names. (line 1452)
  46641. * zero_extract: Bit-Fields. (line 30)
  46642. * zero_extract, canonicalization of: Insn Canonicalizations.
  46643. (line 103)
  46644. 
  46645. Tag Table:
  46646. Node: Top1789
  46647. Node: Contributing5163
  46648. Node: Portability5893
  46649. Node: Interface7681
  46650. Node: Libgcc10722
  46651. Node: Integer library routines12549
  46652. Node: Soft float library routines19517
  46653. Node: Decimal float library routines31455
  46654. Node: Fixed-point fractional library routines47213
  46655. Node: Exception handling routines147609
  46656. Node: Miscellaneous routines148716
  46657. Node: Languages150836
  46658. Node: Source Tree152383
  46659. Node: Configure Terms152965
  46660. Node: Top Level155921
  46661. Node: gcc Directory159506
  46662. Node: Subdirectories160458
  46663. Node: Configuration162626
  46664. Node: Config Fragments163346
  46665. Node: System Config164571
  46666. Node: Configuration Files165507
  46667. Node: Build168123
  46668. Node: Makefile168535
  46669. Ref: Makefile-Footnote-1175310
  46670. Ref: Makefile-Footnote-2175457
  46671. Node: Library Files175531
  46672. Node: Headers176093
  46673. Node: Documentation178176
  46674. Node: Texinfo Manuals179035
  46675. Node: Man Page Generation181364
  46676. Node: Miscellaneous Docs183277
  46677. Node: Front End184664
  46678. Node: Front End Directory188343
  46679. Node: Front End Config189659
  46680. Node: Front End Makefile192495
  46681. Node: Back End196263
  46682. Node: Testsuites201149
  46683. Node: Test Idioms202138
  46684. Node: Test Directives205536
  46685. Node: Directives206063
  46686. Node: Selectors216961
  46687. Node: Effective-Target Keywords218317
  46688. Ref: arm_fp_ok230268
  46689. Ref: arm_fp_dp_ok230435
  46690. Ref: arm_neon_ok231547
  46691. Ref: arm_neon_ok_no_float_abi231716
  46692. Ref: arm_neonv2_ok231883
  46693. Ref: arm_fp16_ok232050
  46694. Ref: arm_neon_fp16_ok232392
  46695. Ref: arm_vfp3_ok233324
  46696. Ref: arm_arch_v8a_hard_ok233467
  46697. Ref: arm_v8_1a_neon_ok234217
  46698. Ref: arm_v8_2a_fp16_scalar_ok234645
  46699. Ref: arm_v8_2a_fp16_neon_ok235096
  46700. Ref: arm_v8_2a_dotprod_neon_ok235571
  46701. Ref: arm_fp16fml_neon_ok235991
  46702. Ref: arm_coproc1_ok238124
  46703. Ref: arm_coproc2_ok238250
  46704. Ref: arm_coproc3_ok238478
  46705. Ref: arm_simd32_ok238845
  46706. Ref: arm_qbit_ok239023
  46707. Ref: arm_softfp_ok239215
  46708. Ref: arm_hard_ok239288
  46709. Ref: stack_size_et251081
  46710. Node: Add Options253474
  46711. Ref: arm_fp16_ieee254712
  46712. Ref: arm_fp16_alternative254967
  46713. Ref: stack_size_ao257362
  46714. Node: Require Support257724
  46715. Node: Final Actions260626
  46716. Node: Ada Tests269466
  46717. Node: C Tests270629
  46718. Node: LTO Testing275001
  46719. Node: gcov Testing276644
  46720. Node: profopt Testing279614
  46721. Node: compat Testing281329
  46722. Node: Torture Tests285569
  46723. Node: GIMPLE Tests287203
  46724. Node: RTL Tests288445
  46725. Node: Options289751
  46726. Node: Option file format290192
  46727. Node: Option properties297181
  46728. Node: Passes313344
  46729. Node: Parsing pass314217
  46730. Node: Gimplification pass317745
  46731. Node: Pass manager319578
  46732. Node: IPA passes321419
  46733. Node: Small IPA passes322312
  46734. Node: Regular IPA passes325749
  46735. Node: Late IPA passes330811
  46736. Node: Tree SSA passes331770
  46737. Node: RTL passes353310
  46738. Node: Optimization info365574
  46739. Node: Dump setup366393
  46740. Node: Optimization groups367522
  46741. Node: Dump files and streams368501
  46742. Node: Dump output verbosity369699
  46743. Node: Dump types370755
  46744. Node: Dump examples373097
  46745. Node: poly_int374578
  46746. Node: Overview of poly_int376058
  46747. Node: Consequences of using poly_int378662
  46748. Node: Comparisons involving poly_int380297
  46749. Node: Comparison functions for poly_int381935
  46750. Node: Properties of the poly_int comparisons383142
  46751. Node: Comparing potentially-unordered poly_ints385584
  46752. Node: Comparing ordered poly_ints386495
  46753. Node: Checking for a poly_int marker value388519
  46754. Node: Range checks on poly_ints389368
  46755. Node: Sorting poly_ints392022
  46756. Node: Arithmetic on poly_ints392795
  46757. Node: Using poly_int with C++ arithmetic operators393596
  46758. Node: wi arithmetic on poly_ints395127
  46759. Node: Division of poly_ints395979
  46760. Node: Other poly_int arithmetic397486
  46761. Node: Alignment of poly_ints398892
  46762. Node: Computing bounds on poly_ints402169
  46763. Node: Converting poly_ints403558
  46764. Node: Miscellaneous poly_int routines407105
  46765. Node: Guidelines for using poly_int407745
  46766. Node: GENERIC412677
  46767. Node: Deficiencies414499
  46768. Node: Tree overview414740
  46769. Node: Macros and Functions418864
  46770. Node: Identifiers419689
  46771. Node: Containers421298
  46772. Node: Types422455
  46773. Node: Declarations434529
  46774. Node: Working with declarations435024
  46775. Node: Internal structure440628
  46776. Node: Current structure hierarchy441012
  46777. Node: Adding new DECL node types443105
  46778. Node: Attributes447389
  46779. Node: Expression trees448633
  46780. Node: Constant expressions450387
  46781. Node: Storage References456479
  46782. Node: Unary and Binary Expressions459998
  46783. Node: Vectors480900
  46784. Node: Statements487804
  46785. Node: Basic Statements488336
  46786. Node: Blocks492963
  46787. Node: Statement Sequences494664
  46788. Node: Empty Statements494997
  46789. Node: Jumps495571
  46790. Node: Cleanups496224
  46791. Node: OpenMP498265
  46792. Node: OpenACC504110
  46793. Node: Functions505227
  46794. Node: Function Basics505698
  46795. Node: Function Properties509382
  46796. Node: Language-dependent trees512163
  46797. Node: C and C++ Trees513050
  46798. Node: Types for C++515935
  46799. Node: Namespaces520905
  46800. Node: Classes524011
  46801. Node: Functions for C++528919
  46802. Node: Statements for C++535170
  46803. Node: C++ Expressions543223
  46804. Node: GIMPLE544728
  46805. Node: Tuple representation548393
  46806. Node: Class hierarchy of GIMPLE statements555353
  46807. Node: GIMPLE instruction set560341
  46808. Node: GIMPLE Exception Handling561973
  46809. Node: Temporaries563885
  46810. Ref: Temporaries-Footnote-1565203
  46811. Node: Operands565268
  46812. Node: Compound Expressions566029
  46813. Node: Compound Lvalues566263
  46814. Node: Conditional Expressions567025
  46815. Node: Logical Operators567684
  46816. Node: Manipulating GIMPLE statements575031
  46817. Node: Tuple specific accessors580967
  46818. Node: GIMPLE_ASM581746
  46819. Node: GIMPLE_ASSIGN584129
  46820. Node: GIMPLE_BIND588833
  46821. Node: GIMPLE_CALL590647
  46822. Node: GIMPLE_CATCH594790
  46823. Node: GIMPLE_COND595940
  46824. Node: GIMPLE_DEBUG598735
  46825. Node: GIMPLE_EH_FILTER603333
  46826. Node: GIMPLE_LABEL604896
  46827. Node: GIMPLE_GOTO605509
  46828. Node: GIMPLE_NOP606032
  46829. Node: GIMPLE_OMP_ATOMIC_LOAD606394
  46830. Node: GIMPLE_OMP_ATOMIC_STORE607390
  46831. Node: GIMPLE_OMP_CONTINUE608089
  46832. Node: GIMPLE_OMP_CRITICAL609568
  46833. Node: GIMPLE_OMP_FOR610562
  46834. Node: GIMPLE_OMP_MASTER613978
  46835. Node: GIMPLE_OMP_ORDERED614356
  46836. Node: GIMPLE_OMP_PARALLEL614750
  46837. Node: GIMPLE_OMP_RETURN617519
  46838. Node: GIMPLE_OMP_SECTION618164
  46839. Node: GIMPLE_OMP_SECTIONS618824
  46840. Node: GIMPLE_OMP_SINGLE620434
  46841. Node: GIMPLE_PHI621380
  46842. Node: GIMPLE_RESX622659
  46843. Node: GIMPLE_RETURN623378
  46844. Node: GIMPLE_SWITCH623952
  46845. Node: GIMPLE_TRY625827
  46846. Node: GIMPLE_WITH_CLEANUP_EXPR627599
  46847. Node: GIMPLE sequences628478
  46848. Node: Sequence iterators631684
  46849. Node: Adding a new GIMPLE statement code640141
  46850. Node: Statement and operand traversals641486
  46851. Node: Tree SSA644078
  46852. Node: Annotations645866
  46853. Node: SSA Operands646271
  46854. Node: SSA660350
  46855. Node: Alias analysis670056
  46856. Node: Memory model673830
  46857. Node: RTL675189
  46858. Node: RTL Objects677377
  46859. Node: RTL Classes681261
  46860. Node: Accessors686560
  46861. Node: Special Accessors688733
  46862. Node: Flags694520
  46863. Node: Machine Modes709783
  46864. Node: Constants727189
  46865. Node: Regs and Memory738578
  46866. Node: Arithmetic757830
  46867. Node: Comparisons768005
  46868. Node: Bit-Fields772297
  46869. Node: Vector Operations773848
  46870. Node: Conversions775952
  46871. Node: RTL Declarations780450
  46872. Node: Side Effects781294
  46873. Node: Incdec798303
  46874. Node: Assembler801639
  46875. Node: Debug Information803184
  46876. Node: Insns805111
  46877. Node: Calls832967
  46878. Node: Sharing835560
  46879. Node: Reading RTL838755
  46880. Node: Control Flow839746
  46881. Node: Basic Blocks841514
  46882. Node: Edges846968
  46883. Node: Profile information855587
  46884. Node: Maintaining the CFG860271
  46885. Node: Liveness information866039
  46886. Node: Loop Analysis and Representation868165
  46887. Node: Loop representation869201
  46888. Node: Loop querying876567
  46889. Node: Loop manipulation879388
  46890. Node: LCSSA881724
  46891. Node: Scalar evolutions883793
  46892. Node: loop-iv887037
  46893. Node: Number of iterations888959
  46894. Node: Dependency analysis893040
  46895. Node: Machine Desc899391
  46896. Node: Overview901954
  46897. Node: Patterns903994
  46898. Node: Example908961
  46899. Node: RTL Template910422
  46900. Node: Output Template921078
  46901. Node: Output Statement925259
  46902. Node: Predicates929598
  46903. Node: Machine-Independent Predicates932516
  46904. Node: Defining Predicates937460
  46905. Node: Constraints943423
  46906. Node: Simple Constraints944892
  46907. Node: Multi-Alternative957732
  46908. Node: Class Preferences960941
  46909. Node: Modifiers961833
  46910. Node: Machine Constraints966566
  46911. Node: Disable Insn Alternatives1028670
  46912. Node: Define Constraints1032162
  46913. Node: C Constraint Interface1039556
  46914. Node: Standard Names1042705
  46915. Ref: shift patterns1078949
  46916. Ref: prologue instruction pattern1133729
  46917. Ref: window_save instruction pattern1134222
  46918. Ref: epilogue instruction pattern1134499
  46919. Node: Pattern Ordering1156475
  46920. Node: Dependent Patterns1157711
  46921. Node: Jump Patterns1159331
  46922. Ref: Jump Patterns-Footnote-11161476
  46923. Node: Looping Patterns1161524
  46924. Node: Insn Canonicalizations1167163
  46925. Node: Expander Definitions1172370
  46926. Node: Insn Splitting1180584
  46927. Node: Including Patterns1195614
  46928. Node: Peephole Definitions1197398
  46929. Node: define_peephole1198651
  46930. Node: define_peephole21204981
  46931. Node: Insn Attributes1209070
  46932. Node: Defining Attributes1210252
  46933. Ref: define_enum_attr1213744
  46934. Node: Expressions1214780
  46935. Node: Tagging Insns1221530
  46936. Node: Attr Example1225883
  46937. Node: Insn Lengths1228256
  46938. Node: Constant Attributes1231664
  46939. Node: Mnemonic Attribute1232840
  46940. Node: Delay Slots1234359
  46941. Node: Processor pipeline description1237582
  46942. Ref: Processor pipeline description-Footnote-11256394
  46943. Node: Conditional Execution1256718
  46944. Node: Define Subst1260201
  46945. Node: Define Subst Example1262236
  46946. Node: Define Subst Pattern Matching1265231
  46947. Node: Define Subst Output Template1266457
  46948. Node: Constant Definitions1268780
  46949. Ref: define_enum1272562
  46950. Node: Iterators1273050
  46951. Node: Mode Iterators1273695
  46952. Node: Defining Mode Iterators1274673
  46953. Node: Substitutions1276167
  46954. Node: Examples1278409
  46955. Node: Code Iterators1279857
  46956. Node: Int Iterators1282987
  46957. Node: Subst Iterators1285433
  46958. Node: Parameterized Names1287153
  46959. Node: Target Macros1291171
  46960. Node: Target Structure1294234
  46961. Node: Driver1296726
  46962. Node: Run-time Target1315696
  46963. Node: Per-Function Data1325229
  46964. Node: Storage Layout1327993
  46965. Node: Type Layout1355492
  46966. Node: Registers1368833
  46967. Node: Register Basics1369807
  46968. Node: Allocation Order1377369
  46969. Node: Values in Registers1379853
  46970. Node: Leaf Functions1387329
  46971. Node: Stack Registers1390188
  46972. Node: Register Classes1391460
  46973. Node: Stack and Calling1426242
  46974. Node: Frame Layout1426848
  46975. Node: Exception Handling1438683
  46976. Node: Stack Checking1444893
  46977. Node: Frame Registers1450518
  46978. Node: Elimination1459069
  46979. Node: Stack Arguments1462925
  46980. Node: Register Arguments1470121
  46981. Node: Scalar Return1494982
  46982. Node: Aggregate Return1501438
  46983. Node: Caller Saves1505992
  46984. Node: Function Entry1506734
  46985. Node: Profiling1518286
  46986. Node: Tail Calls1520396
  46987. Node: Shrink-wrapping separate components1522306
  46988. Node: Stack Smashing Protection1525347
  46989. Node: Miscellaneous Register Hooks1527836
  46990. Node: Varargs1528701
  46991. Node: Trampolines1538101
  46992. Node: Library Calls1546924
  46993. Node: Addressing Modes1551814
  46994. Node: Anchored Addresses1580821
  46995. Node: Condition Code1583464
  46996. Node: CC0 Condition Codes1585791
  46997. Node: MODE_CC Condition Codes1589037
  46998. Node: Costs1595863
  46999. Node: Scheduling1617619
  47000. Node: Sections1641541
  47001. Node: PIC1657760
  47002. Node: Assembler Format1659819
  47003. Node: File Framework1660957
  47004. Ref: TARGET_HAVE_SWITCHABLE_BSS_SECTIONS1668556
  47005. Node: Data Output1671826
  47006. Node: Uninitialized Data1680114
  47007. Node: Label Output1685128
  47008. Node: Initialization1709739
  47009. Node: Macros for Initialization1715700
  47010. Node: Instruction Output1722419
  47011. Node: Dispatch Tables1733048
  47012. Node: Exception Region Output1737877
  47013. Node: Alignment Output1744959
  47014. Node: Debugging Info1748646
  47015. Node: All Debuggers1749300
  47016. Node: DBX Options1752072
  47017. Node: DBX Hooks1757510
  47018. Node: File Names and DBX1758819
  47019. Node: DWARF1760923
  47020. Node: VMS Debug1766738
  47021. Node: Floating Point1767317
  47022. Node: Mode Switching1770072
  47023. Node: Target Attributes1774509
  47024. Node: Emulated TLS1783925
  47025. Node: MIPS Coprocessors1787315
  47026. Node: PCH Target1788474
  47027. Node: C++ ABI1790316
  47028. Node: D Language and ABI1795108
  47029. Node: Named Address Spaces1796153
  47030. Node: Misc1802080
  47031. Ref: TARGET_SHIFT_TRUNCATION_MASK1809951
  47032. Node: Host Config1865285
  47033. Node: Host Common1866354
  47034. Node: Filesystem1868728
  47035. Node: Host Misc1872843
  47036. Node: Fragments1875292
  47037. Node: Target Fragment1876487
  47038. Node: Host Fragment1887299
  47039. Node: Collect21887539
  47040. Node: Header Dirs1890175
  47041. Node: Type Information1891598
  47042. Node: GTY Options1894874
  47043. Node: Inheritance and GTY1906132
  47044. Ref: Inheritance and GTY-Footnote-11907697
  47045. Node: User GC1907967
  47046. Node: GGC Roots1911706
  47047. Node: Files1912419
  47048. Node: Invoking the garbage collector1915126
  47049. Node: Troubleshooting1916631
  47050. Node: Plugins1917706
  47051. Node: Plugins loading1918835
  47052. Node: Plugin API1919934
  47053. Node: Plugins pass1927660
  47054. Node: Plugins GC1929631
  47055. Node: Plugins description1931348
  47056. Node: Plugins attr1931884
  47057. Node: Plugins recording1934164
  47058. Node: Plugins gate1935014
  47059. Node: Plugins tracking1935605
  47060. Node: Plugins building1936193
  47061. Node: LTO1939694
  47062. Node: LTO Overview1940566
  47063. Node: LTO object file layout1946393
  47064. Node: IPA1951023
  47065. Node: WHOPR1960073
  47066. Node: Internal flags1964633
  47067. Node: Match and Simplify1966044
  47068. Node: GIMPLE API1967006
  47069. Node: The Language1969801
  47070. Node: Static Analyzer1981776
  47071. Node: Analyzer Internals1982041
  47072. Node: Debugging the Analyzer1997685
  47073. Node: User Experience Guidelines2000296
  47074. Node: Guidelines for Diagnostics2001232
  47075. Ref: input_location_example2008293
  47076. Node: Guidelines for Options2017976
  47077. Node: Funding2018153
  47078. Node: GNU Project2020660
  47079. Node: Copying2021309
  47080. Node: GNU Free Documentation License2058820
  47081. Node: Contributors2083941
  47082. Node: Option Index2124917
  47083. Node: Concept Index2125794
  47084. 
  47085. End Tag Table